Thanks a lot Chandra.<br>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.<br>
Aytekin<br><br><div class="gmail_quote">On Thu, Mar 5, 2009 at 4:41 PM, shekharc <span dir="ltr">&lt;<a href="mailto:Shekhar.Chandra@sci.monash.edu.au">Shekhar.Chandra@sci.monash.edu.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Aytekin,<br>
<br>
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).<br>
<br>
HTH<br>
Cheers<br>
Shakes<br>
<br>
Aytekin Vargun wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi,<br>
I want to construct and display a histogram using VTK/C++ from some numeric data in an XML file.<br>
<br>
<br>
I see that there is a test file called:<br></div>
ImageAccumulate.cxx &lt;<a href="http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Imaging/Testing/Cxx/ImageAccumulate.cxx?root=VTK&amp;content-type=text/plain" target="_blank">http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Imaging/Testing/Cxx/ImageAccumulate.cxx?root=VTK&amp;content-type=text/plain</a>&gt;<br>

<br>
but this program does not display any histograms. From what I read for vtkImageAccumulate &lt;<a href="http://www.vtk.org/doc/nightly/html/classvtkImageAccumulate.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImageAccumulate.html</a>&gt;<div class="im">
<br>
class it should be possible to do this.<br>
<br>
Can somebody help me to make necessary changes to make it more usable? Or suggest any other way of getting histograms in VTK.<br>
<br>
I appreciate your help.<br>
Aytekin<br>
<br>
-- <br>
My web page: <a href="http://www.cs.rpi.edu/%7Evargua" target="_blank">http://www.cs.rpi.edu/~vargua</a><br>
<br>
<br></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote>
</blockquote></div><br><br clear="all"><br>-- <br>My web page: <a href="http://www.cs.rpi.edu/~vargua">http://www.cs.rpi.edu/~vargua</a><br>