[Insight-users] Creating a spatial object from a binary image
Luis Ibanez
luis.ibanez at kitware.com
Thu Jun 3 19:03:33 EDT 2004
Hi Vincent,
You are in the right track,
the class to use is the:
ImageSpatialObject.
http://www.itk.org/Insight/Doxygen/html/classitk_1_1ImageSpatialObject.html
Just connect your image mask to the ImageSpatialObject
using its "SetImage()" method.
There is no overload for doing this. At the end,
the spatial object just need to answers the queries
for whether a pixel is "inside" of the object (your
image mask in this case) or not. What the Spatial
object is doing is simply delegating the quiery to
the underlying image mask that you provided.
Please let us know if you have further questions,
Thanks
Luis
----------------
Vincent Chu wrote:
> Hi,
>
> I am new to ITK and would like to perform registration between two images.
> The region of interest has arbitrary shapes, and I previously read from
> the list that we can use SetMovingImageMak() and SetFixedImageMask() in
> ImageToImageMetrics to set the region in which the metrics will be
> computed. However, those two methods expect spatial objects as parameter,
> and I have trouble converting a binary image into a spatial object. I
> have tried ImageSpatialObject, but the entire binary image would be
> created as one big spatial object. Which class should I use instead?
>
> Thanks,
>
> Vincent
> _______________________________________________
> 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