[vtkusers] vtkImageAccumulate
Ziad Rahhal
ziz79 at yahoo.com
Fri Oct 7 08:01:53 EDT 2005
Hi all,
I am working with a CT dataset consisting of 93
slices. Probably you all have this dataset as it is
included in vtk Examples, it is simply the "headsq".
I need to make a histogram of the "skin" and "bone"
pixels to show how many pixels in the dataset
represent the skin and how many represent the bone.
I didn't know how to use "vtkImageAccumulate" to
accomplish this.
The reader is something like the following:
vtkVolume16Reader *v16 = vtkVolume16Reader::New();
v16->SetDataDimensions (64,64);
v16->SetImageRange (1,93);
v16->SetDataByteOrderToLittleEndian();
v16->SetFilePrefix (argv[1]);
v16->SetDataSpacing (3.2, 3.2, 1.5);
It would be very appreciated if someone can help me or
give me some hints on how to use "vtkImageAccumulate"
with this dataset.
Thank you
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
More information about the vtkusers
mailing list