Path: SCPro/ProSensors
% Compute the MATLAB camera pointing parameters from the camera model. The distance to the viewed object is required. Uses the camera boresight and position in the body frame. All vectors must be in the same units, i.e. m. See also CameraDatabase, PointCameraDemo. Since version 8. -------------------------------------------------------------------------- Form: [position,target,up,angle] = PointCameraModel(camera,rBody,qBody,distance) -------------------------------------------------------------------------- ------ Inputs ------ camera (:) Camera model constructed using the database rBody (3,1) Location of body (with camera attached) in scene qBody (4,1) Quaternion from scene to body frame distance (1,1) Distance from camera to scene ------- Outputs ------- position (1,3) Position for axes CameraPosition property target (1,3) Target direction for axes CameraTarget property up (1,3) Up for axes CameraUpVector property angle (1,1) Angle in deg for axes CameraViewAngle property --------------------------------------------------------------------------
SCPro: ProSensors/CameraDatabase Common: Quaternion/QTForm Imaging: Optics/AngleOfView
Back to the SCPro Module page