Skip to content

Fix blank slices that appear in some TIFF volumes.

David Gobbi requested to merge dgobbi/vtk:tiff-skip-pages-bug into master

The logic for skipping pages that aren't part of the primary image (e.g. pages that contain reduced-resolution slices) was incorrect. When the reader encountered such pages, it would simply move on to the next slice of the image, without setting the voxel values for the current slice. Now, the "slice" counter and the "page" counter are distinct from one another, since not all pages become image slices.

Merge request reports