Page MenuHomePhabricator

AutoCropImageFilter changes the geometry of the input image
Closed, ResolvedPublic

Description

the geometry of the output image uses the geomerty of the input image, so when setting the new origin of the output image, the origin of the input image is also changed.

Event Timeline

some refactoring:

  • Getter-Method for the calculated image region
  • itkRegionOfInterestImageFilter instead of itkCropImageFilter when extracting the image region from the input

[SVN revision 27918]
FIX (#5886): clone the IndexToWorldTransform before applying it to the output image; using itkRegionOfInterestImageFilter instead of itkCropImageFilter