Generate 2D ROI from Depth Map
Function: Generates a 2D ROI from a depth map. Outputs a 2D ROI generated from the minimum and maximum position range on the depth map where the z-value is not 0 and not NaN.
Input Parameters:
Name | Type | Valid Range | Default Value | Meaning |
---|---|---|---|---|
Depth image |
MonoImage |
None |
None |
Depth map of the point cloud z value, the input depth needs to be W*H, this depth map should be consistent with the size of the image to be cropped. |
Output Parameters:
Name | Type | Valid Range | Default Value | Meaning |
---|---|---|---|---|
2D ROI |
ROI2D |
None |
[{'min': [-2000, -2000], 'max': [2000, 2000]}] |
Input is a 2*2 array, representing [{'min':[min_pixel_row, min_pixel_col],'max': [max_pixel_row, max_pixel_col]}]. |