[Insight-users] Re: image masking

Luis Ibanez luis.ibanez at kitware.com
Wed May 26 19:11:53 EDT 2004


Hi Rupert,


Yes, this capability was recently added to the toolkit.

The ImageToImageMetrics
http://www.itk.org/Insight/Doxygen/html/classitk_1_1ImageToImageMetric.html

now accept two SpatialObjects as masks
http://www.itk.org/Insight/Doxygen/html/classitk_1_1SpatialObject.html

one SpatialObject is associated to the Fixed image and the
other associated to the Moving image.   Only pixels inside
the respective SpatialObject will be used in the computation
of the metrics.


The SpatialObject can be created from a binary mask or from
geometrical figures such as ellipsoids or tubes. Note that
SpatialObjects can also be grouped in order to create complex
shapes.


Please look at the methods

            SetMovingImageMak()
            SetFixedImageMask()

You probably want to use the MattesMutualInformation metric
http://www.itk.org/Insight/Doxygen/html/classitk_1_1MattesMutualInformationImageToImageMetric.html


   Regards,


      Luis


----------------------
Rupert Brooks wrote:

> On Tue, 2004-05-25 at 15:10, Rupert Brooks wrote:
> 
>>Resend, list was down.  Apologies if anyone gets it twice.
>>
>>On Mon, 2004-05-24 at 12:11, Rupert Brooks wrote:
>>
>>>Hi,
>>>I am trying to register two images, and one of them (a fan-shaped
>>>ultrasound image) is only relevant in a certain region of interest, with
>>>the rest being meaningless and set to zero.
>>>
>>>Is there a way to set a region of interest so that metrics (and other
>>>operators) will only process an arbitrary shaped subregion of the
>>>image?  It seems that the ImageRegion type classes are for rectangular
>>>image subsets.
>>>
>>>thanks
>>>Rupert B.
>>>-- 
>>>--------------------------------------------------------------
>>>Rupert Brooks
>>>McGill Centre for Intelligent Machines (www.cim.mcgill.ca)
>>>Ph.D Program in Intelligent Systems
>>>http://www.cyberus.ca/~rbrooks
>>>rbrook at cim.mcgill.ca
>>>ICQ: 27978014  
>>>  
>>>
>>>
>>
>>-- 
>>--------------------------------------------------------------
>>Rupert Brooks
>>McGill Centre for Intelligent Machines (www.cim.mcgill.ca)
>>Ph.D Program in Intelligent Systems
>>http://www.cyberus.ca/~rbrooks
>>rbrook at cim.mcgill.ca
>>ICQ: 27978014  
>>  
>>
>>





More information about the Insight-users mailing list