[vtkusers] Pixel Data

David Gobbi david.gobbi at gmail.com
Mon Dec 5 14:18:46 EST 2011


Hi Rick,

The pixel type in vtkImageData is described by
1) the ScalarType
2) the NumberOfScalarComponents

If the ScalarType is Short (16 bits) and the NumberOfScalarComponents
is 4, then the image can be RGBA with 16 bits per component.  However
most filters will just treat it as a "generic multi-channel image" and will
not interpret the components as R, G, B, and A.

At the display end, you must use a window/level operation to scale the
data to 8-bit RGBA before it can be rendered to the screen.

 - David



On Mon, Dec 5, 2011 at 9:50 AM, Rick Frank <rickfrank at me.com> wrote:

>
>
> Does vtkImageData support 12 or 16 bits per channel data RGBA?
>
> It seems like it defaults to 8 bits per channel.
>
> It's not templated like ITK image data, and I can't seem to find info on
> this.
>
>
> Thanks
>
> Rick Frank
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111205/5a389ffe/attachment.htm>


More information about the vtkusers mailing list