DriveWorks SDK Reference
5.14.77 Release
For Test and Development only

PointCloudBoxFilter.h
Go to the documentation of this file.
1
2//
3// Notice
4// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
5// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
6// THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
7// MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
8//
9// NVIDIA CORPORATION & AFFILIATES assumes no responsibility for the consequences of use of such
10// information or for any infringement of patents or other rights of third parties that may
11// result from its use. No license is granted by implication or otherwise under any patent
12// or patent rights of NVIDIA CORPORATION & AFFILIATES. No third party distribution is allowed unless
13// expressly authorized by NVIDIA. Details are subject to change without notice.
14// This code supersedes and replaces all information previously supplied.
15// NVIDIA CORPORATION & AFFILIATES products are not authorized for use as critical
16// components in life support devices or systems without express written approval of
17// NVIDIA CORPORATION & AFFILIATES.
18//
19// SPDX-FileCopyrightText: Copyright (c) 2020-2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
20// SPDX-License-Identifier: LicenseRef-NvidiaProprietary
21//
22// NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
23// property and proprietary rights in and to this material, related
24// documentation and any modifications thereto. Any use, reproduction,
25// disclosure or distribution of this material and related documentation
26// without an express license agreement from NVIDIA CORPORATION or
27// its affiliates is strictly prohibited.
28//
30
47#ifndef DW_POINTCLOUDPROCESSING_POINTCLOUDFILTER_H_
48#define DW_POINTCLOUDPROCESSING_POINTCLOUDFILTER_H_
49
50#include <dw/core/base/Types.h>
53
54#ifdef __cplusplus
55extern "C" {
56#endif
57
58typedef struct dwPointCloudBoxFilterObject* dwPointCloudBoxFilterHandle_t;
59
63typedef enum {
67
71typedef struct
72{
79
89
101 dwPointCloudBoxFilterParams const* const params,
102 dwContextHandle_t const ctx);
103
112
121
151
162
178
190
201
211
221
222#ifdef __cplusplus
223}
224#endif
226#endif // DW_POINTCLOUDPROCESSING_POINTCLOUDFILTER_H_
NVIDIA DriveWorks API: Core Methods
dwStatus
Status definition.
Definition: ErrorDefs.h:45
Data structure representing an oriented bounding box in the local object coordinate frame The box is ...
NVIDIA DriveWorks API: Point Cloud Processing
NVIDIA DriveWorks API: Core Types
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:86
#define DW_API_PUBLIC
Definition: Exports.h:54
bool allowDownSampling
if set, the amount of output points will automatically fit output point cloud capacity
uint32_t maxInputPointCount
maximum size of input point cloud, only relevant for GPU version
const dwOrientedBoundingBox3f * box
oriented bounding box
bool enableCuda
if true filtering is performed on GPU, otherwise on CPU
dwPointCloudBoxFilterType type
type of a filter
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_setFilterType(dwPointCloudBoxFilterType const type, dwPointCloudBoxFilterHandle_t const obj)
Sets type for point cloud box filter.
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_setCUDAStream(cudaStream_t const stream, dwPointCloudBoxFilterHandle_t const obj)
Sets CUDA stream of point cloud box filter.
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_setDownSamplingEnabled(bool const enabled, dwPointCloudBoxFilterHandle_t const obj)
Turns on/off down sampling.
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_getDefaultParameters(dwPointCloudBoxFilterParams *const params)
Gets default point cloud box filter parameters.
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_process(dwPointCloudBoxFilterHandle_t const obj)
Applies point cloud box filter to previously bound point cloud.
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_bindOutput(dwPointCloud *const pointCloud, dwPointCloudBoxFilterHandle_t const obj)
Binds output buffers to point cloud box filter.
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_initialize(dwPointCloudBoxFilterHandle_t *const obj, dwPointCloudBoxFilterParams const *const params, dwContextHandle_t const ctx)
Initializes point cloud box filter.
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_bindInput(dwPointCloud const *const pointCloud, dwPointCloudBoxFilterHandle_t const obj)
Binds input point cloud buffer to filter.
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_release(dwPointCloudBoxFilterHandle_t const obj)
Releases point cloud box filter.
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_setBoundingBox(dwOrientedBoundingBox3f *const boundingBox, dwPointCloudBoxFilterHandle_t const obj)
Sets bounding box for point cloud box filter.
struct dwPointCloudBoxFilterObject * dwPointCloudBoxFilterHandle_t
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_reset(dwPointCloudBoxFilterHandle_t const obj)
Resets point cloud box filter.
DW_API_PUBLIC dwStatus dwPointCloudBoxFilter_getCUDAStream(cudaStream_t *const stream, dwPointCloudBoxFilterHandle_t const obj)
Gets CUDA stream of point cloud box filter.
dwPointCloudBoxFilterType
Defines box filter type.
@ DW_POINT_CLOUD_BOX_FILTER_TYPE_OUTER
pick points outside the box
@ DW_POINT_CLOUD_BOX_FILTER_TYPE_INNER
pick points inside the box
Defines parameters for point cloud box filter.
Defines point cloud data structure.
Definition: PointCloud.h:99