Extract Point Cloud from Mask List

Description

This operator extracts the point cloud of the region covered by each mask from a corresponding organized point cloud based on one or more input binary mask images. It iterates through the input mask list, generates an independent point cloud for each mask, and finally outputs these point clouds as a list.

Overview

Batch extracts 3D point clouds from ordered point clouds based on a list of binary mask images.

Scenarios

After generating masks through image processing, this operator can be used to convert these 2D regions into their corresponding 3D point clouds.

Inputs and Outputs

Inputs

Detection result mask image list: A list of binary mask images, each corresponding to one detection result. Its height and width must match the first two dimensions of the input organized point cloud.

Point Cloud: Organized point cloud whose height and width dimensions must match the size of the input mask images.

Outputs

Masked Point Cloud List: A point cloud list where each point cloud element corresponds to one mask in the input mask list.

Parameters

Shape Type

Description

Select the shape type for the point cloud extraction region.

Tuning Instructions

Options: Minimum Bounding Box, Mask, MinMax, Central Circular Region.

Parameter Range

Values/Range:

  • Minimum bounding rectangle

  • Polygon

  • Axis-aligned rectangle

  • Center Circular Area

Default: Minimum bounding rectangle

Bounding Box Scale Ratio

Description

Used to adjust the size of the extraction region.

Tuning Instructions

A value of 1 means using the original bounding box size; greater than 1.0 expands the bounding box (e.g., 1.1 expands by 10%); less than 1.0 shrinks the bounding box (e.g., 0.9 shrinks by 10%).

Parameter Range

Values/Range: [0.01, 10000.0]

Default: 1.0

Circle Radius Ratio

Description

Defines the radius of the circular region. This radius is a proportion of the length of the short side of the detected instance bounding box.

Tuning Instructions

The larger the value, the larger the extracted circular region. Use a smaller value if you want to obtain the core area of the object, and increase this value if you want to cover most of the object.

Parameter Range

Values/Range: [0.0, 800.0]

Default: 0.2

Mask Edge Only

Description

Used to analyze the contour features of the object.

Tuning Instructions

  • Enabled: The operator extracts only the point cloud of the mask contour edge, not the entire interior of the mask.

  • Disabled (Default): Extracts point cloud within the specified mask.

Parameter Range

Values/Range:

  • True

  • False

Default: False

Edge Thickness

Description

Sets the pixel width of the edge contour.

Tuning Instructions

The larger the value, the thicker the extracted edge point cloud band and the more points it contains.

Parameter Range

Values/Range: [1, 50]

Default: 1

Enable Invert

Description

Inverts the extraction logic.

Tuning Instructions

  • Disabled: Extracts the point cloud inside the specified shape.

  • Enabled: Removes the identified object and retains the background.

Parameter Range

Default: False