<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Sounds great!!&nbsp; <br><br>Thank you so much for your help,<br><br>Miriam<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Wed, 25 Jul 2012 11:00:37 -0700<br>Subject: Re: [Insight-users] Label Map<br>From: bilgincc@gmail.com<br>To: miriam3333@hotmail.it<br>CC: insight-users@itk.org<br><br>You can use the MergeLabelMapFilter.&nbsp;<div>The following example should illustrate&nbsp;</div><div>the usage&nbsp;</div><div><a href="http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/MergeLabelMapFilter" target="_blank">http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/MergeLabelMapFilter</a><br>
<div><br></div><div>You can also create a new labelmap and&nbsp;</div><div>add your objects using the PushLabelObject</div><div>method &nbsp;as well. The choice is yours :)</div><div><div><div><br></div><div>Cagatay&nbsp;</div><div><br>
</div><div><br><br><div class="ecxgmail_quote">On Wed, Jul 25, 2012 at 10:40 AM, Miriam Pini <span dir="ltr">&lt;<a href="mailto:miriam3333@hotmail.it">miriam3333@hotmail.it</a>&gt;</span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">



<div><div dir="ltr">
Hi Cagatay,<br><br>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?<br><br>
Many thanks again,<br><br>Miriam<br><div class="ecxhm ecxHOEnZb"><br></div><div><div class="ecxhm ecxHOEnZb"><div></div><hr>Date: Wed, 25 Jul 2012 10:03:50 -0700<br>Subject: Re: [Insight-users] Label Map<br>From: <a href="mailto:bilgincc@gmail.com">bilgincc@gmail.com</a><br>
To: <a href="mailto:miriam3333@hotmail.it">miriam3333@hotmail.it</a><br>CC: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a></div><div><div class="h5"><br><br>Hi Miriam,&nbsp;<div>
<br><div>Try PushLabelObject instead. You probably&nbsp;</div><div>already have an object with the same label</div><div>in your labelmap making the addLabelObject</div><div>fail.&nbsp;You might find the following&nbsp;emails useful&nbsp;</div>

<div><br></div><div><a href="http://www.itk.org/pipermail/insight-users/2012-February/043953.html" target="_blank">http://www.itk.org/pipermail/insight-users/2012-February/043953.html</a></div><div><br></div><div>Cheers,&nbsp;</div>
<div>Cagatay<br>
<br><div>On Wed, Jul 25, 2012 at 9:27 AM, Miriam Pini <span dir="ltr">&lt;<a href="mailto:miriam3333@hotmail.it">miriam3333@hotmail.it</a>&gt;</span> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">




<div><div dir="ltr">
Hi guys,<br><br>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.<br><br>

<br>thank you in advance,<br><br>Miriam <br>                                               </div></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div></div></div></div></div>                                               </div></div>
</blockquote></div><br></div></div></div></div></div>                                               </div></body>
</html>