I want to read a .mhd file and send the data and its parameters (origin and orientation) using ROS to another node, but the compiler complains that there is no GetDirectionMatrix in vtkImageData class. It should be there based on the documents: vtkImageData, but it is not defined in the header. Is there any other function available to get the transform from image space to real world from vtkImageData?
I am using version 8.2.0 and the error is:
error: ‘class vtkImageData’ has no member named ‘GetDirectionMatrix’