Re: [OctDev] imerode erodes from edges in Octave but not Matlab.

2010-06-24 Thread Li-Ping Yuan
uld do the same. Thanks Li-Ping (Li) Yuan From: Judd Storrs To: Søren Hauberg Cc: octave-dev@lists.sourceforge.net; lipingy...@yahoo.com Sent: Thu, June 24, 2010 9:25:10 AM Subject: Re: [OctDev] imerode erodes from edges in Octave but not Matlab. Here&#x

Re: [OctDev] imerode erodes from edges in Octave but not Matlab.

2010-06-24 Thread Judd Storrs
Here's another example: Evil: >> A = ones(5) ; >> A(2,1) = 0 ; >> A(5,5) = 0 A = 1 1 1 1 1 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 >> imerode(A,[0,0,0;1,1,1;0,0,0]) ans = 1 1 1

Re: [OctDev] imerode erodes from edges in Octave but not Matlab.

2010-06-24 Thread Judd Storrs
On Thu, Jun 24, 2010 at 9:52 AM, Søren Hauberg wrote: > Could you send an example that illustrates the bug (including data) ? Octave: > imerode(ones(5),ones(3)) ans = 0 0 0 0 0 0 1 1 1 0 0 1 1 1 0 0 1 1 1 0 0 0 0 0 0 Evil: >> imerode(ones

Re: [OctDev] imerode erodes from edges in Octave but not Matlab.

2010-06-24 Thread Søren Hauberg
tor, 24 06 2010 kl. 15:31 +0200, skrev Søren Hauberg: > As far as I can tell, imerode (image morphological operator) erodes from > edges, where objects touch edges, in Octave but not Matlab. I do need > the function behaves like Matlab. Could you send an example that illustrates the bug (includin

[OctDev] imerode erodes from edges in Octave but not Matlab.

2010-06-24 Thread Søren Hauberg
The following bug was opened for Octave (https://savannah.gnu.org/bugs/index.php?30240), but is related to Octave-Forge [bug report] As far as I can tell, imerode (image morphological operator) erodes from edges, where objects touch edges, in Octave but not Matlab. I do need the function behaves l