|
Isis Developer Reference
|
Go to the documentation of this file.
15 #include <tnt/tnt_array1d.h>
16 #include <tnt/tnt_array2d.h>
17 #include <tnt/tnt_array2d_utils.h>
58 m_x(chip.CubeSample()){ }
62 void setLatLon(
const double &latitude,
const double &longitude) {
101 double yd = pntA.m_y -
m_y;
102 double xd = pntA.m_x -
m_x;
103 return (std::sqrt((xd * xd) + (yd * yd)));
266 trans[1][2] = offset.
getLine();
285 void clone(
const GVector &alpha) {
286 if ( alpha.dim1() != 8 ) {
287 QString mess =
"Alpha array for AffineRadio must have 8 elements "
288 " but has " +
toString(alpha.dim1());
323 const double &shearTol) :
m_transTol(transTol),
365 const double *alpha = Malpha[0];
366 for (
int i = 0 ; i <
m_thresh.dim1() ; i++ ) {
367 if ( std::fabs(alpha[i]) >=
m_thresh[i] )
return (
false);
386 for (
int i = 0 ; i < 2 ; i++ ) {
404 for (
int i = 0 ; i < 2 ; i++ ) {
Radiometric & operator+=(const Radiometric &B)
Add radiometric parameters from another set of parameters.
Definition: GruenTypes.h:217
Coordinate getPoint(const Coordinate &location) const
Applies the affine transfrom to a point and returns result.
Definition: GruenTypes.h:272
MatchPoint(const PointPair &point)
Definition: GruenTypes.h:438
~Coordinate()
Definition: GruenTypes.h:59
double getEigen() const
Definition: GruenTypes.h:449
double getLatitude() const
Definition: GruenTypes.h:111
BigInt m_npts
Definition: GruenTypes.h:412
GMatrix m_affine
Definition: GruenTypes.h:280
double m_transTol
Definition: GruenTypes.h:328
Coordinate(const Chip &chip)
Definition: GruenTypes.h:57
~Threshold()
Definition: GruenTypes.h:360
double getLine() const
Definition: GruenTypes.h:187
TNT::Array2D< double > AMatrix
Affine Matrix.
Definition: Affine.h:67
Store for radiometric gain and shift parameters.
Definition: GruenTypes.h:206
TNT::Array1D< double > GVector
Definition: GruenTypes.h:30
AffineRadio()
Definition: GruenTypes.h:244
Coordinate m_right
Definition: GruenTypes.h:195
Radiometric m_radio
Definition: GruenTypes.h:281
bool isValid() const
Left, right and geometry coordinates must all be good data.
Definition: GruenTypes.h:181
double getDistance(const Coordinate &pntA=Coordinate(0.0, 0.0)) const
Computes the distance from this point and the point provided.
Definition: GruenTypes.h:100
void setLatLon(const double &latitude, const double &longitude)
Use Latitude/Longitude interface.
Definition: GruenTypes.h:62
PointPair()
Definition: GruenTypes.h:173
AffineTolerance(const double &transTol, const double &scaleTol, const double &shearTol)
Definition: GruenTypes.h:322
PointPair m_point
Definition: GruenTypes.h:457
Radiometric(const double &shift, const double &gain)
Definition: GruenTypes.h:209
bool isValid() const
Definition: GruenTypes.h:393
Container for affine and radiometric parameters.
Definition: GruenTypes.h:242
double getSample() const
Definition: GruenTypes.h:188
int m_status
Definition: GruenTypes.h:416
@ NCONSTR
Definition: GruenTypes.h:33
AffineRadio(const GMatrix &M, const double &shift, const double &gain)
Definition: GruenTypes.h:246
AffineRadio(const GVector &alpha)
Definition: GruenTypes.h:248
double m_sevals[2]
Definition: GruenTypes.h:414
int getStatus() const
Definition: GruenTypes.h:442
double getSample() const
Definition: GruenTypes.h:114
Define a generic Y/X container.
Definition: GruenTypes.h:53
Threshold(const Chip &chip, const AffineTolerance &tolerance)
Definition: GruenTypes.h:351
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
Definition: IString.cpp:211
bool IsSpecial(const double d)
Returns if the input pixel is special.
Definition: SpecialPixel.h:197
PointPair(const Coordinate &left, const Coordinate &right=Coordinate())
Definition: GruenTypes.h:176
~Analysis()
Definition: GruenTypes.h:391
int m_nIters
Definition: GruenTypes.h:460
int Lines() const
Definition: Chip.h:106
Compute/test the Affine convergence from given parameters/chip.
Definition: GruenTypes.h:348
double m_kmat[2]
Definition: GruenTypes.h:415
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
int m_status
Definition: GruenTypes.h:461
double getLeftSample() const
Definition: GruenTypes.h:190
AffineTolerance()
Definition: GruenTypes.h:321
double m_x
Definition: GruenTypes.h:117
PointPair(const double &line, const double &sample)
Definition: GruenTypes.h:174
Error analysis of Gruen match point solution.
Definition: GruenTypes.h:383
Coordinate()
Definition: GruenTypes.h:55
AffineRadio & operator+=(const AffineRadio &other)
Define update procedure for accumulating Gruen iterations.
Definition: GruenTypes.h:256
double m_variance
Definition: GruenTypes.h:413
Define a point set of left, right and geometry at that location.
Definition: GruenTypes.h:171
~AffineRadio()
Definition: GruenTypes.h:253
long long int BigInt
Big int.
Definition: Constants.h:49
double getLine() const
Definition: GruenTypes.h:113
Analysis m_analysis
Definition: GruenTypes.h:459
static AMatrix getIdentity()
Return an Affine identity matrix.
Definition: Affine.cpp:61
GVector m_thresh
Definition: GruenTypes.h:372
Isis exception class.
Definition: IException.h:91
double m_gain
Definition: GruenTypes.h:224
const MatchPoint & setStatus(int status)
Definition: GruenTypes.h:443
bool isValid() const
Check for goodness.
Definition: GruenTypes.h:107
Structure containing comprehensive registration info/results.
Definition: GruenTypes.h:433
double getRightSample() const
Definition: GruenTypes.h:192
MatchPoint(const AffineRadio &radio)
Definition: GruenTypes.h:436
const double Null
Value for an Isis Null pixel.
Definition: SpecialPixel.h:95
double getEigen() const
Returns the square of the of sum of the squares of eigenvalues.
Definition: GruenTypes.h:396
double getLongitude() const
Definition: GruenTypes.h:112
Affine::AMatrix GMatrix
Definition: GruenTypes.h:29
Analysis()
Definition: GruenTypes.h:384
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
double Gain() const
Definition: GruenTypes.h:213
Coordinate & operator+=(const Coordinate &other)
Add a point to this point.
Definition: GruenTypes.h:76
double Shift() const
Definition: GruenTypes.h:212
Coordinate getAffinePoint(const Coordinate &coord=Coordinate(0.0, 0.0)) const
Return registration offset of a given chip coordinate from center
Definition: GruenTypes.h:452
Coordinate operator-(const Coordinate &A, const Coordinate &B)
Subtraction operator for Coordinate.
Definition: GruenTypes.h:148
const Coordinate & getLeft() const
Definition: GruenTypes.h:184
AffineRadio(const Radiometric &radio)
Definition: GruenTypes.h:251
AffineRadio m_affine
Definition: GruenTypes.h:458
double getRightLine() const
Definition: GruenTypes.h:191
Container for Affine limits parameters.
Definition: GruenTypes.h:319
double m_shift
Definition: GruenTypes.h:223
A small chip of data used for pattern matching.
Definition: Chip.h:86
int Samples() const
Definition: Chip.h:99
Affine basis function.
Definition: Affine.h:65
AffineRadio(const GMatrix &A)
Definition: GruenTypes.h:245
void setZeroState()
Resets eigenvalues to 0.
Definition: GruenTypes.h:403
~MatchPoint()
Definition: GruenTypes.h:440
Radiometric()
Definition: GruenTypes.h:208
double m_y
Definition: GruenTypes.h:116
double getLeftLine() const
Definition: GruenTypes.h:189
const Coordinate & getRight() const
Definition: GruenTypes.h:185
double m_scaleTol
Definition: GruenTypes.h:329
double m_shearTol
Definition: GruenTypes.h:330
void Translate(const Coordinate &offset)
Apply a translation to the given offset.
Definition: GruenTypes.h:263
Coordinate & operator-=(const Coordinate &other)
Subtract a point from this point.
Definition: GruenTypes.h:88
void setLineSamp(const double &line, const double &sample)
Use the Line/Sample interface.
Definition: GruenTypes.h:69
~AffineTolerance()
Definition: GruenTypes.h:326
Coordinate(double y, double x)
Definition: GruenTypes.h:56
Coordinate m_left
Definition: GruenTypes.h:194
bool hasConverged(const AffineRadio &affine) const
Determines convergence from an affine/radiometric fit.
Definition: GruenTypes.h:363
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
bool isValid() const
Definition: GruenTypes.h:448
MatchPoint()
Definition: GruenTypes.h:435
Coordinate operator+(const Coordinate &A, const Coordinate &B)
Summation operator for Coordinate.
Definition: GruenTypes.h:130
Threshold()
Definition: GruenTypes.h:350