/usr/include/ossim/projection/ossimLandSatModel.h is in libossim-dev 1.7.21-3ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 | //*******************************************************************
//
// License: See top level LICENSE.txt file.
//
// DESCRIPTION: Contains declaration of LandSat sensor model class.
//
// SOFTWARE HISTORY:
// 01AUG2002 Oscar Kramer, ImageLinks
// Initial coding.
// 21NOV2002 Oscar Kramer, ImageLinks
// Modified selection of adjustable parameters..
//
//*****************************************************************************
// $Id: ossimLandSatModel.h 14049 2009-03-03 02:25:27Z gpotts $
#ifndef ossimLandSatModel_HEADER
#define ossimLandSatModel_HEADER
#include <ossim/projection/ossimSensorModel.h>
#include <ossim/projection/ossimMapProjection.h>
#include <ossim/base/ossimIpt.h>
#include <ossim/base/ossimFilename.h>
#include <ossim/base/ossimGpt.h>
#include <ossim/base/ossimDpt.h>
#include <ossim/base/ossimEcefRay.h>
#include <ossim/base/ossimEcefPoint.h>
#include <ossim/base/ossimMatrix3x3.h>
#include <iostream>
class ossimFfL7;
class ossimString;
class ossimMapProjection;
//******************************************************************************
//*
//* CLASS: ossimLandSatModel
//*
//*******************************************************************************
class OSSIMDLLEXPORT ossimLandSatModel : public ossimSensorModel
{
public:
/*!
* CONSTRUCTORS:
*/
ossimLandSatModel();
ossimLandSatModel(const ossimFfL7& head);
ossimLandSatModel(const ossimFilename& init_file);
ossimLandSatModel(const ossimKeywordlist& geom_kwl);
ossimLandSatModel(const ossimLandSatModel& rhs);
virtual ossimObject* dup()const;
virtual ~ossimLandSatModel();
enum ProjectionType
{
UNKNOWN_PROJECTION = 0,
UTM_MAP,
UTM_ORBIT,
SOM_MAP,
SOM_ORBIT
};
enum AdjustParamIndex
{
INTRACK_OFFSET = 0,
CRTRACK_OFFSET,
LINE_GSD_CORR,
SAMP_GSD_CORR,
ROLL_OFFSET,
YAW_OFFSET,
YAW_RATE,
MAP_ROTATION,
NUM_ADJUSTABLE_PARAMS // not an index
};
/*!
* Extends base-class implementation. Dumps contents of object to ostream.
*/
virtual std::ostream& print(std::ostream& out) const;
/*!
* Fulfills ossimObject base-class pure virtuals. Loads and saves geometry
* KWL files. Returns true if successful.
*/
virtual bool saveState(ossimKeywordlist& kwl,
const char* prefix=0) const;
virtual bool loadState(const ossimKeywordlist& kwl,
const char* prefix=0);
/*!
* Writes a template of geom keywords processed by loadState and saveState
* to output stream.
*/
static void writeGeomTemplate(ostream& os);
//***
// Overrides base class pure virtual.
//***
virtual void lineSampleHeightToWorld(const ossimDpt& image_point,
const double& heightEllipsoid,
ossimGpt& worldPoint) const;
/*!
* Given an image point, returns a ray originating at some arbitrarily high
* point (ideally at the sensor position) and pointing towards the target.
*/
virtual void imagingRay(const ossimDpt& image_point,
ossimEcefRay& image_ray) const;
/*!
* Following a change to the adjustable parameter set, this virtual
* is called to permit instances to compute derived quantities after
* parameter change.
*/
virtual void updateModel();
/*!
* ossimOptimizableProjection
*/
inline virtual bool useForward()const {return false;} //!image to ground faster
virtual bool setupOptimizer(const ossimString& init_file); //!uses file path to init model
protected:
/*!
* Initializes the model given a fast format header.
*/
void initFromHeader(const ossimFfL7& head);
virtual void initAdjustableParameters();
void initMapProjection();
//***
// Image constant parameters:
//***
double theIllumAzimuth;
double theIllumElevation;
double theOrbitAltitude;
double theOrbitInclination;
int theMapZone;
ossimDpt theMapOffset;
int theWrsPathNumber;
int theWrsRowNumber;
double theMeridianalAngle;
double thePositionError;
ProjectionType theProjectionType;
ossimRefPtr<ossimMapProjection> theMapProjection;
double theMapAzimAngle;
double theMapAzimCos;
double theMapAzimSin;
double theMap2IcRotAngle;
double theMap2IcRotCos;
double theMap2IcRotSin;
//***
// Adjustable parameters:
//***
double theIntrackOffset;
double theCrtrackOffset;
double theLineGsdCorr;
double theSampGsdCorr;
double theRollOffset;
double theYawOffset;
double theYawRate;
double theMapRotation;
//***
// Quantities derived from the adjustable parameters:
//***
NEWMAT::Matrix theRollRotMat;
TYPE_DATA
};
#endif
|