NVIDIA DriveOS Linux NSR SDK API Reference

7.0.3.0 Release
PnP.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2025 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 
30 #ifndef DW_IMAGEPROCESSING_GEOMETRY_PNP_H_
31 #define DW_IMAGEPROCESSING_GEOMETRY_PNP_H_
32 
33 #include <dw/core/context/Context.h>
34 #include <dw/core/base/Types.h>
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
43 typedef struct dwPnPObject* dwPnPHandle_t;
44 
62  size_t ransacIterations,
63  size_t optimizerIterations,
65 
80 
84 #define DW_PNP_MAX_POINT_COUNT 128
85 
106  size_t matchCount,
107  const dwVector3f* rays,
108  const dwVector3f* worldPoints,
110 
127 
128 #ifdef __cplusplus
129 }
130 #endif
131 
132 #endif
dwPnP_initialize
DW_API_PUBLIC dwStatus dwPnP_initialize(dwPnPHandle_t *obj, size_t ransacIterations, size_t optimizerIterations, dwContextHandle_t ctx)
Initializes a PnP solver.
ctx
DW_API_PUBLIC dwPointCloudRangeImageCreatorParams const *const const dwContextHandle_t ctx
Definition: PointCloudRangeImageCreator.h:293
dwPnPHandle_t
struct dwPnPObject * dwPnPHandle_t
A pointer to the handle representing a PnP solver.
Definition: PnP.h:43
dwPnP_solve
DW_API_PUBLIC dwStatus dwPnP_solve(dwTransformation3f *worldToCamera, size_t matchCount, const dwVector3f *rays, const dwVector3f *worldPoints, dwPnPHandle_t obj)
Estimates the worldToCamera pose based on optical ray to 3D world point correspondences.
dwPnP_reset
DW_API_PUBLIC dwStatus dwPnP_reset(dwPnPHandle_t obj)
Resets the PnP solver.
dwVector3f
Defines a three-element floating-point vector.
Definition: MatrixTypes.h:74
dwContextHandle_t
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:74
dwPnP_release
DW_API_PUBLIC dwStatus dwPnP_release(dwPnPHandle_t obj)
Releases the PnP solver.
dwStatus
dwStatus
Status definition.
Definition: ErrorDefs.h:27
dwTransformation3f
Specifies a 3D rigid transformation.
Definition: MatrixTypes.h:226
DW_API_PUBLIC
#define DW_API_PUBLIC
Definition: Exports.h:38
obj
const NvSciSyncObj *const obj
Definition: wfdext.h:120