[ITK] Bug in StatisticsImageFilter?
Matt McCormick
matt.mccormick at kitware.com
Wed Sep 17 11:44:32 EDT 2014
Hi gowith,
Please try calling
rangetest.Update()
This is required for the results to be computed.
HTH,
Matt
On Tue, Sep 16, 2014 at 7:53 PM, gowith king <gowithking at googlemail.com> wrote:
> 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?
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
>
More information about the Community
mailing list