GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-bea8435a9e
georef_tps.c File Reference
#include <stdlib.h>
#include <math.h>
#include <grass/gis.h>
#include <grass/imagery.h>
#include <grass/glocale.h>
#include <signal.h>
Include dependency graph for georef_tps.c:

Go to the source code of this file.

Macros

#define M(row, col)   m->v[(((row) - 1) * (m->n)) + (col) - 1]
 
#define MSUCCESS   1 /* SUCCESS */
 
#define MNPTERR   0 /* NOT ENOUGH POINTS */
 
#define MUNSOLVABLE   -1 /* NOT SOLVABLE */
 
#define MMEMERR   -2 /* NOT ENOUGH MEMORY */
 
#define MPARMERR   -3 /* PARAMETER ERROR */
 
#define MINTERR   -4 /* INTERNAL ERROR */
 
#define MAXORDER   3 /* HIGHEST SUPPORTED ORDER OF TRANSFORMATION */
 

Functions

int I_georef_tps (double e1, double n1, double *e, double *n, double *E, double *N, struct Control_Points *cp, int fwd)
 
int I_compute_georef_equations_tps (struct Control_Points *cp, double **E12tps, double **N12tps, double **E21tps, double **N21tps)
 

Macro Definition Documentation

◆ M

#define M (   row,
  col 
)    m->v[(((row) - 1) * (m->n)) + (col) - 1]

Definition at line 32 of file georef_tps.c.

◆ MAXORDER

#define MAXORDER   3 /* HIGHEST SUPPORTED ORDER OF TRANSFORMATION */

Definition at line 41 of file georef_tps.c.

◆ MINTERR

#define MINTERR   -4 /* INTERNAL ERROR */

Definition at line 39 of file georef_tps.c.

◆ MMEMERR

#define MMEMERR   -2 /* NOT ENOUGH MEMORY */

Definition at line 37 of file georef_tps.c.

◆ MNPTERR

#define MNPTERR   0 /* NOT ENOUGH POINTS */

Definition at line 35 of file georef_tps.c.

◆ MPARMERR

#define MPARMERR   -3 /* PARAMETER ERROR */

Definition at line 38 of file georef_tps.c.

◆ MSUCCESS

#define MSUCCESS   1 /* SUCCESS */

Definition at line 34 of file georef_tps.c.

◆ MUNSOLVABLE

#define MUNSOLVABLE   -1 /* NOT SOLVABLE */

Definition at line 36 of file georef_tps.c.

Function Documentation

◆ I_compute_georef_equations_tps()

int I_compute_georef_equations_tps ( struct Control_Points cp,
double **  E12tps,
double **  N12tps,
double **  E21tps,
double **  N21tps 
)

◆ I_georef_tps()

int I_georef_tps ( double  e1,
double  n1,
double *  e,
double *  n,
double *  E,
double *  N,
struct Control_Points cp,
int  fwd 
)