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

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

[Octave-bug-tracker] [bug #56169] [octave forge] (image) images of class


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #56169] [octave forge] (image) images of class double or single fail to convert to class uint8
Date: Fri, 19 Apr 2019 21:53:11 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36

Follow-up Comment #1, bug #56169 (project octave):

Where was the `im` data sourced from? It's hard to reproduce this without a
full example. Can you attach an example input file to this issue?

Maybe you're not supposed to call im2uint8 on LAB-space image data? I don't
know that the data structures used by the image toolbox have enough metadata
for the functions to know whether they're RGB or LAB-space images. So maybe
it's seeing that the input is a double, assuming it's RGB, in which case the
values should have been in the interval [0.0 1.0], so these LAB values which
are >1 are just saturating it and pegging all the values to 1.0, which gets
normalized to 255 in uint8 space.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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