Thanks for the reply, Carnë. I tracked down the source of the bug, and found that conv2 works incorrectly, when the shape parameter is 'valid'. imfilter uses filter2, and filter2 calls conv2, which causes the problem. It looks like there is already a bug report about this.
------------------------ Sunghyun Cho http://scho.pe.kr 2012/4/12 Carnë Draug <carandraug+...@gmail.com> > On 11 April 2012 21:09, Sunghyun Cho <sodo...@gmail.com> wrote: > > I found a bug in imfilter in the image package. > > I first tried to search bug reports about this, but I couldn't find it, > so I > > post it here. > > > > imfilter in the image package works in the opposite way it's supposed to > do. > > When I do "imfilter(1:5, [0 -1 1], 'corr', 'circular')', I get the > results > > below > > > > imfilter(1:5, [0 -1 1], 'corr', 'circular') > > > > 4 -1 -1 -1 -1 > > > > But the correlation operation should result in > > > > 1 1 1 1 -4 > > > > I also tested the same function 'imfilter' in Matlab, and it gives me the > > right answer. > > > > Thanks, > > Sunghyun > > > > > > p.s. This is my first time to post to this mailing list, so I'm still not > > sure if this is the right place for this kind of bug reporting. If not, > > please let me know. > > Hi > > yes, this is the right place. You can also submit it here > http://sourceforge.net/tracker/?group_id=2888&atid=102888 so it is not > forgotten, specially if there's no fix yet. > > Could you please submit a patch for this as well? > > Carnë >
------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev