[vtkusers] Color Indexed TIFFs

Dennis Jen dsjen at cs.unc.edu
Mon Dec 1 16:05:11 EST 2003


Hi, I'm having trouble reading in color indexed tiff images.  Does anyone
have a solution to this problem?  Using vtkTIFFReader and vtkImageReader,
I'm able to generate an image.  However, the image is shifted and the bottom
of it is completely scrambled.  Below is some java code that I'm using:

	vtkTIFFReader tiffReader = new vtkTIFFReader();
	tiffReader.SetFileName(fileName);
	tiffReader.Update();
		
	vtkImageReader imageReader = new vtkImageReader();
	imageReader.SetDataScalarTypeToUnsignedChar();
	imageReader.SetDataExtent(reader.GetDataExtent());
	imageReader.SetFileName(fileName);

Any ideas are welcome.

Thanks,
Dennis




More information about the vtkusers mailing list