[vtkusers] Writing TIFF images

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Aug 30 08:08:43 EDT 2006


Carsten,

	Thanks a lot for investigating the issue. Could you please report that 
in our bug tracker:

	http://vtk.org/Bug

Thanks
Mathieu

Dr. Carsten Bellon wrote:
> I found the problem, I think. In vtkTIFFWriter.cxx of VTK 5.0.1:
> TIFFTAG_PHOTOMETRIC is set as subject to the data scalar type. Why?
> 
> My Fix
> from:
>  uint16 photometric = (stype == VTK_FLOAT ? PHOTOMETRIC_MINISBLACK : 
> PHOTOMETRIC_RGB);
> to:
>  uint16 photometric = (scomponents == 1 ? PHOTOMETRIC_MINISBLACK : 
> PHOTOMETRIC_RGB);
> 
> 
> 
> Dr. Carsten Bellon wrote:
> 
>> Hello,
>> I'm using vtkTIFFWriter for a long time to store my calculation 
>> results (8bit grayscale). But by migrating to Vtk 5.0.x I lost the 
>> Windows compatibility. That means there is no preview for VTK5-TIFFs 
>> in the Windows Explorer and MS Office, PaintShopPro, .., are not able 
>> to read them.
>>
>> I recognized some differences in Vtk4 and Vtk5 TIFFs: header is at the 
>> end now, multiple strips now. But what are the key features in wider 
>> compatibility?
>>
>> How to get compatible TIFFs with Vtk5?
>> Thanks for any hints.
>>  Carsten
>>
> 
> _______________________________________________
> This is the private VTK discussion list. Please keep messages on-topic. 
> Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 




More information about the vtkusers mailing list