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

Jothy jothybasu at gmail.com
Fri Sep 16 04:48:52 EDT 2011


You could also get the min & max scalar values by
vtkImageData->GetOutput()->GetScalarRange()[0] and GetScalarRange()[1].

Jothy

On Thu, Sep 15, 2011 at 10:54 PM, HansAusBremen <hansausbremen at gmx.net>wrote:

> Hi David,
>
> thanks for the fast response.
>
> I would need the maximum and minimum values of my image to compute the
> scale.
> How do i get those?
>
> Before scaling i would have to put my minimum value to 0. Substract the
> minimum from all values. How do you do that in vtk?
>
> Hans
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Scale-Image-Values-to-0-1-tp4808465p4808514.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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/20110916/4d712180/attachment.htm>


More information about the vtkusers mailing list