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

sere f serenaf33 at gmail.com
Sun Jun 20 20:01:48 EDT 2010


Hi Luis,

Thanks for your replay.
I have tried it without success. The registered image is still
flatted/distorted on the top of it.

The background of the moving and fixed image is set to 0. When I use the
mask on fixed image the background is excluded but in the moving image the
background can be selected.
So in MI calculus I will have a couples that is not informative: (fixedImage
value -- 0 value) because 0 is the background in moving image and it is
everywhere in the moving image.
This is very simply explanation, I know that Mattes MI is calculated with
Parzel window method.
What do you think?

Thanks for any advice.

Serena.





On Sun, Jun 20, 2010 at 3:50 PM, Luis Ibanez <luis.ibanez at kitware.com>wrote:

>
> Hi Sere,
>
>
> Please make sure that you call
>
>                   maskReader->Update()
>
>
> before you call
>
> spatialObjectMask->SetImage( maskReader->GetOutput() );
>
>
> Otherwise, you will not have an image
> set inside the MaskSpatialObject.
>
>
>       Luis
>
>
> -------------------------------------------------------
>
> On Thu, Jun 17, 2010 at 11:29 AM, sere f <serenaf33 at gmail.com> wrote:
>
>> 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
>>> >
>>> >
>>>
>>>
>>
>> _____________________________________
>> 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/20100621/2ba68970/attachment-0001.htm>


More information about the Insight-users mailing list