[vtkusers] DICOM Histogram
Bill Lorensen
bill.lorensen at gmail.com
Wed Dec 23 10:24:38 EST 2009
In this example,
http://www.vtk.org/Wiki/VTK/Examples/Medical/Cxx/GenerateModelsFromLabels
you can see how to access the frequencies.
double frequency =
histogram->GetOutput()->GetPointData()->GetScalars()->GetTuple1(i);
Bill
On Wed, Dec 23, 2009 at 9:27 AM, Christopher Denter
<dennda at the-space-station.com> wrote:
> Hello!
>
> David, absolutely, I can write a wiki page after I found out how it works.
>
> Bill, I looked at and played with vtkImageAccumulate. I understand it is an ImageToImageFilter, so what it produces is an image again.
> What I need is not an image, but the values of the bins of the histogram. How would I process the output of that filter in order to get those values (e.g. in an array or something).
> I also looked at the cells of the accu, which were lines consisting of points, but I'm not sure if that's what I need.
>
> See http://paste.pocoo.org/show/159138/
>
> Thanks,
> Christopher
More information about the vtkusers
mailing list