[ITK] Bug in StatisticsImageFilter?

gowith king gowithking at googlemail.com
Thu Sep 18 02:03:52 EDT 2014


Hi Matt
     You are the best . It works. I thought it need only the last
writer.Update() to call the whole pep-line. Thank you .
     I am going to catch my flight now, I will try the other one later.

On Wed, Sep 17, 2014 at 5:44 PM, Matt McCormick <matt.mccormick at kitware.com>
wrote:

> 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
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140918/f8539326/attachment-0002.html>


More information about the Community mailing list