3D ROI to 2D ROI

Function: Converts a 3D ROI to a 2D ROI based on camera intrinsics. Note that the converted 2D ROI is on the original max_z plane.

Input Parameters:

Name Type Valid Range Default Value Meaning

Camera internal reference

Matrix

None

None

In-camera reference matrix.

3D ROI

ROI3D

None

[{'min': [-2000, -2000, -3000], 'max': [2000, 2000, 6000], 'transform': [0, 0, 0, 0, 0, 0]}]

3D ROI in the format [{'min': [min_x, min_y, min_z], 'max': [max_x, max_y, max_z], 'transform': cam2ROIFrame}]

Output Parameters:

Name Type Valid Range Default Value Meaning

2D ROI

ROI2D

None

None

2D ROI in the format [{'min': [min_x, min_y], 'max': [max_x, max_y]}].