Public Member Functions

PinholeCamera Class Reference

Pinhole camera model. More...

List of all members.

Public Member Functions

 PinholeCamera (void)
 Constructor.
void Initialize (double f, double wX, double wY, double gain)
 Initialize the camera physical parameters.
void InitializeNoise (double sigmaXY, double sigmaI, double sigmaFS, int fSAtEnd)
 Initialize the camera noise model.
ml_matrix Update (ml_matrix u, ml_matrix intensity, ml_matrix bUToCamera)
 Update the camera measurement from unit vectors.
ml_matrix GetPixelOutput (void)
 Get the pixel intensity output.
ml_matrix GetStars (void)
 Get the star matrix output.
ml_matrix UpdateFromPosition (ml_matrix rT, ml_matrix r, ml_matrix intensity, ml_matrix q_eci_to_body, ml_matrix q_body_to_camera)
 Update the camera measurement from unit vectors.

Detailed Description

Pinhole camera model. Explicitly models star camera mueasurements with position and intensity noise parameters as well as false stars.


Member Function Documentation

void PinholeCamera::Initialize ( double  f,
double  wX,
double  wY,
double  gain 
)
Parameters:
fPixel conversion factor
wXWidth of sensing element in X
wYWidth of sensing element in Y
gainCamera gain
void PinholeCamera::InitializeNoise ( double  sigmaXY,
double  sigmaI,
double  sigmaFS,
int  fSAtEnd 
)
Parameters:
sigmaXYPosition noise 1 sigma
sigmaIIntensity noise 1 sigma
sigmaFSFalse star noise 1 sigmas
fSAtEndFlag, 1 if false stars are at the end of the measurements
ml_matrix PinholeCamera::Update ( ml_matrix  u,
ml_matrix  intensity,
ml_matrix  bUToCamera 
)

Keeps only those vectors within the imaging chip limits. Applies the camera gain to get the measured intensity. Noise is not yet modeled. See also u_to_pix.

Parameters:
uStar unit vectors
intensityStar intensity
bUToCameraRotation to imager frame
Returns:
Pixels. Each column is an xy pair corresponding to a star id
ml_matrix PinholeCamera::GetPixelOutput ( void   )
Returns:
intensity
ml_matrix PinholeCamera::GetStars ( void   )
Returns:
star
ml_matrix PinholeCamera::UpdateFromPosition ( ml_matrix  rT,
ml_matrix  r,
ml_matrix  intensity,
ml_matrix  q_eci_to_body,
ml_matrix  q_body_to_camera 
)

Keeps only those vectors within the imaging chip limits. Applies the camera gain to get the measured intensity. Noise is not yet modeled. See also u_to_pix.

Parameters:
rPosition of camera in ECI
rTPosition of target in ECI
intensityTarget illumination
q_eci_to_bodyQuaternion from eci to body
q_body_to_cameraQuaternion from body to camera
Returns:
Pixels. Each column is an xy pair corresponding to a star id