[vtkusers] Histogram
Aytekin Vargun
varguna at gmail.com
Thu Mar 5 16:50:33 EST 2009
Thanks a lot Chandra.
While looking at other classes in VTK, I also saw that vtkBarChartActor can
be used for this purpose. It might be even easier to construct histograms
with this way. We only need to compute frequencies with a little bit of C++
programming and use vtkBarChart to construct and display the histogram.
Aytekin
On Thu, Mar 5, 2009 at 4:41 PM, shekharc
<Shekhar.Chandra at sci.monash.edu.au>wrote:
> Hi Aytekin,
>
> That is the correct example. vtkImageAccumulate will calculate the
> histogram and use vtkXYPlotActor to display the actual histogram once
> calculated (pass accumulate class into it).
>
> HTH
> Cheers
> Shakes
>
> Aytekin Vargun wrote:
>
>> Hi,
>> I want to construct and display a histogram using VTK/C++ from some
>> numeric data in an XML file.
>>
>>
>> I see that there is a test file called:
>> ImageAccumulate.cxx <
>> http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Imaging/Testing/Cxx/ImageAccumulate.cxx?root=VTK&content-type=text/plain
>> >
>>
>> but this program does not display any histograms. From what I read for
>> vtkImageAccumulate <
>> http://www.vtk.org/doc/nightly/html/classvtkImageAccumulate.html>
>> class it should be possible to do this.
>>
>> Can somebody help me to make necessary changes to make it more usable? Or
>> suggest any other way of getting histograms in VTK.
>>
>> I appreciate your help.
>> Aytekin
>>
>> --
>> My web page: http://www.cs.rpi.edu/~vargua<http://www.cs.rpi.edu/%7Evargua>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
--
My web page: http://www.cs.rpi.edu/~vargua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090305/ab88aa9b/attachment.htm>
More information about the vtkusers
mailing list