DriveWorks SDK Reference
4.0.0 Release
For Test and Development only

PnP.h
Go to the documentation of this file.
1 // This code contains NVIDIA Confidential Information and is disclosed
3 // under the Mutual Non-Disclosure Agreement.
4 //
5 // Notice
6 // ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
7 // NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
8 // THE MATERIALS, AND EXPRESSLY DISCLAIMS ANY IMPLIED WARRANTIES OF NONINFRINGEMENT,
9 // MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
10 //
11 // NVIDIA Corporation assumes no responsibility for the consequences of use of such
12 // information or for any infringement of patents or other rights of third parties that may
13 // result from its use. No license is granted by implication or otherwise under any patent
14 // or patent rights of NVIDIA Corporation. No third party distribution is allowed unless
15 // expressly authorized by NVIDIA. Details are subject to change without notice.
16 // This code supersedes and replaces all information previously supplied.
17 // NVIDIA Corporation products are not authorized for use as critical
18 // components in life support devices or systems without express written approval of
19 // NVIDIA Corporation.
20 //
21 // Copyright (c) 2019-2020 NVIDIA Corporation. All rights reserved.
22 //
23 // NVIDIA Corporation and its licensors retain all intellectual property and proprietary
24 // rights in and to this software and related documentation and any modifications thereto.
25 // Any use, reproduction, disclosure or distribution of this software and related
26 // documentation without an express license agreement from NVIDIA Corporation is
27 // strictly prohibited.
28 //
30 
46 #ifndef DW_IMAGEPROCESSING_GEOMETRY_PNP_H_
47 #define DW_IMAGEPROCESSING_GEOMETRY_PNP_H_
48 
50 #include <dw/core/base/Types.h>
51 
52 #ifdef __cplusplus
53 extern "C" {
54 #endif
55 
59 typedef struct dwPnPObject* dwPnPHandle_t;
60 
73 dwStatus dwPnP_initialize(dwPnPHandle_t* obj,
74  size_t ransacIterations,
75  size_t optimizerIterations,
76  dwContextHandle_t ctx);
77 
87 dwStatus dwPnP_reset(dwPnPHandle_t obj);
88 
92 #define DW_PNP_MAX_POINT_COUNT 128
93 
110  size_t matchCount,
111  const dwVector3f* rays,
112  const dwVector3f* worldPoints,
113  dwPnPHandle_t obj);
114 
126 dwStatus dwPnP_release(dwPnPHandle_t obj);
127 
128 #ifdef __cplusplus
129 }
130 #endif
131 
132 #endif
NVIDIA DriveWorks API: Core Types
Defines a three-element floating-point vector.
Definition: Types.h:319
Specifies a 3D rigid transformation.
Definition: Types.h:462
dwStatus
Status definition.
Definition: Status.h:180
DW_API_PUBLIC dwStatus dwPnP_initialize(dwPnPHandle_t *obj, size_t ransacIterations, size_t optimizerIterations, dwContextHandle_t ctx)
Initializes a PnP solver.
DW_API_PUBLIC dwStatus dwPnP_reset(dwPnPHandle_t obj)
Resets the PnP solver.
DW_API_PUBLIC dwStatus dwPnP_release(dwPnPHandle_t obj)
Releases the PnP solver.
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:79
NVIDIA DriveWorks API: Core Methods
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.
struct dwPnPObject * dwPnPHandle_t
A pointer to the handle representing a PnP solver.
Definition: PnP.h:59
#define DW_API_PUBLIC
Definition: Exports.h:54