[Insight-users] How to change the label numbers resulting from the use of RelabelComponentImageFilter ?
Gaëtan Lehmann
gaetan.lehmann at jouy.inra.fr
Wed Apr 27 10:01:08 EDT 2011
Le 27 avr. 11 à 15:57, anna han wan a écrit :
> Hi all,
> I want to change the label numbers resulting from applying the
> RelabelComponentImageFilter on my binary volume.
> Rather than having consecutive labels (1,2,3...) I would like to
> give them other values (10, 30, 50,...) that I can use later in my
> application.
>
> I've cheked the list of itk classes but i am bit confused which one
> I can use for this task? Deos any one can help ?
>
> Thank you for your help
> Anna
>
Hi Anna,
You can use ShiftScaleImageFilter, MultiplyByConstantImageFilter or
even ChangeLabelImageFilter to change the values the way you want.
Regards,
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 http://www.itk.org
http://www.mandriva.org http://www.bepo.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110427/dedf49c4/attachment.pgp>
More information about the Insight-users
mailing list