[ITK-users] max min image matrix
Tammy DiPrima
tammy.diprima at stonybrook.edu
Sat Aug 27 16:04:13 EDT 2016
Hello,
Is StatisticsImageFilter->GetMaximum() and GetMinimum() the ITK functions
that calculate the max/min values in the 2D image array?
I’m running the example code from ITKWikiExamples
<https://github.com/lorensen/ITKWikiExamplesTarballs/raw/master/StatisticsIm
ageFilter.tar> , and the output is:
Mean: 23.5875
Std.: 73.8819
Min:
Max: �
I modified the code to write the image to file (attached). As far as I can
tell, statisticsImageFilter->GetMinimum() should be 0 and
statisticsImageFilter->GetMaximum() should be 255.
Is GetMinimum() and GetMaximum() not the right functions?
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20160827/21e94217/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 3886 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20160827/21e94217/attachment.png>
More information about the Insight-users
mailing list