Path: SCPro/ProSensors
% Generates the 2D coordinates in the focal plane for a camera. The camera boresight is the z-axis in the camera frame. d.r is the position of the lens. The pixel measure may be physical pixels or may include interpolation (generally giving a 10x improvement.) -------------------------------------------------------------------------- Form: [x, xPixel] = CameraImage( d, qECIToBody, rECI, p, qECIToTarget, rTarget ) -------------------------------------------------------------------------- ------ Inputs ------ d (1,1) Camera data structure .bBodyToCamera (3,3) Transformation from body to camera frame .r (3,1) Location of the camera .focalLength (1,1) Focal length .xWidth (1,1) X focal plane width .yWidth (1,1) Y focal plane width .xPixels (1,1) X focal plane width in pixels .yPixels (1,1) Y focal plane width in pixels qECIToBody (4,1) Spacecraft quaternion rECI (3,1) Spacecraft position p (3,:) Points on the target qECIToTarget (4,1) Target quaternion rTarget (3,1) Target Position ------- Outputs ------- x (2,:) Points (units of measure) xPixel (2,:) Points (pixels) --------------------------------------------------------------------------
SCPro: ProSensors/CameraDatabase Common: General/DeBlankLT Common: Graphics/NewFig Common: Graphics/PltStyle Common: Graphics/XLabelS Common: Graphics/YLabelS Common: Quaternion/QForm Common: Quaternion/QTForm Math: Linear/DupVect
Back to the SCPro Module page