USGS

Isis 3.0 Object Programmers' Reference

Home

Isis::Odyssey::ThemisVisDistortionMap Class Reference

#include <ThemisVisDistortionMap.h>

Inheritance diagram for Isis::Odyssey::ThemisVisDistortionMap:

Inheritance graph
[legend]
Collaboration diagram for Isis::Odyssey::ThemisVisDistortionMap:

Collaboration graph
[legend]
List of all members.

Detailed Description

Distort/undistort focal plane coordinates.

Creates a map for adding/removing optical distortions from the focal plane of the Themis VIS camera.

Author:
2006-01-03 Elizabeth Miller
See also:
Camera

Definition at line 20 of file ThemisVisDistortionMap.h.

Public Member Functions

 ThemisVisDistortionMap (Camera *parent)
 Constructs a Distortion Map for the Themis Vis Camera.
virtual bool SetFocalPlane (const double dx, const double dy)
 Sets the focal plane value for the distortion map.
virtual bool SetUndistortedFocalPlane (const double ux, const double uy)
 Sets the undistorted focal plane value for the distortion map.
void SetDistortion (const int naifIkCode)
 Load distortion coefficients.
double FocalPlaneX () const
 Return distorted focal plane x.
double FocalPlaneY () const
 Return distorted focal plane y.
double UndistortedFocalPlaneX () const
 Return undistorted focal plane x.
double UndistortedFocalPlaneY () const
 Return undistorted focal plane y.
double UndistortedFocalPlaneZ () const
 Return undistorted focal plane z.

Protected Attributes

Camerap_camera
double p_focalPlaneX
double p_focalPlaneY
double p_undistortedFocalPlaneX
double p_undistortedFocalPlaneY
double p_zDirection
std::vector< double > p_odk

Private Attributes

double p_irPixelPitch
 Pixel Pitch for Themis Ir Camera.
double p_visPixelPitch
 Pixel Pitch for Themis Vis Camera.
double p_ir_b5
 Effective Band 5 Detector Value for the Ir Camera.


Constructor & Destructor Documentation

Isis::Odyssey::ThemisVisDistortionMap::ThemisVisDistortionMap ( Camera parent  ) 

Constructs a Distortion Map for the Themis Vis Camera.

Parameters:
parent Pointer to the parent Camera object

Definition at line 13 of file ThemisVisDistortionMap.cpp.

References p_ir_b5, p_irPixelPitch, and p_visPixelPitch.


Member Function Documentation

double Isis::CameraDistortionMap::FocalPlaneX (  )  const [inline, inherited]

Return distorted focal plane x.

Definition at line 62 of file CameraDistortionMap.h.

References Isis::CameraDistortionMap::p_focalPlaneX.

Referenced by Isis::PushFrameCameraGroundMap::FindDistance(), Isis::LineScanCameraGroundMap::FindFocalPlane(), Isis::Camera::RawFocalPlanetoImage(), Isis::Camera::SetRightAscensionDeclination(), and Isis::LineScanCameraSkyMap::SetSky().

double Isis::CameraDistortionMap::FocalPlaneY (  )  const [inline, inherited]

Return distorted focal plane y.

Definition at line 65 of file CameraDistortionMap.h.

References Isis::CameraDistortionMap::p_focalPlaneY.

Referenced by Isis::PushFrameCameraGroundMap::FindDistance(), Isis::LineScanCameraGroundMap::FindFocalPlane(), Isis::Camera::RawFocalPlanetoImage(), Isis::Camera::SetRightAscensionDeclination(), and Isis::LineScanCameraSkyMap::SetSky().

void Isis::CameraDistortionMap::SetDistortion ( const int  naifIkCode  )  [inherited]

Load distortion coefficients.

This method loads the distortion coefficients from the instrument kernel. The coefficients in the NAIF instrument kernel are expected to be in the form of:

 INSxxxxx_OD_K = ( coef1, coef2, ..., coefN)

 where xxxxx is the instrument code (always a negative number)

These coefficient will be used to convert from focal plane x,y to undistorted x,y as follows (add equation here)

Parameters:
naifIkCode Code to search for in instrument kernel
Todo:
Generalize to read variable number of coefficients

Add latex equation to the documentation

