[vtkusers] Scale Image Values to [0,1]
David Doria
daviddoria at gmail.com
Fri Sep 16 09:47:08 EDT 2011
011/9/16 Dženan Zukić <dzenanz at gmail.com>
> Below is the classic way of getting max. Same for min, and they can both be
> computed in one pass.
>
> typedef itk::MinimumMaximumImageCalculator< InternalImageType >
> CalculatorType;
> CalculatorType::Pointer calculatorI = CalculatorType::New();
> calculatorI->SetImage( someImage);
> calculatorI->ComputeMaximum();
> maxValue = calculatorI->GetMaximum();
>
Dzenan,
This is the VTK list :)
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110916/f7753acf/attachment.htm>
More information about the vtkusers
mailing list