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
OsirisRexTagcamsDistortionMap.h
Go to the documentation of this file.
1#ifndef OsirisRexTagcamsDistortionMap_h
2#define OsirisRexTagcamsDistortionMap_h
3
9
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include <QSharedPointer>
13
14#include "CameraDistortionMap.h"
15#include "CameraFocalPlaneMap.h"
16#include "Camera.h"
17
18namespace Isis {
63 public:
87 OsirisRexTagcamsDistortionMap(Camera *parent, int naifIkCode,
88 const double zdir = 1.0);
89
92
99 void SetCameraTemperature(const double temp);
100
113 virtual bool SetFocalPlane(const double dx, const double dy);
114
115
128 virtual bool SetUndistortedFocalPlane(const double ux, const double uy);
129
130 protected:
131 void image_to_distortion_frame(const double dx, const double dy,
132 double *u, double *v,
133 double *xpp, double *ypp) const;
134 void distortion_to_pointing_frame(const double xp, const double yp,
135 double *x, double *y,
136 double *ux, double *uy) const;
137
138 void pointing_to_distortion_frame(const double ux, const double uy,
139 double *x, double *y,
140 double *xp, double *yp) const;
141 void distortion_to_image_frame(const double xpp, const double ypp,
142 double *u, double *v,
143 double *dx, double *dy) const;
144
145 void apply_distortion(const double xp, const double yp,
146 double *xpp, double *ypp) const;
147
148
149 private:
150 // parameters below are from camera calibration report
151 double p_k1;
152 double p_k2;
153 double p_k3;
154 double p_k4;
155 double p_k5;
156 double p_k6;
157 double p_p1;
158 double p_p2;
159 double p_fx;
160 double p_fy;
161 double p_cx;
162 double p_cy;
163 double p_td ;
164 double p_camTemp;
165 double p_tolerance;
166 bool p_debug;
167
168 double p_xoffset;
169 double p_yoffset;
170
171 QSharedPointer<CameraFocalPlaneMap> m_focalMap; // Local focal plane map
172
173 };
174};
175#endif
CameraDistortionMap(Camera *parent, double zDirection=1.0)
Camera distortion map constructor.
Definition CameraDistortionMap.cpp:24
Definition Camera.h:237
~OsirisRexTagcamsDistortionMap()
Destroys OsirisRexTagcamsDistortionMap object.
Definition OsirisRexTagcamsDistortionMap.h:91
void SetCameraTemperature(const double temp)
Set camera head temperature for the model.
Definition OsirisRexTagcamsDistortionMap.cpp:112
void apply_distortion(const double xp, const double yp, double *xpp, double *ypp) const
Apply OpenCV model equations to normalized parameters.
Definition OsirisRexTagcamsDistortionMap.cpp:449
virtual bool SetUndistortedFocalPlane(const double ux, const double uy)
Compute distorted focal plane x/y.
Definition OsirisRexTagcamsDistortionMap.cpp:216
OsirisRexTagcamsDistortionMap(Camera *parent, int naifIkCode, const double zdir=1.0)
Constructs a Distortion Map object for the OSIRIS-REx TagCams Camera.
Definition OsirisRexTagcamsDistortionMap.cpp:48
void pointing_to_distortion_frame(const double ux, const double uy, double *x, double *y, double *xp, double *yp) const
Normalize ISIS3 focal plane coordinate to model point.
Definition OsirisRexTagcamsDistortionMap.cpp:361
virtual bool SetFocalPlane(const double dx, const double dy)
Compute undistorted focal plane x/y.
Definition OsirisRexTagcamsDistortionMap.cpp:130
void distortion_to_pointing_frame(const double xp, const double yp, double *x, double *y, double *ux, double *uy) const
Compute ISIS3 undistorted focal plane coordinates from model.
Definition OsirisRexTagcamsDistortionMap.cpp:310
void image_to_distortion_frame(const double dx, const double dy, double *u, double *v, double *xpp, double *ypp) const
Compute distortion model point from distorted focal plane coordinates.
Definition OsirisRexTagcamsDistortionMap.cpp:263
void distortion_to_image_frame(const double xpp, const double ypp, double *u, double *v, double *dx, double *dy) const
Converts a distortion model coordinate to ISIS3 focal plane coordinate.
Definition OsirisRexTagcamsDistortionMap.cpp:410
Definition JigsawWorkOrder.h:28
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16