[Insight-users] Insight-users Digest, Vol 74, Issue 36

sere f serenaf33 at gmail.com
Thu Jun 17 11:29:46 EDT 2010


Hi Luis,
Thanks to replay me.

I use



typedef itk::ImageMaskSpatialObject< ImageDimension >MaskType;

        MaskType::Pointer spatialObjectMask = MaskType::New();


spatialObjectMask->SetImage( maskReader->GetOutput() );

metric->SetFixedImageMask( spatialObjectMask);


the mask covers all the head..... should I use a mask larger than the head?

Serena.



> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 17 Jun 2010 10:33:41 -0400
> From: Luis Ibanez <luis.ibanez at kitware.com>
> Subject: Re: [Insight-users] Problems with Bspline grid and mask
> To: sere f <serenaf33 at gmail.com>
> Cc: insight-users at itk.org
> Message-ID:
>        <AANLkTiliRUpoydvHExh8JbHmCZV3hNctl-AxbTvbY2I3 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Sere,
>
> How are you defining the mask ?
>
> I would suggest that you use the SpatialObjectToImageMask
> in order to imprint the mask in the Fixed image and see where
> it is mapping.
>
> It is quite likely that your Mask is not covering the pixels
> that you think is covering.
>
> For examples on how to use this filter, please look at;
>
>            Insight/Examples/Filtering/
>                         SpatialObjectToImage1.cxx
>                         SpatialObjectToImage2.cxx
>                         SpatialObjectToImage3.cxx
>
>
>   Regards,
>
>
>       Luis
>
>
>
> -------------------------------------------------------------------------------
> On Thu, Jun 17, 2010 at 7:58 AM, sere f <serenaf33 at gmail.com> wrote:
>
> > Hi All,
> >
> > I am registering with 2 images of the head with BSpline Transformation
> and
> > Mattes MI.
> >
> > I use the mask to exclude the background so the samples for MI are taken
> > only from the head, but the BSpline grid is defined on all image.
> > The registered image is not correctly deformed. In particular it appears
> flattened
> >  on the top of the image.
> > I have played with the parameters of optimizer but i have the same
> result.
> > When I register without the mask the registered image is good.
> > Where is  the error?
> > any idea?
> >
> > Thank you for any suggestion.
> >
> > Serena.
> >
> >
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.html
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.itk.org/mailman/listinfo/insight-users
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100617/f0af6881/attachment.htm>


More information about the Insight-users mailing list