Isis Developer Reference
RosettaOsirisCameraDistortionMap.h
Go to the documentation of this file.
1 #ifndef RosettaOsirisCameraDistortionMap_h
2 #define RosettaOsirisCameraDistortionMap_h
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 
13 #include "CameraDistortionMap.h"
14 
15 #include "LinearAlgebra.h"
16 
17 namespace Isis {
55  public:
57 
60 
61  virtual bool SetFocalPlane(const double dx, const double dy);
62 
63  virtual bool SetUndistortedFocalPlane(const double ux, const double uy);
64 
67  void setBoresight(double sample, double line);
68  void setPixelPitch(double pitch);
69 
70  private:
71  double focalXToLine(double x);
72  double focalYToSample(double y);
73  double lineToFocalX(double line);
74  double sampleToFocalY(double sample);
75 
76  LinearAlgebra::Matrix m_toUnDistortedX;
78  LinearAlgebra::Matrix m_toUnDistortedY;
81  double m_boresightSample;
84  double m_boresightLine;
87  double m_pixelPitch;
90  };
91 };
92 #endif
Isis::RosettaOsirisCameraDistortionMap::setUnDistortedXMatrix
void setUnDistortedXMatrix(LinearAlgebra::Matrix xMat)
Set the matrix for converting from distorted to undistorted samples.
Definition: RosettaOsirisCameraDistortionMap.cpp:275
Isis::RosettaOsirisCameraDistortionMap::RosettaOsirisCameraDistortionMap
RosettaOsirisCameraDistortionMap(Camera *parent)
Create a camera distortion map.
Definition: RosettaOsirisCameraDistortionMap.cpp:24
Isis::LinearAlgebra::multiply
static Matrix multiply(const Matrix &matrix1, const Matrix &matrix2)
Returns the product of two matrices.
Definition: LinearAlgebra.cpp:549
Isis::CameraDistortionMap::p_focalPlaneX
double p_focalPlaneX
Distorted focal plane x.
Definition: CameraDistortionMap.h:65
Isis::RosettaOsirisCameraDistortionMap::setBoresight
void setBoresight(double sample, double line)
Set the boresight location for converting from focal plane coordinates to pixel coordinates.
Definition: RosettaOsirisCameraDistortionMap.cpp:297
Isis::CameraDistortionMap::p_undistortedFocalPlaneY
double p_undistortedFocalPlaneY
Undistorted focal plane y.
Definition: CameraDistortionMap.h:68
Isis::CameraDistortionMap::p_undistortedFocalPlaneX
double p_undistortedFocalPlaneX
Undistorted focal plane x.
Definition: CameraDistortionMap.h:67
Isis::RosettaOsirisCameraDistortionMap::~RosettaOsirisCameraDistortionMap
virtual ~RosettaOsirisCameraDistortionMap()
Destroys the RosettaOsirisCameraDistortionMap object.
Definition: RosettaOsirisCameraDistortionMap.h:59
Isis::LinearAlgebra::zeroMatrix
static Matrix zeroMatrix(int rows, int columns)
Returns a matrix with given dimensions that is filled with zeroes.
Definition: LinearAlgebra.cpp:408
Isis::LinearAlgebra::magnitude
static double magnitude(const Vector &vector)
Computes the magnitude (i.e., the length) of the given vector using the Euclidean norm (L2 norm).
Definition: LinearAlgebra.cpp:504
Isis::RosettaOsirisCameraDistortionMap::setPixelPitch
void setPixelPitch(double pitch)
Set the pixel pitch for converting from focal plane coordinates to pixel coordinates.
Definition: RosettaOsirisCameraDistortionMap.cpp:309
Isis::RosettaOsirisCameraDistortionMap::SetFocalPlane
virtual bool SetFocalPlane(const double dx, const double dy)
Compute undistorted focal plane x/y given a distorted focal plane x/y.
Definition: RosettaOsirisCameraDistortionMap.cpp:69
Isis::Camera
Definition: Camera.h:236
Isis::LinearAlgebra::Matrix
boost::numeric::ublas::matrix< double > Matrix
Definition for an Isis::LinearAlgebra::Matrix of doubles.
Definition: LinearAlgebra.h:100
Isis::LinearAlgebra::dotProduct
static double dotProduct(const Vector &vector1, const Vector &vector2)
Computes the dot product of the given vectors.
Definition: LinearAlgebra.cpp:781
Isis::LinearAlgebra::Vector
boost::numeric::ublas::vector< double > Vector
Definition for an Isis::LinearAlgebra::Vector of doubles.
Definition: LinearAlgebra.h:120
CameraDistortionMap.h
Isis::LinearAlgebra::zeroVector
static Vector zeroVector(int size)
Returns a vector of given length that is filled with zeroes.
Definition: LinearAlgebra.cpp:421
Isis::CameraDistortionMap
Distort/undistort focal plane coordinates.
Definition: CameraDistortionMap.h:41
Isis::RosettaOsirisCameraDistortionMap::SetUndistortedFocalPlane
virtual bool SetUndistortedFocalPlane(const double ux, const double uy)
Compute distorted focal plane x/y given an undistorted focal plane x/y.
Definition: RosettaOsirisCameraDistortionMap.cpp:136
std
Namespace for the standard library.
LinearAlgebra.h
Isis::RosettaOsirisCameraDistortionMap::setUnDistortedYMatrix
void setUnDistortedYMatrix(LinearAlgebra::Matrix yMat)
Set the matrix for converting from distorted to undistorted lines.
Definition: RosettaOsirisCameraDistortionMap.cpp:285
RosettaOsirisCameraDistortionMap.h
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::RosettaOsirisCameraDistortionMap
Distortion map for converting between undistorted focal plane and distorted focal plane coordinates f...
Definition: RosettaOsirisCameraDistortionMap.h:54