changeset 363:7fda62a0897b

remove overshooting handling
author hauberg
date Fri, 03 Apr 2009 19:51:16 +0000
parents fbd67cad13b6
children 9436766036ed
files inst/imremap.m
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/inst/imremap.m
+++ b/inst/imremap.m
@@ -91,11 +91,7 @@
 
   ## Change the class of the results according to the class of the image
   c = class(im);
-  if (strcmpi(c, "double"))
-    ## Remove overshooting caused by bicubic interpolation
-    warped(warped>1) = 1;
-    warped(warped<0) = 0;
-  elseif (strcmpi(c, "uint8"))
+  if (strcmpi(c, "uint8"))
     warped = uint8(warped);
   elseif (strcmpi(c, "uint16"))
     warped = uint16(warped);