Functions | Variables

transform.c File Reference

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>
Include dependency graph for transform.c:

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

Detailed Description

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.

Author:
GRASS GIS Development Team
Date:
1987-2007

Definition in file transform.c.


Function Documentation

int compute_transformation_coef ( double  ax[],
double  ay[],
double  bx[],
double  by[],
int *  use,
int  n 
)

Definition at line 90 of file transform.c.

References A1, A2, A3, A4, A5, B1, B2, B3, B4, B5, inverse(), and m_mult().

int print_transform_matrix ( void   )

Prints matrix to stdout in human readable format.

Returns:
int 1

Definition at line 231 of file transform.c.

References B1, B2, B3, B4, and B5.

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 
)

Definition at line 174 of file transform.c.

References A1, A2, A3, A4, and A5.

int transform_b_into_a ( double  bx,
double  by,
double *  ax,
double *  ay 
)

Definition at line 183 of file transform.c.

References B1, B2, B3, B4, and B5.


Variable Documentation

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
double B2
double B3
double B4
double B5