14#include <QSharedPointer>
20#include <gsl/gsl_rng.h>
62 return (m_gruen->PatternChip());
68 return (m_gruen->SearchChip());
74 return (m_gruen->FitChip());
81 const double &minEV,
const double &maxEV);
109 QSharedPointer<Gruen> m_gruen;
113 const gsl_rng_type * T;
116 void randomNumberSetup();
117 bool validate(
const bool &throwError =
true)
const;
119 inline Camera &lhCamera() {
return (*m_lhCube->
camera()); }
120 inline Camera &rhCamera() {
return (*m_rhCube->
camera()); }
122 Coordinate getLineSample(Camera &camera,
const Coordinate &geom);
123 Coordinate getLatLon(Camera &camera,
const Coordinate &pnt);
125 bool inCube(
const Camera &camera,
const Coordinate &point)
const;
127 SmtkPoint makeRegisteredPoint(
const PointGeometry &left,
128 const PointGeometry &right, Gruen *gruen);
Container for affine and radiometric parameters.
Definition GruenTypes.h:242
A small chip of data used for pattern matching.
Definition Chip.h:86
Define a generic Y/X container.
Definition GruenTypes.h:53
IO Handler for Isis Cubes.
Definition Cube.h:168
Camera * camera()
Return a camera associated with the cube.
Definition Cube.cpp:1458
Container for a point and its geometry.
Definition SmtkPoint.h:24
Define a point set of left, right and geometry at that location.
Definition GruenTypes.h:171
Contains multiple PvlContainers.
Definition PvlGroup.h:41
Container for cube-like labels.
Definition Pvl.h:119
Workhorse of stereo matcher.
Definition SmtkMatcher.h:45
SmtkPoint Register(const Coordinate &lpnt, const AffineRadio &affrad=AffineRadio())
This method takes a sample, line from the left-hand image and tries to find the matching point in the...
Definition SmtkMatcher.cpp:250
SmtkPoint Clone(const SmtkPoint &point, const Coordinate &left)
Clone a point set from a nearby (left image) point and Gruen affine.
Definition SmtkMatcher.cpp:467
SmtkQStackIter FindExpDistEV(SmtkQStack &stack, const double &seedsample, const double &minEV, const double &maxEV)
Find the best eigen value using exponential distribution formula.
Definition SmtkMatcher.cpp:182
SmtkMatcher(Cube *lhImage, Cube *rhImage)
Chip * SearchChip() const
Return search chip.
Definition SmtkMatcher.h:66
void setImages(Cube *lhImage, Cube *rhImage)
Assign cubes for matching.
Definition SmtkMatcher.cpp:60
Chip * PatternChip() const
Return pattern chip.
Definition SmtkMatcher.h:60
bool isValid(const Coordinate &pnt)
Determine if a point is valid in both left/right images.
Definition SmtkMatcher.cpp:101
void setGruenDef(const QString ®def)
Initialize Gruen algorithm with definitions in Pvl file provided.
Definition SmtkMatcher.cpp:78
PvlGroup RegTemplate()
Return Gruen template parameters.
Definition SmtkMatcher.h:99
BigInt OffImageErrorCount() const
Definition SmtkMatcher.h:95
Chip * FitChip() const
Returns the fit chip.
Definition SmtkMatcher.h:72
Pvl RegistrationStatistics()
Return Gruen registration statistics.
Definition SmtkMatcher.h:101
BigInt SpiceErrorCount() const
Definition SmtkMatcher.h:96
~SmtkMatcher()
Free random number generator in destructor.
Definition SmtkMatcher.cpp:54
SmtkQStackIter FindSmallestEV(SmtkQStack &stack)
Find the smallest eigen value on the given stack.
Definition SmtkMatcher.cpp:149
void setWriteSubsearchChipPattern(const QString &fileptrn="SmtkMatcher")
Set file pattern for output subsearch chips.
Definition SmtkMatcher.cpp:132
SmtkMatcher()
Construct default matcher.
Definition SmtkMatcher.cpp:25
SmtkPoint Create(const Coordinate &left, const Coordinate &right)
Create a valid, unregistered SmtkPoint.
Definition SmtkMatcher.cpp:427
Container for SMTK match points.
Definition SmtkPoint.h:54
This is free and unencumbered software released into the public domain.
Definition ControlNet.h:32
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
SmtkQStack::iterator SmtkQStackIter
Definition SmtkStack.h:19
long long int BigInt
Big int.
Definition Constants.h:49