1#ifndef RollingShutterCameraDetectorMap_h 
    2#define RollingShutterCameraDetectorMap_h 
   10#include "CameraDetectorMap.h" 
   33                                      std::vector<double> times,
 
   34                                      std::vector<double> sampleCoeffs,
 
   35                                      std::vector<double> lineCoeffs);
 
   39      virtual bool SetParent(
const double sample,
 
   42      virtual bool SetParent(
const double sample,
 
   49      std::pair<double, double> 
applyJitter(
const double sample,
 
   51      std::pair<double, double> 
removeJitter(
const double sample,
 
 
CameraDetectorMap(Camera *parent=0)
Default constructor assumes no summing and starting detector offsets.
 
RollingShutterCameraDetectorMap(Camera *parent, std::vector< double > times, std::vector< double > sampleCoeffs, std::vector< double > lineCoeffs)
Constructs a RollingShutterCameraDetectorMap.
 
std::vector< double > m_times
List of normalized [-1, 1] readout times for all the lines in the input image.
 
virtual ~RollingShutterCameraDetectorMap()
Destructor.
 
std::pair< double, double > applyJitter(const double sample, const double line)
Iteratively finds a solution to "apply" jitter to an image coordinate.
 
std::vector< double > m_sampleCoeffs
List of coefficients for the n-order polynomial characterizing the jitter in the sample direction.
 
std::vector< double > m_lineCoeffs
List of coefficients for the n-order polynomial characterizing the jitter in the line direction.
 
std::pair< double, double > removeJitter(const double sample, const double line)
Remove the distortion from the image (parent) coordinates.
 
virtual bool SetParent(const double sample, const double line)
Compute detector position from a parent image coordinate.
 
virtual bool SetDetector(const double sample, const double line)
Compute parent position from a detector coordinate.
 
This is free and unencumbered software released into the public domain.