9#include "MocWideAngleDetectorMap.h"
24 int detector = (int) sample;
25 if(detector < 1) detector = 1;
27 double samp1 = p_moclab->
Sample(detector - 1);
28 double samp2 = p_moclab->
Sample(detector);
29 if(samp1 < 0.0)
return false;
30 if(samp2 < 0.0)
return false;
32 double m = (samp2 - samp1);
53 int isamp = (int) sample;
65 double samp1 = (ss + es) / 2.0;
69 double samp2 = (ss + es) / 2.0;
71 double m = (samp2 - samp1);
double p_parentSample
The parent sample calculated from the detector.
double p_detectorSample
Detector coordinate sample value.
Camera * p_camera
Pointer to the camera.
int Samples() const
Returns the number of samples in the image.
virtual bool SetDetector(const double sample, const double line)
Compute parent position from a detector coordinate.
virtual bool SetParent(const double sample, const double line)
Compute detector position from a parent image coordinate.
int CrosstrackSumming() const
Returns value for CrosstrackSumming from the instrument group.
int StartDetector(int sample) const
Converts from sample to starting detector.
int Detectors() const
Returns 2048 if narrow angle and 3456 if wide angle.
double Sample(int detector) const
Converts from detector to sample.
int EndDetector(int sample) const
Converts from sample to ending detector.
virtual bool SetParent(const double sample, const double line)
virtual bool SetDetector(const double sample, const double line)
Constructor for MocWideAngleDetectorMap class.
This is free and unencumbered software released into the public domain.
Namespace for the standard library.