View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003674VTK(No Category)public2006-08-30 11:162011-01-13 17:00
ReporterCarsten.Bellon 
Assigned ToMathieu Malaterre 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0003674: writing grayscale TIFFs
Descriptiongrayscale TIFFs (just one scalar component) written by vtkTIFFWriter get the photometric tag 'RGB' if data type differs from FLOAT. This prevents compatibility with certain programs (i.g. Windows preview, PaintShopPro).

My fix in vtkTIFFWriter.cxx:
from:
 uint16 photometric = (stype == VTK_FLOAT ? PHOTOMETRIC_MINISBLACK : PHOTOMETRIC_RGB);
to:
 uint16 photometric = (scomponents == 1 ? PHOTOMETRIC_MINISBLACK : PHOTOMETRIC_RGB);
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0004938)
Mathieu Malaterre (developer)
2006-09-16 11:26

Fixed on CVS and VTK5 branch. Thanks for patch !

$ cvs ci -m"BUG: Fix Bug 0003674 - writing grayscale TIFFs. Backport to VTK5" IO/vtkTIFFWriter.cxx
/cvsroot/VTK/VTK/IO/vtkTIFFWriter.cxx,v <-- vtkTIFFWriter.cxx
new revision: 1.39.6.1; previous revision: 1.39

$ cvs ci -m"BUG: Fix Bug 0003674 - writing grayscale TIFFs" IO/vtkTIFFWriter.cxx
/cvsroot/VTK/VTK/IO/vtkTIFFWriter.cxx,v <-- vtkTIFFWriter.cxx
new revision: 1.41; previous revision: 1.40

 Issue History
Date Modified Username Field Change
2011-01-13 17:00 Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00 Source_changeset_attached => VTK master 020ef709
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team