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: Hartmut
Subject: [Octave-bug-tracker] [bug #61827] [octave forge] (image) regionprops.m relies on incompatible behavior of array of integers
Date: Sun, 16 Jan 2022 16:32:54 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0

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

I have checked Avinoams suggestions in comment #3, and it works like a charm:

* Octave as well as Matlab really use a number of type double in the
cc.NumObjects variable: "cc = bwconncom(ones(3)); class(cc.NumObjects)" gives
double in Octave as well as in current Online-Matlab.

* After this change in line 267, my code in comment #0 works fine.

* My original image processing code, that made my find this bug, then also
works fine.

That's why I would suggest the following:

* Could you please push the suggested code change (in line 267 as described in
comment #3) to the image repo, with a reference to this bug report.

* Could you please also push my short test code (just the two code lines from
comment #0) as additional BIST test to regionprops.m. (If this code runs
without errors, it works fine. No need to check the return values of
regionprops.)

* Afterwards we could close this bug report.

    _______________________________________________________

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]