🟧 Depth Image Generate 2D ROI

Function Description

Input a single-channel depth image, the operator analyzes depth values of all pixels in the image and automatically generates a minimum rectangular ROI that tightly encompasses all valid depth pixels (depth values not 0 and not invalid value NaN).

Usage Scenarios

Suitable for directly using depth images to map 3D spatial target positions back to 2D image regions.

Input Output

Input

Depth Image: A single-channel depth image.

Output

2D ROI: Output calculated 2D ROI coordinates.