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

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

[Octave-bug-tracker] [bug #52933] [octave-forge] (image) regionprops Per


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #52933] [octave-forge] (image) regionprops Perimeter returns Matlab incompatible results
Date: Tue, 30 Jan 2018 23:52:26 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Follow-up Comment #11, bug #52933 (project octave):

@Hartmut, 
your example from commnet#9 is very good.

In Matlab


ans =

   1.960000000000000


ans =

   2.812000000000000


ans =

7.013000000000000


in Octave


k = 1 even = 2 odd = 0 corners = 1
k = 2 even = 0 odd = 2 corners = 1
k = 3 even = 6 odd = 1 corners = 3
ans =  1.86900000000000
ans =  2.72100000000000
ans =  7.01300000000000


The diffrence in the perimeter of the first 2 blobs is 0.091, so it seems that
it both cases I count one corner more.
Since Matlab does not tell us how they count "even", "odd" & "corners", I am
using http://www.crisluengo.net/index.php/archives/310, which is similar to
Matlab implementation, but not the same.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52933>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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