Get Mask of the Highest Layer

The main function of this combination is to remove invalid regions and then seperate the depth image and getting the mask of the highest layer. Usually this combination is applied in the case that the depth situation is quite complex and should be seperated into layers. The combination is as Figure 1. shown.

Procedure of getting the mask of the highest layer

Figure 1. Procedure of getting the mask of the highest layer

The introduction of each steps is as follows:

  1. Invalidate Depth Pixels Outside 3D ROI Filter the depth image and only remain regions of interest to remove useless data and accelerate the process.

  2. Segment Depth Image Seperate the depth image and filter out points of noise.

  3. Get Highest Areas in Depth Image Generate the mask of the closest valid region to the camera.

  4. Merge Mask Images Combine multiple mask images closest to the camera at the same layer into one.