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

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

[Octave-patch-tracker] [patch #9360] image package: new function otsuthr


From: Hartmut
Subject: [Octave-patch-tracker] [patch #9360] image package: new function otsuthresh.m
Date: Sat, 24 Nov 2018 15:16:18 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0

Follow-up Comment #8, patch #9360 (project octave):

I have had another closer look at this patch (file #40868). Here are my
comments:
* There is a wrong character in the first lines, the last character in the
first name of Carne.
* You could add a check to reject sparse inputs, Matlab claims to reject
them.
* Several tests do not do what they pretend to do! For example this code "H =
zeros(1,2,'int32'); H = [100 200];" does NOT give a vector of class uint32,
but a vector of class double! So most of the integer input classes are
untested.
* I have tried all integer input classes that Matlab claims to support. The
following do NOT work: int8, int32, int64, uint32, uint64. Most of them don't
work because "imcast" cannot deal with them.

@Avinoam: Could you fix this? 

To get full coverage of all Matlab compatible input classes we would probably
need to change imcast as well. Or can we live with an otsuthresh, that can
only deal with the most common integer classes (the following already work:
uint8, uint16, int16).

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/patch/?9360>

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




reply via email to

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