[Insight-users] Fwd: Bytes per pixel

Luis Ibanez luis.ibanez at kitware.com
Fri Dec 18 20:33:36 EST 2009


Hi Fernando,

In ITK this will be defined at compilation time.

You could get this value simply as:

int bytesPerPixel = sizeof( ImageType::PixelType );


   Regards,


          Luis


----------------------------------------------------------
On Wed, Dec 16, 2009 at 3:57 AM, Fernando López Mir <ferlomi at hotmail.com> wrote:
>
> What is the parameter in a itk image to know the number of bytes in a pixel?
>
> Thanks ...
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>


More information about the Insight-users mailing list