[Insight-users] image orientation and registration -itkImageMaskSpatialObject problem

J.S.Wijnhout at lumc.nl J.S.Wijnhout at lumc.nl
Thu Feb 14 04:38:18 EST 2008


Hi,

I think I was having the same problem yesterday. However, I tried to solve it by setting the ObjectToParent transform using the image orientation and origin of the fixed image. It seemed to work, at least not all fixed image samples were outside the valid area. I did not have time to check if the results were correct. Do you think this is a valid work-around?

best,
Jeroen


-----Original Message-----
From: insight-users-bounces+j.s.wijnhout=lumc.nl at itk.org on behalf of Bill Lorensen
Sent: Wed 2/13/2008 5:49 PM
To: Peter.Roesch at fh-augsburg.de
Cc: insight-users at itk.org
Subject: Re: [Insight-users] image orientation and registration -itkImageMaskSpatialObject problem
 
Peter,

I think you are correct that image orientation is not used in the spatial
object.

Please file a bug following the procedure in:
http://itk.org/Wiki/ITK_Procedure_for_Contributing_Bug_Fixes

Thanks,

Bill

On Feb 13, 2008 11:31 AM, Peter Roesch <Peter.Roesch at fh-augsburg.de> wrote:

> 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
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20080214/daad4c81/attachment.htm


More information about the Insight-users mailing list