[vtkusers] Access voxel data from vtkImageData

scap3y scapegoat.sarthak at gmail.com
Sun Nov 10 08:29:33 EST 2013


THe reason why I want this is so that I can use vtkMetaImageReader class with
OpenCV.. I have tried many approaches (like using assigning the data pointer
directly to a cv::Mat structure while declaring it) but the data isn't
getting initialized properly (I am guessing there is a coordinate problem)..
Hence, I would like to do a hard-copy from vtkImageData class to cv::Mat..

Cheers,
Sarthak


scap3y wrote
> Hi,
> 
> I want to access voxel values in a vtkimageData* class.. I tried using
> GetScalarPointer() but I wasn't able to get anything.. If anyone could
> help me out, it would be awesome..
> 
> Thanks in advance,
> Sarthak





--
View this message in context: http://vtk.1045678.n5.nabble.com/Access-voxel-data-from-vtkImageData-tp5724372p5724373.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list