Page MenuHomePhabricator

Extend unit test for OpenCV to mitk::Image conversion
Closed, ResolvedPublic

Description

Currently the unit test for the conversion of OpenCv images to mitk::Images and back only checks the usage of cv::Mat style images. Since the mitk::OpenCvToMitkImageFilter seems to be broken with Ipl images, the unit test should be extended to check this and to fix this issue if necessary.

Event Timeline

New remote branch pushed: bug-16278-ExtendTestForOpenCvImageConversion

[d23d48]: Merge branch 'bug-16278-ExtendTestForOpenCvImageConversion'

Merged commits:

2013-10-21 13:23:32 Sven Mersmann [0a873d]
Enhanced the unit test for conversion of mitkImage to OpenCV image and back. Excluded the itkImageBridge for conversion to mitk for floating point images do not work with this class. Included namespace mitk.

[1cbbd8]: Merge branch 'bug-16278-ExtendTestForOpenCvImageConversion'

Merged commits:

2013-10-21 14:57:55 Sven Mersmann [b9ffac]
COMP: Changed release of OpenCV cv::Mat object, which is not a pointer.

The image conversion should now workfor all kinds of images. To test the three component images the mitkCompareFilter and accordingly the Equal() method needs to be modified (T16300).