[Insight-users] Re: Is there any filter which can give out the center of labels on the labeled image

Alireza Salamy alireza_sal2000 at yahoo.com
Tue Apr 24 12:33:35 EDT 2007


Hi Bill,
  I  simply add 
  const unsigned long index1= region.GetIndex(labelValue );
  to the code itkLabelStatisticsImageFilter.cxx but it returns index1=0 at the output. 
  would you please let me know what I am doing wrong?
  

Bill Lorensen <bill.lorensen at gmail.com> wrote:
  Alireza,

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.

http://public.kitware.com/Insight/Doxygen/html/classitk_1_1LabelStatisticsImageFilter.html

Bill

  On 4/24/07, Alireza Salamy < alireza_sal2000 at yahoo.com> wrote:    Hi Gaetan,
  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 your contribution available as a source code in ITK?
  Thanks alot
  Alireza 

Gaëtan Lehmann < gaetan.lehmann at jouy.inra.fr> wrote:
  
Hi Alireza,

Please keep the discussions on the list so they can be archived ! 


Le 23 avr. 07 à 12:14, Alireza Salamy a écrit :

> Hi Gaetan ,
> would you please tell me if there is any filter or source code 
> which can give out the center of the labels on the labeled image? 
> for example in Matlab we have:
> STATS = REGIONPROPS(L,PROPERTIES) measures a set of properties for 
> each
> labeled region in the label matrix L.
> the code above included centroid of the labels.
>

Again you can use my contribution to ITK http://voxel.jouy.inra.fr/ 
darcsweb/darcsweb.cgi?r=binaryAttributeMorphology;a=summary to get 
this info, or an older one I will NOT submit to the insight journal, 
but which may be a little easiest to use http://voxel.jouy.inra.fr/ 
darcsweb/darcsweb.cgi?r=labelShape;a=summary .
I don't know any other way to get those infos.

Gaëtan

--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction 
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr




  
  
---------------------------------
  Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.   

_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users





       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070424/d991196b/attachment.htm


More information about the Insight-users mailing list