Get Mask for Highest Layer

You are currently viewing the documentation for version 1.7.5. To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ To use the latest version, visit the Mech-Mind Download Center to download it.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

Function

This Procedure is mainly used to get the mask for the highest-layer. The components of the Procedure are shown as below.

calc mask for highest layer calc mask for highest layer

Usage Scenario

Usually, this Procedure is applied when the depth situation is quite complex and should be separated into layers. It can remove invalid regions and stratify the depth map to get the mask for the highest layer.

Processing Workflow and Parameter Tuning

The workflow of this Procedure is shown below:

calc mask for highest layer calc mask for highest layer frame

Filter Out Point Clouds That Exceed The Limit

Point clouds that exceed the limit should be filtered out for higher processing efficiency of subsequent Steps. Therefore, only needed areas of the depth map can be retained, which requires an ROI to be selected in the original depth map.

Double-click to enter this Procedure. Click the Set 3D ROI button in the Step Parameters panel of Invalidate Depth Pixels Outside 3D ROI and select 3D ROI in the pop-up Set ROI window.

The following show the point clouds before and after 3D ROI selection. The image on the left is the original depth map, containing many irrelevant point clouds; the image on the right is the depth map after 3D ROI selection, which no longer contains point clouds of regions outside the selected ROI.

calc mask for highest layer invalidate depth pixels outside 3d roi

Segment Depth Map by Depth

Segment Depth Map segments the depth map within the ROI based on each pixel’s depth and generates the corresponding mask(s).

In the Step Parameters Panel of Segment Depth Map, click the Set 2D ROI button and select 2D ROI in the pop-up Set ROI window.

Then, set Max Height Diff between Neighbouring Pixels to determine whether the neighboring pixels belong to the same segment; and set Min Segment Area to determine the valid segment.

As shown below, the image on the left is the depth map before segmentation, and that on the right is the depth map after segmentation.

calc mask for highest layer segment depth image

Get Highest Layer Regions in Depth Map

Get Highest Layer Regions in Depth Map obtains the highest area(s) in a depth map based on the masks and masks’ depth information output from Segment Depth Map and generates the mask areas of the closest valid region to the camera under proper Layer Height. There could be one or multiple areas that satisfy this condition.

calc mask for highest layer get highest area in depth image

Merge Mask Images

Merge Mask Images merges the masks input from Get Highest Layer Regions in Depth Map if the input contains more than one mask to get the mask of the highest layer. The following image shows the mask of the highest layer after merging.

calc mask for highest layer merge mask images

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.