[Insight-users] How to create a LabelMap or Label object

Xabier Artaechevarria Artieda xabiarta at unav.es
Thu May 1 17:01:07 EDT 2008


Hi Anja,
Look at section 5.1 of the article. The easiest thing is to convert a  
label image or binary image (maybe this is your case) into a  
itk::LabelMap using  itk::BinaryImageToLabelMapFilter or  
itk::LabelImageToLabelMapFilter.
Then, in your case, you will need to convert your image into a binary image.
And last, use the mentioned filter to convert it to a LabelMap.
Regards,
Xabi

-- 
Xabier Artaechevarria
Cancer Imaging Laboratory
Centre for Applied Medical Research
www.cima.es



Anja Ende <anja.ende at googlemail.com> ha escrito:

> Hi everyone,
>
> I had a question a few days back where I needed to perform some
> statistics an irregular region of an image. Someone had pointed me to
> the following submission:
>
> http://www.insight-journal.org/InsightJournalManager/view_reviews.php?back=index.php&pubid=176
>
> However, I am a bit confused on how to use it. So, if I understand
> correctly, I need to create a LabelMap object.
>
> What I do have is the set of connected points (in image coordinates)
> that make up my region and basically represents a closed 2D polygon or
> surface. How can I use that information to create this LabelMap class?
>
> Any help would be really appreciated.
>
> 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