45 #ifndef DW_FREESPACEDETECTOR_H__ 46 #define DW_FREESPACEDETECTOR_H__ 61 #pragma pack(push,1) // Make sure we have consistent structure packings 107 uint32_t frameHeight,
131 uint32_t frameHeight,
133 dwTransformation cam2rig,
235 dwFreeSpaceDetectorHandle_t obj);
293 #endif // DW_FREESPACEDETECTOR_H__ NVIDIA DriveWorks API: Rig Configuration
NVIDIA DriveWorks API: Camera Methods
NVIDIA DriveWorks API: Core Types
float float32_t
Specifies POD types.
const dwVector2f * boundaryImagePoint
Boundary point location in image space (pixels).
Defines a two-element floating-point vector.
boundary with other objects
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_getDNNMetaData(dwDNNMetaData *metaData, dwFreeSpaceDetectorHandle_t obj)
Returns the DNN metadata.
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_setSpatialSmoothFilterWidth(uint32_t width, dwFreeSpaceDetectorHandle_t obj)
Sets the spatial smoothing filter width.
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_getCUDAStream(cudaStream_t *stream, dwFreeSpaceDetectorHandle_t obj)
Gets CUDA stream used by the free space detection.
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_reset(dwFreeSpaceDetectorHandle_t obj)
Resets the free space detector module.
struct dwFreeSpaceDetectorObject * dwFreeSpaceDetectorHandle_t
Handle to a DataConditioner.
NVIDIA DriveWorks API: Core Methods
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_getBoundaryDetection(dwFreeSpaceDetection *boundary, dwFreeSpaceDetectorHandle_t obj)
Gets the latest computed results.
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_interpretHost(dwFreeSpaceDetectorHandle_t obj)
Runs the interpretation of the processed results on the CPU.
dwFreeSpaceBoundaryType
Category of free space boundary.
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_release(dwFreeSpaceDetectorHandle_t *obj)
Releases the detector module.
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_initializeFreeSpaceNet(dwFreeSpaceDetectorHandle_t *obj, uint32_t frameWidth, uint32_t frameHeight, cudaStream_t stream, dwContextHandle_t ctx)
Initializes a free space detector module based on FreeSpaceNet.
NVIDIA DriveWorks API: DNN Methods
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
dwStatus
Status definition.
Holds the defintion of a boundary in one image.
struct dwCalibratedCameraObject * dwCalibratedCameraHandle_t
A pointer to the handle representing a calibrated camera.
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_getDetectionROI(dwRect *roi, dwFreeSpaceDetectorHandle_t obj)
Gets the detection Region of Interest (ROI) for the detector.
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_initializeCalibratedFreeSpaceNet(dwFreeSpaceDetectorHandle_t *obj, uint32_t frameWidth, uint32_t frameHeight, cudaStream_t stream, dwTransformation cam2rig, float32_t maxDistance, dwCalibratedCameraHandle_t cam, dwContextHandle_t ctx)
Initializes a free space detector module based on FreeSpaceNet with a calibrated camera.
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_processDeviceAsync(const dwImageCUDA *frame, dwFreeSpaceDetectorHandle_t obj)
Processes the given frame on the GPU asynchronously.
struct dwContextObject * dwContextHandle_t
Context handle.
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_setCUDAStream(cudaStream_t stream, dwFreeSpaceDetectorHandle_t obj)
Sets the CUDA stream for CUDA related operations.
uint32_t numberOfBoundaryPoints
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_setTemporalSmoothFactor(float32_t factor, dwFreeSpaceDetectorHandle_t obj)
Sets the temporal smoothing factor.
DW_API_PUBLIC dwStatus dwFreeSpaceDetector_setDetectionROI(const dwRect *roi, dwFreeSpaceDetectorHandle_t obj)
Sets the detection Region of Interest (ROI) for the detector.
const dwFreeSpaceBoundaryType * boundaryType
Category of the boundary.
const dwVector2f * boundaryWorldPoint
Boundary point location in car domain (meter).