瀏覽代碼

fix fallback methods

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@43935 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 年之前
父節點
當前提交
a3449108f2
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      imagery/i.rectify/bilinear_f.c
  2. 2 2
      imagery/i.rectify/cubic_f.c

+ 1 - 1
imagery/i.rectify/bilinear_f.c

@@ -42,7 +42,7 @@ void p_bilinear_f(struct cache *ibuffer,	/* input buffer                  */
         return;
     }
     
-    p_bilinear(ibuffer, obufptr, cell_type, col_idx, row_idx, cellhd);
+    p_bilinear(ibuffer, obufptr, cell_type, row_idx, col_idx, cellhd);
     /* fallback to nearest if bilinear is null */
     if (Rast_is_d_null_value(obufptr))
         Rast_set_d_value(obufptr, *cellp, cell_type);

+ 2 - 2
imagery/i.rectify/cubic_f.c

@@ -43,10 +43,10 @@ void p_cubic_f(struct cache *ibuffer,	/* input buffer                  */
         return;
     }
     
-    p_cubic(ibuffer, obufptr, cell_type, col_idx, row_idx, cellhd);
+    p_cubic(ibuffer, obufptr, cell_type, row_idx, col_idx, cellhd);
     /* fallback to bilinear if cubic is null */
     if (Rast_is_d_null_value(obufptr)) {
-        p_bilinear(ibuffer, obufptr, cell_type, col_idx, row_idx, cellhd);
+        p_bilinear(ibuffer, obufptr, cell_type, row_idx, col_idx, cellhd);
         /* fallback to nearest if bilinear is null */
 	    if (Rast_is_d_null_value(obufptr))
 		Rast_set_d_value(obufptr, *cellp, cell_type);