[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45568] imfilter incompatible to MATLAB for ev
From: |
Nick Jankowski |
Subject: |
[Octave-bug-tracker] [bug #45568] imfilter incompatible to MATLAB for even filter width |
Date: |
Sun, 19 Jul 2015 19:15:30 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0 |
Follow-up Comment #2, bug #45568 (project octave):
just doing a quick check on Felix's original code, it doesn't pass through the
conv2 loop at line 121, it goes through filter2 code on line 117. (at least,
setting a breakpoint at 121, it never hit it, but it calls 117
stopping at 117 here are the input parameters to filter two and the output of
that function call, which is the returned value from imfilter. (I'll see if I
can compare with ML soon)
debug> f
f =
0 0 0 0
0 1 1 0
0 0 0 0
0 0 0 0
debug> im(:,:,i)
ans =
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 1 1 0 0 0 0
0 0 0 1 1 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0
debug> res_size
res_size = valid
debug> filter2(f,im(:,:,i),res_size)
ans =
0 0 0 0 0 0
0 0 0 0 0 0
0 1 2 1 0 0
0 1 2 1 0 0
0 0 0 0 0 0
0 0 0 0 0 0
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45568>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/