Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

trans_prototypes.h File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

public void get_nonlinear_warp (Real **positions, Real **values, Real **INVMLY, int n_points, int n_dims, int n_values)
public void compute_transform_from_tags (int npoints, Real **tag_list1, Real **tag_list2, Trans_type trans_type, General_transform *transform)
public void build_transformation_matrix (Transform *lt, Real center[], Real translations[], Real scales[], Real shears[], Real rotations[])
public void transpose (int rows, int cols, Real **mat, Real **mat_transpose)
public void matrix_multiply (int ldim, int mdim, int ndim, Real **Amat, Real **Bmat, Real **Cmat)
public BOOLEAN optimize_simplex (Real **pts1, Real **pts2, int npoints, Trans_type trans_type, Real center[], Real translations[], Real scales[], Real shears[], Real rotations[])
public void procrustes (int npoints, int ndim, Real **Apoints, Real **Bpoints, Real translation[], Real centre_of_rotation[], Transform *rotation_transform, Real *scale_ptr)
public BOOLEAN rotmat_to_ang (Transform *rot_trans, Real *ang)
public void safe_compute_transform_from_tags (int npoints, Real **tag_list1, Real **tag_list2, Trans_type trans_type, General_transform *transform)
public void make_scale_transform (Real sx, Real sy, Real sz, Transform *transform)
public void set_transform_x_and_z_axes (Transform *transform, Vector *x_axis, Vector *z_axis)
public void make_translation_transform (Real x_trans, Real y_trans, Real z_trans, Transform *transform)
public void make_origin_transform (Point *origin, Transform *transform)
public void make_rotation_transform (Real radians, int axis, Transform *transform)
public void make_transform_relative_to_point (Point *point, Transform *transform, Transform *rel_transform)
public void make_transform_in_coordinate_system (Point *origin, Vector *x_axis, Vector *y_axis, Vector *z_axis, Transform *transform, Transform *rel_transform)
public void make_rotation_about_axis (Vector *axis, Real angle, Transform *transform)
public void convert_2d_transform_to_rotation_translation (Transform *transform, Real *degrees_clockwise, Real *x_trans, Real *y_trans)
public Real compute_clockwise_rotation (Real x, Real y)
public BOOLEAN is_transform_right_handed (Transform *transform)
public void make_identity_transform_2d (Transform_2d *transform)
public void get_inverse_transform_2d (Transform_2d *transform, Transform_2d *inverse)
public void transform_point_2d (Transform_2d *transform, Real x, Real y, Real *x_trans, Real *y_trans)
public void get_least_squares_transform_2d (int n_points, Real x[], Real y[], Real x_trans[], Real y_trans[], Transform_2d *transform_2d)
public Status write_transform_file (STRING filename, STRING comments, Transform *transform)
public Status read_transform_file (STRING filename, Transform *transform)


Function Documentation

public void build_transformation_matrix Transform *  lt,
Real  center[],
Real  translations[],
Real  scales[],
Real  shears[],
Real  rotations[]
 

Definition at line 444 of file compute_xfm.c.

References concat_transformation_matrix(), and make_rots().

Referenced by compute_arb_param_transform(), and fit_function().

public Real compute_clockwise_rotation Real  x,
Real  y
 

Definition at line 367 of file transforms.c.

References y.

Referenced by convert_2d_transform_to_rotation_translation(), get_polygon_edge_angle(), map_sphere_to_uv(), and rotmat_to_ang().

public void compute_transform_from_tags int  npoints,
Real **  tag_list1,
Real **  tag_list2,
Trans_type  trans_type,
General_transform *  transform
 

Definition at line 149 of file compute_xfm.c.

References compute_12param_transform(), compute_arb_param_transform(), compute_procrustes_transform(), compute_tps_transform(), MIN_POINTS_LINEAR, MIN_POINTS_TPS, TRANS_LSQ10, TRANS_LSQ12, TRANS_LSQ6, TRANS_LSQ7, TRANS_LSQ9, and TRANS_TPS.

Referenced by safe_compute_transform_from_tags().

public void convert_2d_transform_to_rotation_translation Transform *  transform,
Real *  degrees_clockwise,
Real *  x_trans,
Real *  y_trans
 

Definition at line 335 of file transforms.c.

References compute_clockwise_rotation(), and y.

public void get_inverse_transform_2d Transform_2d *  transform,
Transform_2d *  inverse
 

Definition at line 451 of file transforms.c.

Referenced by resample_pixels().

public void get_least_squares_transform_2d int  n_points,
Real  x[],
Real  y[],
Real  x_trans[],
Real  y_trans[],
Transform_2d *  transform_2d
 

Definition at line 533 of file transforms.c.

References least_squares(), and y.

public void get_nonlinear_warp Real **  positions,
Real **  values,
Real **  INVMLY,
int  n_points,
int  n_dims,
int  n_values
 

