Getting original image coordinates from vtkimagereslice output


My goal is to get the coordinates of image after using vtkresliceimage.

My steps:

  1. Used vtkresliceimageviewer to display images in axial, sagittal, coronal orientation.

  2. Using vtkimagereslice class outputs from reslice imageviewer like axes, spacing, center.

  3. Provide this input along with vtkimagedata of dataset and get output.

  4. Here i considered the reslice image viewer output with axial orientation.

  5. I get the output of vtkimagereslice as the slice displayed in axial orientation.

  6. Now i have the image data but i cant get the pixel coordinates of this imagedata with respect to 3d input imagedata.

  7. Is there a way to get the mapping?

Ive tried to understand the axes, center, origin transformations but didnt get anything useful.

Thanks in advance.

I have the same question. Is there any reply for this?