Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

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