WorldToCamera:

Path: SpacecraftEstimation/RelativeState

% Finds the camera focal plane locations of world points.
 Type WorldToCamera for a demo
--------------------------------------------------------------------------
   Form:
        WorldToCamera;   % demo
   xC = WorldToCamera(q,t,xW,f,s,o)
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   q   (4,1) Quaternion from world to camera
   t   (3,1) Translation in the world
   xW  (3,:) Points in the world
   f   (1,1) Focal length
   s   (1,1) Pixel width in the same units as f
   o   (2,1) Focal plane offset in pixels

   -------
   Outputs
   -------
   xC  (2,:) Points in the focal plane in pixels
 
--------------------------------------------------------------------------
   Reference:  Trucco, E. and A. Verri, "Introductory Techniques for 3-D
               Computer Vision," Prentice-Hall, pp. 125-130.
--------------------------------------------------------------------------
   See also RelativeStateFromPoints
--------------------------------------------------------------------------

Children:

Common: Quaternion/Q2Mat

Back to the SpacecraftEstimation Module page