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

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

[Octave-bug-tracker] [bug #55059] [octave forge] (image) Failing unit te


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #55059] [octave forge] (image) Failing unit test for grayslice
Date: Thu, 29 Nov 2018 17:50:27 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Follow-up Comment #6, bug #55059 (project octave):

I took a look at this tests and found that we are not Matlab compatible.
Consider this minimal example:


>> A = grayslice (uint8([0 100 200 255]), [.1 .4 .5])

A =

  1x4 uint8 row vector

   0   3   3   3

>> A = grayslice (uint8([0 100 200 255]), [100 199 200 210])

A =

  1x4 uint8 row vector

   0   1   3   4



The Matlab documentation states that V is always in the [0 1] range and is
converted internally for the type of the image but that does not seem to be
happening. Can anyone comment?

I get that Matlab documentation is not always right but this is so
outrageously wrong that I may be missing something.

In the mean time, I added a bunch of new tests for corner cases.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55059>

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




reply via email to

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