DriveWorks SDK Reference

| 0.6.67 Release

SFM.h File Reference

Detailed Description

NVIDIA DriveWorks API: Structure from Motion Methods

Description: This file defines structure from motion methods.

Definition in file SFM.h.

Go to the source code of this file.

Data Structures

struct  dwReconstructorConfig
 Configuration parameters for a reconstructor. More...
 

Typedefs

typedef struct dwReconstructorObject const * dwConstReconstructorHandle_t
 Handle representing a const reconstructor object. More...
 
typedef struct dwReconstructorObject * dwReconstructorHandle_t
 Handle representing a reconstructor object. More...
 

Functions

DW_API_PUBLIC dwStatus dwReconstructor_compactFeatureHistory (const uint32_t cameraIdx, const uint32_t *d_validIndexCount, const uint32_t *d_validIndexes, const uint32_t *d_invalidIndexCount, const uint32_t *d_invalidIndexes, dwReconstructorHandle_t obj)
 Compacts the internal feature history by keeping only selected features. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_compactWorldPoints (float32_t *d_worldPoints, const uint32_t *d_validIndexCount, const uint32_t *d_validIndexes, const uint32_t *d_invalidIndexCount, const uint32_t *d_invalidIndexes, dwReconstructorHandle_t obj)
 Compacts the world point array by keeping only selected features. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_enableCamerasForPoseEstimation (const uint8_t enabled[], dwReconstructorHandle_t obj)
 Marks the cameras to use for pose estimation. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_estimatePose (dwTransformation *d_correctedRig2World, const dwTransformation *d_previousRig2World, const dwTransformation *d_predictedRig2World, const uint32_t listCount, const uint32_t *const d_featureCounts[], const dwFeatureStatus *const d_statuses[], const float32_t *const d_trackedLocations[], const float32_t *const d_worldPoints[], dwReconstructorHandle_t obj)
 Uses all tracked features from all cameras to estimate the current rig pose. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_getCUDAStream (cudaStream_t *stream, dwReconstructorHandle_t obj)
 Gets CUDA stream used by the reconstructor. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_initConfig (dwReconstructorConfig *config)
 Initializes the reconstructor config with default values. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_initialize (dwReconstructorHandle_t *obj, dwContextHandle_t context, cudaStream_t stream, const dwReconstructorConfig config)
 Creates and initializes a reconstructor. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_predictFeaturePosition (float32_t d_predictedLocations[], uint32_t cameraIdx, const dwTransformation *previousRigToWorld, const dwTransformation *predictedRigToWorld, const uint32_t *d_featureCount, const dwFeatureStatus d_featureStatuses[], const float32_t d_featureLocations[], const float32_t d_worldPoints[], dwReconstructorHandle_t obj)
 Predicts the positions of features based on the predicted car motion. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_project (float32_t *d_locations[], const dwTransformation *rig2World, const uint32_t *const d_pointCount[], const float32_t *const d_worldPoints[], dwReconstructorHandle_t obj)
 Projects triangulated features back to the image. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_release (dwReconstructorHandle_t *obj)
 Releases a reconstructor. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_reset (dwReconstructorHandle_t obj)
 Resets a reconstructor. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_setCUDAStream (cudaStream_t stream, dwReconstructorHandle_t obj)
 Sets the CUDA stream for CUDA related operations. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_triangulateFeatures (float32_t *d_worldPoints, dwFeatureStatus *d_statuses, const uint32_t *d_featureCount, const uint32_t cameraIdx, dwReconstructorHandle_t obj)
 Triangulates the features of a camera from the internal feature and pose history. More...
 
DW_API_PUBLIC dwStatus dwReconstructor_updateHistory (int32_t *rig2WorldHistoryIdx, const dwTransformation *rig2World, const uint32_t listCount, const uint32_t *const d_featureCounts[], const float32_t *const d_trackedLocations[], dwReconstructorHandle_t obj)
 Updates the feature and pose history. More...