|
From: | Carnë Draug |
Subject: | [Octave-bug-tracker] [bug #43846] image: imresize does not accept floating point outside the [0 1] range |
Date: | Thu, 18 Dec 2014 19:25:34 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.3.0 |
Update of bug #43846 (project octave): Summary: imresize does not work with negative images => image: imresize does not accept floating point outside the [0 1] range _______________________________________________________ Follow-up Comment #1: The problem is not the negative values, the problem are values outside the range [0 1]. The function uses isrgb() and isgray() (two functions which were part of Matlab but removed recently) to check for valid input. Those functions return false if input is floating point but there is a value outside the [0 1] range (seems Matlab is dropping this but those were not valid images before). Can you provide a patch that fixes this and adds tests for this situation? http://www.gnu.org/software/octave/doc/interpreter/Basics-of-Generating-a-Changeset.html#Basics-of-Generating-a-Changeset Just replace the URL for the repository with the one for the image package, the rest of the instructions are the same. I think you will need to remove the check but please make sure there's no assumption anywhere else that values are on that range. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?43846> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |