[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:20:21 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0 |
Follow-up Comment #3, bug #45568 (project octave):
equivalent ML output from filter2 matches Octave filter2 output. So the error
seems to be in what works its way to filter2.
>> f = [0 0 0 0;0 1 1 0;0 0 0 0;0 0 0 0]
f =
0 0 0 0
0 1 1 0
0 0 0 0
0 0 0 0
>> im=zeros(9,9);im(4:5,4:5)=ones(2,2)
im =
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
>> res_size='valid'
res_size =
valid
>> filter2(f,im,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/