[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45333] image package: grayhresh fails if inpu
From: |
Avinoam Kalma |
Subject: |
[Octave-bug-tracker] [bug #45333] image package: grayhresh fails if input doesn't have different values |
Date: |
Tue, 6 Jun 2017 16:46:26 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 |
Follow-up Comment #10, bug #45333 (project octave):
There is another problem with graythresh:
running the tests with Otsu in Matlab, the thresh is 114.5, and not 115, so
the test should be:
%!assert (graythresh (img, "otsu"), 114.5/255);
%! histo = hist (img(:), 0:255);
%!assert (graythresh (histo, "otsu"), 114.5/255);
To get Matlab results, the "ceil" in line 235 should be removed.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45333>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/