[ITK] Bug in StatisticsImageFilter?

gowith king gowithking at googlemail.com
Tue Sep 16 19:53:39 EDT 2014


I was trying to use itk.StatisticsImageFilter to check the outcome of my
image reader. but all the results are wrong.
reader1 = itk.ImageFileReader.IUC3.New()
reader1.SetFileName(inputImagetest)

rangetest=itk.StatisticsImageFilter.IUC3.New()
rangetest.SetInput(reader1)
print 'range: ', str(rangetest.GetMinimum())

result:
range:  255

obviously this is not true for my image : it is a binary image and has only
1 and 100 two values.

I am working on a python 2.7 wrapped ITK4 . if the python2 is incompatible
with itk?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140917/8e99826d/attachment-0002.html>


More information about the Community mailing list