[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55059] [octave forge] (image) Failing unit te
From: |
Hartmut |
Subject: |
[Octave-bug-tracker] [bug #55059] [octave forge] (image) Failing unit test for grayslice |
Date: |
Sun, 17 Jan 2021 14:21:54 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0 |
Follow-up Comment #20, bug #55059 (project octave):
I have gone through the whole discussion in this bug report, again. There
seemed to be one remaining issue with our grayslice function (mentioned in
comment #14): float input images with values bigger than one. But when double
checking this, it turned out the our current grayslice function behaves
perfectly compatible in all those mentioned test codes. The reason why my test
codes (still) give different results on Octave compared to Matlab is the
following. This example vector
vec = [ uint8(1) : uint8(5) ]
is of class uint8 in Matlab, but of class double in Octave. That's what
cheated me into beleaving that there is even more wrong with our grayslice
function.
I will file a new bug report for core Octave with this above behavior of the
colon operator.
But this bug report here about grayslice.m in the image package can now be
closed as FIXED, I think.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55059>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/