<div dir="ltr">You could use vtkImageAccumulate to get the mean,min and max of the voxels. Sorry I forgot to mention it earlier.<br><br>Jothy<br><br><div class="gmail_quote">On Mon, Sep 19, 2011 at 1:20 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On Mon, Sep 19, 2011 at 6:04 AM, HansAusBremen <<a href="mailto:hansausbremen@gmx.net">hansausbremen@gmx.net</a>> wrote:<br>
> Thanks for help so far.<br>
> But i got another question. As i wrote, i got a .raw-File, with 3 Dimensions<br>
> for a voxel-representation which i read in with vtkImageReader.<br>
><br>
> Is there a method or class to get the value of each voxel? Because i want to<br>
> use this value to calculate the avarage of all voxels. As i know this value<br>
> is only a gray value.<br>
> Can i get value from vtkImageReader or shall i use a mapper first?<br>
<br>
You can loop over the voxels of an ImageData like this:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/IterateImageData" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/IterateImageData</a><br>
<br>
David<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></div><br><br clear="all"><br>-- <br><div dir="ltr">Jothybasu K Selvaraj<br>PhD Student<br>University of Liverpool<br>Liverpool,UK<br></div><br>
</div>