[vtkusers] Cannot open with vtkTIFFReader 32 bit TIFFs.

D_E D_E at Ukr.net
Wed Aug 27 14:00:31 EDT 2008


Dear Vtk Users,

I'm trying to load 32 bit TIFF (type float or real) with vtkTIFFReader. It  show me right data dimensions and data type, but I cannot get any data from this reader. When I'm opening the same file with vtkImageReader2  with corresponding skipping of header - everything is OK. When I'm using the same vtkTIFFReader pipeline for 8 bit data - everithing is OK too. The 32 bit TIFFs are generated with ImageJ program or vtkTIFFWriter. I'm using VTK 5.0.3 under Windows XP with Borland Turbo C++.

Here is an example of pipeline:

vtkTIFFReader *inpImag2 = vtkTIFFReader::New();
  inpImag2->SetFileName("pic.tif");
  inpImag2->Update();
  inpImag2->UpdateWholeExtent();
vtkImageData *Im->DeepCopy(inpImag2->GetOutput());

The data in the image is empty.
As I said if I use the same pipeline with vtkImageReader2 adding information about DataExtent and HeaderSize - it is working!
Unfortunately header can be placed anywhere in TIFF, so I really need to use proper TIFF reader, but it is not working. :(

Can somebody advise me how to make it work?
Thank you!


Best regards,
D_E.




More information about the vtkusers mailing list