Isis 3 Developer Reference
CameraFocalPlaneMap.h
Go to the documentation of this file.
1 #ifndef CameraFocalPlaneMap_h
2 #define CameraFocalPlaneMap_h
3 
26 template<class T> class QVector;
27 
28 namespace Isis {
29 
30  class Affine;
31  class Camera;
102  public:
103  CameraFocalPlaneMap(Camera *parent, const int naifIkCode);
104  CameraFocalPlaneMap(const int naifIkCode);
105  CameraFocalPlaneMap(Camera *parent, Affine &affine);
106  virtual ~CameraFocalPlaneMap();
107 
108  virtual bool SetDetector(const double sample, const double line);
109  virtual bool SetFocalPlane(const double dx, const double dy);
110 
111  double FocalPlaneX() const;
112  double FocalPlaneY() const;
113  double DetectorSample() const;
114  double DetectorLine() const;
115  double CenteredDetectorSample() const;
116  double CenteredDetectorLine() const;
117  void SetDetectorOrigin(const double sample, const double line);
118  double DetectorLineOrigin() const;
119  double DetectorSampleOrigin() const;
120  void SetDetectorOffset(const double sampleOffset,
121  const double lineOffset);
122  double DetectorLineOffset() const;
123  double DetectorSampleOffset() const;
124 
125  void SetTransL(const QVector<double> transL);
126  void SetTransS(const QVector<double> transS);
127  void SetTransX(const QVector<double> transX);
128  void SetTransY(const QVector<double> transY);
129 
130  const double *TransL() const;
131  const double *TransS() const;
132  const double *TransX() const;
133  const double *TransY() const;
134 
140  Sample = 1,
141  Line = 2
142  };
143 
144 // FocalPlaneXDependencyType FocalPlaneXDependency();
145  int FocalPlaneXDependency();
146  double SignMostSigX();
147  double SignMostSigY();
148 
149  protected:
150  void ComputeCentered();
151  void ComputeUncentered();
152 
154 
157 
158  double p_focalPlaneX;
159  double p_focalPlaneY;
160  double p_detectorLine;
164 
167 
168  double p_transx[3];
169  double p_transy[3];
170  double p_itranss[3];
171  double p_itransl[3];
172 
173  private:
174  void Init(Camera *parent, const int naifIkCode);
175  };
176 };
177 #endif
double p_detectorLine
line value of the detector
Definition: CameraFocalPlaneMap.h:160
double p_detectorSampleOrigin
The origin sample of the detector.
Definition: CameraFocalPlaneMap.h:156
const double * TransX() const
Definition: CameraFocalPlaneMap.cpp:414
double DetectorSample() const
Definition: CameraFocalPlaneMap.cpp:271
void SetTransY(const QVector< double > transY)
Set the affine coefficients for converting detector (sample,line) to a distorted Y.
Definition: CameraFocalPlaneMap.cpp:404
void SetDetectorOffset(const double sampleOffset, const double lineOffset)
Set the detector offset.
Definition: CameraFocalPlaneMap.cpp:340
double CenteredDetectorSample() const
Definition: CameraFocalPlaneMap.cpp:287
double FocalPlaneX() const
Definition: CameraFocalPlaneMap.cpp:255
virtual bool SetFocalPlane(const double dx, const double dy)
Compute detector position (sample,line) from focal plane coordinates.
Definition: CameraFocalPlaneMap.cpp:159
virtual ~CameraFocalPlaneMap()
Destructor.
Definition: CameraFocalPlaneMap.cpp:98
void ComputeCentered()
Convenience method to center detector origin (use when inheriting)
Definition: CameraFocalPlaneMap.cpp:444
void SetTransL(const QVector< double > transL)
Set the affine coefficients for converting destorted (x,y) to a detector Line.
Definition: CameraFocalPlaneMap.cpp:368
double p_focalPlaneX
x value of focal plane coordinate
Definition: CameraFocalPlaneMap.h:158
The x value of the focal plane maps to a sample.
Definition: CameraFocalPlaneMap.h:140
double p_itranss[3]
The x transition from distorted to detector.
Definition: CameraFocalPlaneMap.h:170
double CenteredDetectorLine() const
Definition: CameraFocalPlaneMap.cpp:295
double p_transx[3]
The x transition from detector to distorted.
Definition: CameraFocalPlaneMap.h:168
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
Definition: CameraFocalPlaneMap.cpp:309
virtual bool SetDetector(const double sample, const double line)
Compute distorted focal plane coordinate from detector position (sampel,line)
Definition: CameraFocalPlaneMap.cpp:180
double p_focalPlaneY
y value of focal plane coordinate
Definition: CameraFocalPlaneMap.h:159
const double * TransS() const
Definition: CameraFocalPlaneMap.cpp:430
Definition: Camera.h:249
double SignMostSigX()
Return the sign of the p_transx coefficient with the greatest magnitude.
Definition: CameraFocalPlaneMap.cpp:217
double DetectorSampleOffset() const
Definition: CameraFocalPlaneMap.cpp:358
double SignMostSigY()
Return the sign of the p_transy coefficient with the greatest magnitude.
Definition: CameraFocalPlaneMap.cpp:239
Convert between distorted focal plane and detector coordinates.
Definition: CameraFocalPlaneMap.h:101
Affine basis function.
Definition: Affine.h:80
double p_detectorLineOffset
Offset of the detector origin line from the average.
Definition: CameraFocalPlaneMap.h:165
void SetTransX(const QVector< double > transX)
Set the affine coefficients for converting detector (sample,line) to a distorted X.
Definition: CameraFocalPlaneMap.cpp:392
void SetTransS(const QVector< double > transS)
Set the affine coefficients for converting destorted (x,y) to a detector Sample.
Definition: CameraFocalPlaneMap.cpp:380
void ComputeUncentered()
Convenience method to center detector origin (use when inheriting)
Definition: CameraFocalPlaneMap.cpp:451
CameraFocalPlaneMap(Camera *parent, const int naifIkCode)
Construct mapping between detectors and focal plane x/y.
Definition: CameraFocalPlaneMap.cpp:41
double p_detectorSampleOffset
offset of the detector origin sample from the average
Definition: CameraFocalPlaneMap.h:166
FocalPlaneXDependencyType
Focal plane x dependency indicates whether the x value of the focal plane coordinate maps to a sample...
Definition: CameraFocalPlaneMap.h:139
double DetectorSampleOrigin() const
Definition: CameraFocalPlaneMap.cpp:326
double FocalPlaneY() const
Definition: CameraFocalPlaneMap.cpp:263
const double * TransL() const
Definition: CameraFocalPlaneMap.cpp:438
Definition: Calculator.h:33
double DetectorLine() const
Definition: CameraFocalPlaneMap.cpp:279
double DetectorLineOffset() const
Definition: CameraFocalPlaneMap.cpp:350
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
double p_centeredDetectorSample
Detector sample position.
Definition: CameraFocalPlaneMap.h:162
double p_detectorLineOrigin
The origin line of the detector.
Definition: CameraFocalPlaneMap.h:155
double p_centeredDetectorLine
Detector line position.
Definition: CameraFocalPlaneMap.h:163
const double * TransY() const
Definition: CameraFocalPlaneMap.cpp:422
double p_detectorSample
sample value of the detector
Definition: CameraFocalPlaneMap.h:161
The x value of the focal plane maps to a line.
Definition: CameraFocalPlaneMap.h:141
Camera * p_camera
Camera of the image.
Definition: CameraFocalPlaneMap.h:153
double p_itransl[3]
The y transition from distorted to detector.
Definition: CameraFocalPlaneMap.h:171
double DetectorLineOrigin() const
Definition: CameraFocalPlaneMap.cpp:318
double p_transy[3]
The y transition from detector to distorted.
Definition: CameraFocalPlaneMap.h:169
int FocalPlaneXDependency()
Return the focal plane x dependency variable.
Definition: CameraFocalPlaneMap.cpp:198