DriveWorks SDK Reference
5.6.215 Release
For Test and Development only

PnP.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) 2019-2021 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
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
53extern "C" {
54#endif
55
59typedef struct dwPnPObject* dwPnPHandle_t;
60
74 size_t ransacIterations,
75 size_t optimizerIterations,
77
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
127
128#ifdef __cplusplus
129}
130#endif
132#endif
NVIDIA DriveWorks API: Core Types
NVIDIA DriveWorks API: Core Methods
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:79
#define DW_API_PUBLIC
Definition: Exports.h:54
dwStatus
Status definition.
Definition: Status.h:170
Specifies a 3D rigid transformation.
Definition: Types.h:536
Defines a three-element floating-point vector.
Definition: Types.h:355
struct dwPnPObject * dwPnPHandle_t
A pointer to the handle representing a PnP solver.
Definition: PnP.h:59
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.
DW_API_PUBLIC dwStatus dwPnP_reset(dwPnPHandle_t obj)
Resets the PnP solver.
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_release(dwPnPHandle_t obj)
Releases the PnP solver.