[vtkusers] How to write vtkImageData with vtkTIFFWriter?

lynx.abraxas at freenet.de lynx.abraxas at freenet.de
Sun Jan 10 18:01:09 EST 2010


On 10/01/10 17:52:11, David Doria wrote:
> On Sun, Jan 10, 2010 at 5:38 PM, David Gobbi <david.gobbi at gmail.com> wrote:
> > I believe TIFF baseline requires byte data (either greyscale or RGB),
> > so you have to convert whatever data you have to UnsignedChar, e.g.
> > with vtkImageMapToColors or with vtkImageShiftScale.  DItto for PNG,
> > PNM, BMP, and JPEG.
> >
> >   David
> 
> You can also use vtkImageCast:
> 
> http://www.cmake.org/Wiki/VTK/Examples/IO/WriteTIFF
> http://www.cmake.org/Wiki/VTK/Examples/Images/Cast

Thanks, I was missing the cast. Also I missed searching the examples for TIFF. I just searched for "image"...

Thanks a lot for the help. I'll upload my test code to the examples.

Regards,
Lynx



More information about the vtkusers mailing list