Isis 3 Programmer Reference
CameraFocalPlaneMap.h
1 #ifndef CameraFocalPlaneMap_h
2 #define CameraFocalPlaneMap_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 template<class T> class QVector;
11 
12 namespace Isis {
13 
14  class Affine;
15  class Camera;
86  public:
87  CameraFocalPlaneMap(Camera *parent, const int naifIkCode);
88  CameraFocalPlaneMap(const int naifIkCode);
89  CameraFocalPlaneMap(Camera *parent, Affine &affine);
90  virtual ~CameraFocalPlaneMap();
91 
92  virtual bool SetDetector(const double sample, const double line);
93  virtual bool SetFocalPlane(const double dx, const double dy);
94 
95  double FocalPlaneX() const;
96  double FocalPlaneY() const;
97  double DetectorSample() const;
98  double DetectorLine() const;
99  double CenteredDetectorSample() const;
100  double CenteredDetectorLine() const;
101  void SetDetectorOrigin(const double sample, const double line);
102  double DetectorLineOrigin() const;
103  double DetectorSampleOrigin() const;
104  void SetDetectorOffset(const double sampleOffset,
105  const double lineOffset);
106  double DetectorLineOffset() const;
107  double DetectorSampleOffset() const;
108 
109  void SetTransL(const QVector<double> transL);
110  void SetTransS(const QVector<double> transS);
111  void SetTransX(const QVector<double> transX);
112  void SetTransY(const QVector<double> transY);
113 
114  const double *TransL() const;
115  const double *TransS() const;
116  const double *TransX() const;
117  const double *TransY() const;
118 
124  Sample = 1,
125  Line = 2
126  };
127 
128 // FocalPlaneXDependencyType FocalPlaneXDependency();
129  int FocalPlaneXDependency();
130  double SignMostSigX();
131  double SignMostSigY();
132 
133  protected:
134  void ComputeCentered();
135  void ComputeUncentered();
136 
138 
141 
142  double p_focalPlaneX;
143  double p_focalPlaneY;
144  double p_detectorLine;
148 
151 
152  double p_transx[3];
153  double p_transy[3];
154  double p_itranss[3];
155  double p_itransl[3];
156 
157  private:
158  void Init(Camera *parent, const int naifIkCode);
159  };
160 };
161 #endif
Isis::CameraFocalPlaneMap::FocalPlaneXDependencyType
FocalPlaneXDependencyType
Focal plane x dependency indicates whether the x value of the focal plane coordinate maps to a sample...
Definition: CameraFocalPlaneMap.h:123
Isis::CameraFocalPlaneMap::SetDetectorOrigin
void SetDetectorOrigin(const double sample, const double line)
Set the detector origin.
Definition: CameraFocalPlaneMap.cpp:293
Isis::CameraFocalPlaneMap::SetTransS
void SetTransS(const QVector< double > transS)
Set the affine coefficients for converting destorted (x,y) to a detector Sample.
Definition: CameraFocalPlaneMap.cpp:364
Isis::CameraFocalPlaneMap::DetectorSampleOffset
double DetectorSampleOffset() const
Definition: CameraFocalPlaneMap.cpp:342
Isis::CameraFocalPlaneMap::FocalPlaneY
double FocalPlaneY() const
Definition: CameraFocalPlaneMap.cpp:247
Isis::CameraFocalPlaneMap::p_focalPlaneY
double p_focalPlaneY
y value of focal plane coordinate
Definition: CameraFocalPlaneMap.h:143
Isis::CameraFocalPlaneMap::p_detectorLineOffset
double p_detectorLineOffset
Offset of the detector origin line from the average.
Definition: CameraFocalPlaneMap.h:149
Isis::CameraFocalPlaneMap::p_detectorLineOrigin
double p_detectorLineOrigin
The origin line of the detector.
Definition: CameraFocalPlaneMap.h:139
Isis::CameraFocalPlaneMap::SetTransX
void SetTransX(const QVector< double > transX)
Set the affine coefficients for converting detector (sample,line) to a distorted X.
Definition: CameraFocalPlaneMap.cpp:376
Isis::CameraFocalPlaneMap::Init
void Init(Camera *parent, const int naifIkCode)
Initialize the focal plane map to its default state.
Definition: CameraFocalPlaneMap.cpp:92
Isis::CameraFocalPlaneMap::CameraFocalPlaneMap
CameraFocalPlaneMap(Camera *parent, const int naifIkCode)
Construct mapping between detectors and focal plane x/y.
Definition: CameraFocalPlaneMap.cpp:25
Isis::CameraFocalPlaneMap::SignMostSigX
double SignMostSigX()
Return the sign of the p_transx coefficient with the greatest magnitude.
Definition: CameraFocalPlaneMap.cpp:201
Isis::CameraFocalPlaneMap::p_camera
Camera * p_camera
Camera of the image.
Definition: CameraFocalPlaneMap.h:137
Isis::CameraFocalPlaneMap::DetectorLine
double DetectorLine() const
Definition: CameraFocalPlaneMap.cpp:263
Isis::CameraFocalPlaneMap::SetDetectorOffset
void SetDetectorOffset(const double sampleOffset, const double lineOffset)
Set the detector offset.
Definition: CameraFocalPlaneMap.cpp:324
Isis::CameraFocalPlaneMap::ComputeCentered
void ComputeCentered()
Convenience method to center detector origin (use when inheriting)
Definition: CameraFocalPlaneMap.cpp:428
Isis::CameraFocalPlaneMap::p_itransl
double p_itransl[3]
The y transition from distorted to detector.
Definition: CameraFocalPlaneMap.h:155
Isis::CameraFocalPlaneMap::ComputeUncentered
void ComputeUncentered()
Convenience method to center detector origin (use when inheriting)
Definition: CameraFocalPlaneMap.cpp:435
Isis::CameraFocalPlaneMap::p_detectorLine
double p_detectorLine
line value of the detector
Definition: CameraFocalPlaneMap.h:144
Isis::Camera
Definition: Camera.h:236
Isis::CameraFocalPlaneMap::DetectorSampleOrigin
double DetectorSampleOrigin() const
Definition: CameraFocalPlaneMap.cpp:310
Isis::CameraFocalPlaneMap::p_centeredDetectorSample
double p_centeredDetectorSample
Detector sample position.
Definition: CameraFocalPlaneMap.h:146
Isis::CameraFocalPlaneMap::DetectorSample
double DetectorSample() const
Definition: CameraFocalPlaneMap.cpp:255
Isis::CameraFocalPlaneMap::TransX
const double * TransX() const
Definition: CameraFocalPlaneMap.cpp:398
Isis::CameraFocalPlaneMap::CenteredDetectorLine
double CenteredDetectorLine() const
Definition: CameraFocalPlaneMap.cpp:279
Isis::CameraFocalPlaneMap::FocalPlaneXDependency
int FocalPlaneXDependency()
Return the focal plane x dependency variable.
Definition: CameraFocalPlaneMap.cpp:182
Isis::CameraFocalPlaneMap::p_detectorSample
double p_detectorSample
sample value of the detector
Definition: CameraFocalPlaneMap.h:145
Isis::CameraFocalPlaneMap::DetectorLineOffset
double DetectorLineOffset() const
Definition: CameraFocalPlaneMap.cpp:334
Isis::CameraFocalPlaneMap::p_detectorSampleOffset
double p_detectorSampleOffset
offset of the detector origin sample from the average
Definition: CameraFocalPlaneMap.h:150
Isis::CameraFocalPlaneMap::DetectorLineOrigin
double DetectorLineOrigin() const
Definition: CameraFocalPlaneMap.cpp:302
Isis::CameraFocalPlaneMap::TransL
const double * TransL() const
Definition: CameraFocalPlaneMap.cpp:422
Isis::CameraFocalPlaneMap::SetFocalPlane
virtual bool SetFocalPlane(const double dx, const double dy)
Compute detector position (sample,line) from focal plane coordinates.
Definition: CameraFocalPlaneMap.cpp:143
Isis::CameraFocalPlaneMap::Line
@ Line
The x value of the focal plane maps to a line.
Definition: CameraFocalPlaneMap.h:125
Isis::CameraFocalPlaneMap::p_centeredDetectorLine
double p_centeredDetectorLine
Detector line position.
Definition: CameraFocalPlaneMap.h:147
Isis::CameraFocalPlaneMap::p_transx
double p_transx[3]
The x transition from detector to distorted.
Definition: CameraFocalPlaneMap.h:152
Isis::CameraFocalPlaneMap::TransY
const double * TransY() const
Definition: CameraFocalPlaneMap.cpp:406
Isis::CameraFocalPlaneMap::SetTransY
void SetTransY(const QVector< double > transY)
Set the affine coefficients for converting detector (sample,line) to a distorted Y.
Definition: CameraFocalPlaneMap.cpp:388
Isis::CameraFocalPlaneMap::~CameraFocalPlaneMap
virtual ~CameraFocalPlaneMap()
Destructor.
Definition: CameraFocalPlaneMap.cpp:82
Isis::CameraFocalPlaneMap::CenteredDetectorSample
double CenteredDetectorSample() const
Definition: CameraFocalPlaneMap.cpp:271
Isis::CameraFocalPlaneMap::p_detectorSampleOrigin
double p_detectorSampleOrigin
The origin sample of the detector.
Definition: CameraFocalPlaneMap.h:140
Isis::CameraFocalPlaneMap::TransS
const double * TransS() const
Definition: CameraFocalPlaneMap.cpp:414
Isis::CameraFocalPlaneMap::Sample
@ Sample
The x value of the focal plane maps to a sample.
Definition: CameraFocalPlaneMap.h:124
Isis::CameraFocalPlaneMap::p_transy
double p_transy[3]
The y transition from detector to distorted.
Definition: CameraFocalPlaneMap.h:153
Isis::CameraFocalPlaneMap::FocalPlaneX
double FocalPlaneX() const
Definition: CameraFocalPlaneMap.cpp:239
Isis::CameraFocalPlaneMap
Convert between distorted focal plane and detector coordinates.
Definition: CameraFocalPlaneMap.h:85
Isis::CameraFocalPlaneMap::SetDetector
virtual bool SetDetector(const double sample, const double line)
Compute distorted focal plane coordinate from detector position (sampel,line)
Definition: CameraFocalPlaneMap.cpp:164
Isis::Affine
Affine basis function.
Definition: Affine.h:65
Isis::CameraFocalPlaneMap::SetTransL
void SetTransL(const QVector< double > transL)
Set the affine coefficients for converting destorted (x,y) to a detector Line.
Definition: CameraFocalPlaneMap.cpp:352
Isis::CameraFocalPlaneMap::SignMostSigY
double SignMostSigY()
Return the sign of the p_transy coefficient with the greatest magnitude.
Definition: CameraFocalPlaneMap.cpp:223
Isis::CameraFocalPlaneMap::p_focalPlaneX
double p_focalPlaneX
x value of focal plane coordinate
Definition: CameraFocalPlaneMap.h:142
QVector
This is free and unencumbered software released into the public domain.
Definition: Calculator.h:18
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::CameraFocalPlaneMap::p_itranss
double p_itranss[3]
The x transition from distorted to detector.
Definition: CameraFocalPlaneMap.h:154