Hello, I have two vector images of type itk::Image<itk::Vector<double, 3>> that I am trying to compare for similarity. My first two approaches failed and I’m not sure why…
First, I found the itk::Testing::ComparisonImageFilter, which appears to be for comparing two images. The templated implementation didn’t appear to be able to handle images with a vector pixel type though. Is this correct, or did I just implement it wrong?
The next method I tried was to subtract one of the images from the other one. This didn’t work either! I thought that the subtraction operator would have been implemented for vector images. Do I have to use a filter for this instead?
I ended up just using two ImageRegionIterators and comparing each pixel value, which works well. However, I would like to understand why my first efforts didn’t! Does anyone have any Insight on this issue to share?