I'm currently facing an exception in my test when comparing two 4D images.
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.