octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #55172] [octave forge] (image) b = bwmorph (BW


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #55172] [octave forge] (image) b = bwmorph (BW, 'thin', 1) is not Maltab compatible
Date: Thu, 6 Dec 2018 11:42:50 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?55172>

                 Summary:  [octave forge] (image)  b = bwmorph (BW, 'thin', 1)
is not  Maltab compatible
                 Project: GNU Octave
            Submitted by: avinoam
            Submitted on: Thu 06 Dec 2018 04:42:48 PM UTC
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: avinoam
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: other
        Operating System: Any

    _______________________________________________________

Details:


Running the script


H = false (7,7);
H(2:3,2:3) = 1;
H(5:6,5:6) = 1;
a = bwmorph (H, 'thin', 1)
H(4:6,4:6) = 1;
b = bwmorph (H, 'thin', 1)


I get


Matlab:

a =

   0   0   0   0   0   0   0
   0   0   0   0   0   0   0
   0   1   0   0   0   0   0
   0   0   0   0   0   0   0
   0   0   0   0   0   0   0
   0   0   0   0   1   0   0
   0   0   0   0   0   0   0


b =

   0   0   0   0   0   0   0
   0   0   0   0   0   0   0
   0   1   1   0   0   0   0
   0   0   0   1   0   0   0
   0   0   0   0   1   0   0
   0   0   0   0   0   0   0
   0   0   0   0   0   0   0

Octave:

a =

  0  0  0  0  0  0  0
  0  0  0  0  0  0  0
  0  0  1  0  0  0  0
  0  0  0  0  0  0  0
  0  0  0  0  0  0  0
  0  0  0  0  0  1  0
  0  0  0  0  0  0  0

b =

  0  0  0  0  0  0  0
  0  0  1  0  0  0  0
  0  1  1  0  0  0  0
  0  0  0  1  0  0  0
  0  0  0  0  1  0  0
  0  0  0  0  0  0  0
  0  0  0  0  0  0  0





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55172>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]