Application Error on Render after changing vtkImageActor DisplayExtent
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I was displaying a 2048x2048x1 image in a vtkImageActor. If I changed Xmin in the DisplayExtent, I would get a strange wrapping in the image display.
For Instance if I set the vtkImageActor DisplayExtent to 600 2047 0 2047 0 0, columns 848 through 2047 and columns 0 through 599 are displayed, not columns 600 through 2047.
If Xmin is set to a value greater than 1016, I get an Application Error from Windows XP, complaining that "The instruction ... referenced memory ... [that] could not be 'read'".
This problem does not occur for DisplayExtent Ymin > 0 or Ymax < 2047.
I also found out that if the vtkLookupTable is Modified before vtkRenderWindow Render is performed, the image wrapping and 'Application Error' problems do not occur. This is how we are currently working around the problem.