[GRASS-SVN] r44052 - grass/trunk/imagery/i.rectify

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Oct 27 03:35:52 EDT 2010


Author: mmetz
Date: 2010-10-27 00:35:52 -0700 (Wed, 27 Oct 2010)
New Revision: 44052

Modified:
   grass/trunk/imagery/i.rectify/bilinear_f.c
   grass/trunk/imagery/i.rectify/cubic_f.c
Log:
fix for bilinear with fallback and bicubic with fallback

Modified: grass/trunk/imagery/i.rectify/bilinear_f.c
===================================================================
--- grass/trunk/imagery/i.rectify/bilinear_f.c	2010-10-26 15:55:23 UTC (rev 44051)
+++ grass/trunk/imagery/i.rectify/bilinear_f.c	2010-10-27 07:35:52 UTC (rev 44052)
@@ -43,7 +43,7 @@
     }
     cell = *cellp;
 
-    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, cell, cell_type);

Modified: grass/trunk/imagery/i.rectify/cubic_f.c
===================================================================
--- grass/trunk/imagery/i.rectify/cubic_f.c	2010-10-26 15:55:23 UTC (rev 44051)
+++ grass/trunk/imagery/i.rectify/cubic_f.c	2010-10-27 07:35:52 UTC (rev 44052)
@@ -42,7 +42,7 @@
         Rast_set_null_value(obufptr, 1, cell_type);
         return;
     }
-	cell = *cellp;
+    cell = *cellp;
     
     p_cubic(ibuffer, obufptr, cell_type, row_idx, col_idx, cellhd);
     /* fallback to bilinear if cubic is null */
@@ -50,6 +50,6 @@
         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);
+		Rast_set_d_value(obufptr, cell, cell_type);
     }
 }



More information about the grass-commit mailing list