Fri 03 Mar 2017 08:24:21 PM UTC, comment #3:
What Matlab version are you using?
The "bwfill" command does not seem to be supported for at least 10 years in Matlab: It's not mentioned on the Matlab help page https://de.mathworks.com/help/search.html?qdoc=bwfill&submitsearch= and not on the release notes https://de.mathworks.com/help/images/release-notes.html?rntext=bwfill
Have you tried the imfill command instead? It should work fine in current Matlab versions and also in Octave (since image package 2.6.0).
Note: Nevertheless it might be useful to change the Octave behavior of bwfill to match the behavior of the ancient Matlab bwfill, if it is really only about swapping a 4 with an 8.
|
Tue 17 Jan 2017 09:56:48 PM UTC, comment #1:
It seems I used the wrong markup for my code. I'm posting it again without the tags:
Compare the output of
img = [0,1,0;0,1,1;1,0,1]; bwfill(img,1,1,8)
and
img = [0,1,0;0,1,1;1,0,1]; bwfill(img,1,1,4)
both in MATLAB and in Octave.
bwfill(img,1,1,8)
in Octave generates the same as
bwfill(img,1,1,4)
in MATLAB and vice versa. This is very confusing.
|