CameraInfo
Represents camera calibration information including intrinsics, distortion parameters, and projection matrix.
Properties:
Property | Type | Description |
|---|---|---|
|
| Camera information metadata header |
|
| Image width |
|
| Image height |
|
| 3x3 camera intrinsic matrix |
|
| Distortion parameters |
|
| 3x3 rectification rotation matrix, defaults to identity |
|
| 3x4 projection matrix, defaults to zero matrix |
|
| Distortion model, defaults to |
|
| Horizontal pixel binning parameter |
|
| Vertical pixel binning parameter |
|
| Region of interest, see "Perception and State Data / RegionOfInterest" |
Read-only properties:
Property | Type | Description |
|---|---|---|
|
| Second-level timestamp, equivalent to |
|
| Coordinate frame ID, equivalent to |
CameraInfo
Signature:
CameraInfo(
header: Header,
width: int,
height: int,
k: np.ndarray,
d: np.ndarray,
r: np.ndarray = np.eye(3),
p: np.ndarray = np.zeros((3, 4)),
distortion_model: str = "plumb_bob",
binning_x: int = 0,
binning_y: int = 0,
roi: RegionOfInterest = RegionOfInterest(),
)
Description:
Construct a CameraInfo instance. This type is an immutable dataclass.
Parameters:
Parameter | Type | Required | Description |
|---|---|---|---|
|
| Yes | Camera information metadata header |
|
| Yes | Image width |
|
| Yes | Image height |
|
| Yes | 3x3 intrinsic matrix |
|
| Yes | Distortion parameters |
|
| No | 3x3 rectification rotation matrix, defaults to identity |
|
| No | 3x4 projection matrix, defaults to zero matrix |
|
| No | Distortion model, defaults to |
|
| No | Horizontal pixel binning parameter |
|
| No | Vertical pixel binning parameter |
|
| No | Region of interest |
Returns:
CameraInfo instance.
Raises:
None.
to_dict
Signature:
CameraInfo.to_dict() -> dict[str, Any]
Description:
Convert to a JSON/YAML serializable dictionary; matrix fields k / d / r / p are converted to lists via tolist().
Parameters:
No parameters.
Returns:
dict[str, Any].
Raises:
None.