[vtkusers] Reading from memory as opposed to file

dfcsingh at sri.utoronto.ca dfcsingh at sri.utoronto.ca
Fri Mar 21 20:27:02 EDT 2014


Hi vtkusers,

In my experience with vtk thus far I've used vtkImageReader2 to read
various MR file types and display them. For my next project I need to
visualize raw MR data. To this end I would like to do some pre-processing
on the data before passing it to a vtk pipeline. At the end of the
processing in c++ I have a vector of doubles. Is there a way to feed this
vector to vtkImageReader2 (or something similar)?
My google-fu yielded setmemorybuffer however I'm not sure how to pass this
function a vector and more importantly it wasn't showing up as a member of
vtkImageReader2 when I attempted to test it (using vtk 5.6.1)
I'd appreciate any help,
David






More information about the vtkusers mailing list