[vtkusers] about vtkImageMask

Henry Proudhon henry.proudhon at ensmp.fr
Mon Jan 14 07:05:43 EST 2008


On Mon, 2008-01-14 at 17:14 +0800, tuo zhang wrote:
> Hi,
>  
> Could anyone tell me why the mask input in the
> vtkImageMask is type "unsigned char"?
> I think if it could be bool/bit, it could save a lot
> of memory, since we only need values 0 and 1 in a
> mask?
>  
> Thank you!

I'm not a specialist but I would say that booleans are coded on 8 bits
(even if they can take only two values). I know no processor capable of
handling 1 bit values. So using boolean would _not_ save any memory.

my 2 cents...
Henry




More information about the vtkusers mailing list