[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #44396] [octave forge] (image) bwmorph shrink
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #44396] [octave forge] (image) bwmorph shrink does not preserve Euler number |
Date: |
Fri, 13 May 2022 14:26:22 -0400 (EDT) |
Follow-up Comment #9, bug #44396 (project octave):
the comment #0 behavior is still present in Octave 6.4.0 with image 2.12.0.
for compatability reference, Matlab 2022a produces:
>> in = [0,0,0,1,0;1,1,1,1,0;0,0,1,1,0;0,0,1,1,0;0,0,0,1,0]
in =
0 0 0 1 0
1 1 1 1 0
0 0 1 1 0
0 0 1 1 0
0 0 0 1 0
>> out = bwmorph(in,'shrink')
out =
5×5 logical array
0 0 0 0 0
0 1 1 0 0
0 0 0 1 0
0 0 0 0 0
0 0 0 0 0
>> bweuler(in)
ans =
1
>> bweuler(out)
ans =
1
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?44396>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #44396] [octave forge] (image) bwmorph shrink does not preserve Euler number,
Nicholas Jankowski <=