[vtkusers] How to create vtkImageData from float array

Simon Chatelain simon.chatelain at epfl.ch
Wed Oct 30 06:42:16 EST 2002


I use VTK 4 with Java.  I have in a java object some datas int and 
double array corresponding to a vtkImageData
(spacing, extent, scalar type, etc) and a big double array containig the 
real datas.

My question is : how to reconstruct an object vtkImageData with these 
java arrays ?
There is methods setspacing, setExtent, etc.. but no method 
setScalarValue, or something similar.


Simon Chatelain

More information about the vtkusers mailing list