[vtkusers] Scale Image Values to [0,1]

Jothy jothybasu at gmail.com
Tue Sep 20 05:01:26 EDT 2011


You could use vtkImageAccumulate to get the mean,min and max of the voxels.
Sorry I forgot to mention it earlier.

Jothy

On Mon, Sep 19, 2011 at 1:20 PM, David Doria <daviddoria at gmail.com> wrote:

> On Mon, Sep 19, 2011 at 6:04 AM, HansAusBremen <hansausbremen at gmx.net>
> wrote:
> > Thanks for help so far.
> > But i got another question. As i wrote, i got a .raw-File, with 3
> Dimensions
> > for a voxel-representation which i read in with vtkImageReader.
> >
> > Is there a method or class to get the value of each voxel? Because i want
> to
> > use this value to calculate the avarage of all voxels. As i know this
> value
> > is only a gray value.
> > Can i get value from vtkImageReader or shall i use a mapper first?
>
> You can loop over the voxels of an ImageData like this:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/IterateImageData
>
> David
> _______________________________________________
> 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
>



-- 
Jothybasu K Selvaraj
PhD Student
University of Liverpool
Liverpool,UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110920/7cab2967/attachment.htm>


More information about the vtkusers mailing list