DriveWorks SDK Reference

| 0.6.67 Release

LaneDetector.h File Reference

Detailed Description

NVIDIA DriveWorks API: Lane Detector Methods

Description: This file defines lane detection methods.

Definition in file LaneDetector.h.

Go to the source code of this file.

Data Structures

struct  dwLaneDetection
 The output format of detected lanes. More...
 
struct  dwLaneMarking
 A defintion of one lane. More...
 

Macros

#define DW_LANEMARK_MAX_COUNT   16
 
#define DW_LANEMARK_POINT_MAX_COUNT   128
 

Typedefs

typedef struct dwLaneDetectorObject * dwLaneDetectorHandle_t
 Handle to a DataConditioner. More...
 

Enumerations

enum  dwLaneMarkType { DW_LANEMARK_TYPE_UNDEFINED = 0 }
 Type of a lane mark. More...
 
enum  dwLanePositionType {
  DW_LANEMARK_POSITION_ADJACENT_LEFT = -2,
  DW_LANEMARK_POSITION_EGO_LEFT = -1,
  DW_LANEMARK_POSITION_EGO_RIGHT = 1,
  DW_LANEMARK_POSITION_ADJACENT_RIGHT = 2,
  DW_LANEMARK_POSITION_UNDEFINED = 999
}
 Defintion of the position of a lane marking in respect to the ego lane. More...
 

Functions

DW_API_PUBLIC dwStatus dwLaneDetector_getCUDAStream (cudaStream_t *stream, dwLaneDetectorHandle_t obj)
 Gets CUDA stream used by the lane detection. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_getDetectionROI (dwRect *roi, dwLaneDetectorHandle_t obj)
 Get detection Region of Interest (ROI) for the detector. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_getLaneDetections (dwLaneDetection *lanes, dwLaneDetectorHandle_t obj)
 Gets the latest computed results in image coordinates. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_initializeLaneNet (dwLaneDetectorHandle_t *obj, uint32_t frameWidth, uint32_t frameHeight, dwContextHandle_t ctx)
 Initializes a lane detector module based on LaneNet. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_interpretHost (dwLaneDetectorHandle_t obj)
 Runs the interpretation of the processed results on the CPU. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_processDeviceAsync (const dwImageCUDA *frame, dwLaneDetectorHandle_t obj)
 Processes the given frame on the GPU asynchronously. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_release (dwLaneDetectorHandle_t *obj)
 Releases the detector module. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_reset (dwLaneDetectorHandle_t obj)
 Resets the lane detector module. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_setCameraExtrinsics (dwTransformation cam2rig, dwLaneDetectorHandle_t obj)
 Set the transformation from camera to rig. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_setCameraHandle (dwCalibratedCameraHandle_t cam, dwLaneDetectorHandle_t obj)
 Set the handle to the calibrated front looking camera. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_setCUDAStream (cudaStream_t stream, dwLaneDetectorHandle_t obj)
 Sets the CUDA stream for CUDA related operations. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_setDetectionROI (const dwRect *roi, dwLaneDetectorHandle_t obj)
 Set detection Region of Interest (ROI) for the detector. More...
 
DW_API_PUBLIC dwStatus dwLaneDetector_setMaxLaneDistance (float32_t maxDistance, dwLaneDetectorHandle_t obj)
 Set the maximum distance in meters at which lane markings can be detected. More...
 
DW_API_PUBLIC dwStatus dwLaneDetectorLaneNet_getDNNMetaData (dwDNNMetaData *metaData, dwLaneDetectorHandle_t obj)
 Returns the DNN metadata. More...
 
DW_API_PUBLIC dwStatus dwLaneDetectorLaneNet_getTemporalSmoothFactor (float32_t *factor, dwLaneDetectorHandle_t obj)
 Gets the temporal smoothing factor for the LaneNet based detector. More...
 
DW_API_PUBLIC dwStatus dwLaneDetectorLaneNet_setDetectionThreshold (float32_t threshold, dwLaneDetectorHandle_t obj)
 Sets the detection confidence threshold for the LaneNet based detector. More...
 
DW_API_PUBLIC dwStatus dwLaneDetectorLaneNet_setHorizontalFOV (float32_t hfov, dwLaneDetectorHandle_t obj)
 Sets the input camera horizontal Field Of View (FOV) in degree for the LaneNet-based detector. More...
 
DW_API_PUBLIC dwStatus dwLaneDetectorLaneNet_setTemporalSmoothFactor (float32_t factor, dwLaneDetectorHandle_t obj)
 Sets the temporal smoothing factor for the LaneNet-based detector. More...