Dynamic ROI Generation With Normals

Description

This operator applies a standard ROI, defined relative to a model or scene point cloud, to all matched model instances.

Overview

Pre-configure template ROI and dynamically generate ROIs at corresponding positions for each pose based on a pose list.

Scenarios

  • Multi-target area definition: When poses of multiple objects are obtained via matching or other methods, define an ROI of the same size and relative direction for each object.

  • Pose-based area filtering: Precisely filter the scene point cloud around each object based on the recognized target object poses.

Inputs and Outputs

Inputs

ROI Reference Point Pose: Input pose list that defines the initial center and orientation of each dynamic ROI.

Scene Point Cloud (Optional): Input scene point cloud or list of point clouds with normals to be filtered.

Outputs

Point Cloud After ROI: If a scene point cloud is provided, outputs the point cloud list filtered by the dynamic ROI; otherwise this output is empty.

3D ROI: ROI list dynamically generated from the input poses and the template ROI.

Parameters

Initialization Parameters

Model Point Cloud File

Description

Specifies a model point cloud file (.ply format). If provided, the operator loads it during initialization, mainly to help the user configure the "3D ROI" parameter in the interface so it matches the model’s dimensions.

Note: This is an optional parameter — the operator does not require this model to exist at runtime, but at least one of the input scene point cloud or this model file must be provided.

Tuning Instructions

If you want to define the template ROI based on a specific model, select the corresponding .ply file. If a model reference is not needed, you can leave it unset, but you must ensure a scene point cloud is provided as input at runtime.

Parameter Range

Values/Range:

  • .ply

3D ROI

Description

Defines the template ROI; at runtime, the operator transforms the template ROI according to each input reference point pose to generate the final dynamic ROI.

Tuning Instructions

Besides entering the ROI parameters directly, it is recommended to click the "eye" icon in the upper-right corner of the parameter panel to open the view window and configure the ROI visually, which is more convenient and intuitive.

Parameter Range

Default: [{"min": [0, 0, 0], "max": [0, 0, 0], "transform": [0, 0, 0, 0, 0, 0]}]

Run Parameters

Keep Organized

Description

Controls whether the output point cloud retains the original structure of the input.

Tuning Instructions

  • Disabled (Default): Does not keep the structure ordered. The output contains only the points inside the ROI (or outside, if Reverse is enabled), discarding invalid points, resulting in an unordered point list. This suits most point cloud processing scenarios, especially when downstream steps only need valid point coordinates and not the original structure — the output data volume is typically much smaller than when keeping the original structure (which includes many invalid points), making downstream processing faster.

  • Enabled: Keeps the structure ordered. The output point cloud has the same shape as the input; points outside the ROI are marked as invalid but still occupy their original positions, preserving the original adjacency relationships between points. This suits scenarios where downstream steps need to use the spatial adjacency of the point cloud for image-like processing.

Parameter Range

Default: False

Keep Original Size

Description

Only takes effect when "Keep Organized" is enabled and the input point cloud has an ordered structure. Controls whether, while keeping the ordered structure, rows and columns consisting entirely of invalid points are cropped out.

Tuning Instructions

  • Enabled (Default): Keeps the original size, even if some regions become entirely invalid points due to ROI filtering.

  • Disabled: While keeping the 2D structure, removes rows and columns that became entirely invalid due to ROI filtering, yielding a possibly smaller but still ordered point cloud.

Parameter Range

Default: True

Enable Invert

Description

Inverts the filtering logic.

Tuning Instructions

Disabled (Default): Keeps the point cloud inside the ROI and removes the point cloud outside the ROI.

Enabled: Keeps the point cloud outside the ROI and removes the point cloud inside the ROI. Useful for removing interference from a specific region.

Parameter Range

Values/Range:

  • True

  • False

Default: False

Split Multi-ROI Results

Description

Only effective when "Enable Invert" is disabled. Controls how to handle the filtering results of the same input point cloud when multiple ROIs are input.

Tuning Instructions

  • Disabled (Default): Merge results. If an input point cloud intersects with multiple ROIs, all points falling inside these ROIs are merged into one output point cloud.

  • Enabled: Split results. If an input point cloud intersects with multiple ROIs, each ROI generates a separate output point cloud. That is, one input point cloud may output multiple point clouds depending on the number of intersecting ROIs.

Parameter Range

Default: True

Enable Node

Description

Controls whether this operator executes its computation.

Tuning Instructions

Enabled (Default): Runs the operator function normally.

Disabled: The operator performs no operation and directly outputs the input data.

Parameter Range

Default: True