changeset 422:cb18111bdeaf

Use custom bicubic interpolation to work around bug in Octave 3.2.x
author hauberg
date Sat, 22 May 2010 16:07:09 +0000
parents dd9eb4be8f1d
children df2bbe76d54f
files inst/imremap.m
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/inst/imremap.m
+++ b/inst/imremap.m
@@ -100,11 +100,11 @@
 endfunction
 
 function [warped, valid] = grayinterp(im, XI, YI, interp, extrapval)
-  %if (strcmp(interp, "cubic"))
-  %  warped = graybicubic(double(im), XI, YI, NA);
-  %else
+  if (strcmp(interp, "cubic"))
+    warped = graybicubic(double(im), XI, YI, NA);
+  else
     warped = interp2(double(im), XI, YI, interp, NA);
-  %endif
+  endif
   valid = !isna(warped);
   warped(!valid) = extrapval;
 endfunction