This file contains routines which perform (affine?) transformations from one coordinate system into another. More...
#include <stdio.h>
#include <math.h>
#include <grass/libtrans.h>
Go to the source code of this file.
Functions | |
int | compute_transformation_coef (double ax[], double ay[], double bx[], double by[], int *use, int n) |
int | transform_a_into_b (double ax, double ay, double *bx, double *by) |
int | transform_b_into_a (double bx, double by, double *ax, double *ay) |
int | residuals_a_predicts_b (double ax[], double ay[], double bx[], double by[], int use[], int n, double residuals[], double *rms) |
int | residuals_b_predicts_a (double ax[], double ay[], double bx[], double by[], int use[], int n, double residuals[], double *rms) |
int | print_transform_matrix (void) |
Prints matrix to stdout in human readable format. | |
Variables | |
static double | A1 |
static double | A2 |
static double | A3 |
static double | A4 |
static double | A5 |
static double | B1 |
static double | B2 |
static double | B3 |
static double | B4 |
static double | B5 |
This file contains routines which perform (affine?) transformations from one coordinate system into another.
The second system may be translated, stretched, and rotated relative to the first. The input system is system a and the output system is b.
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file transform.c.
int compute_transformation_coef | ( | double | ax[], |
double | ay[], | ||
double | bx[], | ||
double | by[], | ||
int * | use, | ||
int | n | ||
) |
int print_transform_matrix | ( | void | ) |
int residuals_a_predicts_b | ( | double | ax[], |
double | ay[], | ||
double | bx[], | ||
double | by[], | ||
int | use[], | ||
int | n, | ||
double | residuals[], | ||
double * | rms | ||
) |
Definition at line 205 of file transform.c.
int residuals_b_predicts_a | ( | double | ax[], |
double | ay[], | ||
double | bx[], | ||
double | by[], | ||
int | use[], | ||
int | n, | ||
double | residuals[], | ||
double * | rms | ||
) |
Definition at line 214 of file transform.c.
int transform_a_into_b | ( | double | ax, |
double | ay, | ||
double * | bx, | ||
double * | by | ||
) |
int transform_b_into_a | ( | double | bx, |
double | by, | ||
double * | ax, | ||
double * | ay | ||
) |
double A1 |
Definition at line 56 of file transform.c.
Referenced by compute_transformation_coef(), and transform_a_into_b().
double A2 |
Definition at line 56 of file transform.c.
Referenced by compute_transformation_coef(), and transform_a_into_b().
double A3 |
Definition at line 56 of file transform.c.
Referenced by compute_transformation_coef(), and transform_a_into_b().
double A4 |
Definition at line 56 of file transform.c.
Referenced by compute_transformation_coef(), and transform_a_into_b().
double A5 |
Definition at line 56 of file transform.c.
Referenced by compute_transformation_coef(), and transform_a_into_b().
double B1 |
Definition at line 57 of file transform.c.
Referenced by compute_transformation_coef(), print_transform_matrix(), and transform_b_into_a().
double B2 |
Definition at line 57 of file transform.c.
Referenced by compute_transformation_coef(), print_transform_matrix(), and transform_b_into_a().
double B3 |
Definition at line 57 of file transform.c.
Referenced by compute_transformation_coef(), print_transform_matrix(), and transform_b_into_a().
double B4 |
Definition at line 57 of file transform.c.
Referenced by compute_transformation_coef(), print_transform_matrix(), and transform_b_into_a().
double B5 |
Definition at line 57 of file transform.c.
Referenced by compute_transformation_coef(), print_transform_matrix(), and transform_b_into_a().