Volume rendering with vtkVolumeRayCastMapper but need help extracting the rendered grayscale image.

Hello VTK,

I have been rendering volumes using vtkVolumeRayCastMapper with a modified vtkVolumeRayCastMIPFunction as grayscale images and I am interested in extracting the pixel values of these and writing the images to file. In the following thread,

http://vtk.1045678.n5.nabble.com/How-to-get-the-pixels-of-a-volume-rendered-image-td5742531.html

this task was performed (seemingly) easily using methods of the vtkGPUVolumeRayCastMapper, e.g. GetColorImage() or GetDepthImage(). As no similar methods exist for the vtkVolumeRayCastMapper class, I am not sure of the best way to proceed. It’s probably worth noting that I am currently working with vtk5.6.

Helpful suggestions would be greatly appreciated.

Best regards,
Spencer