PinholeCamera:

Path: Imaging/Optics

% Perform pinhole camera transformation on points.

 Transforms points in the camera frame to points in the focal plane using the
 pinhole transformation, which depends only on focal length. r is in the
 camera frame with +z outward from the focal plane along the camera
 boresight. While the input f is specified as mm the output will be in
 whatever units you use for f.

 Type PinholeCamera for a demo.
--------------------------------------------------------------------------
   Form:
        PinholeCamera           % demo
    p = PinholeCamera( r, f )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r           (3,:) Points in the camera frame
   f           (1,1) Focal length (mm)

   -------
   Outputs
   -------
   p           (2,:) Points in the focal plane (mm)

--------------------------------------------------------------------------

Children:

Common: Graphics/Plot2D

Back to the Imaging Module page