1 #ifndef CameraFocalPlaneMap_h
2 #define CameraFocalPlaneMap_h
26 template<
class T>
class QVector;
107 virtual bool SetDetector(
const double sample,
const double line);
108 virtual bool SetFocalPlane(
const double dx,
const double dy);
120 const double lineOffset);
129 const double *
TransL()
const;
130 const double *
TransS()
const;
131 const double *
TransX()
const;
132 const double *
TransY()
const;
154 double p_detectorLineOrigin;
155 double p_detectorSampleOrigin;
161 double p_centeredDetectorSample;
162 double p_centeredDetectorLine;
164 double p_detectorLineOffset;
165 double p_detectorSampleOffset;
173 void Init(
Camera *parent,
const int naifIkCode);
double p_detectorLine
line value of the detector
const double * TransY() const
Return the affine coefficients for converting detector (sample,line) to distorted Y...
void SetTransY(const QVector< double > transY)
Set the affine coefficients for converting detector (sample,line) to a distorted Y.
void SetDetectorOffset(const double sampleOffset, const double lineOffset)
Set the detector offset.
virtual bool SetFocalPlane(const double dx, const double dy)
Compute detector position (sample,line) from focal plane coordinates.
virtual ~CameraFocalPlaneMap()
Destructor.
const double * TransS() const
Return the affine coefficients for converting distorted (x,y) to a detector Sample.
void ComputeCentered()
Convenience method to center detector origin (use when inheriting)
void SetTransL(const QVector< double > transL)
Set the affine coefficients for converting destorted (x,y) to a detector Line.
double p_focalPlaneX
x value of focal plane coordinate
The x value of the focal plane maps to a sample.
double DetectorLineOffset() const
Return detector line offset.
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
virtual bool SetDetector(const double sample, const double line)
Compute distorted focal plane coordinate from detector position (sampel,line)
double p_focalPlaneY
y value of focal plane coordinate
double DetectorLine() const
Return detector line.
double DetectorSample() const
Return detector sample.
double SignMostSigX()
Return the sign of the p_transx coefficient with the greatest magnitude.
double DetectorSampleOrigin() const
Return detector sample origin.
double SignMostSigY()
Return the sign of the p_transy coefficient with the greatest magnitude.
Convert between distorted focal plane and detector coordinates.
void SetTransX(const QVector< double > transX)
Set the affine coefficients for converting detector (sample,line) to a distorted X.
void SetTransS(const QVector< double > transS)
Set the affine coefficients for converting destorted (x,y) to a detector Sample.
void ComputeUncentered()
Convenience method to center detector origin (use when inheriting)
const double * TransL() const
Return the affine coefficients for converting distorted (x,y) to a detector Line. ...
void Init(Camera *parent, const int naifIkCode)
Initialize the focal plane map to its default state.
double CenteredDetectorLine() const
Return centered detector line.
CameraFocalPlaneMap(Camera *parent, const int naifIkCode)
Construct mapping between detectors and focal plane x/y.
FocalPlaneXDependencyType
Focal plane x dependency indicates whether the x value of the focal plane coordinate maps to a sample...
double DetectorSampleOffset() const
Return detector sample offset.
double CenteredDetectorSample() const
Return centered detector sample.
const double * TransX() const
Return the affine coefficients for converting detector (sample,line) to a distorted X...
double FocalPlaneY() const
Return distorted focal plane y.
double DetectorLineOrigin() const
Return detector line origin.
double FocalPlaneX() const
Return distorted focal plane x.
double p_detectorSample
sample value of the detector
The x value of the focal plane maps to a line.
int FocalPlaneXDependency()
Return the focal plane x dependency variable.