[vtkusers] How to write vtkImageData with vtkTIFFWriter?

David Doria daviddoria+vtk at gmail.com
Sun Jan 10 18:16:33 EST 2010


On Sun, Jan 10, 2010 at 6:01 PM,  <lynx.abraxas at freenet.de> wrote:
> 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

Lynx,

Check the time stamp of the TIFF example :)

What is your new example going to show?

Thanks,

David



More information about the vtkusers mailing list