Isis Developer Reference
RollingShutterCameraDetectorMap.h
Go to the documentation of this file.
1 #ifndef RollingShutterCameraDetectorMap_h
2 #define RollingShutterCameraDetectorMap_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include "CameraDetectorMap.h"
11 
12 #include <utility>
13 #include <vector>
14 
15 namespace Isis {
16  class Camera;
17 
30  public:
31 
33  std::vector<double> times,
34  std::vector<double> sampleCoeffs,
35  std::vector<double> lineCoeffs);
36 
38 
39  virtual bool SetParent(const double sample,
40  const double line);
41 
42  virtual bool SetParent(const double sample,
43  const double line,
44  const double deltaT);
45 
46  virtual bool SetDetector(const double sample,
47  const double line);
48 
49  std::pair<double, double> applyJitter(const double sample,
50  const double line);
51  std::pair<double, double> removeJitter(const double sample,
52  const double line);
53 
54  private:
55 
57  std::vector<double> m_times;
62  std::vector<double> m_sampleCoeffs;
67  std::vector<double> m_lineCoeffs;
68  };
69 };
70 #endif
Isis::Spice::time
iTime time() const
Returns the ephemeris time in seconds which was used to obtain the spacecraft and sun positions.
Definition: Spice.cpp:884
Isis::RollingShutterCameraDetectorMap::SetParent
virtual bool SetParent(const double sample, const double line)
Compute detector position from a parent image coordinate.
Definition: RollingShutterCameraDetectorMap.cpp:55
Isis::CameraDetectorMap::p_parentLine
double p_parentLine
The parent line calculated from the detector.
Definition: CameraDetectorMap.h:141
Isis::CameraDetectorMap
Convert between parent image coordinates and detector coordinates.
Definition: CameraDetectorMap.h:47
Isis::IException::Unknown
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
RollingShutterCameraDetectorMap.h
CameraDetectorMap.h
Isis::CameraDetectorMap::p_parentSample
double p_parentSample
The parent sample calculated from the detector.
Definition: CameraDetectorMap.h:140
Isis::Camera
Definition: Camera.h:236
Isis::CameraDetectorMap::p_detectorLineSumming
double p_detectorLineSumming
The scaling factor for computing line resolution.
Definition: CameraDetectorMap.h:146
Isis::RollingShutterCameraDetectorMap::~RollingShutterCameraDetectorMap
virtual ~RollingShutterCameraDetectorMap()
Destructor.
Definition: RollingShutterCameraDetectorMap.cpp:39
Isis::CameraDetectorMap::p_detectorLine
double p_detectorLine
Detector coordinate line value.
Definition: CameraDetectorMap.h:142
Isis::Sensor::setTime
void setTime(const iTime &time)
By setting the time you essential set the position of the spacecraft and body as indicated in the cla...
Definition: Sensor.cpp:97
Isis::iTime::Et
double Et() const
Returns the ephemeris time (TDB) representation of the time as a double.
Definition: iTime.h:126
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::RollingShutterCameraDetectorMap
Convert between parent image coordinates and detector coordinates.
Definition: RollingShutterCameraDetectorMap.h:29
Isis::CameraDetectorMap::p_detectorSampleSumming
double p_detectorSampleSumming
The scaling factor for computing sample resolution.
Definition: CameraDetectorMap.h:145
Isis::IException
Isis exception class.
Definition: IException.h:91
round
#define round(x)
This is free and unencumbered software released into the public domain.
Definition: ViewportBuffer.cpp:29
Isis::CameraDetectorMap::p_sl
double p_sl
Start line.
Definition: CameraDetectorMap.h:151
Isis::CameraDetectorMap::p_camera
Camera * p_camera
Pointer to the camera.
Definition: CameraDetectorMap.h:138
Isis::RollingShutterCameraDetectorMap::SetDetector
virtual bool SetDetector(const double sample, const double line)
Compute parent position from a detector coordinate.
Definition: RollingShutterCameraDetectorMap.cpp:101
Isis::CameraDetectorMap::p_detectorSample
double p_detectorSample
Detector coordinate sample value.
Definition: CameraDetectorMap.h:143
Isis::RollingShutterCameraDetectorMap::applyJitter
std::pair< double, double > applyJitter(const double sample, const double line)
Iteratively finds a solution to "apply" jitter to an image coordinate.
Definition: RollingShutterCameraDetectorMap.cpp:121
Isis::Spice::isTimeSet
bool isTimeSet()
Returns true if time has been initialized.
Definition: Spice.cpp:1577
iTime.h
Isis::CameraDetectorMap::p_ss
double p_ss
Start sample.
Definition: CameraDetectorMap.h:150
Isis::RollingShutterCameraDetectorMap::removeJitter
std::pair< double, double > removeJitter(const double sample, const double line)
Remove the distortion from the image (parent) coordinates.
Definition: RollingShutterCameraDetectorMap.cpp:165
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::RollingShutterCameraDetectorMap::RollingShutterCameraDetectorMap
RollingShutterCameraDetectorMap(Camera *parent, std::vector< double > times, std::vector< double > sampleCoeffs, std::vector< double > lineCoeffs)
Constructs a RollingShutterCameraDetectorMap.
Definition: RollingShutterCameraDetectorMap.cpp:25