uniform_filter not working with NANs present?
Juan Nunez-Iglesias
jni.soma at gmail.com
Fri Sep 6 08:23:57 EDT 2013
On Fri, Sep 6, 2013 at 9:51 AM, Michael Aye <kmichael.aye at gmail.com> wrote:
> Hi!
> Thanks for your reply!
> Could you explain why it makes sense that the uniform_filter fails in my
> example? Using a window of 3, I expect the following in this simple 1d
> example:
>
> input: [nan, 1, 2, 3, 4, 5, nan]
>
> output: [nan, nan, 2, 3, 4, nan, nan]
>
> Why should this not work?
>
You're right. =) But I suspect that they are doing something fancy like a
rolling mean for efficiency. So, once a nan gets in there, it stays there.
What happens when you remove the front nan?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20130906/58cdb6ee/attachment.html>
More information about the scikit-image
mailing list