|
Isis Developer Reference
|
Go to the documentation of this file.
11 #include "tnt/tnt_array2d.h"
71 void Solve(
const double x[],
const double y[],
72 const double xp[],
const double yp[],
int n);
77 void Scale(
double scaleFactor);
128 return (p_matrix.copy());
137 return (p_invmat.copy());
149 void checkDims(
const AMatrix &am)
const;
void Compute(double x, double y)
Compute (xp,yp) given (x,y).
Definition: Affine.cpp:191
AMatrix Inverse() const
Returns the inverse Affine matrix.
Definition: Affine.h:136
int Solve(Isis::LeastSquares::SolveMethod method=SVD)
After all the data has been registered through AddKnown, invoke this method to solve the system of eq...
Definition: LeastSquares.cpp:205
TNT::Array2D< double > AMatrix
Affine Matrix.
Definition: Affine.h:67
const double PI
The mathematical constant PI.
Definition: Constants.h:40
void Rotate(double rot)
Apply a translation to the current affine transform.
Definition: Affine.cpp:151
void ComputeInverse(double xp, double yp)
Compute (x,y) given (xp,yp).
Definition: Affine.cpp:205
Nth degree Polynomial with two variables.
Definition: PolynomialBivariate.h:37
Generic least square fitting class.
Definition: LeastSquares.h:99
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
AMatrix Forward() const
Returns the forward Affine matrix.
Definition: Affine.h:127
double x() const
Returns the computed x.
Definition: Affine.h:106
static AMatrix getIdentity()
Return an Affine identity matrix.
Definition: Affine.cpp:61
std::vector< double > Coefficients(int var)
Return the affine coeffients for the entered variable (1 or 2).
Definition: Affine.cpp:220
Isis exception class.
Definition: IException.h:91
void Solve(const double x[], const double y[], const double xp[], const double yp[], int n)
Given a set of coordinate pairs (n >= 3), compute the affine transform that best fits the points.
Definition: Affine.cpp:92
double y() const
Returns the computed y.
Definition: Affine.h:115
void Translate(double tx, double ty)
Apply a translation to the current affine transform.
Definition: Affine.cpp:134
Namespace for the standard library.
~Affine()
Destroys the Affine object.
Definition: Affine.cpp:54
double xp() const
Returns the computed x'.
Definition: Affine.h:86
Affine basis function.
Definition: Affine.h:65
Affine()
Constructs an Affine transform.
Definition: Affine.cpp:30
double yp() const
Returns the computed y'.
Definition: Affine.h:95
void AddKnown(const std::vector< double > &input, double expected, double weight=1.0)
Invoke this method for each set of knowns.
Definition: LeastSquares.cpp:96
void Identity()
Set the forward and inverse affine transform to the identity.
Definition: Affine.cpp:73
void Scale(double scaleFactor)
Apply a scale to the current affine transform.
Definition: Affine.cpp:174
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
std::vector< double > InverseCoefficients(int var)
Return the inverse affine coeffients for the entered variable (1 or 2).
Definition: Affine.cpp:237
double Coefficient(int i) const
Returns the ith coefficient.
Definition: BasisFunction.h:107