Public Member Functions | |
| None | __init__ (self, *Any args, **Any kwargs) |
In order to create a XYZTextureAlignment, please refer to the classmethods create_from_extrinsics_and_calibration_parameters. | |
| XYZTextureAlignment | create_from_extrinsics_and_calibration_parameters (cls, ExtrinsicParameters source_camera_extrinsic_parameters, CalibrationParameters target_camera_calibration_parameters) |
| Creates an object for aligning the pixel grids of an XYZ image and its corresponding texture image. | |
| XYZImage | align_xyz_to_texture_grid (self, XYZImage image) |
| Aligns an XYZ image with the pixel grid of a corresponding texture image. | |
Protected Attributes | |
| _source_camera_extrinsic_parameters = kwargs["_source_camera_extrinsic_parameters"] | |
| _target_camera_calibration_parameters = kwargs["_target_camera_calibration_parameters"] | |
Encapsulates the calibration parameters required to align an XYZ image to the pixel grid of a camera providing texture information.
Aligning the pixel grids of an XYZ image and its corresponding texture image is used to associate image texture acquired by the texture camera with the corresponding 3D points.
The stored calibration parameters include the extrinsic parameters of the source 3D camera and the intrinsic and extrinsic parameters of the target camera.
| None __init__ | ( | self, | |
| *Any | args, | ||
| **Any | kwargs ) |
In order to create a XYZTextureAlignment, please refer to the classmethods create_from_extrinsics_and_calibration_parameters.
Aligns an XYZ image with the pixel grid of a corresponding texture image.
Each 3D point in the input image is transformed from the coordinate system of the source 3D camera into the coordinate system of the target camera using the extrinsic parameters of both cameras. The transformed point is then projected onto the image plane of the target camera using its intrinsic parameters. This is the pixel position at which the point would be observed by the target camera.
The XYZ coordinates are stored at the corresponding pixel position in the output image.
Multiple 3D points may be projected onto the same pixel position. In this case, the stored XYZ value is implementation-defined.
The size of the output image corresponds to the calibrated image size of the target camera.
The image region of the returned image contains all pixels for which a projected 3D point exists.
| image | XYZ image to project. |
| NotSupportedException | The pixel format of the input image is not supported. |
| XYZTextureAlignment create_from_extrinsics_and_calibration_parameters | ( | cls, | |
| ExtrinsicParameters | source_camera_extrinsic_parameters, | ||
| CalibrationParameters | target_camera_calibration_parameters ) |
Creates an object for aligning the pixel grids of an XYZ image and its corresponding texture image.
| source_camera_extrinsic_parameters | Extrinsic parameters of the source 3D camera. |
| target_camera_calibration_parameters | Intrinsic and extrinsic parameters of the target camera. |
XYZTextureAlignment instance.
|
protected |
|
protected |