Isis Developer Reference
|
Convert between parent image coordinates and detector coordinates. More...
#include <PushFrameCameraDetectorMap.h>
Public Member Functions | |
PushFrameCameraDetectorMap (Camera *parent, const double etStart, const double frameletRate, int frameletHeight) | |
Construct a detector map for push frame cameras. | |
virtual | ~PushFrameCameraDetectorMap () |
Destructor. | |
virtual bool | SetParent (const double sample, const double line) |
Compute detector position from a parent image coordinate. | |
virtual bool | SetParent (const double sample, const double line, const double deltaT) |
Compute detector position from a parent image coordinate. | |
virtual bool | SetDetector (const double sample, const double line) |
Compute parent position from a detector coordinate. | |
double | FrameletRate () const |
Return the time in seconds between framelets. | |
void | SetFrameletRate (const double frameletRate) |
Reset the frame rate. | |
int | FrameletOffset () const |
Return the frame offset. | |
void | SetFrameletOffset (int frameletOffset) |
Reset the frame offset. | |
void | SetFramelet (int framelet, const double deltaT=0) |
This method changes the current framelet. | |
int | Framelet () |
This method returns the current framelet. | |
void | SetBandFirstDetectorLine (int firstLine) |
Change the starting line in the detector based on band. | |
int | GetBandFirstDetectorLine () |
Return the starting line in the detector for the current band. | |
void | SetStartTime (const double etStart) |
Reset the starting ephemeris time. | |
double | StartEphemerisTime () const |
This returns the starting ET of this band. | |
void | SetExposureDuration (double exposureDuration) |
Change the exposure duration in seconds. | |
virtual double | exposureDuration (const double sample, const double line, const int band) const |
This virtual method is for returning the exposure duration of a given pixel. | |
void | SetFrameletOrderReversed (bool frameletOrderReversed, int nframelets) |
Changes the direction of the framelets. | |
void | SetFrameletsGeometricallyFlipped (bool frameletsFlipped) |
Mirrors the each framelet in the file. | |
int | TotalFramelets () const |
Return the total number of framelets including padding. | |
double | frameletSample () const |
This returns the calculated framelet sample. | |
double | frameletLine () const |
This returns the calculated framelet line. | |
int | frameletHeight () const |
This returns how many lines are considered a single framelet. | |
bool | timeAscendingFramelets () |
Returns if the framelets are reversed from top-to-bottom. | |
double | AdjustedStartingSample () const |
Return the starting detector sample adjusted for summation. | |
double | AdjustedStartingLine () const |
Return the starting detector line adjusted for summation. | |
double | ParentSample () const |
Return parent sample. | |
double | ParentLine () const |
Return parent line. | |
double | DetectorSample () const |
Return detector sample. | |
double | DetectorLine () const |
Return detector line. | |
void | SetStartingDetectorSample (const double sample) |
Set the starting detector sample. | |
void | SetStartingDetectorLine (const double line) |
Set the starting detector line. | |
void | SetDetectorSampleSumming (const double summing) |
Set sample summing mode. | |
void | SetDetectorLineSumming (const double summing) |
Set line summing mode. | |
virtual double | SampleScaleFactor () const |
Return scaling factor for computing sample resolution. | |
virtual double | LineScaleFactor () const |
Return scaling factor for computing line resolution. | |
virtual double | LineRate () const |
Return the line collection rate (0 for framing cameras) | |
Protected Attributes | |
Camera * | p_camera |
Pointer to the camera. | |
double | p_parentSample |
The parent sample calculated from the detector. | |
double | p_parentLine |
The parent line calculated from the detector. | |
double | p_detectorLine |
Detector coordinate line value. | |
double | p_detectorSample |
Detector coordinate sample value. | |
double | p_detectorSampleSumming |
The scaling factor for computing sample resolution. | |
double | p_detectorLineSumming |
The scaling factor for computing line resolution. | |
double | p_startingDetectorSample |
Detector start coordinate sample value. | |
double | p_startingDetectorLine |
Detector start coordinate line value. | |
double | p_ss |
Start sample. | |
double | p_sl |
Start line. | |
Convert between parent image coordinates and detector coordinates.
This class is used to convert between parent dector coordinates (sample/line) and detector coordinates for a push frame camera.
Isis::PushFrameCameraDetectorMap::PushFrameCameraDetectorMap | ( | Camera * | parent, |
const double | etStart, | ||
const double | frameletRate, | ||
int | frameletHeight ) |
Construct a detector map for push frame cameras.
parent | The parent camera model for the detector map |
etStart | starting ephemeris time in seconds at the first framelet (not including padded framelets). |
frameletRate | the time in seconds between framelets |
frameletHeight | Physical height of framelet in lines (don't account for summing) |
References frameletHeight().
|
virtual |
Destructor.
|
inherited |
Return the starting detector line adjusted for summation.
References Isis::CameraDetectorMap::p_sl.
|
inherited |
Return the starting detector sample adjusted for summation.
References Isis::CameraDetectorMap::p_ss.
|
inherited |
Return detector line.
References Isis::CameraDetectorMap::p_detectorLine.
Referenced by Isis::Camera::SetImage(), and Isis::Camera::SetImage().
|
inherited |
Return detector sample.
References Isis::CameraDetectorMap::p_detectorSample.
Referenced by Isis::Camera::SetImage(), and Isis::Camera::SetImage().
|
virtual |
This virtual method is for returning the exposure duration of a given pixel.
sample | The sample of the desired pixel. |
line | The line of the desired pixel. |
band | The band of the desired pixel. |
Reimplemented from Isis::CameraDetectorMap.
Referenced by SetExposureDuration().
int Isis::PushFrameCameraDetectorMap::Framelet | ( | ) |
This method returns the current framelet.
This framelet is calculated when SetParent is called.
int Isis::PushFrameCameraDetectorMap::frameletHeight | ( | ) | const |
This returns how many lines are considered a single framelet.
Referenced by PushFrameCameraDetectorMap().
double Isis::PushFrameCameraDetectorMap::frameletLine | ( | ) | const |
This returns the calculated framelet line.
int Isis::PushFrameCameraDetectorMap::FrameletOffset | ( | ) | const |
Return the frame offset.
double Isis::PushFrameCameraDetectorMap::FrameletRate | ( | ) | const |
Return the time in seconds between framelets.
double Isis::PushFrameCameraDetectorMap::frameletSample | ( | ) | const |
This returns the calculated framelet sample.
int Isis::PushFrameCameraDetectorMap::GetBandFirstDetectorLine | ( | ) |
Return the starting line in the detector for the current band.
|
virtualinherited |
Return the line collection rate (0 for framing cameras)
Reimplemented in Isis::ApolloPanoramicDetectorMap, Isis::LineScanCameraDetectorMap, and Isis::RadarPulseMap.
Referenced by Isis::LineScanCameraSkyMap::SetSky().
|
virtualinherited |
Return scaling factor for computing line resolution.
References Isis::CameraDetectorMap::p_detectorLineSumming.
Referenced by Isis::Camera::LineResolution(), Isis::Camera::ObliqueLineResolution(), Isis::ThemisIrCamera::SetBand(), SetDetector(), SetParent(), and TotalFramelets().
|
inherited |
Return parent line.
References Isis::CameraDetectorMap::p_parentLine.
Referenced by Isis::Camera::SetRightAscensionDeclination().
|
inherited |
Return parent sample.
References Isis::CameraDetectorMap::p_parentSample.
Referenced by Isis::Camera::SetRightAscensionDeclination().
|
virtualinherited |
Return scaling factor for computing sample resolution.
References Isis::CameraDetectorMap::p_detectorSampleSumming.
Referenced by Isis::Camera::ObliqueSampleResolution(), and Isis::Camera::SampleResolution().
void Isis::PushFrameCameraDetectorMap::SetBandFirstDetectorLine | ( | int | firstLine | ) |
Change the starting line in the detector based on band.
Use this method to change which line is read out of the CCD for any given band. That is, as the virtual SetBand method for the specfic camera is invoked this method should be called.
firstLine | 0-based offset to the first line (first line of detector = 0) |
Referenced by Isis::ThemisVisCamera::BandEphemerisTimeOffset(), Isis::LroWideAngleCamera::SetBand(), and Isis::MarciCamera::SetBand().
|
virtual |
Compute parent position from a detector coordinate.
This method will compute a parent sample given a detector coordinate. The parent line and framelet line will be computed.
sample | Sample number in the detector |
line | Line number in the detector |
Reimplemented from Isis::CameraDetectorMap.
References Isis::CameraDetectorMap::LineScaleFactor(), Isis::CameraDetectorMap::p_detectorLine, Isis::CameraDetectorMap::p_detectorSample, Isis::CameraDetectorMap::p_parentLine, and Isis::CameraDetectorMap::SetDetector().
|
inlineinherited |
Set line summing mode.
Use this method to specify if detector lines are summed/averaged. That is, one image lines represents the average of N detectors. If not set the default is 1.
summing | Line summing mode |
References Isis::CameraDetectorMap::p_detectorLineSumming.
Referenced by Isis::CrismCamera::CrismCamera().
|
inlineinherited |
Set sample summing mode.
Use this method to specify if detector samples are summed/averaged. That is, one image sample represents the average of N detectors. If not set the default is 1.
summing | Sample summing mode |
References Isis::CameraDetectorMap::p_detectorSampleSumming.
Referenced by Isis::ApolloPanoramicCamera::ApolloPanoramicCamera(), Isis::CrismCamera::CrismCamera(), Isis::DawnVirCamera::DawnVirCamera(), Isis::HrscCamera::HrscCamera(), and Isis::RosettaVirtisCamera::RosettaVirtisCamera().
void Isis::PushFrameCameraDetectorMap::SetExposureDuration | ( | double | exposureDuration | ) |
Change the exposure duration in seconds.
Use this method to change the exposure duration of each framelet which may be different than the framelet rate.
exposureDuration | The time from the start of a framelet's exposure to the end of the framlet's exposure duration. |
References exposureDuration().
void Isis::PushFrameCameraDetectorMap::SetFramelet | ( | int | framelet, |
const double | deltaT = 0 ) |
This method changes the current framelet.
The camera's ephemeris time will be updated to the center of the framelet.
framelet | Current Framelet |
deltaT | offset from center time in seconds |
References Isis::CameraDetectorMap::p_camera, and Isis::Sensor::setTime().
Referenced by SetParent().
void Isis::PushFrameCameraDetectorMap::SetFrameletOffset | ( | int | frameletOffset | ) |
Reset the frame offset.
Use this method to reset the frame offset. Usually this will not need to be done unless the offset changes between bands.
frameletOffset | Number of frames offset in cube |
void Isis::PushFrameCameraDetectorMap::SetFrameletOrderReversed | ( | bool | frameletOrderReversed, |
int | nframelets ) |
Changes the direction of the framelets.
Use this method to change which direction the framelets are ordered. In some cases, the top framelet from the raw instrument data has been moved to the bottom of the image and this compensates for that.
If not set, the default is to not flip the framelet order
frameletOrderReversed | Indicates whether the order of the framelets is should be flipped |
nframelets | Number of framelets in each band, ignored if frameletsReversed is set to false |
void Isis::PushFrameCameraDetectorMap::SetFrameletRate | ( | const double | frameletRate | ) |
Reset the frame rate.
Use this method to reset the time between framelets. Usually this will not need to be done unless the rate changes between bands.
frameletRate | the time from the start of a framelet to the start of the next framlet. |
void Isis::PushFrameCameraDetectorMap::SetFrameletsGeometricallyFlipped | ( | bool | frameletsFlipped | ) |
Mirrors the each framelet in the file.
Use this method to change which direction the framelets are geometrically placed. If the first line in the framelet has been changed to the last line in the framelet, then this should be true (DEFAULT).
If not set, the default is true.
frameletsFlipped | Indicates whether each framelet is flipped over a horizontal axis |
|
virtual |
Compute detector position from a parent image coordinate.
This method will compute the detector position and framelet position from the parent line/sample coordinate. The parent line will be used to set the appropriate time in the parent camera.
sample | Sample number in the parent image |
line | Line number in the parent image |
Reimplemented from Isis::CameraDetectorMap.
References SetParent().
Referenced by SetParent().
|
virtual |
Compute detector position from a parent image coordinate.
This method will compute the detector position and framelet position from the parent line/sample coordinate. The parent line will be used to set the appropriate time in the parent camera.
sample | Sample number in the parent image |
line | Line number in the parent image |
deltaT | offset from center time in seconds |
Reimplemented from Isis::CameraDetectorMap.
References Isis::CameraDetectorMap::LineScaleFactor(), Isis::CameraDetectorMap::p_detectorLine, Isis::CameraDetectorMap::p_parentLine, Isis::CameraDetectorMap::p_parentSample, SetFramelet(), and Isis::CameraDetectorMap::SetParent().
|
inlineinherited |
Set the starting detector line.
Use this method to specify the starting detector that represents the first image line in the cube. If not set the default is 1.
line | Starting detector line |
References Isis::CameraDetectorMap::p_startingDetectorLine.
|
inlineinherited |
Set the starting detector sample.
Use this method to specify the starting detector that represents the first image sample in the cube. If not set the default is 1.
sample | Starting detector sample |
References Isis::CameraDetectorMap::p_startingDetectorSample.
Referenced by Isis::ApolloPanoramicCamera::ApolloPanoramicCamera().
void Isis::PushFrameCameraDetectorMap::SetStartTime | ( | const double | etStart | ) |
Reset the starting ephemeris time.
Use this method to reset the starting time of the top edge of the first line in the parent image. That is the time, prior to cropping, scaling, or padding. Usually this will not need to be done unless the time changes between bands.
etStart | starting ephemeris time in seconds |
Referenced by Isis::ThemisVisCamera::SetBand().
double Isis::PushFrameCameraDetectorMap::StartEphemerisTime | ( | ) | const |
This returns the starting ET of this band.
bool Isis::PushFrameCameraDetectorMap::timeAscendingFramelets | ( | ) |
Returns if the framelets are reversed from top-to-bottom.
int Isis::PushFrameCameraDetectorMap::TotalFramelets | ( | ) | const |
Return the total number of framelets including padding.
References Isis::CameraDetectorMap::LineScaleFactor(), Isis::CameraDetectorMap::p_camera, and Isis::Camera::ParentLines().
|
protectedinherited |
Pointer to the camera.
Referenced by Isis::CameraDetectorMap::CameraDetectorMap(), Isis::ApolloPanoramicDetectorMap::SetDetector(), Isis::LineScanCameraDetectorMap::SetDetector(), Isis::RadarPulseMap::SetDetector(), Isis::VariableLineScanCameraDetectorMap::SetDetector(), SetFramelet(), Isis::ApolloPanoramicDetectorMap::SetParent(), Isis::RadarPulseMap::SetParent(), Isis::MocWideAngleDetectorMap::SetParent(), Isis::CameraDetectorMap::SetParent(), Isis::LineScanCameraDetectorMap::SetParent(), Isis::RollingShutterCameraDetectorMap::SetParent(), Isis::VariableLineScanCameraDetectorMap::SetParent(), and TotalFramelets().
|
protectedinherited |
Detector coordinate line value.
Referenced by Isis::CameraDetectorMap::DetectorLine(), Isis::ApolloPanoramicDetectorMap::SetDetector(), Isis::CameraDetectorMap::SetDetector(), SetDetector(), Isis::RollingShutterCameraDetectorMap::SetDetector(), Isis::ApolloPanoramicDetectorMap::SetParent(), Isis::RadarPulseMap::SetParent(), Isis::CameraDetectorMap::SetParent(), Isis::LineScanCameraDetectorMap::SetParent(), SetParent(), Isis::RollingShutterCameraDetectorMap::SetParent(), and Isis::VariableLineScanCameraDetectorMap::SetParent().
|
protectedinherited |
The scaling factor for computing line resolution.
Referenced by Isis::CameraDetectorMap::CameraDetectorMap(), Isis::CameraDetectorMap::LineScaleFactor(), Isis::CameraDetectorMap::SetDetector(), Isis::RollingShutterCameraDetectorMap::SetDetector(), Isis::CameraDetectorMap::SetDetectorLineSumming(), Isis::CameraDetectorMap::SetParent(), and Isis::RollingShutterCameraDetectorMap::SetParent().
|
protectedinherited |
Detector coordinate sample value.
Referenced by Isis::CameraDetectorMap::DetectorSample(), Isis::ApolloPanoramicDetectorMap::SetDetector(), Isis::CameraDetectorMap::SetDetector(), SetDetector(), Isis::RollingShutterCameraDetectorMap::SetDetector(), Isis::ApolloPanoramicDetectorMap::SetParent(), Isis::MocWideAngleDetectorMap::SetParent(), Isis::CameraDetectorMap::SetParent(), and Isis::RollingShutterCameraDetectorMap::SetParent().
|
protectedinherited |
The scaling factor for computing sample resolution.
Referenced by Isis::CameraDetectorMap::CameraDetectorMap(), Isis::CameraDetectorMap::SampleScaleFactor(), Isis::CameraDetectorMap::SetDetector(), Isis::RollingShutterCameraDetectorMap::SetDetector(), Isis::CameraDetectorMap::SetDetectorSampleSumming(), Isis::CameraDetectorMap::SetParent(), and Isis::RollingShutterCameraDetectorMap::SetParent().
|
protectedinherited |
The parent line calculated from the detector.
Referenced by Isis::CameraDetectorMap::ParentLine(), Isis::ApolloPanoramicDetectorMap::SetDetector(), Isis::CameraDetectorMap::SetDetector(), Isis::LineScanCameraDetectorMap::SetDetector(), SetDetector(), Isis::RadarPulseMap::SetDetector(), Isis::RollingShutterCameraDetectorMap::SetDetector(), Isis::VariableLineScanCameraDetectorMap::SetDetector(), Isis::ApolloPanoramicDetectorMap::SetParent(), Isis::CameraDetectorMap::SetParent(), SetParent(), and Isis::RollingShutterCameraDetectorMap::SetParent().
|
protectedinherited |
The parent sample calculated from the detector.
Referenced by Isis::CameraDetectorMap::ParentSample(), Isis::ApolloPanoramicDetectorMap::SetDetector(), Isis::CameraDetectorMap::SetDetector(), Isis::RollingShutterCameraDetectorMap::SetDetector(), Isis::MocWideAngleDetectorMap::SetDetector(), Isis::ApolloPanoramicDetectorMap::SetParent(), Isis::CameraDetectorMap::SetParent(), SetParent(), and Isis::RollingShutterCameraDetectorMap::SetParent().
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
Detector start coordinate line value.
Referenced by Isis::CameraDetectorMap::CameraDetectorMap(), and Isis::CameraDetectorMap::SetStartingDetectorLine().
|
protectedinherited |
Detector start coordinate sample value.
Referenced by Isis::CameraDetectorMap::CameraDetectorMap(), and Isis::CameraDetectorMap::SetStartingDetectorSample().