Page MenuHomePhabricator

mitk::Equal throws exception using two identical 4D images
Closed, InvalidPublic

Description

I'm currently facing an exception in my test when comparing two 4D images.
Output is:

uncaught exception of type mitk::AccessByItkException
- Dimension 4 is not in (2)(3)

I've also checked that by adding a new test case to mitkImageEqualTest. Code snippet:

mitk::Image::Pointer i1 = 
         mitk::IOUtil::LoadImage(GetTestDataFilePath("US4DCyl.nrrd"));

  mitk::Image::Pointer i2 = 
         mitk::IOUtil::LoadImage(GetTestDataFilePath("US4DCyl.nrrd"));

  MITK_ASSERT_EQUAL(i1, i2, "Comparing with same 4D image should return true.");

Same error occurs!
This can probably be fixed in CompareImageDataFilter.

Event Timeline

Use MITK_ACCESSBYITK_DIMENSIONS with 2,3,4

kislinsk changed the task status from Invalid to Spite.Jun 27 2018, 1:30 PM
kislinsk added a project: Bulk Edit.
kislinsk changed the task status from Spite to Invalid.Jun 27 2018, 1:36 PM
kislinsk removed a project: Bulk Edit.