DriveWorks SDK Reference
3.5.78 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 
48 #ifndef DW_IMAGEPROCESSING_GEOMETRY_PNP_H_
49 #define DW_IMAGEPROCESSING_GEOMETRY_PNP_H_
50 
51 #include <dw/core/Context.h>
52 #include <dw/core/Types.h>
53 
54 #ifdef __cplusplus
55 extern "C" {
56 #endif
57 
61 typedef struct dwPnPObject* dwPnPHandle_t;
62 
75 dwStatus dwPnP_initialize(dwPnPHandle_t* obj,
76  size_t ransacIterations,
77  size_t optimizerIterations,
78  dwContextHandle_t ctx);
79 
89 dwStatus dwPnP_reset(dwPnPHandle_t obj);
90 
94 #define DW_PNP_MAX_POINT_COUNT 128
95 
112  size_t matchCount,
113  const dwVector3f* rays,
114  const dwVector3f* worldPoints,
115  dwPnPHandle_t obj);
116 
128 dwStatus dwPnP_release(dwPnPHandle_t obj);
129 
130 #ifdef __cplusplus
131 }
132 #endif
133 
134 #endif
NVIDIA DriveWorks API: Core Types
Defines a three-element floating-point vector.
Definition: Types.h:319
NVIDIA DriveWorks API: Core Methods
Specifies a 3D rigid transformation.
Definition: Types.h:462
dwStatus
Status definition.
Definition: Status.h:178
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:80
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:61
#define DW_API_PUBLIC
Definition: Exports.h:56