bspline.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /***********************************************************************
  2. *
  3. * MODULE: v.surf.bspline
  4. *
  5. * AUTHOR(S): Roberto Antolin
  6. *
  7. * PURPOSE: Spline Interpolation and cross correlation
  8. *
  9. * COPYRIGHT: (C) 2006 by Politecnico di Milano -
  10. * Polo Regionale di Como
  11. *
  12. * This program is free software under the
  13. * GNU General Public License (>=v2).
  14. * Read the file COPYING that comes with GRASS
  15. * for details.
  16. *
  17. **************************************************************************/
  18. /*INCLUDES*/
  19. #include <grass/lidar.h>
  20. /*STRUCTURES*/ struct Stats
  21. {
  22. double *estima;
  23. double *error;
  24. int n_points;
  25. };
  26. struct Param
  27. {
  28. struct Option *in, *in_ext, *out, *out_map, *dbdriver,
  29. *dbdatabase, *stepE, *stepN, *lambda_f, *type;
  30. struct Flag *cross_corr;
  31. };
  32. struct RasterPoint
  33. {
  34. int row;
  35. int col;
  36. };
  37. /* resamp.c */
  38. struct Point *P_Read_Raster_Region_masked(SEGMENT *, /**/
  39. struct Cell_head *, /**/
  40. struct bound_box, /**/
  41. struct bound_box, /**/
  42. int *, /**/ int, /**/ double);
  43. int P_Sparse_Raster_Points(SEGMENT *, /**/
  44. struct Cell_head *, /**/
  45. struct Cell_head *, /**/
  46. struct bound_box, /**/
  47. struct bound_box, /**/
  48. struct Point *, /**/
  49. double *, /**/
  50. double, /**/
  51. double, /**/
  52. double, /**/
  53. int, /**/
  54. int, /**/
  55. int, /**/
  56. int, /**/
  57. double /**/);
  58. int align_elaboration_box(struct Cell_head *, struct Cell_head *, int);
  59. int align_interp_boxes(struct bound_box *, struct bound_box *,
  60. struct Cell_head *, struct bound_box, struct bound_box, int);
  61. /* crosscor.c */
  62. int cross_correlation(SEGMENT *, struct Cell_head *, double, double);