bugGNU Octave - Bugs: bug #50071, [octave forge] (image)...

 
 

bug #50071: [octave forge] (image) bwfill(...,4) in Octave behaves like bwfill(...,8) in MATLAB and vice versa

Submitted by:  None
Submitted on:  Tue 17 Jan 2017 09:53:54 PM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: flawrOriginator Email: -unavailable-
Open/Closed: OpenRelease: 4.0.3
Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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.

Hartmut <hardy>
Wed 18 Jan 2017 12:58:30 PM UTC, comment #2:

Adding package maintainer to CC list.

Markus Mützel <mmuetzel>
Project Member
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.

Anonymous
Tue 17 Jan 2017 09:53:54 PM UTC, original submission:

Compare the output of

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jwe (Updated the item)
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by mmuetzel (Posted a comment)
  • -unavailable- added by mmuetzel
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 12 Aug 2017 07:11:42 PM UTCjweSummaryOF image: bwfill(...,4) in Octave behaves like bwfill(...,8) in MATLAB and vice versa=>[octave forge] (image) bwfill(...,4) in Octave behaves like bwfill(...,8) in MATLAB and vice versa
    Wed 18 Jan 2017 12:58:30 PM UTCmmuetzelSummarybwfill(...,4) in Octave behaves like bwfill(...,8) in MATLAB and vice versa=>OF image: bwfill(...,4) in Octave behaves like bwfill(...,8) in MATLAB and vice versa
      Carbon-Copy-=>Added carandraug

    Back to the top


    Powered by Savane 3.1-cleanup1