[Insight-users] Label Map

Cagatay Bilgin bilgincc at gmail.com
Wed Jul 25 14:00:37 EDT 2012


You can use the MergeLabelMapFilter.
The following example should illustrate
the usage
http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/MergeLabelMapFilter

You can also create a new labelmap and
add your objects using the PushLabelObject
method  as well. The choice is yours :)

Cagatay



On Wed, Jul 25, 2012 at 10:40 AM, Miriam Pini <miriam3333 at hotmail.it> wrote:

>  Hi Cagatay,
>
> that's perfect thank you. Sorry, one more question: how can I put together
> 2 different Label Maps? Do I have to use a for loop adding every single
> label or does exist a particular function?
>
> Many thanks again,
>
> Miriam
>
> ------------------------------
> Date: Wed, 25 Jul 2012 10:03:50 -0700
> Subject: Re: [Insight-users] Label Map
> From: bilgincc at gmail.com
> To: miriam3333 at hotmail.it
> CC: insight-users at itk.org
>
>
> Hi Miriam,
>
> Try PushLabelObject instead. You probably
> already have an object with the same label
> in your labelmap making the addLabelObject
> fail. You might find the following emails useful
>
> http://www.itk.org/pipermail/insight-users/2012-February/043953.html
>
> Cheers,
> Cagatay
>
> On Wed, Jul 25, 2012 at 9:27 AM, Miriam Pini <miriam3333 at hotmail.it>wrote:
>
>  Hi guys,
>
> Has anybody an idea of a way to add a new Label Object to a Label Map
> obtained as output of the BinaryImageToShapeLabelMapFilter? I tried using
> the function AddLabelObject, but it doesn't work.
>
>
> thank you in advance,
>
> Miriam
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120725/a2492302/attachment.htm>


More information about the Insight-users mailing list