[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input
From: |
H. G. |
Subject: |
[Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values |
Date: |
Sat, 04 Jul 2015 21:01:14 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 |
Follow-up Comment #5, bug #45456 (project octave):
I would like to suggest the following change to those 3 functions:
* Use a tolerance of tol=2e-10 . This tolerance is slightly smaller than
2^(-32) and so I would expect no visible changes to 32 bit images or to images
with less precision. (I don't know of images with even higher bit depth.) I
would assume that +-eps is too tight a tolerance here. And using the suggested
value for tol would still make sure that only negligible changes to the data
are done.
* Silently clip the double input data to 0 if it is in the interval [-tol ,
0]. And silently clip the input data to 1 if it is in [1, 1+tol].
* Issue a warning if the input values are outside [-tol , 1+tol]. But do
proceed with the function anyways (for Matlab compatibility).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45456>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45456] hsv2rgb is too strict about its input values, H. G., 2015/07/01
- [Octave-bug-tracker] [bug #45456] hsv2rgb is too strict about its input values, Avinoam Kalma, 2015/07/01
- [Octave-bug-tracker] [bug #45456] hsv2rgb is too strict about its input values, Rik, 2015/07/01
- [Octave-bug-tracker] [bug #45456] hsv2rgb is too strict about its input values, Avinoam Kalma, 2015/07/02
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values, Rik, 2015/07/04
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values,
H. G. <=
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values, Avinoam Kalma, 2015/07/05
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values, H. G., 2015/07/15
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values, Carnë Draug, 2015/07/16
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values, Carnë Draug, 2015/07/16
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values, Carnë Draug, 2015/07/16
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values, H. G., 2015/07/18
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values, Carnë Draug, 2015/07/19
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values, H. G., 2015/07/20
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values, H. G., 2015/07/27
- [Octave-bug-tracker] [bug #45456] hsv2rgb is very strict about its input values, H. G., 2015/07/29