CamPlot

RTSX Help: Plot points on image plane

CamPlot

Syntax

  • uv = CamPlot(cam, P, options)

Input Arguments

  • cam –a camera model
  • P –world point coordinates (3 x N)

Output Arguments

  • uv — image plane coordinates (2xN) corresponding to the world points P (3xN).

Options

Note : options in [ ] must be passed to the function in pairs.

  • [ ‘Tobj’, T] — Transform all points by the homogeneous transformation T before projecting them to the camera image plane.
  • [ ‘Tcam’, T] — Set the camera pose to the homogeneous transformation T before projecting points to the camera image plane. Temporarily overrides the current camera pose .

Examples

-->cam = CentralCamera('focal', 0.015, 'pixel', 10e-6, ...
'resolution', [1280 1024], 'centre', [640 512], 'name', 'mycamera')
--> P = mkgrid(3, 0.2, 'T', transl(0, 0, 1.0));
-->CamPlot(cam,P)

See Also

  • CentralCamera — create a central-projection perspective camera model
  • CamProject — project world points
  • IBVS4 — Image-based visual servoing control for 4-feature points