CentralCamera#
- class CentralCamera(f: float | int | list[float | int] | tuple[float | int, ...] | ndarray = 1, distortion: ndarray | None = None, **kwargs)[source]#
Create central camera projection model

- Parameters:
f (float, optional) – focal length, defaults to 8mm
distortion (array_like(5), optional) – camera distortion parameters, defaults to
Nonekwargs – arguments passed to
CameraBaseconstructor
A camera object contains methods for projecting 3D points and lines to the image plane, as well as supporting a virtual image plane onto which 3D points and lines can be drawn.
- References:
- Seealso:
CameraBaseFishEyeCameraSphericalCamera
Abstract camera base class
- Parameters:
name (str, optional) – camera instance name, defaults to
Nonecamtype (str, optional) – camera projection type, defaults to ‘central’
rho (scalar or array_like(2), optional) – pixel size, defaults to 1
imagesize (int or array_like(2), optional) – image dimension (width, height) in pixels, defaults to
Nonesensorsize (array_like(2), optional) – image sensor size (width, height), defaults to
Nonepp (array_like(2), optional) – principal point position, defaults to
Nonenoise (float, optional) – standard deviation of image plane projection noise, defaults to
Nonepose (
SE3, optional) – camera pose, defaults toNonelimits (array_like(4), optional) – bounds of virtual image plane [umin, umax, vmin, vmax], defaults to
Nonelabels (2-tuple of str, optional) – axis labels for virtual image plane, defaults to
('u', 'v')seed (int, optional) – random number seed for projection noise, defaults to
None
- Raises:
TypeError – name must be a string
TypeError – camtype must be a string
ValueError – rho must be a 1- or 2-element vector
This abstract class is the base for all camera projection model classes. All baseclass constructors support these options.
Methods
Camera projection matrix
Clear the virtual image plane (base method)
Decompose camera calibration matrix
Decompose essential matrix
Decompose homography matrix
Set default central camera parameters
Compute projection and derivatives for bundle adjustment
Display image on virtual image plane (base method)
Compute distorted coordinate
Essential matrix from two camera views
Epipolar distance
Compute epipolar line
Estimate object pose
Fundamental matrix
Display optical flow field
Camera field-of-view angles
Compute homography from plane and camera pose
Calibrate camera from checkerboard images
Move camera (base method)
Plot 3D camera icon in world view (base method)
Plot epipolar line
Plot 2D line on virtual image plane (base method)
Plot 3D line on virtual image plane (base method)
Plot points on virtual image plane (base method)
Plot 3D wireframe in virtual image plane (base method)
Estimate camera matrix from data points
Essential matrix from points
Estimate fundamental matrix from corresponding points
Estimate homography from corresponding points
Project 3D lines to image plane
Project 3D points to image plane
Project 3D quadric to image plane
Project image plane points to a ray
Reset camera pose (base method)
Visual Jacobian for ellipse features
Visual Jacobian for line features
Visual Jacobian for point features
Visual Jacobian for point features in polar coordinates
Attributes
Set/get camera type (base method)
Position of camera frame
Position of camera frame
Set/Get distortion model (base method)
Set/get focal length
Get focal length in pixels
Get focal length in horizontal direction
Get focal length in vertical direction
Get image plane height (base method)
Set/get size of virtual image plane (base method)
Intrinsic matrix of camera
Set/get camera name (base method)
Set/Get projection noise (base method)
Get image plane width (base method)
Get image plane height (base method)
Set/get camera pose (base method)
Set/get principal point coordinate (base method)
Get pixel dimensions (base method)
Get pixel width (base method)
Get pixel width (base method)
Get principal point: horizontal coordinate (base method)
Get principal point: vertical coordinate (base method)
Get image plane width (base method)