[Insight-users] image orientation and registration -
itkImageMaskSpatialObject problem
Peter Roesch
Peter.Roesch at fh-augsburg.de
Wed Feb 13 11:31:27 EST 2008
Hello,
thanks a lot for including image orientation into the registration
framework, this simplifies matters a lot for me.
I have changed my application to use OrientedImage and found that
results look fine if the complete image content is used.
Unfortunately, problems arise as soon as I use an
itkImageMaskSpatialObject for both fixed and moving images to
exclude the background via thresholding. Mutual information
complains that all points are outside of the image which results
in an empty histogram. I have stored the masks and found the correct
orientation in the mhd files.
My current guess is that image orientation is not taken into
account from the IsInside method of the itkImageMaskSpatialObject.
Here is some additional information about the types used in the
application:
const unsigned int Dimension = 3;
typedef float PixelType;
typedef itk::OrientedImage< PixelType, Dimension > ImageType;
typedef unsigned char MaskPixelType;
typedef itk::OrientedImage< MaskPixelType, Dimension > BinaryImageType;
typedef itk::BinaryThresholdImageFilter< ImageType, BinaryImageType >
ThresholdFilterType;
typedef itk::ImageMaskSpatialObject< Dimension > MaskImageType;
Greetings and thanks in advance
Peter
More information about the Insight-users
mailing list