vtkImageReslice Output Appears to be "Shifted Up and to the Left" by one Pixel

Thank you for helping me, David. Your explanation is very clear, and I appreciate the illustrations. Now instead of:
reslicer->SetOutputOrigin(0,0,0)
I do this:
reslicer->SetOutputOrigin(pixelWidth/2, pixelHeight/2, 0)
and it works.

But! It works as long as I leave the input image origin at (0,0, 0).
When I initially create the input image (vtkImageData), I leave it’s origin as the default (0, 0, 0). Then when I reslice, I set the ouput image’s origin as the center of the first pixel, as described above. And this works. But if I try to set the origin of the input image as the center of it’s first pixel as well, the output is not as expected. Why is this? Is it because vtkImageData origin is in world coordinates and vtkImageReslice outputOrigin is in image coordinates?

  • Michelle