Skip to content
Snippets Groups Projects
Commit 0fe573e8 authored by David Gobbi's avatar David Gobbi
Browse files

Fix the extent for tiled tiff files.

There was an off-by-one error in the setting of the extent.

Change-Id: I1818184845a11bc7cbf560e4bfb270a943c8a8ac
parent f183298c
No related branches found
No related tags found
No related merge requests found
......@@ -518,9 +518,12 @@ void vtkTIFFReader::ExecuteInformation()
// If the tiff is tiled
if (this->InternalImage->NumberOfTiles > 1)
{
this->DataExtent[1] = this->InternalImage->TileWidth;
this->DataExtent[3] = this->InternalImage->TileHeight;
this->DataExtent[5] = this->InternalImage->NumberOfTiles;
this->DataExtent[0] = 0;
this->DataExtent[1] = this->InternalImage->TileWidth - 1;
this->DataExtent[2] = 0;
this->DataExtent[3] = this->InternalImage->TileHeight - 1;
this->DataExtent[4] = 0;
this->DataExtent[5] = this->InternalImage->NumberOfTiles - 1;
if (!SpacingSpecifiedFlag)
{
this->DataSpacing[2] = 1.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment