PointCloudMaskByRegionOfInterest Method |
Apply a region of interest box mask to the point cloud in-place
Namespace:
Zivid.NET
Assembly:
ZividCoreNET (in ZividCoreNET.dll) Version: 2.18.0.0
Syntaxpublic PointCloud MaskByRegionOfInterest(
SettingsRegionOfInterestGroupBoxGroup roiSettings
)
Public Function MaskByRegionOfInterest (
roiSettings As SettingsRegionOfInterestGroupBoxGroup
) As PointCloud
public:
PointCloud^ MaskByRegionOfInterest(
SettingsRegionOfInterestGroupBoxGroup^ roiSettings
)
Parameters
- roiSettings
- Type: Zivid.NETSettingsRegionOfInterestGroupBoxGroup
The ROI box settings defining the 3D region to preserve
Return Value
Type:
PointCloud
Remarks
Region of interest masking is used to mask out points that fall outside a specified 3D box region.
Points outside the region are set to invalid (NaN) values, effectively removing them from the point cloud
while maintaining the original dimensions and structure.
The masking is performed on the compute device. The point cloud is modified in-place. Use
MaskedByRegionOfInterest(SettingsRegionOfInterestGroupBoxGroup) if you want to apply ROI masking to a new PointCloud instance.
The ROI box must be enabled (roiSettings.Enabled == true) for the masking to be applied.
See Also