An official website of the United States government
Here’s how you know
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 3 Programmer Reference
|
Construct a mapping between image sample and Radar ground range. More...
#include <RadarGroundRangeMap.h>
Public Types | |
enum | FocalPlaneXDependencyType { Sample = 1 , Line = 2 } |
Focal plane x dependency indicates whether the x value of the focal plane coordinate maps to a sample or a line. More... | |
Public Member Functions | |
RadarGroundRangeMap (Camera *parent, const int naifIkCode) | |
Construct mapping between detectors and focal plane x/y. | |
virtual bool | SetDetector (const double sample, const double line) |
Compute distorted focal plane coordinate from detector position (sampel,line) | |
virtual bool | SetFocalPlane (const double dx, const double dy) |
Compute detector position (sample,line) from focal plane coordinates. | |
double | FocalPlaneX () const |
double | FocalPlaneY () const |
double | DetectorSample () const |
double | DetectorLine () const |
double | CenteredDetectorSample () const |
double | CenteredDetectorLine () const |
void | SetDetectorOrigin (const double sample, const double line) |
Set the detector origin. | |
double | DetectorLineOrigin () const |
double | DetectorSampleOrigin () const |
void | SetDetectorOffset (const double sampleOffset, const double lineOffset) |
Set the detector offset. | |
double | DetectorLineOffset () const |
double | DetectorSampleOffset () const |
void | SetTransL (const QVector< double > transL) |
Set the affine coefficients for converting destorted (x,y) to a detector Line. | |
void | SetTransS (const QVector< double > transS) |
Set the affine coefficients for converting destorted (x,y) to a detector Sample. | |
void | SetTransX (const QVector< double > transX) |
Set the affine coefficients for converting detector (sample,line) to a distorted X. | |
void | SetTransY (const QVector< double > transY) |
Set the affine coefficients for converting detector (sample,line) to a distorted Y. | |
const double * | TransL () const |
const double * | TransS () const |
const double * | TransX () const |
const double * | TransY () const |
int | FocalPlaneXDependency () |
Return the focal plane x dependency variable. | |
double | SignMostSigX () |
Return the sign of the p_transx coefficient with the greatest magnitude. | |
double | SignMostSigY () |
Return the sign of the p_transy coefficient with the greatest magnitude. | |
Static Public Member Functions | |
static void | setTransform (int naifIkCode, double groundRangeResolution, int samples, Radar::LookDirection ldir) |
Protected Member Functions | |
void | ComputeCentered () |
Convenience method to center detector origin (use when inheriting) | |
void | ComputeUncentered () |
Convenience method to center detector origin (use when inheriting) | |
Protected Attributes | |
Camera * | p_camera |
Camera of the image. | |
double | p_detectorLineOrigin |
The origin line of the detector. | |
double | p_detectorSampleOrigin |
The origin sample of the detector. | |
double | p_focalPlaneX |
x value of focal plane coordinate | |
double | p_focalPlaneY |
y value of focal plane coordinate | |
double | p_detectorLine |
line value of the detector | |
double | p_detectorSample |
sample value of the detector | |
double | p_centeredDetectorSample |
Detector sample position. | |
double | p_centeredDetectorLine |
Detector line position. | |
double | p_detectorLineOffset |
Offset of the detector origin line from the average. | |
double | p_detectorSampleOffset |
offset of the detector origin sample from the average | |
double | p_transx [3] |
The x transition from detector to distorted. | |
double | p_transy [3] |
The y transition from detector to distorted. | |
double | p_itranss [3] |
The x transition from distorted to detector. | |
double | p_itransl [3] |
The y transition from distorted to detector. | |
Private Member Functions | |
void | Init (Camera *parent, const int naifIkCode) |
Initialize the focal plane map to its default state. | |
Construct a mapping between image sample and Radar ground range.
Definition at line 38 of file RadarGroundRangeMap.h.
|
inherited |
Focal plane x dependency indicates whether the x value of the focal plane coordinate maps to a sample or a line.
Enumerator | |
---|---|
Sample | The x value of the focal plane maps to a sample. |
Line | The x value of the focal plane maps to a line. |
Definition at line 123 of file CameraFocalPlaneMap.h.
Isis::RadarGroundRangeMap::RadarGroundRangeMap | ( | Camera * | parent, |
const int | naifIkCode ) |
Construct mapping between detectors and focal plane x/y.
parent | parent camera that will use this map |
naifIkCode | code of the naif instrument for reading coefficients |
Definition at line 16 of file RadarGroundRangeMap.cpp.
References Isis::CameraFocalPlaneMap::CameraFocalPlaneMap().
|
inherited |
Definition at line 279 of file CameraFocalPlaneMap.cpp.
References p_centeredDetectorLine.
|
inherited |
Definition at line 271 of file CameraFocalPlaneMap.cpp.
References p_centeredDetectorSample.
|
protectedinherited |
Convenience method to center detector origin (use when inheriting)
Definition at line 428 of file CameraFocalPlaneMap.cpp.
References p_centeredDetectorLine, p_centeredDetectorSample, p_detectorLine, p_detectorLineOrigin, p_detectorSample, and p_detectorSampleOrigin.
Referenced by SetDetector().
|
protectedinherited |
Convenience method to center detector origin (use when inheriting)
Definition at line 435 of file CameraFocalPlaneMap.cpp.
References p_centeredDetectorLine, p_centeredDetectorSample, p_detectorLine, p_detectorLineOrigin, p_detectorSample, and p_detectorSampleOrigin.
Referenced by SetFocalPlane().
|
inherited |
Definition at line 263 of file CameraFocalPlaneMap.cpp.
References p_detectorLine.
Referenced by Isis::ControlPoint::ComputeResiduals(), Isis::PushFrameCameraGroundMap::FindDistance(), and Isis::LineScanCameraSkyMap::SetSky().
|
inherited |
Definition at line 334 of file CameraFocalPlaneMap.cpp.
References p_detectorLineOffset.
Referenced by Isis::LineScanCameraSkyMap::SetSky().
|
inherited |
Definition at line 302 of file CameraFocalPlaneMap.cpp.
References p_detectorLineOrigin.
|
inherited |
Definition at line 255 of file CameraFocalPlaneMap.cpp.
References p_detectorSample.
Referenced by Isis::ControlPoint::ComputeResiduals(), and Isis::PushFrameCameraGroundMap::FindDistance().
|
inherited |
Definition at line 342 of file CameraFocalPlaneMap.cpp.
References p_detectorSampleOffset.
|
inherited |
Definition at line 310 of file CameraFocalPlaneMap.cpp.
References p_detectorSampleOrigin.
|
inherited |
Definition at line 239 of file CameraFocalPlaneMap.cpp.
References p_focalPlaneX.
Referenced by Isis::AdvancedTrackTool::updateRow().
|
inherited |
Return the focal plane x dependency variable.
This method returns the image variable (sample or line) on which the focal plane x depends.
Definition at line 182 of file CameraFocalPlaneMap.cpp.
|
inherited |
Definition at line 247 of file CameraFocalPlaneMap.cpp.
References p_focalPlaneY.
Referenced by Isis::AdvancedTrackTool::updateRow().
|
privateinherited |
Initialize the focal plane map to its default state.
parent | Parent camera |
naifIkCode | code of the naif instrument for reading coefficients |
Definition at line 92 of file CameraFocalPlaneMap.cpp.
References Isis::Spice::getDouble(), p_camera, p_detectorLineOffset, p_detectorLineOrigin, p_detectorSampleOffset, p_detectorSampleOrigin, p_itransl, p_itranss, p_transx, p_transy, and Isis::toString().
Referenced by CameraFocalPlaneMap(), and CameraFocalPlaneMap().
|
virtualinherited |
Compute distorted focal plane coordinate from detector position (sampel,line)
This method will compute both the distorted focal plane x/y and centered detector position given a detector position
sample | undistorted focal plane x in millimeters |
line | undistorted focal plane y in millimeters |
Definition at line 164 of file CameraFocalPlaneMap.cpp.
References ComputeCentered(), p_centeredDetectorLine, p_centeredDetectorSample, p_detectorLine, p_detectorSample, p_focalPlaneX, p_focalPlaneY, p_transx, and p_transy.
|
inherited |
Set the detector offset.
This is used to set the offset between the detector origin and the average location in detector pixels where the image is being viewed. If not set the offset are both 0.0
sampleOffset | sample offset in pixels |
lineOffset | sample offset in lines |
Definition at line 324 of file CameraFocalPlaneMap.cpp.
References p_detectorLineOffset, and p_detectorSampleOffset.
Referenced by Isis::ApolloPanoramicCamera::ApolloPanoramicCamera(), Isis::Chandrayaan1M3Camera::Chandrayaan1M3Camera(), Isis::ClipperPushBroomCamera::ClipperPushBroomCamera(), Isis::CrismCamera::CrismCamera(), Isis::CTXCamera::CTXCamera(), Isis::HiriseCamera::HiriseCamera(), Isis::KaguyaMiCamera::KaguyaMiCamera(), Isis::LroNarrowAngleCamera::LroNarrowAngleCamera(), Isis::MocNarrowAngleCamera::MocNarrowAngleCamera(), Isis::MocWideAngleCamera::MocWideAngleCamera(), Isis::ThemisIrCamera::SetBand(), and Isis::ThemisIrCamera::ThemisIrCamera().
|
inherited |
Set the detector origin.
This is used to set the origin of the detector. Typically the middle of the detector. For example, a 512x512 dectector would have the origin at (256.5,256.5). If not set both are 0.
sample | detector sample at the origin |
line | detector line at the origin |
Definition at line 293 of file CameraFocalPlaneMap.cpp.
References p_detectorLineOrigin, and p_detectorSampleOrigin.
Referenced by Isis::ApolloMetricCamera::ApolloMetricCamera(), Isis::ApolloPanoramicCamera::ApolloPanoramicCamera(), Isis::Chandrayaan1M3Camera::Chandrayaan1M3Camera(), Isis::ClipperNacRollingShutterCamera::ClipperNacRollingShutterCamera(), Isis::ClipperPushBroomCamera::ClipperPushBroomCamera(), Isis::ClipperWacFcCamera::ClipperWacFcCamera(), Isis::CrismCamera::CrismCamera(), Isis::CTXCamera::CTXCamera(), Isis::DawnFcCamera::DawnFcCamera(), Isis::DawnVirCamera::DawnVirCamera(), Isis::HiresCamera::HiresCamera(), Isis::HiriseCamera::HiriseCamera(), Isis::HrscCamera::HrscCamera(), Isis::IdealCamera::IdealCamera(), Isis::IssNACamera::IssNACamera(), Isis::IssWACamera::IssWACamera(), Isis::JunoCamera::JunoCamera(), Isis::KaguyaMiCamera::KaguyaMiCamera(), Isis::KaguyaTcCamera::KaguyaTcCamera(), Isis::LoHighCamera::LoHighCamera(), Isis::LoMediumCamera::LoMediumCamera(), Isis::LroNarrowAngleCamera::LroNarrowAngleCamera(), Isis::LwirCamera::LwirCamera(), Isis::MarciCamera::MarciCamera(), Isis::Mariner10Camera::Mariner10Camera(), Isis::MdisCamera::MdisCamera(), Isis::MexHrscSrcCamera::MexHrscSrcCamera(), Isis::MocNarrowAngleCamera::MocNarrowAngleCamera(), Isis::MocWideAngleCamera::MocWideAngleCamera(), Isis::MsiCamera::MsiCamera(), Isis::NewHorizonsLeisaCamera::NewHorizonsLeisaCamera(), Isis::NewHorizonsLorriCamera::NewHorizonsLorriCamera(), Isis::NewHorizonsMvicFrameCamera::NewHorizonsMvicFrameCamera(), Isis::NewHorizonsMvicTdiCamera::NewHorizonsMvicTdiCamera(), Isis::NirCamera::NirCamera(), Isis::OsirisRexOcamsCamera::OsirisRexOcamsCamera(), Isis::OsirisRexTagcamsCamera::OsirisRexTagcamsCamera(), Isis::RosettaOsirisCamera::RosettaOsirisCamera(), Isis::RosettaVirtisCamera::RosettaVirtisCamera(), Isis::LroWideAngleCamera::SetBand(), Isis::ThemisIrCamera::SetBand(), Isis::SsiCamera::SsiCamera(), Isis::TgoCassisCamera::TgoCassisCamera(), Isis::ThemisIrCamera::ThemisIrCamera(), Isis::ThemisVisCamera::ThemisVisCamera(), Isis::UvvisCamera::UvvisCamera(), Isis::VikingCamera::VikingCamera(), and Isis::VoyagerCamera::VoyagerCamera().
|
virtualinherited |
Compute detector position (sample,line) from focal plane coordinates.
NOTE: This is detector (sample, line) not necessarily image (sample, line). If the image was reformatted from what was collected the two differ. See the New Horizons LEISA camera for an example (LEISA is a frame camera being treated as a line scan camera).
This method will compute both the centered and normal detector position given a distorted focal plane coordinate.
dx | distorted focal plane x in millimeters |
dy | distorted focal plane y in millimeters |
Definition at line 143 of file CameraFocalPlaneMap.cpp.
References ComputeUncentered(), p_centeredDetectorLine, p_centeredDetectorSample, p_focalPlaneX, p_focalPlaneY, p_itransl, and p_itranss.
Referenced by Isis::ControlPoint::ComputeResiduals(), Isis::PushFrameCameraGroundMap::FindDistance(), and Isis::LineScanCameraSkyMap::SetSky().
|
static |
Definition at line 20 of file RadarGroundRangeMap.cpp.
|
inherited |
Set the affine coefficients for converting destorted (x,y) to a detector Line.
transL | Vector of the affine coefficients |
Definition at line 352 of file CameraFocalPlaneMap.cpp.
References p_itransl.
Referenced by Isis::NewHorizonsLeisaCamera::SetBand().
|
inherited |
Set the affine coefficients for converting destorted (x,y) to a detector Sample.
transS | Vector of the affine coefficients |
Definition at line 364 of file CameraFocalPlaneMap.cpp.
References p_itranss.
Referenced by Isis::NewHorizonsLeisaCamera::SetBand().
|
inherited |
Set the affine coefficients for converting detector (sample,line) to a distorted X.
transX | Vector of the affine coefficients |
Definition at line 376 of file CameraFocalPlaneMap.cpp.
References p_transx.
Referenced by Isis::NewHorizonsLeisaCamera::SetBand().
|
inherited |
Set the affine coefficients for converting detector (sample,line) to a distorted Y.
transY | Vector of the affine coefficients |
Definition at line 388 of file CameraFocalPlaneMap.cpp.
References p_transy.
Referenced by Isis::NewHorizonsLeisaCamera::SetBand().
|
inherited |
Return the sign of the p_transx coefficient with the greatest magnitude.
This method returns a +1. or -1. based on the sign of the p_transx coefficient with the greatest magnitude. Only p_transx[1] and p_transx[2] are compared since p_transx[0] is used as a constant in the affine transformation.
Definition at line 201 of file CameraFocalPlaneMap.cpp.
References p_transx.
|
inherited |
Return the sign of the p_transy coefficient with the greatest magnitude.
This method returns a +1 or -1 based on the sign of the p_transy coefficient with the greatest magnitude. Only p_transy[1] and p_transy[2] are compared since p_transy[0] is used as a constant in the affine transformation.
Definition at line 223 of file CameraFocalPlaneMap.cpp.
References p_transy.
|
inherited |
Definition at line 422 of file CameraFocalPlaneMap.cpp.
References p_itransl.
Referenced by Isis::NewHorizonsLeisaCamera::NewHorizonsLeisaCamera().
|
inherited |
Definition at line 414 of file CameraFocalPlaneMap.cpp.
References p_itranss.
Referenced by Isis::NewHorizonsLeisaCamera::NewHorizonsLeisaCamera().
|
inherited |
Definition at line 398 of file CameraFocalPlaneMap.cpp.
References p_transx.
Referenced by Isis::NewHorizonsLeisaCamera::NewHorizonsLeisaCamera().
|
inherited |
Definition at line 406 of file CameraFocalPlaneMap.cpp.
References p_transy.
Referenced by Isis::NewHorizonsLeisaCamera::NewHorizonsLeisaCamera().
|
protectedinherited |
Camera of the image.
Definition at line 137 of file CameraFocalPlaneMap.h.
Referenced by Isis::LroWideAngleCameraFocalPlaneMap::addFilter(), CameraFocalPlaneMap(), and Init().
|
protectedinherited |
Detector line position.
Definition at line 147 of file CameraFocalPlaneMap.h.
Referenced by CenteredDetectorLine(), ComputeCentered(), ComputeUncentered(), SetDetector(), and SetFocalPlane().
|
protectedinherited |
Detector sample position.
Definition at line 146 of file CameraFocalPlaneMap.h.
Referenced by CenteredDetectorSample(), ComputeCentered(), ComputeUncentered(), SetDetector(), and SetFocalPlane().
|
protectedinherited |
line value of the detector
Definition at line 144 of file CameraFocalPlaneMap.h.
Referenced by ComputeCentered(), ComputeUncentered(), DetectorLine(), and SetDetector().
|
protectedinherited |
Offset of the detector origin line from the average.
Definition at line 149 of file CameraFocalPlaneMap.h.
Referenced by CameraFocalPlaneMap(), DetectorLineOffset(), Init(), and SetDetectorOffset().
|
protectedinherited |
The origin line of the detector.
Definition at line 139 of file CameraFocalPlaneMap.h.
Referenced by CameraFocalPlaneMap(), ComputeCentered(), ComputeUncentered(), DetectorLineOrigin(), Init(), and SetDetectorOrigin().
|
protectedinherited |
sample value of the detector
Definition at line 145 of file CameraFocalPlaneMap.h.
Referenced by ComputeCentered(), ComputeUncentered(), DetectorSample(), and SetDetector().
|
protectedinherited |
offset of the detector origin sample from the average
Definition at line 150 of file CameraFocalPlaneMap.h.
Referenced by CameraFocalPlaneMap(), DetectorSampleOffset(), Init(), and SetDetectorOffset().
|
protectedinherited |
The origin sample of the detector.
Definition at line 140 of file CameraFocalPlaneMap.h.
Referenced by CameraFocalPlaneMap(), ComputeCentered(), ComputeUncentered(), DetectorSampleOrigin(), Init(), and SetDetectorOrigin().
|
protectedinherited |
x value of focal plane coordinate
Definition at line 142 of file CameraFocalPlaneMap.h.
Referenced by FocalPlaneX(), SetDetector(), and SetFocalPlane().
|
protectedinherited |
y value of focal plane coordinate
Definition at line 143 of file CameraFocalPlaneMap.h.
Referenced by FocalPlaneY(), SetDetector(), and SetFocalPlane().
|
protectedinherited |
The y transition from distorted to detector.
Definition at line 155 of file CameraFocalPlaneMap.h.
Referenced by CameraFocalPlaneMap(), Init(), Isis::LroWideAngleCameraFocalPlaneMap::setBand(), SetFocalPlane(), SetTransL(), and TransL().
|
protectedinherited |
The x transition from distorted to detector.
Definition at line 154 of file CameraFocalPlaneMap.h.
Referenced by CameraFocalPlaneMap(), Init(), Isis::LroWideAngleCameraFocalPlaneMap::setBand(), SetFocalPlane(), SetTransS(), and TransS().
|
protectedinherited |
The x transition from detector to distorted.
Definition at line 152 of file CameraFocalPlaneMap.h.
Referenced by CameraFocalPlaneMap(), FocalPlaneXDependency(), Init(), Isis::LroWideAngleCameraFocalPlaneMap::setBand(), SetDetector(), SetTransX(), SignMostSigX(), and TransX().
|
protectedinherited |
The y transition from detector to distorted.
Definition at line 153 of file CameraFocalPlaneMap.h.
Referenced by CameraFocalPlaneMap(), Init(), Isis::LroWideAngleCameraFocalPlaneMap::setBand(), SetDetector(), SetTransY(), SignMostSigY(), and TransY().