changeset 418:608e5d8eae1f

Add missing division (/) (from Sean Veers)
author hauberg
date Wed, 14 Apr 2010 22:53:13 +0000
parents cb8c4c52bba9
children 63db1a389f38
files inst/im2double.m
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/inst/im2double.m
+++ b/inst/im2double.m
@@ -38,9 +38,9 @@
     case "double"
       im2 = im1;
     case "uint8"
-      im2 = double(im1)/255;
+      im2 = double(im1) / 255;
     case "uint16"
-      im2 = double(im1)(pow2(16)-1);
+      im2 = double(im1) / (pow2(16)-1);
     otherwise
       error("im2double: unsupported image class");
   endswitch