Page MenuHomePhabricator

Basic Image Processing - Resample to causes a crash
Closed, DuplicatePublic

Assigned To
None
Authored By
riecker
Jan 29 2015, 10:41 AM
Referenced Files
F1219: edgePicture_Resampled_Linear.nrrd
Jan 29 2015, 11:11 AM
F1218: edgePicture.nrrd
Jan 29 2015, 11:11 AM
Subscribers

Description

If you want to resample an image with the basic image processing plugin,
the workbench is crashing

Crash: Filter works, but loading the output image into a datanode causes
the crash

-> SetDefaultProperties (of the datanode)
-> GetScalarValueMin
-> ComputeImageStatistics
-> ItkAccessorMethod
-> Crash in ITK DefaultPixelAccessorFunctor

Debugger says "optimized out typedef" to the input variable of the itk method:

inline const ExternalPixelType Get(const InternalPixelType & input) const
{
  return m_PixelAccessor.Get(input);
}

Maybe a problem with the typedef on the input type ?!

Event Timeline

Instead of loading the image into a datanode, I tried to write it onto my disc with mitk::IOUtil, that also doesnt work - but it doesnt crash

after all maybe an error by the itk sampling filter or by converting the itk image to mitk image

file to resample

after resampling

Tried to resample the image "file to resample"(attachments) with spacing [1 1 3]

Resampling to spacing [1 1 1] -> crash
Resampling to spacing [2 2 6] -> "after resampling" was the result image, looks like a pixel-type error