changeset 20654:b4ceb06009e0

Fix regression on color conversion by 84ca63c8a038 (patch #8709) * scripts/image/private/colorspace_conversion_input_check.m: fix conversion from integer type images to class double.
author Hartmut Gimpel <hg_code@gmx.de>
date Sun, 25 Oct 2015 16:58:41 +0000
parents c16947991354
children 96653365eb66
files scripts/image/private/colorspace_conversion_input_check.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/image/private/colorspace_conversion_input_check.m	Thu Oct 22 12:48:49 2015 -0400
+++ b/scripts/image/private/colorspace_conversion_input_check.m	Sun Oct 25 16:58:41 2015 +0000
@@ -62,7 +62,7 @@
 
   ## Convert to floating point (remember to leave class single alone)
   if (isinteger (in_arg))
-    in_arg = double (in_arg) / double (intmin (cls));
+    in_arg = double (in_arg) / double (intmax (cls));
     is_int = true;
   else
     is_int = false;