[Insight-users] Problem about setting the mask in the registration
Luis Ibanez
luis.ibanez at kitware.com
Tue May 13 12:34:26 EDT 2008
Hi Chunfang,
The registration framework allows you to set masks individually
for both the Fixed image and the Moving image.
You can do this with code like the following:
metric->SetFixedImageMask( fixedImageMask );
metric->SetMovingImageMask( movingImageMask );
In the example:
Examples/Registration/ImageRegistration12.cxx
The mask that is set in line 322:
metric->SetFixedImageMask( spatialObjectMask );
is *only* used for the fixed image.
Regards,
Luis
--------------------
chunfang wang wrote:
> Hi,
>
> I am learning the example in the
> Examples/Registration/ImageRegistration12.cxx, and get confuse at the
> only mask used both for the fixed and moving image. If I want to use two
> seperate masks, that is set individual mask for the fixed and moving
> image, how could I do it ?( instead of get the masked image as the input
> of the registration by the AND of the binary and original image).
>
> thanks for your regareds.
>
> chunfang
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list