2D ROI from Depth Image

Description

Input a single-channel depth map. The operator analyzes the depth values of all pixels in the image and automatically generates a minimum rectangular ROI that tightly encloses all valid depth pixels (depth values that are not 0 and not NaN).

Overview

Calculates the minimum rectangular area occupied by valid depth pixels in the input single-channel depth map and outputs it as ROI.

Scenarios

Suitable for directly using a depth map to map target positions in 3D space back to regions in a 2D image.

Inputs and Outputs

Inputs

Depth map: A single-channel depth map.

Outputs

2D ROI: Outputs the calculated 2D ROI coordinates.