1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3 @page pointcloudprocessing_usecase7 Point Cloud Filter
4 @note SW Release Applicability: This tutorial is applicable to modules in both **NVIDIA DriveWorks** and **NVIDIA DRIVE Software** releases.
6 This tutorial shows how to use point cloud filter.
8 To initialize the module,
10 dwPointCloudFilterHandle_t filter = DW_NULL_HANDLE;
11 dwPointCloudFilterParams params{};
12 dwPointCloudFilter_getDefaultParameters(¶ms);
13 dwPointCloudFilter_initialize(&filter, ¶ms, context);
16 By default the module only filters out invalid points. A point is considered to be invalid when all coordinates are zeros. In addition it is possible to specify an oriented bounding box and cull points inside or outside the box.
19 params.box = &orientedBoundingBox;
20 params.type = DW_POINT_CLOUD_FILTER_TYPE_INNER; // select points inside the box
23 Note these parameters may be specified in run time with calling:
26 dwPointCloudFilter_setBoundingBox(&orientedBoundingBox, filter);
27 dwPointCloudFilter_setType(type, filter);
30 All operations may be performed either on CPU or on GPU. To enable GPU version set `params.enableCuda` flag to `true`.
36 dwPointCloudFilter_bindInput(inputPointCloud, filter);
37 dwPointCloudFilter_bindOutput(outputPointCloud, filter);
38 dwPointCloudFilter_process(filter);
41 To release the module,
43 dwPointCloudFilter_release(filter);
46 For more details see @ref dwx_pointcloudprocessing_sample