Isis 3 Programmer Reference
CameraDistortionMap.h
1#ifndef CameraDistortionMap_h
2#define CameraDistortionMap_h
8/* SPDX-License-Identifier: CC0-1.0 */
9
10#include <vector>
11#include "Camera.h"
12
13namespace 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
69 double p_zDirection;
70
71 std::vector<double> p_odk = {};
72 };
73};
74#endif
Distort/undistort focal plane coordinates.
virtual bool SetUndistortedFocalPlane(double ux, double uy)
Compute distorted focal plane x/y.
CameraDistortionMap(Camera *parent, double zDirection=1.0)
Camera distortion map constructor.
double p_focalPlaneX
Distorted focal plane x.
virtual bool SetFocalPlane(double dx, double dy)
Compute undistorted focal plane x/y.
double p_zDirection
Undistorted focal plane z.
double UndistortedFocalPlaneX() const
Gets the x-value in the undistorted focal plane coordinate system.
std::vector< double > OpticalDistortionCoefficients() const
Retrieve the distortion coefficients used for this model.
double p_undistortedFocalPlaneX
Undistorted focal plane x.
double FocalPlaneX() const
Gets the x-value in the focal plane coordinate system.
double ZDirection() const
Gets the z-direction for this camera.
std::vector< double > p_odk
Vector of distortion coefficients.
virtual ~CameraDistortionMap()
Destructor for the ISIS default camera distortion map.
virtual void SetDistortion(int naifIkCode)
Load distortion coefficients.
double p_undistortedFocalPlaneY
Undistorted focal plane y.
Camera * p_camera
The camera to distort/undistort.
double p_focalPlaneY
Distorted focal plane y.
double UndistortedFocalPlaneZ() const
Gets the z-value in the undistorted focal plane coordinate system.
double UndistortedFocalPlaneY() const
Gets the y-value in the undistorted focal plane coordinate system.
double FocalPlaneY() const
Gets the y-value in the focal plane coordinate system.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16