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

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

[Octave-bug-tracker] [bug #49613] image package - regionprops.m majoraxi


From: Hartmut
Subject: [Octave-bug-tracker] [bug #49613] image package - regionprops.m majoraxislength broken
Date: Mon, 5 Dec 2016 21:39:50 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

Follow-up Comment #15, bug #49613 (project octave):

I like the fact that your "patch" from comment #14 gives fully Matlab
compatible results on my test image (comment #0).

But I suspect that the if-statement of this "patch" will not be Matlab
compatible. We should check the Matlab result for something like this

clear;

BW_A = logical([0 0 0 0; 0 1 1 0; 0 0 0 0]);
L_A = bwlabel(BW_A);
props = regionprops(L_A,'Orientation');
orientation_A = props.Orientation

BW_B = BW_A';
L_B = bwlabel(BW_B);
props = regionprops(L_B,'Orientation');
orientation_B = props.Orientation

and might need to adjust the if-statement in your "patch" accordingly.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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