[Insight-developers] PixelTypes in BinaryImageToLabelMapFilter

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Jul 8 12:26:40 EDT 2009


Le 8 juil. 09 à 17:42, Luis Ibanez a écrit :

>
> Hi Gaetan,
>
> We are preparing to move into Code/Review the class
>
>    itkBinaryImageToLabelMapFilter
>
> from your paper
>
>     http://hdl.handle.net/1926/584
>     http://www.insight-journal.org/browse/publication/176
>
> and we are looking at the declarations of
>
>      itkSetMacro(BackgroundValue, OutputPixelType);   versus
>      itkSetMacro(ForegroundValue, InputPixelType);
>
> at first sight it we were expecting both values to refer
> to the same pixel type.
>
> Looking at the code, the background value is used to  set
> the background value of the output LabelMap, and to
> make comparisons against an unsigned long int.
>
> The foreground value, on the other hand, is used for comparisons
> against input image pixels.
>
> Can we suggest to rename this variables as:
>
>          OutputBackgroundValue  and
>          InputForegroundValue
>
>
> Please let us know if you see a drawback to this change,
>


Hi Luis,

That changes makes the meaning of the attribute much clear.

The only drawback I see is the larger name. Do you think that "Value"  
can be removed without changing the meaning, in order to make it  
shorter?

   OutputBackground
   InputForeground

Thank you for working on that contribution,

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/mailman/private/insight-developers/attachments/20090708/f51dcf2b/attachment.pgp>


More information about the Insight-developers mailing list