[Insight-users] Boolean segment combination

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Thu Jul 19 16:14:49 EDT 2007


Le 19 juil. 07 à 21:55, Michael Bowerman a écrit :

> Gaëtan,
>
> I found those.  But, they don't seem to be just right.
>
> I'm looking to create new volumes from existing volumes.  So, if I  
> use the image filter boolean classes, I would have to use each  
> integer pixel bit to mark each segment ( e.g. 0x00000001,  
> 0x00000010, etc.).  After that, I would need to loop through each  
> pixel to detect which pixels are in and which are out.
>
> Basically, I'd like to represent the data in a convenient way to  
> create new volumes from existing volumes.
>
> Thanks!

ok, I think I get it

you can easily create your own filter to perform that transform by  
subclassing the UnaryFunctorImageFilter. You can look at  
NotImageFilter for an example.

That said, it seem a little uncommon to store several segmentations  
that way. Perhaps should you split them in several images?

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/20070719/999478a6/PGP.pgp


More information about the Insight-users mailing list