Definition at line 75 of file compute_tps.c.

References calculate_weights(), and makeL().

Referenced by compute_tps_transform().

public BOOLEAN is_transform_right_handed Transform *  transform  ) 
 

Definition at line 398 of file transforms.c.

public void make_identity_transform_2d Transform_2d *  transform  ) 
 

Definition at line 427 of file transforms.c.

public void make_origin_transform Point *  origin,
Transform *  transform
 

Definition at line 131 of file transforms.c.

public void make_rotation_about_axis Vector *  axis,
Real  angle,
Transform *  transform
 

Definition at line 270 of file transforms.c.

References y.

Referenced by flatten_around_vertex_to_sphere().

public void make_rotation_transform Real  radians,
int  axis,
Transform *  transform
 

Definition at line 157 of file transforms.c.

Referenced by get_prediction_weights_3d(), make_rots(), and rotmat_to_ang().

public void make_scale_transform Real  sx,
Real  sy,
Real  sz,
Transform *  transform
 

Definition at line 38 of file transforms.c.

Referenced by concat_transformation_matrix(), and smooth_resample_volume().

public void make_transform_in_coordinate_system Point *  origin,
Vector *  x_axis,
Vector *  y_axis,
Vector *  z_axis,
Transform *  transform,
Transform *  rel_transform
 

Definition at line 237 of file transforms.c.

public void make_transform_relative_to_point Point *  point,
Transform *  transform,
Transform *  rel_transform
 

Definition at line 198 of file transforms.c.

References make_translation_transform().

public void make_translation_transform Real  x_trans,
Real  y_trans,
Real  z_trans,
Transform *  transform
 

Definition at line 105 of file transforms.c.

Referenced by concat_transformation_matrix(), create_cropped_volume(), get_prediction_weights_3d(), make_transform_relative_to_point(), and smooth_resample_volume().

public void matrix_multiply int  ldim,
int  mdim,
int  ndim,
Real **  Amat,
Real **  Bmat,
Real **  Cmat
 

Definition at line 166 of file matrix_basics.c.

References raw_matrix_multiply().

Referenced by calculate_weights(), and procrustes().

public BOOLEAN optimize_simplex Real **  pts1,
Real **  pts2,
int  npoints,
Trans_type  trans_type,
Real  center[],
Real  translations[],
Real  scales[],
Real  shears[],
Real  rotations[]
 

Definition at line 164 of file optimize.c.

References function_data::center, FALSE, fit_function(), FUNCTION_TOLERANCE, get_amoeba_parameters(), INITIAL_SIMPLEX_SIZE, initialize_amoeba(), MAX_ITERS, function_data::ndim, function_data::npoints, perform_amoeba(), function_data::pts1, function_data::pts2, terminate_amoeba(), TRANS_LSQ10, TRANS_LSQ9, and TRUE.

Referenced by compute_arb_param_transform().

public void procrustes int  npoints,
int  ndim,
Real **  Apoints,
Real **  Bpoints,
Real  translation[],
Real  centre_of_rotation[],
Transform *  rotation_transform,
Real *  scale_ptr
 

Definition at line 105 of file procrustes.c.

References calc_centroid(), matrix_multiply(), singular_value_decomposition(), trace_of_matrix(), translate_points(), and transpose().

Referenced by compute_arb_param_transform(), and compute_procrustes_transform().

public Status read_transform_file STRING  filename,
Transform *  transform
 

Definition at line 77 of file transform_io.c.

public BOOLEAN rotmat_to_ang Transform *  rot_trans,
Real *  ang
 

Definition at line 96 of file rotmat_to_ang.c.

References compute_clockwise_rotation(), FALSE, make_rotation_transform(), and TRUE.

Referenced by compute_arb_param_transform().

public void safe_compute_transform_from_tags int  npoints,
Real **  tag_list1,
Real **  tag_list2,
Trans_type  trans_type,
General_transform *  transform
 

Definition at line 97 of file safe_compute_xfm.c.

References compute_transform_from_tags().

public void set_transform_x_and_z_axes Transform *  transform,
Vector *  x_axis,
Vector *  z_axis
 

Definition at line 72 of file transforms.c.

public void transform_point_2d Transform_2d *  transform,
Real  x,
Real  y,
Real *  x_trans,
Real *  y_trans
 

Definition at line 499 of file transforms.c.

References y.

Referenced by resample_pixels().

public void transpose int  rows,
int  cols,
Real **  mat,
Real **  mat_transpose
 

Definition at line 53 of file matrix_basics.c.

Referenced by procrustes().

public Status write_transform_file STRING  filename,
STRING  comments,
Transform *  transform
 

Definition at line 37 of file transform_io.c.


Generated on Wed Jul 28 09:11:22 2004 for BICPL by doxygen 1.3.7