<div dir="ltr">Hi Matt<div> You are the best . It works. I thought it need only the last writer.Update() to call the whole pep-line. Thank you .</div><div> I am going to catch my flight now, I will try the other one later.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 17, 2014 at 5:44 PM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi gowith,<br>
<br>
Please try calling<br>
<br>
rangetest.Update()<br>
<br>
This is required for the results to be computed.<br>
<br>
HTH,<br>
Matt<br>
<div><div class="h5"><br>
On Tue, Sep 16, 2014 at 7:53 PM, gowith king <<a href="mailto:gowithking@googlemail.com">gowithking@googlemail.com</a>> wrote:<br>
> I was trying to use itk.StatisticsImageFilter to check the outcome of my<br>
> image reader. but all the results are wrong.<br>
> reader1 = itk.ImageFileReader.IUC3.New()<br>
> reader1.SetFileName(inputImagetest)<br>
><br>
> rangetest=itk.StatisticsImageFilter.IUC3.New()<br>
> rangetest.SetInput(reader1)<br>
> print 'range: ', str(rangetest.GetMinimum())<br>
><br>
> result:<br>
> range: 255<br>
><br>
> obviously this is not true for my image : it is a binary image and has only<br>
> 1 and 100 two values.<br>
><br>
> I am working on a python 2.7 wrapped ITK4 . if the python2 is incompatible<br>
> with itk?<br>
><br>
</div></div>> _______________________________________________<br>
> Community mailing list<br>
> <a href="mailto:Community@itk.org">Community@itk.org</a><br>
> <a href="http://public.kitware.com/mailman/listinfo/community" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><br>
><br>
</blockquote></div><br></div>