<div>Hi Bill,</div>  <div>I&nbsp; simply add <FONT size=2></div><FONT color=#0000ff size=2>  <div><STRONG>const</STRONG></FONT><STRONG><FONT size=2> </FONT><FONT color=#0000ff size=2>unsigned</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> index1= region.GetIndex(labelValue );</FONT></STRONG></div>  <div><FONT size=2>to the code itkLabelStatisticsImageFilter.cxx but it returns<STRONG> index1=0</STRONG>&nbsp;at the output.&nbsp;</FONT></div>  <div><FONT size=2>would you please let me know what I am doing wrong?</div></FONT>  <div></FONT><BR><BR><B><I>Bill Lorensen &lt;bill.lorensen@gmail.com&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Alireza,<BR><BR>itkLabelStatisticsImageFilter computes a number of quantities for labels in an image. One of them is the region covered by the label. The center is easiliy calculated from this.<BR><BR><A
 href="http://public.kitware.com/Insight/Doxygen/html/classitk_1_1LabelStatisticsImageFilter.html">http://public.kitware.com/Insight/Doxygen/html/classitk_1_1LabelStatisticsImageFilter.html</A><BR><BR>Bill<BR><BR>  <DIV><SPAN class=gmail_quote>On 4/24/07, <B class=gmail_sendername>Alireza Salamy</B> &lt;<A href="mailto:alireza_sal2000@yahoo.com"> alireza_sal2000@yahoo.com</A>&gt; wrote:</SPAN>  <BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">  <DIV>Hi Gaetan,</DIV>  <DIV>I got the webpage that you send me for getting the centroid of Labels in Labeled image,but the language of that is in French.would you please let me know how can I have access to your contribution?Does&nbsp;your contribution&nbsp;available as a source code in ITK?</DIV>  <DIV>Thanks alot</DIV>  <DIV>Alireza&nbsp;<BR><BR><B><I>Gaëtan Lehmann &lt;<A onclick="return top.js.OpenExtLink(window,event,this)"
 href="mailto:gaetan.lehmann@jouy.inra.fr" target=_blank> gaetan.lehmann@jouy.inra.fr</A>&gt;</I></B> wrote:</DIV>  <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>Hi Alireza,<BR><BR>Please keep the discussions on the list so they can be archived ! <BR><BR><BR>Le 23 avr. 07 à 12:14, Alireza Salamy a écrit :<BR><BR>&gt; Hi Gaetan ,<BR>&gt; would you please tell me if there is any filter or source code <BR>&gt; which can give out the center of the labels on the labeled image? <BR>&gt; for example in Matlab we have:<BR>&gt; STATS = REGIONPROPS(L,PROPERTIES) measures a set of properties for <BR>&gt; each<BR>&gt; labeled region in the label matrix L.<BR>&gt; the code above included centroid of the labels.<BR>&gt;<BR><BR>Again you can use my contribution to ITK <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://voxel.jouy.inra.fr/" target=_blank>http://voxel.jouy.inra.fr/</A>
 <BR>darcsweb/darcsweb.cgi?r=binaryAttributeMorphology;a=summary to get <BR>this info, or an older one I will NOT submit to the insight journal, <BR>but which may be a little easiest to use <A onclick="return top.js.OpenExtLink(window,event,this)" href="http://voxel.jouy.inra.fr/" target=_blank>http://voxel.jouy.inra.fr/</A> <BR>darcsweb/darcsweb.cgi?r=labelShape;a=summary .<BR>I don't know any other way to get those infos.<BR><BR>Gaëtan<BR><SPAN class=sg><BR>--<BR>Gaëtan Lehmann<BR>Biologie du Développement et de la Reproduction <BR>INRA de Jouy-en-Josas (France)<BR>tel: +33 1 34 65 29 66 fax: 01 34 65 29 09<BR><A onclick="return top.js.OpenExtLink(window,event,this)" href="http://voxel.jouy.inra.fr/" target=_blank>http://voxel.jouy.inra.fr</A><BR></SPAN><SPAN class=ad><BR><BR><BR></SPAN></BLOCKQUOTE><SPAN class=ad><BR>  <div></div>  <HR SIZE=1>  Ahhh...imagining that irresistible "new car" smell?<BR>Check out <A onclick="return top.js.OpenExtLink(window,event,this)"
 href="http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-" target=_blank>new cars at Yahoo! Autos.</A>   <div></div></SPAN><BR>_______________________________________________<BR>Insight-users mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Insight-users@itk.org">Insight-users@itk.org</A><BR><A onclick="return top.js.OpenExtLink(window,event,this)" 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></BLOCKQUOTE><BR><p>&#32;

      <hr size=1>Ahhh...imagining that irresistible "new car" smell?<br> Check out
<a href="http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc=X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-">new cars at Yahoo! Autos.</a>