[Insight-users] Re: itkLabelCollectionImage toAttributeImageFilter

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Thu Sep 13 15:53:27 EDT 2007


Le 13 sept. 07 à 16:18, Juan Paredes a écrit :

> Hi Gaëtan,
>
> I want to produce an ITK image with the value of the Region  
> Elongation of the itk::LabelCollectionImage.
>
> In your contribution to the Insight Journal "Labeled object  
> representation and manipulation with ITK", you advise to do it by  
> using the  itk::LabelCollectionImageToAttributeImageFilter.
>
> The type of this filter is instancied using three parameters:  
> TinputImage, ToutputImage and TAttributeAccesor. I don´t know how  
> to define the last type. Which of the contributed classes provide  
> the method to define it? . Could you provide me an explanation  of  
> how to do it or one reference to some test code?
>

Hi Juan,

The last type is used to return the attribute of the objects, compute  
a new value from the attribute of an object, or anything else you  
want :-)
By default, itk::Functor::AttributeLabelObjectAccessor<  
LabelObjectType > is used. This class is defined in  
itkAttributeLabelObject.h.

A similar functor is defined for all the attribute of the  
itk::ShapeLabelObject and itk::StatisticsLabelObject in the  
corresponding .h files.

In your case, you should use  
itk::Functor::RegionElongationLabelObjectAccessor< LabelObjectType >

Note that there is now BinaryElongation attribute, which is not  
sensible to the rotation, contrary to the RegionElongation one.

OTH,

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



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=
Url : http://public.kitware.com/pipermail/insight-users/attachments/20070913/0e33d501/PGP.pgp


More information about the Insight-users mailing list