OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimSpot5Model.h>
Public Types | |
enum | AdjustParamIndex { ROLL_OFFSET = 0, PITCH_OFFSET, YAW_OFFSET, ROLL_RATE, PITCH_RATE, YAW_RATE, FOCAL_LEN_OFFSET, NUM_ADJUSTABLE_PARAMS } |
![]() | |
enum | CovMatStatus { COV_INVALID = 0, COV_PARTIAL = 1, COV_FULL = 2 } |
enum | DeriveMode { OBS_INIT =-99, EVALUATE =-98, P_WRT_X = -1, P_WRT_Y = -2, P_WRT_Z = -3 } |
Public Member Functions | |
ossimSpot5Model () | |
ossimSpot5Model (ossimSpotDimapSupportData *sd) | |
ossimSpot5Model (const ossimFilename &init_file) | |
ossimSpot5Model (const ossimKeywordlist &geom_kwl) | |
ossimSpot5Model (const ossimSpot5Model &rhs) | |
virtual | ~ossimSpot5Model () |
virtual ossimObject * | dup () const |
virtual std::ostream & | print (std::ostream &out) const |
virtual bool | saveState (ossimKeywordlist &kwl, const char *prefix=NULL) const |
virtual bool | loadState (const ossimKeywordlist &kwl, const char *prefix=NULL) |
virtual void | lineSampleHeightToWorld (const ossimDpt &image_point, const ossim_float64 &heightEllipsoid, ossimGpt &worldPoint) const |
virtual void | imagingRay (const ossimDpt &image_point, ossimEcefRay &image_ray) const |
virtual void | updateModel () |
virtual bool | useForward () const |
virtual bool | setupOptimizer (const ossimString &init_file) |
image to ground faster More... | |
bool | initFromMetadata (ossimSpotDimapSupportData *sd) |
uses file path to init model More... | |
![]() | |
ossimSensorModel () | |
ossimSensorModel (const ossimSensorModel ©_this) | |
ossimSensorModel (const ossimKeywordlist &geom_kwl) | |
const ossimSensorModel & | operator= (const ossimSensorModel &rhs) |
assignment operator More... | |
virtual ossimObject * | getBaseObject () |
virtual const ossimObject * | getBaseObject () const |
virtual ossimGpt | origin () const |
virtual ossimDpt | getMetersPerPixel () const |
virtual const double & | getNominalPosError () const |
Returns the estimated Absolute horizontal position error (CE90) of the sensor model. More... | |
virtual const double & | getRelativePosError () const |
Returns the estimated RELATIVE horizontal position error (CE90) of the sensor model. More... | |
virtual void | setNominalPosError (const double &ce90) |
Assigns the absolute image position error uncertainty (abs CE90) More... | |
virtual void | setRelativePosError (const double &ce90) |
Assigns the relative image position error uncertainty (rel CE90) More... | |
virtual void | lineSampleToWorld (const ossimDpt &image_point, ossimGpt &world_point) const |
virtual void | worldToLineSample (const ossimGpt &world_point, ossimDpt &image_point) const |
void | setRefImgPt (const ossimDpt &pt) |
Sets the center line sampe of the image. More... | |
void | setRefGndPt (const ossimGpt &pt) |
Sets the center latitude, longitude, height of the image. More... | |
void | setImageRect (const ossimDrect &imageRect) |
void | setGroundRect (const ossimGpt &ul, const ossimGpt &ur, const ossimGpt &lr, const ossimGpt &ll) |
ossimDpt | imageSize () const |
void | setImageSize (const ossimDpt &size) |
virtual void | adjustableParametersChanged () |
virtual bool | insideImage (const ossimDpt &p) const |
virtual bool | operator== (const ossimProjection &proj) const |
const ossimString & | getImageID () const |
Access methods: More... | |
const ossimDrect & | getImageClipRect () const |
virtual ossim_uint32 | degreesOfFreedom () const |
virtual bool | needsInitialState () const |
needsInitialState() More... | |
virtual double | optimizeFit (const ossimTieGptSet &tieSet, double *targetVariance=0) |
virtual ossimDpt | getForwardDeriv (int parmIdx, const ossimGpt &gpos, double hdelta=1e-11) |
virtual ossimGpt | getInverseDeriv (int parmIdx, const ossimDpt &ipos, double hdelta=1e-11) |
virtual ossimSensorModel::CovMatStatus | getObsCovMat (const ossimDpt &ipos, NEWMAT::SymmetricMatrix &Cov, const ossim_float64 defPointingSigma=0.5) const |
Gives 2X2 covariance matrix of observations. More... | |
virtual bool | isAffectedByElevation () const |
Implementation of pure virtual ossimProjection::isAffectedByElevation method. More... | |
void | computeGsd () |
This method computes the ground sample distance(gsd) and sets class attributes theGSD and theMeanGSD by doing a lineSampleHeightToWorld on four points and calculating the distance from them. More... | |
virtual bool | getImageGeometry (const ossimString &, const ossimString &, ossimKeywordlist &) const |
Extracts geometry info from a non-ossim key,value pair to an ossim keyword list. More... | |
![]() | |
ossimProjection () | |
virtual | ~ossimProjection () |
virtual ossimDpt | forward (const ossimGpt &wp) const |
virtual ossimGpt | inverse (const ossimDpt &pp) const |
virtual void | getRoundTripError (const ossimDpt &imagePoint, ossimDpt &errorResult) const |
virtual void | getRoundTripError (const ossimGpt &groundPoint, ossimDpt &errorResult) const |
virtual void | getGroundClipPoints (ossimGeoPolygon &gpts) const |
virtual bool | isEqualTo (const ossimObject &obj, ossimCompareType compareType=OSSIM_COMPARE_FULL) const |
virtual bool | operator!= (const ossimProjection &projection) const |
![]() | |
ossimObject () | |
virtual | ~ossimObject () |
virtual ossimString | getShortName () const |
virtual ossimString | getLongName () const |
virtual ossimString | getDescription () const |
virtual ossimString | getClassName () const |
virtual RTTItypeid | getType () const |
virtual bool | canCastTo (ossimObject *obj) const |
virtual bool | canCastTo (const RTTItypeid &id) const |
virtual bool | canCastTo (const ossimString &parentClassName) const |
virtual void | accept (ossimVisitor &visitor) |
![]() | |
ossimReferenced () | |
ossimReferenced (const ossimReferenced &) | |
ossimReferenced & | operator= (const ossimReferenced &) |
void | ref () const |
increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
void | unref () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
void | unref_nodelete () const |
decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
int | referenceCount () const |
![]() | |
ossimErrorStatusInterface () | |
virtual | ~ossimErrorStatusInterface () |
virtual ossimErrorCode | getErrorStatus () const |
virtual ossimString | getErrorStatusString () const |
virtual void | setErrorStatus (ossimErrorCode error_status) const |
virtual void | setErrorStatus () const |
virtual void | clearErrorStatus () const |
bool | hasError () const |
![]() | |
ossimOptimizableProjection () | |
ossimOptimizableProjection (const ossimOptimizableProjection &source) | |
virtual | ~ossimOptimizableProjection () |
virtual ossimOptimizableProjection & | operator= (const ossimOptimizableProjection &source) |
![]() | |
ossimAdjustableParameterInterface () | |
ossimAdjustableParameterInterface (const ossimAdjustableParameterInterface &rhs) | |
virtual | ~ossimAdjustableParameterInterface () |
void | newAdjustment (ossim_uint32 numberOfParameters=0) |
void | setAdjustmentDescription (const ossimString &description) |
ossimString | getAdjustmentDescription () const |
ossimString | getAdjustmentDescription (ossim_uint32 adjustmentIdx) const |
Returns adjustmentDescription of specific adjustmentInfo. More... | |
void | setCurrentAdjustment (ossim_uint32 adjustmentIndex, bool notify=false) |
bool | setCurrentAdjustment (const ossimString &description, bool notify=false) |
Sets the current adjustment to the adjustment with a matching description. More... | |
void | eraseAdjustment (bool notify) |
void | eraseAdjustment (ossim_uint32 idx, bool notify) |
void | resetAdjustableParameters (bool notify=false) |
void | copyAdjustment (ossim_uint32 idx, bool notify) |
void | copyAdjustment (bool notify=false) |
void | keepAdjustment (ossim_uint32 idx, bool createCopy) |
virtual void | keepAdjustment (bool createCopy=true) |
const ossimAdjustableParameterInterface & | operator= (const ossimAdjustableParameterInterface &rhs) |
void | removeAllAdjustments () |
ossim_uint32 | getNumberOfAdjustableParameters () const |
double | getAdjustableParameter (ossim_uint32 idx) const |
virtual void | setAdjustableParameter (ossim_uint32 idx, double value, bool notify=false) |
virtual void | setAdjustableParameter (ossim_uint32 idx, double value, double sigma, bool notify=false) |
double | getParameterSigma (ossim_uint32 idx) const |
void | setParameterSigma (ossim_uint32 idx, double value, bool notify=false) |
ossimUnitType | getParameterUnit (ossim_uint32 idx) const |
void | setParameterUnit (ossim_uint32 idx, ossimUnitType unit) |
void | setParameterUnit (ossim_uint32 idx, const ossimString &unit) |
void | setParameterCenter (ossim_uint32 idx, double center, bool notify=false) |
double | getParameterCenter (ossim_uint32 idx) const |
double | computeParameterOffset (ossim_uint32 idx) const |
void | setParameterOffset (ossim_uint32 idx, ossim_float64 value, bool notify=false) |
ossimString | getParameterDescription (ossim_uint32 idx) const |
void | setParameterDescription (ossim_uint32 idx, const ossimString &descrption) |
ossim_int32 | findParameterIdxGivenDescription (ossim_uint32 adjustmentIdx, const ossimString &name) const |
ossim_int32 | findParameterIdxContainingDescription (ossim_uint32 adjustmentIdx, const ossimString &name) const |
bool | isParameterLocked (ossim_uint32 idx) const |
void | setParameterLockFlag (ossim_uint32 idxParam, bool flag) |
bool | getParameterLockFlag (ossim_uint32 idx) const |
void | lockAllParametersCurrentAdjustment () |
void | unlockAllParametersCurrentAdjustment () |
void | lockAllParameters (ossim_uint32 idxAdjustment) |
void | unlockAllParameters (ossim_uint32 idxAdjustment) |
void | resizeAdjustableParameterArray (ossim_uint32 numberOfParameters) |
void | setAdjustment (const ossimAdjustmentInfo &adj, bool notify=false) |
void | setAdjustment (ossim_uint32 idx, const ossimAdjustmentInfo &adj, bool notify=false) |
void | addAdjustment (const ossimAdjustmentInfo &adj, bool notify) |
void | getAdjustment (ossimAdjustmentInfo &adj) const |
void | getAdjustment (ossim_uint32 idx, ossimAdjustmentInfo &adj) const |
ossim_uint32 | getNumberOfAdjustments () const |
ossim_uint32 | getCurrentAdjustmentIdx () const |
void | setDirtyFlag (bool flag=true) |
void | setAllDirtyFlag (bool flag=true) |
bool | hasDirtyAdjustments () const |
virtual void | saveCurrentAdjustmentOnly (ossimKeywordlist &kwl, const ossimString &prefix=ossimString("")) |
Saves the current active adjustment to the KWL file. More... | |
bool | saveAdjustments (ossimKeywordlist &kwl, const ossimString &prefix=ossimString("")) const |
Save all adjustments to the KWL file. More... | |
bool | loadAdjustments (const ossimKeywordlist &kwl, const ossimString &prefix=ossimString("")) |
std::ostream & | print (std::ostream &out) const |
Dumps the currently active adjustment to ostream. More... | |
Static Public Member Functions | |
static void | writeGeomTemplate (ostream &os) |
![]() | |
static void | writeGeomTemplate (ostream &os) |
Protected Member Functions | |
void | initAdjustableParameters () |
void | loadGeometry (FILE *) |
void | loadSupportData () |
void | computeSatToOrbRotation (NEWMAT::Matrix &result, ossim_float64 t) const |
![]() | |
virtual | ~ossimSensorModel () |
virtual ossimDpt | extrapolate (const ossimGpt &gp) const |
virtual ossimGpt | extrapolate (const ossimDpt &ip, const double &height=ossim::nan()) const |
void | buildNormalEquation (const ossimTieGptSet &tieSet, NEWMAT::SymmetricMatrix &A, NEWMAT::ColumnVector &residue, NEWMAT::ColumnVector &projResidue, double pstep_scale) |
NEWMAT::ColumnVector | getResidue (const ossimTieGptSet &tieSet) |
NEWMAT::ColumnVector | solveLeastSquares (NEWMAT::SymmetricMatrix &A, NEWMAT::ColumnVector &r) const |
NEWMAT::Matrix | invert (const NEWMAT::Matrix &m) const |
stable invert stolen from ossimRpcSolver More... | |
![]() | |
virtual | ~ossimReferenced () |
![]() | |
bool | paramChanged (ossim_uint32 param_idx) const |
Returns true if specified parameter has been modified since last setAllChangeFlag(false) call. More... | |
void | setAllChangeFlags (bool areChanged) |
Sets all the change flags to the boolean indicated to indicate parameters are changed (TRUE) or not (FALSE). More... | |
void | initChangeFlags () |
Initializes the change flags to TRUE. More... | |
Definition at line 31 of file ossimSpot5Model.h.
Enumerator | |
---|---|
ROLL_OFFSET | |
PITCH_OFFSET | |
YAW_OFFSET | |
ROLL_RATE | |
PITCH_RATE | |
YAW_RATE | |
FOCAL_LEN_OFFSET | |
NUM_ADJUSTABLE_PARAMS |
Definition at line 45 of file ossimSpot5Model.h.
ossimSpot5Model::ossimSpot5Model | ( | ) |
CONSTRUCTORS:
Definition at line 68 of file ossimSpot5Model.cpp.
References initAdjustableParameters().
Referenced by dup().
ossimSpot5Model::ossimSpot5Model | ( | ossimSpotDimapSupportData * | sd | ) |
Definition at line 92 of file ossimSpot5Model.cpp.
ossimSpot5Model::ossimSpot5Model | ( | const ossimFilename & | init_file | ) |
ossimSpot5Model::ossimSpot5Model | ( | const ossimKeywordlist & | geom_kwl | ) |
ossimSpot5Model::ossimSpot5Model | ( | const ossimSpot5Model & | rhs | ) |
Definition at line 147 of file ossimSpot5Model.cpp.
References ossimSpotDimapSupportData::dup(), loadSupportData(), theSupportData, updateModel(), and ossimRefPtr< T >::valid().
|
virtual |
Definition at line 138 of file ossimSpot5Model.cpp.
|
protected |
Definition at line 159 of file ossimSpot5Model.cpp.
|
virtual |
Returns pointer to a new instance, copy of this. Not implemented yet! Returns NULL...
Implements ossimProjection.
Definition at line 443 of file ossimSpot5Model.cpp.
References ossimSpot5Model().
|
virtual |
Given an image point, returns a ray originating at some arbitrarily high point (ideally at the sensor position) and pointing towards the target.
Reimplemented from ossimSensorModel.
Definition at line 527 of file ossimSpot5Model.cpp.
References ossimDpt::line, ossimDpt::samp, theLineSamplingPeriod, theRefImagingTime, theRefImagingTimeLine, and theSpotSubImageOffset.
|
protectedvirtual |
Sets adjustables to default values.
Reimplemented from ossimAdjustableParameterInterface.
Definition at line 310 of file ossimSpot5Model.cpp.
Referenced by ossimSpot5Model().
bool ossimSpot5Model::initFromMetadata | ( | ossimSpotDimapSupportData * | sd | ) |
uses file path to init model
Definition at line 751 of file ossimSpot5Model.cpp.
References ossimErrorStatusInterface::getErrorStatus(), loadSupportData(), ossimErrorCodes::OSSIM_OK, theFocalLenOffset, theIllumAzimuth, theIllumElevation, theLineSamplingPeriod, theMetaDataFile, thePitchOffset, thePitchRate, thePositionError, theRefImagingTime, theRollOffset, theRollRate, theSupportData, theYawOffset, and theYawRate.
Referenced by setupOptimizer().
|
virtual |
Given an image point and height, initializes worldPoint.
Implements ossimSensorModel.
Definition at line 643 of file ossimSpot5Model.cpp.
References ossimSensorModel::extrapolate(), FLT_EPSILON, ossimProjection::lineSampleToWorld(), ossimDrect::pointWithin(), ossimSensorModel::theImageClipRect, ossimSensorModel::theSeedFunction, and ossimRefPtr< T >::valid().
|
protected |
|
virtual |
Method to the load (recreate) the state of the object from a keyword list. Return true if ok or false on error.
Reimplemented from ossimSensorModel.
Definition at line 499 of file ossimSpot5Model.cpp.
References ossimErrorStatusInterface::getErrorStatus(), ossimSpotDimapSupportData::loadState(), ossimSensorModel::loadState(), loadSupportData(), ossimErrorCodes::OSSIM_OK, theSupportData, and updateModel().
Referenced by setupOptimizer().
|
protected |
Definition at line 335 of file ossimSpot5Model.cpp.
Referenced by initFromMetadata(), loadState(), and ossimSpot5Model().
|
virtual |
Extends base-class implementation. Dumps contents of object to ostream.
Reimplemented from ossimSensorModel.
Definition at line 448 of file ossimSpot5Model.cpp.
References ossimSensorModel::print(), theFocalLenOffset, theIllumAzimuth, theIllumElevation, ossimSensorModel::theImageID, ossimSensorModel::theImageSize, theLineSamplingPeriod, theMetaDataFile, thePitchOffset, thePitchRate, thePositionError, ossimSensorModel::theRefGndPt, theRefImagingTime, theRefImagingTimeLine, ossimSensorModel::theRefImgPt, theRollOffset, theRollRate, theYawOffset, and theYawRate.
|
virtual |
Fulfills ossimObject base-class pure virtuals. Loads and saves geometry KWL files. Returns true if successful.
Reimplemented from ossimSensorModel.
Definition at line 483 of file ossimSpot5Model.cpp.
References ossimSpotDimapSupportData::saveState(), ossimSensorModel::saveState(), theSupportData, and ossimRefPtr< T >::valid().
|
virtual |
image to ground faster
Reimplemented from ossimOptimizableProjection.
Definition at line 700 of file ossimSpot5Model.cpp.
References ossimKeywordlist::addFile(), ossimString::c_str(), ossimFilename::dirCat(), ossimFilename::exists(), ossimRefPtr< T >::get(), ossimErrorStatusInterface::getErrorStatus(), initFromMetadata(), loadState(), ossimSpotDimapSupportData::loadXmlFile(), ossimFilename::path(), and ossimFilename::setExtension().
|
virtual |
Following a change to the adjustable parameter set, this virtual is called to permit instances to compute derived quantities after parameter change.
Reimplemented from ossimSensorModel.
Definition at line 259 of file ossimSpot5Model.cpp.
References ossimErrorStatusInterface::clearErrorStatus().
Referenced by loadState(), and ossimSpot5Model().
|
inlinevirtual |
Implements ossimOptimizableProjection.
Definition at line 108 of file ossimSpot5Model.h.
|
static |
Writes a template of geom keywords processed by loadState and saveState to output stream.
|
protected |
Definition at line 156 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), and print().
|
protected |
Definition at line 134 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), and print().
|
protected |
Definition at line 135 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), and print().
|
protected |
Definition at line 142 of file ossimSpot5Model.h.
Referenced by imagingRay(), initFromMetadata(), and print().
|
protected |
Definition at line 133 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), and print().
|
protected |
Definition at line 151 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), and print().
|
protected |
Definition at line 154 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), and print().
|
protected |
Definition at line 136 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), and print().
|
protected |
Definition at line 137 of file ossimSpot5Model.h.
Referenced by imagingRay(), initFromMetadata(), and print().
|
protected |
relative to full image
Definition at line 140 of file ossimSpot5Model.h.
Referenced by imagingRay(), and print().
|
protected |
Definition at line 150 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), and print().
|
protected |
Definition at line 153 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), and print().
|
protected |
Definition at line 143 of file ossimSpot5Model.h.
Referenced by imagingRay().
|
protected |
Definition at line 128 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), loadState(), ossimSpot5Model(), and saveState().
|
protected |
Definition at line 152 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), and print().
|
protected |
Definition at line 155 of file ossimSpot5Model.h.
Referenced by initFromMetadata(), and print().