[vtkusers] Extracting one component from a color image

Pierre Barbier de Reuille pbarbier at ucalgary.ca
Mon Dec 11 18:14:48 EST 2006


Hello,

I have 3D images saved in PNG file format. The images are in shades of
grey only. The PNG reader outputs a vtkImageData with 3 components. That
makes perfect sense to me, and I don't see how it could be otherwise.
However, my data are really linear and I just don't see how I can
extract one of the channels (for now I don't care which as they are all
the same).

Thanks,

Pierre




More information about the vtkusers mailing list