Isis 3 Programmer Reference
CameraDistortionMap.h
1 #ifndef CameraDistortionMap_h
2 #define CameraDistortionMap_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 #include <vector>
11 #include "Camera.h"
12 
13 namespace Isis {
42  public:
43  CameraDistortionMap(Camera *parent, double zDirection = 1.0);
44 
45  virtual void SetDistortion(int naifIkCode);
46 
47  virtual ~CameraDistortionMap();
48 
49  virtual bool SetFocalPlane(double dx, double dy);
50 
51  virtual bool SetUndistortedFocalPlane(double ux, double uy);
52 
53  std::vector<double> OpticalDistortionCoefficients() const;
54 
55  double ZDirection() const;
56  double FocalPlaneX() const;
57  double FocalPlaneY() const;
58  double UndistortedFocalPlaneX() const;
59  double UndistortedFocalPlaneY() const;
60  double UndistortedFocalPlaneZ() const;
61 
62  protected:
64 
65  double p_focalPlaneX;
66  double p_focalPlaneY;
69  double p_zDirection;
70 
71  std::vector<double> p_odk;
72  };
73 };
74 #endif
Isis::CameraDistortionMap::SetDistortion
virtual void SetDistortion(int naifIkCode)
Load distortion coefficients.
Definition: CameraDistortionMap.cpp:58
Isis::CameraDistortionMap::p_focalPlaneX
double p_focalPlaneX
Distorted focal plane x.
Definition: CameraDistortionMap.h:65
Isis::CameraDistortionMap::OpticalDistortionCoefficients
std::vector< double > OpticalDistortionCoefficients() const
Retrieve the distortion coefficients used for this model.
Definition: CameraDistortionMap.cpp:194
Isis::CameraDistortionMap::UndistortedFocalPlaneX
double UndistortedFocalPlaneX() const
Gets the x-value in the undistorted focal plane coordinate system.
Definition: CameraDistortionMap.cpp:237
Isis::CameraDistortionMap::p_undistortedFocalPlaneY
double p_undistortedFocalPlaneY
Undistorted focal plane y.
Definition: CameraDistortionMap.h:68
Isis::CameraDistortionMap::SetUndistortedFocalPlane
virtual bool SetUndistortedFocalPlane(double ux, double uy)
Compute distorted focal plane x/y.
Definition: CameraDistortionMap.cpp:130
Isis::CameraDistortionMap::p_undistortedFocalPlaneX
double p_undistortedFocalPlaneX
Undistorted focal plane x.
Definition: CameraDistortionMap.h:67
Isis::CameraDistortionMap::FocalPlaneX
double FocalPlaneX() const
Gets the x-value in the focal plane coordinate system.
Definition: CameraDistortionMap.cpp:215
Isis::CameraDistortionMap::FocalPlaneY
double FocalPlaneY() const
Gets the y-value in the focal plane coordinate system.
Definition: CameraDistortionMap.cpp:226
Isis::CameraDistortionMap::UndistortedFocalPlaneZ
double UndistortedFocalPlaneZ() const
Gets the z-value in the undistorted focal plane coordinate system.
Definition: CameraDistortionMap.cpp:260
Isis::Camera
Definition: Camera.h:236
Isis::CameraDistortionMap::CameraDistortionMap
CameraDistortionMap(Camera *parent, double zDirection=1.0)
Camera distortion map constructor.
Definition: CameraDistortionMap.cpp:24
Isis::CameraDistortionMap::p_camera
Camera * p_camera
The camera to distort/undistort.
Definition: CameraDistortionMap.h:63
Isis::CameraDistortionMap::~CameraDistortionMap
virtual ~CameraDistortionMap()
Destructor for the ISIS default camera distortion map.
Definition: CameraDistortionMap.cpp:34
Isis::CameraDistortionMap::ZDirection
double ZDirection() const
Gets the z-direction for this camera.
Definition: CameraDistortionMap.cpp:204
Isis::CameraDistortionMap
Distort/undistort focal plane coordinates.
Definition: CameraDistortionMap.h:41
Isis::CameraDistortionMap::SetFocalPlane
virtual bool SetFocalPlane(double dx, double dy)
Compute undistorted focal plane x/y.
Definition: CameraDistortionMap.cpp:83
Isis::CameraDistortionMap::p_odk
std::vector< double > p_odk
Vector of distortion coefficients.
Definition: CameraDistortionMap.h:71
Isis::CameraDistortionMap::UndistortedFocalPlaneY
double UndistortedFocalPlaneY() const
Gets the y-value in the undistorted focal plane coordinate system.
Definition: CameraDistortionMap.cpp:248
Isis::CameraDistortionMap::p_focalPlaneY
double p_focalPlaneY
Distorted focal plane y.
Definition: CameraDistortionMap.h:66
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::CameraDistortionMap::p_zDirection
double p_zDirection
Undistorted focal plane z.
Definition: CameraDistortionMap.h:69