From: <car...@us...> - 2012-01-30 11:16:23
|
Revision: 9574 http://octave.svn.sourceforge.net/octave/?rev=9574&view=rev Author: carandraug Date: 2012-01-30 11:16:11 +0000 (Mon, 30 Jan 2012) Log Message: ----------- wavelength2rgb: bug fix on input check by <mme...@gm...> Modified Paths: -------------- trunk/octave-forge/main/image/inst/wavelength2rgb.m Modified: trunk/octave-forge/main/image/inst/wavelength2rgb.m =================================================================== --- trunk/octave-forge/main/image/inst/wavelength2rgb.m 2012-01-29 12:05:10 UTC (rev 9573) +++ trunk/octave-forge/main/image/inst/wavelength2rgb.m 2012-01-30 11:16:11 UTC (rev 9574) @@ -60,9 +60,9 @@ if (nargin < 1 || nargin > 3) print_usage; - elseif (!isnumeric (wavelength) || !isscalar (wavelength) || wavelength > 0) + elseif (!isnumeric (wavelength) || !isscalar (wavelength) || wavelength <= 0) error ("wavelength must a positive numeric scalar"); - elseif (!isnumeric (intensity_max) || !isscalar (intensity_max) || intensity_max > 0) + elseif (!isnumeric (intensity_max) || !isscalar (intensity_max) || intensity_max <= 0) error ("intensity_max must a positive numeric scalar"); elseif (!isnumeric (gamma) || !isscalar (gamma) || gamma > 1 || gamma < 0) error ("gamma must a numeric scalar between 1 and 0"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |