writing grayscale TIFFs
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
grayscale 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);