Page MenuHomePhabricator

mitkExtractImageFilter is not working correctly for reconstructed images
Closed, WontfixPublic

Description

The mitkExtractImageFilter uses internally the itk::ExtractImageFilter. This filter has a bug at line 203. Here the filter tries to collapse the direction matrix and copy the non-collapsed part of the input to the output. The problem here is a small index error. For a part of the matrix the collapsed part is taken from the input which leads for example to following matrix:
0 0
0 1

The determinant of this matrix will be 0 and therefore following exception is thrown: ExtractImageFilter(0x40f5170): Invalid submatrix extracted for collapsed direction.

I will file a bug for ITK. But for now I will add a patch for ITK which will solve the problem.

Event Timeline

User dsaruji has pushed new remote branch:

bug-17512-itkextractimagefilter-patch

Did you try to use the mitkExtractSliceFilter instead? This one uses VTK means to extract a slice. Right now we already use this one for our rendering and the segmentation reslicing.

kislinsk added a subscriber: kislinsk.
This task was automatically closed because it wasn't updated at least since July 2016 (over 2 years). Please re-open this task if you think that it is still relevant. This most probably means that you will resolve it.