next up previous contents
Next: Example: make_grid program Up: GRASP Routines: Template Bank Previous: Function: free_cubic   Contents


Function: transform_cubic

void transform_cubic(struct cubic_grid *grid, float angle, float match);
This routine applies a rotation to the coefficients stored in *grid, and rescales the equimatch ellipses to a new match level.

The arguments are:

grid: Input/Output. The structure containing the coefficients to be transformed.

angle: Input. The new value of grid.angle (the elements (*grid).coef[i][j][0..6,9] will be transformed to fit this new angle).

match: Input. The new value of grid.match (the elements (*grid).coef[i][j][7,8] will be rescaled according to this value).

Author: Teviet Creighton, teviet@tapir.caltech.edu
Comments: The result of this transformation is not quite the same as if the grid were originally generated with the new value of the match. During initial generation of the grid, the match field also specifies the domain over which the cubic fit is made, as well as setting the scale for the equimatch ellipse axes. This routine only rescales the ellipses; it does not regenerate a cubic fit over a new match range.


next up previous contents
Next: Example: make_grid program Up: GRASP Routines: Template Bank Previous: Function: free_cubic   Contents
Bruce Allen 2000-11-19