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

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

[Octave-bug-tracker] [bug #61827] [octave forge] (image) regionprops.m r


From: Avinoam Kalma
Subject: [Octave-bug-tracker] [bug #61827] [octave forge] (image) regionprops.m relies on incompatible behavior of array of integers
Date: Sun, 16 Jan 2022 01:17:53 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36

Follow-up Comment #2, bug #61827 (project octave):

Checking in MATLAB


>> [uint8(1); double(3200)]

ans =

  2×1 uint8 column vector

     1
   255


So the behavior in 7.0.90 is MATLAB compatible.

Weather Octave will change or not, I think that we should
change the relevant lines in regionprops.m, for example, changing


 no = cc.NumObjects;


to 


 no = double(cc.NumObjects);







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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