[ITK] [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/community/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/community/attachments/20160827/21e94217/attachment.png>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list