[Insight-users] Scalar range of pixels
Bill Lorensen
bill.lorensen at gmail.com
Wed Nov 26 14:39:54 EST 2008
To find the global min/max in an image you can run the filter:
itkMinimumMaximumImageFilter
Or if you don't need it in a pipeline, you can run itkMinimumMaximumCalculator.
The NumerciTraits report the largest and smallest possible values for
a given type, not the actual min and max in the image.
2008/11/26 Neuner Markus <neuner.markus at gmx.net>:
> Hi,
>
> You can use NumericTraits do obtain the pixel range.
> itk::NumericTraits<unsigned char>::PrintType>(itk::NumericTraits<T>::min();
> itk::NumericTraits<unsigned char>::PrintType>(itk::NumericTraits<T>::max();
> or look directly at vnl_numeric_limits to prove even more.
>
> Greets
>
>
> Eduardo Camargo wrote:
>>
>> Hi,
>>
>> In VTK, vtkImageData class, there is a GetScalarRange method. Is there a
>> similar method in ITK? I need to get the range of values. Sorry for my
>> english.
>>
>>
>> --
>> Best regards,
>>
>> Eduardo Camargo
>> Analista de Sistemas
>> HeMoLab - http://www.lncc.br/prjhemo/equipe/desenv/eduardo.htm
>> Laboratório Nacional de Computação Científica - LNCC
>>
>> ------------------------------------------------------------------------
>>
>>
>>
>>
>> --
>> Atenciosamente,
>>
>> Eduardo Camargo
>> Analista de Sistemas
>> HeMoLab - http://www.lncc.br/prjhemo/equipe/desenv/eduardo.htm
>> Laboratório Nacional de Computação Científica - LNCC
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
More information about the Insight-users
mailing list