View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014550VTK(No Category)public2014-01-31 08:052014-05-01 03:55
ReporterRichard Whitehead 
Assigned ToDavid Gobbi 
PrioritylowSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version6.0.0 
Target VersionFixed in Version6.2.0 
Summary0014550: vtkTIFFReader reading multi-page tiff returns a volume with one more slice than was read
DescriptionIf you connect a vkvImageViewer2 viewer to a tiff reader and load a multi-page tiff, the viewer's GetSliceMin() returns 0 and GetSliceMax() returns the number of pages read, hence indicating there are one more page than actually present. This causes junk to be displayed and presumably might cause a crash.

To fix, search in vtkTIFFReader.cxx for where this->DataExtent members are set. The odd numbered values should always be set to one less than the count. 5 places to fix.
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0032612)
David Gobbi (developer)
2014-04-30 08:51

I think that this bug was fixed for VTK 6.1, by the following commit:

http://vtk.org/gitweb?p=VTK.git;a=commitdiff;h=1c4d5ee2 [^]

Can you check to see whether the patch at the above URL resolves the issue for you? Or, alternatively, can you confirm that VTK 6.1 resolves the issue?
(0032613)
David Gobbi (developer)
2014-04-30 09:55

Okay, I re-read your original report: it's not just one place, but five places in the code where the extent is set incorrectly.
(0032614)
David Gobbi (developer)
2014-04-30 13:47

Hi Richard, please take a look at the following patch:

http://review.source.kitware.com/#/c/15318/1/IO/Image/vtkTIFFReader.cxx [^]

Does this fix the rest of the off-by-one errors that you saw?
(0032615)
David Gobbi (developer)
2014-05-01 03:55

Fixed by commits 1c4d5ee2 and 0fe573e8

 Issue History
Date Modified Username Field Change
2014-01-31 08:05 Richard Whitehead New Issue
2014-04-30 08:51 David Gobbi Note Added: 0032612
2014-04-30 09:55 David Gobbi Note Added: 0032613
2014-04-30 13:47 David Gobbi Note Added: 0032614
2014-05-01 03:55 David Gobbi Note Added: 0032615
2014-05-01 03:55 David Gobbi Status backlog => closed
2014-05-01 03:55 David Gobbi Assigned To => David Gobbi
2014-05-01 03:55 David Gobbi Resolution open => fixed
2014-05-01 03:55 David Gobbi Fixed in Version => 6.2.0


Copyright © 2000 - 2018 MantisBT Team