We have a simple method that performs a itk::BinaryThresholdImage filter and returns a MITK image using
output = mitk::ImportItkImage(thresholder->GetOutput());
The problem is the ImportItkImage returning an invalid mitk::Image. The data seems to be garbage.
It was working well with MITK version based on ITK3. I verified that the result of the ITK filter is good. I also tried with
mitk::CastToMitkImage(thresholder->GetOutput(), output);
and everything is working well apart from being considerably slower than using ImportItkImage
I'm using MITK 585bb87742a73f2a2f6dfccd75fd5cbc3651415a