DriveWorks SDK Reference

| 0.6.67 Release

Rectifier.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) 2015-2016 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 
45 #ifndef DW_RECTIFIER_H__
46 #define DW_RECTIFIER_H__
47 
48 #include <dw/core/Context.h>
49 #include <dw/core/Types.h>
50 #include <dw/image/Image.h>
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
61 typedef struct dwRectifierObject *dwRectifierHandle_t;
62 
75 dwStatus dwRectifier_initialize(dwRectifierHandle_t *obj,
78  dwContextHandle_t ctx);
79 
80 
89 dwStatus dwRectifier_reset(dwRectifierHandle_t obj);
90 
101 dwStatus dwRectifier_release(dwRectifierHandle_t *obj);
102 
113 dwStatus dwRectifier_warp(dwImageCUDA *outputImage, const dwImageCUDA* inputImage,
114  dwRectifierHandle_t obj);
115 
126 dwStatus dwRectifier_setHomography(const dwMatrix3f* homography, dwRectifierHandle_t obj);
127 
138 dwStatus dwRectifier_getHomography(dwMatrix3f* homography, dwRectifierHandle_t obj);
139 
150 dwStatus dwRectifier_setCUDAStream(cudaStream_t stream, dwRectifierHandle_t obj);
151 
162 dwStatus dwRectifier_getCUDAStream(cudaStream_t* stream, dwRectifierHandle_t obj);
163 
164 
165 #ifdef __cplusplus
166 }
167 #endif
168 
169 #endif // DW_RECTIFIER_H__
DW_API_PUBLIC dwStatus dwRectifier_getHomography(dwMatrix3f *homography, dwRectifierHandle_t obj)
Gets the homography matrix used.
NVIDIA DriveWorks API: Camera Methods
NVIDIA DriveWorks API: Core Types
Defines a CUDA image.
Definition: Image.h:263
NVIDIA DriveWorks API: Core Methods
DW_API_PUBLIC dwStatus dwRectifier_setCUDAStream(cudaStream_t stream, dwRectifierHandle_t obj)
Sets the CUDA stream used.
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
dwStatus
Status definition.
Definition: Status.h:167
struct dwCalibratedCameraObject * dwCalibratedCameraHandle_t
A pointer to the handle representing a calibrated camera.
Definition: Camera.h:66
Defines a 3x3 matrix of floating point numbers.
Definition: Types.h:180
DW_API_PUBLIC dwStatus dwRectifier_release(dwRectifierHandle_t *obj)
Releases the rectifier module.
struct dwContextObject * dwContextHandle_t
Context handle.
Definition: Context.h:78
DW_API_PUBLIC dwStatus dwRectifier_initialize(dwRectifierHandle_t *obj, dwCalibratedCameraHandle_t cameraIn, dwCalibratedCameraHandle_t cameraOut, dwContextHandle_t ctx)
Initializes a rectifier based on an input and output camera model and a homography.
DW_API_PUBLIC dwStatus dwRectifier_getCUDAStream(cudaStream_t *stream, dwRectifierHandle_t obj)
Gets the CUDA stream used.
struct dwRectifierObject * dwRectifierHandle_t
A pointer to the handle representing a rectifier.
Definition: Rectifier.h:61
#define DW_API_PUBLIC
Definition: Exports.h:76
DW_API_PUBLIC dwStatus dwRectifier_reset(dwRectifierHandle_t obj)
Resets the rectifier module.
DW_API_PUBLIC dwStatus dwRectifier_warp(dwImageCUDA *outputImage, const dwImageCUDA *inputImage, dwRectifierHandle_t obj)
Warps the image from the input camera model to the model of the output camera.
DW_API_PUBLIC dwStatus dwRectifier_setHomography(const dwMatrix3f *homography, dwRectifierHandle_t obj)
Sets the homography matrix used.