Reimplemented in Isis::Lo::LoHighDistortionMap, Isis::Lo::LoMediumDistortionMap, Isis::Lro::LroNarrowAngleDistortionMap, and Isis::TaylorCameraDistortionMap.

Definition at line 64 of file CameraDistortionMap.cpp.

References Isis::CameraDistortionMap::p_camera, and Isis::CameraDistortionMap::p_odk.

Referenced by Isis::Mro::CTXCamera::CTXCamera(), Isis::Mro::HiriseCamera::HiriseCamera(), Isis::Messenger::MdisCamera::MdisCamera(), Isis::Lo::LoMediumDistortionMap::SetDistortion(), and Isis::Lo::LoHighDistortionMap::SetDistortion().

bool Isis::Odyssey::ThemisVisDistortionMap::SetFocalPlane ( const double  dx,
const double  dy 
) [virtual]

Sets the focal plane value for the distortion map.

Parameters:
dx The focal plane x value
dy The focal plane y value
Returns:
bool Returns true if the set was successful and false if it was not

Reimplemented from Isis::CameraDistortionMap.

Definition at line 30 of file ThemisVisDistortionMap.cpp.

References Isis::CameraDistortionMap::p_focalPlaneX, Isis::CameraDistortionMap::p_focalPlaneY, p_ir_b5, p_irPixelPitch, Isis::CameraDistortionMap::p_undistortedFocalPlaneX, and Isis::CameraDistortionMap::p_undistortedFocalPlaneY.

bool Isis::Odyssey::ThemisVisDistortionMap::SetUndistortedFocalPlane ( const double  ux,
const double  uy 
) [virtual]

Sets the undistorted focal plane value for the distortion map.

Parameters:
ux The undistorted focal plane x value
uy The undistorted focal plane y value
Returns:
bool Returns true if the set was successful and false if it was not

Reimplemented from Isis::CameraDistortionMap.

Definition at line 61 of file ThemisVisDistortionMap.cpp.

References Isis::CameraDistortionMap::p_focalPlaneX, Isis::CameraDistortionMap::p_focalPlaneY, p_ir_b5, p_irPixelPitch, Isis::CameraDistortionMap::p_undistortedFocalPlaneX, and Isis::CameraDistortionMap::p_undistortedFocalPlaneY.

double Isis::CameraDistortionMap::UndistortedFocalPlaneX (  )  const [inline, inherited]

Return undistorted focal plane x.

Definition at line 68 of file CameraDistortionMap.h.

References Isis::CameraDistortionMap::p_undistortedFocalPlaneX.

Referenced by Isis::ControlPoint::ComputeApriori(), and Isis::Camera::SetImage().

double Isis::CameraDistortionMap::UndistortedFocalPlaneY (  )  const [inline, inherited]

Return undistorted focal plane y.

Definition at line 71 of file CameraDistortionMap.h.

References Isis::CameraDistortionMap::p_undistortedFocalPlaneY.

Referenced by Isis::ControlPoint::ComputeApriori(), and Isis::Camera::SetImage().

double Isis::CameraDistortionMap::UndistortedFocalPlaneZ (  )  const [inline, inherited]

Return undistorted focal plane z.

Definition at line 74 of file CameraDistortionMap.h.

Referenced by Isis::BundleAdjust::AddPartials(), and Isis::Camera::SetImage().


Member Data Documentation

double Isis::Odyssey::ThemisVisDistortionMap::p_ir_b5 [private]

Effective Band 5 Detector Value for the Ir Camera.

Definition at line 33 of file ThemisVisDistortionMap.h.

Referenced by SetFocalPlane(), SetUndistortedFocalPlane(), and ThemisVisDistortionMap().

double Isis::Odyssey::ThemisVisDistortionMap::p_irPixelPitch [private]

Pixel Pitch for Themis Ir Camera.

Definition at line 29 of file ThemisVisDistortionMap.h.

Referenced by SetFocalPlane(), SetUndistortedFocalPlane(), and ThemisVisDistortionMap().

double Isis::Odyssey::ThemisVisDistortionMap::p_visPixelPitch [private]

Pixel Pitch for Themis Vis Camera.

Definition at line 30 of file ThemisVisDistortionMap.h.

Referenced by ThemisVisDistortionMap().


The documentation for this class was generated from the following files: