[vtkusers] Creating empty VTK image and inserting data in certain indices

Arne Hansen bsd.diverse at gmail.com
Sun Feb 25 12:55:09 EST 2007


Hello.
I have a vector of indexes I, and a vector of corresponding values V, loaded
in vnl-vectors.

I want to create an empty(zeros everywhere) vtk image in my c++ code, and
insert the values from the vector V into
this created image, on the indexes specified in the vector I. I know for
sure that the indexes are in the correct range.

How can this be done in VTK?

Thank you very much and best of regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070225/1b881437/attachment.htm>


More information about the vtkusers mailing list