[Insight-users] Label Image question again...
Xabier Artaechevarria Artieda
xabiarta at unav.es
Tue May 20 06:01:07 EDT 2008
Hi Anja,
Let's see if I can help a bit with some points.
1. The article you mentioned is an Insight Journal contribution. As
such, it includes the code needed to reproduce the results. You need
this code, which you can find in
http://insight-journal.org/InsightJournalManager/view_reviews.php?pubid=176.
This includes the LabelImage class, the classes to convert different
images to a LabelMap, and so on.
2. At least that I know, there is no straighforward way to create a
LabelImage based on a user defined contour. What you need, though, is
a LabelMap.
3. You must do it in two steps. First convert your points to binary
image, and then this image to a label map. You can convert a Binary
image to a label map easily with the itkBinaryImageToBinaryMapFilter.
4. So, now the problem is how to compute a binary region from those
points. What do you want exactly? Is it the bounding box? You can get
this with SpatialObjects (BlobSpatialObject).
Hope that helps,
Xabi
--
Xabier Artaechevarria
Cancer Imaging Laboratory
Centre for Applied Medical Research
www.cima.es
Anja Ende <anja.ende at googlemail.com> ha escrito:
> Hi all,
>
> I am really frustrated at my inability to achieve this and hope
> someone can help me with a few lines of code on how to achieve this:
>
> - I have an itk::Image object and a set of points in the image
> coordinates that represent a ROI.
> - I cannot for saving my life figure out how to generate a LabelObject
> based on this.... I have had some help when I asked this question
> before but there seems to be a disconnect somewhere and I am missing a
> step.
>
> I guess I have to figure out a way to render the region defined by
> these points into another image and somehow use this image as a mask
> on the original image. However, I just do not know how to achieve this
> with the ITK classes. The document entitled "Label Object
> representation and manipulation with ITK" somehow (I think) assumes
> that the LabelImage is easily created, but I am finding it very
> difficult to actually create this LabelImage!
>
> Is there any documentation on how one can create a LabelImage based on
> a user defined contour???
>
> Please help!
>
> --
> Cheers,
>
> Anja
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
----------------------------------------------------------------
Este mensaje ha sido enviado desde https://webmail.unav.es
More information about the Insight-users
mailing list