[vtkusers] Access imagedata

cc cc cctsinghua at gmail.com
Fri Feb 10 13:03:56 EST 2012


Hello,

I want to get value of each point. The data is from vtkVolume16Reader, the
typical header frequently seen in vtk, used in vtkMarchingCubes. Below is
vtkVolume16Reader from sample code.
    vtkVolume16Reader *v16 = vtkVolume16Reader::New();
    v16->SetDataDimensions(64,64);
    v16->GetOutput()->SetOrigin(0.0,0.0,0.0);
    v16->SetDataByteOrderToLittleEndian();
    v16->SetFilePrefix("/.../VTK/VTKData/Data/headsq/quarter");
    v16->SetImageRange(1,93);
    v16->SetDataSpacing(3.2,3.2,1.5);
    v16->Update();
But how can I get value on each vertex? Please help. Best wishes.

Cheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120211/e93df02e/attachment.htm>


More information about the vtkusers mailing list