[vtkusers] Bug in vtkTIFFReader reading multi-paged tiff file
Maarten Beek
beekmaarten at yahoo.com
Fri Nov 8 16:35:56 EST 2013
Hi David,
Using VTK 6.0.0, sorry ;-)
Should I send you the tiff file so you can play with it?
Now I seem to have your attention:
- How do I display a multi-page tif? I don't seem to see the different images using a vtkImageSlice.
- What would be good values for the window and level parameters? I am using window = range[1]-range[0] and level = 0.5*(range[0]+range[1]) which works ok for this multi-page tif, but gets me nowhere when I try to display a drr.
Thanks - Maarten
On Friday, November 8, 2013 4:23:23 PM, David Gobbi <david.gobbi at gmail.com> wrote:
Hi Maarten,
Which version of VTK are you using? I believe that this bug has been
fixed in the master branch by a commits in the following topic merge:
http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=7e3d5270
It was not fixed in time for VTK 5.10, however.
David
On Fri, Nov 8, 2013 at 2:12 PM, Maarten Beek <beekmaarten at yahoo.com> wrote:
> Hi all,
>
> vtkTIFFReader crashed for me while loading a multi-paged tiff file.
>
> The crash occured in vtkTIFFReader::ReadGenericImage(), because
> this->OutputExtent was not set (still NULL).
> The scalar type for the image I was loading was unsigned short, so it
> happened at line 1368.
>
> I changed void vtkTIFFReader::ReadVolume(void* buffer) into void
> vtkTIFFReader::ReadVolume(void* buffer, int outExt[6]) and added the line
> this->outputExtent = outExt.
>
> This solved my crash.
> I am not sure I am on to something, but thought to let you know.
>
> Maarten
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20131108/c97962b2/attachment.htm>
More information about the vtkusers
mailing list