|
From: | Avinoam Kalma |
Subject: | [Octave-bug-tracker] [bug #46390] image package - im2bw interprets threshold slightly different than Matlab |
Date: | Wed, 11 Nov 2015 06:58:57 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #7, bug #46390 (project octave): Thanks for improving the patch. There are still two problems with the fix: 1. The addition of 1 to the range is wrong 2. ceil should be replaced by floor. see for example: I = uint8([0:255]); S = 0; for i=0:10 bw = im2bw(I, i/10); s = sum(bw); S = S+s; end disp(S); Matlab (2010b) result is 1405, while Octave result is 1394. We can add this small example as a BIST. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?46390> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |