NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
PointCloudPlaneExtractor.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2018-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
4  *
5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
6  * property and proprietary rights in and to this material, related
7  * documentation and any modifications thereto. Any use, reproduction,
8  * disclosure or distribution of this material and related documentation
9  * without an express license agreement from NVIDIA CORPORATION or
10  * its affiliates is strictly prohibited.
11  */
12 
29 #ifndef DW_POINTCLOUDPROCESSING_POINTCLOUDPLANEEXTRACTOR_H_
30 #define DW_POINTCLOUDPROCESSING_POINTCLOUDPLANEEXTRACTOR_H_
31 
32 #include <dw/core/base/Types.h>
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 typedef struct dwPointCloudPlaneExtractorObject* dwPointCloudPlaneExtractorHandle_t;
41 
47 typedef struct
48 {
49  uint32_t maxPointCount;
52 
59 typedef struct
60 {
61  uint32_t maxInputPointCount;
70 
74 typedef struct
75 {
79  bool valid;
83 
98  dwPointCloudPlaneExtractorParams const* const params,
99  dwContextHandle_t const ctx);
100 
113 
126 
139 
152 dwStatus dwPCPlaneExtractor_bindInput(dwPointCloud const* const pointCloud,
166 dwStatus dwPCPlaneExtractor_getCUDAStream(cudaStream_t* const stream,
168 
181 dwStatus dwPCPlaneExtractor_setCUDAStream(cudaStream_t const stream,
183 
199  dwPointCloud* const outliers,
200  dwPointCloudExtractedPlane* const outputPlane,
202 
217 
218 #ifdef __cplusplus
219 }
220 #endif
221 
224 #endif // DW_POINTCLOUDPROCESSING_POINTCLOUDPLANEEXTRACTOR_H_
dwPointCloudPlaneExtractorParams::cudaPipelineEnabled
bool cudaPipelineEnabled
Setting to true will process with CUDA pipeline.
Definition: PointCloudPlaneExtractor.h:67
dwPointCloudPlaneExtractorParams::optimizerIterationCount
uint32_t optimizerIterationCount
optimization iteration number
Definition: PointCloudPlaneExtractor.h:63
dwPointCloudPlaneExtractorParams
Defines plane extraction parameter.
Definition: PointCloudPlaneExtractor.h:59
Types.h
dwPointCloudPlaneExtractorParams::maxInlierDistance
float32_t maxInlierDistance
maximum inlier distance to the estimated plane
Definition: PointCloudPlaneExtractor.h:65
dwPointCloud
Defines point cloud data structure.
Definition: PointCloud.h:80
dwPCPlaneExtractor_setCUDAStream
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_setCUDAStream(cudaStream_t const stream, dwPointCloudPlaneExtractorHandle_t const obj)
Sets CUDA stream of point cloud plane extractor.
dwPCPlaneExtractor_bindOutput
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_bindOutput(dwPointCloud *const inliers, dwPointCloud *const outliers, dwPointCloudExtractedPlane *const outputPlane, dwPointCloudPlaneExtractorHandle_t const obj)
Binds output buffers to point cloud plane extractor.
dwPCPlaneExtractor_process
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_process(dwPointCloudPlaneExtractorHandle_t const obj)
Extracts 3D ground plane and stores the results to output buffer.
dwPointCloudPlaneExtractorHandle_t
struct dwPointCloudPlaneExtractorObject * dwPointCloudPlaneExtractorHandle_t
Definition: PointCloudPlaneExtractor.h:40
dwPointCloudPlaneExtractorParams::boxFilterParams
dwPlaneExtractorBoxFilterParams boxFilterParams
box filter parameters
Definition: PointCloudPlaneExtractor.h:68
float32_t
float float32_t
Definition: core/base/BasicTypes.h:43
dwVector3f
Defines a three-element floating-point vector.
Definition: MatrixTypes.h:74
dwPointCloudExtractedPlane::transformation
dwTransformation3f transformation
rotation and translation of the plane given the estimated normal vector and plane offset
Definition: PointCloudPlaneExtractor.h:76
dwPointCloudPlaneExtractorParams::ransacIterationCount
uint32_t ransacIterationCount
ransac iteration number
Definition: PointCloudPlaneExtractor.h:62
obj
const NvSciSyncObj *const obj
Definition: wfdext.h:528
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:32
dwPointCloudPlaneExtractorParams::maxInputPointCount
uint32_t maxInputPointCount
maximum number of points in input point cloud
Definition: PointCloudPlaneExtractor.h:61
dwPCPlaneExtractor_release
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_release(dwPointCloudPlaneExtractorHandle_t const obj)
Releases point cloud plane extractor.
dwPlaneExtractorBoxFilterParams::box
dwOrientedBoundingBox3f box
oriented bounding box
Definition: PointCloudPlaneExtractor.h:50
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:81
dwPCPlaneExtractor_bindInput
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_bindInput(dwPointCloud const *const pointCloud, dwPointCloudPlaneExtractorHandle_t const obj)
Binds point cloud buffer to plane extractor.
dwPointCloudExtractedPlane::valid
bool valid
If this is false, it indicates the ransac plane fitting and optimization failed to produce a 3D groun...
Definition: PointCloudPlaneExtractor.h:79
PointCloud.h
dwPointCloudExtractedPlane
Defines extracted 3D plane.
Definition: PointCloudPlaneExtractor.h:74
dwMatrix3f
Defines a 3x3 matrix of floating point numbers by using only one array.
Definition: MatrixTypes.h:158
dwPlaneExtractorBoxFilterParams::maxPointCount
uint32_t maxPointCount
maximum number of accepted points
Definition: PointCloudPlaneExtractor.h:49
dwPCPlaneExtractor_getDefaultParameters
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_getDefaultParameters(dwPointCloudPlaneExtractorParams *const params)
Gets default point cloud plane extractor parameters.
dwTransformation3f
Specifies a 3D rigid transformation.
Definition: MatrixTypes.h:226
dwPCPlaneExtractor_getCUDAStream
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_getCUDAStream(cudaStream_t *const stream, dwPointCloudPlaneExtractorHandle_t const obj)
Gets CUDA stream of point cloud plane extractor.
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: core/base/Exports.h:57
dwPointCloudExtractedPlane::normal
dwVector3f normal
normal vector of the ground plane
Definition: PointCloudPlaneExtractor.h:77
dwPointCloudExtractedPlane::offset
float32_t offset
offset distance of the ground plane to the coordinate origin
Definition: PointCloudPlaneExtractor.h:78
dwPCPlaneExtractor_initialize
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_initialize(dwPointCloudPlaneExtractorHandle_t *const obj, dwPointCloudPlaneExtractorParams const *const params, dwContextHandle_t const ctx)
Initializes point cloud plane extractor.
dwOrientedBoundingBox3f
Data structure representing an oriented bounding box in the local object coordinate frame The box is ...
Definition: GeometricTypes.h:221
dwPlaneExtractorBoxFilterParams
Defines parameters for point cloud box filter.
Definition: PointCloudPlaneExtractor.h:47
dwPCPlaneExtractor_reset
DW_API_PUBLIC dwStatus dwPCPlaneExtractor_reset(dwPointCloudPlaneExtractorHandle_t const obj)
Resets point cloud plane extractor.
Context.h
dwPointCloudPlaneExtractorParams::minInlierFraction
float32_t minInlierFraction
minimum inlier percentage for ransac plane fitting
Definition: PointCloudPlaneExtractor.h:64
dwPointCloudPlaneExtractorParams::rotation
dwMatrix3f rotation
rotation that aligns the point cloud with ground plane
Definition: PointCloudPlaneExtractor.h:66