48 #ifndef DW_FREESPACEDETECTOR_H_ 49 #define DW_FREESPACEDETECTOR_H_ 65 #define DW_FREESPACE_IMAGE_MAX_COUNT 6 66 #define DW_FREESPACE_POINT_MAX_COUNT 960 102 uint32_t maxNumImages
103 DW_DEPRECATED(
"This structure variable is deprecated and will be removed in the next major release.");
110 DW_DEPRECATED(
"This structure variable is deprecated and will be removed in the next major release. Please consider " 111 "replacing it with cam_new");
144 DW_DEPRECATED(
"This structure is deprecated and will be removed in the next major release. Please consider " 145 "replacing it with dwFreespaceDetectorInitParams");
184 uint32_t frameHeight,
187 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 188 "replacing it with dwFreespaceDetector_initializeFromOpenRoadNet_new");
217 dwFreespaceDetectorHandle_t obj);
233 dwFreespaceDetectorHandle_t obj);
245 dwFreespaceDetectorHandle_t obj)
246 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 247 "replacing it with dwFreespaceDetector_initializeFromOpenRoadNet_release_2_2");
259 dwFreespaceDetectorHandle_t obj)
260 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 261 "getting member RuntimeParams via the corresponding get APIs");
273 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 274 "setting calibrated cameras with dwFreespaceDetector_initializeFromOpenRoadNet_release_2_2");
286 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 287 "setting calibrated cameras with dwFreespaceDetector_setCameraExtrinsics_new");
311 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 312 "replacing it with dwFreespaceDetector_setMaxFreespaceDistance_new");
357 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 358 "replacing it with dwFreespaceDetector_detectBoundary");
370 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 371 "replacing it with dwFreespaceDetector_detectBoundary");
386 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 387 "replacing it with dwFreespaceDetector_detectBoundary");
424 dwFreespaceDetectorHandle_t obj)
425 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 426 "replacing it with dwFreespaceDetector_setDetectionROI_new");
440 dwFreespaceDetectorHandle_t obj);
452 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 453 "replacing it with dwFreespaceDetector_getDetectionROI_new");
503 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 504 "replacing it with dwOpenRoadNet_getDNNMetaData");
510 #endif // DW_FREESPACEDETECTOR_H_ NVIDIA DriveWorks API: Camera Methods
DW_API_PUBLIC dwStatus dwFreespaceDetector_setDetectionROI(const dwRect *roi, dwFreespaceDetectorHandle_t obj)
Set the detection Region of Interest (ROI) for the detector.
NVIDIA DriveWorks API: OpenRoadNet Module
DW_API_PUBLIC dwStatus dwFreespaceDetector_reset(dwFreespaceDetectorHandle_t obj)
Resets the free space detector module.
NVIDIA DriveWorks API: Core Types
float float32_t
Specifies POD types.
NVIDIA DriveWorks API: Rig Configuration
DW_API_PUBLIC dwStatus dwFreespaceDetector_getCUDAStream(cudaStream_t *stream, dwFreespaceDetectorHandle_t obj)
Gets CUDA stream used by the free space detection.
dwTime_t timestamp
Timestamp of this detection in microseconds since the epoch.
DW_API_PUBLIC dwStatus dwFreespaceDetector_setMaxFreespaceDistance_new(uint32_t imageIdx, float32_t maxDistance, dwFreespaceDetectorHandle_t obj)
Set the maximum distance in meters free space boundary can be detected for a specific camera image in...
struct dwOpenRoadNetObject * dwOpenRoadNetHandle_t
Handle to a OpenRoadNet object.
Defines a two-element single-precision floating-point vector.
DW_API_PUBLIC dwStatus dwFreespaceDetector_setCameraHandle(dwCameraModelHandle_t cam, dwFreespaceDetectorHandle_t obj)
Set the handle to the calibrated camera.
DW_API_PUBLIC dwStatus dwFreespaceDetector_processDeviceAsync(const dwImageCUDA *frame, dwFreespaceDetectorHandle_t obj)
Processes the given frame on the GPU asynchronously.
DW_API_PUBLIC dwStatus dwFreespaceDetector_detectBoundaryAutoNet(dwFreespaceDetection *boundary, dwAutoNetOutputHandle_t input, dwFreespaceDetectorHandle_t obj)
Detects boundaries from the given DNN inference output.
NVIDIA DriveWorks API: AutoNet Module
DW_API_PUBLIC dwStatus dwFreespaceDetector_initializeFromOpenRoadNet(dwFreespaceDetectorHandle_t *obj, dwOpenRoadNetHandle_t openroadnet, uint32_t frameWidth, uint32_t frameHeight, cudaStream_t stream, dwContextHandle_t ctx)
Initializes a free space detector module based on OpenRoadNet.
cudaStream_t stream
CUDA stream on which to perform all operations.
DW_API_PUBLIC dwStatus dwFreespaceDetector_getBoundaryDetection(dwFreespaceDetection *boundary, dwFreespaceDetectorHandle_t obj)
Gets the latest computed results.
NVIDIA DriveWorks API: Core Methods
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
DW_API_PUBLIC dwStatus dwFreespaceDetector_initializeFromAutoNet(dwFreespaceDetectorHandle_t *obj, dwAutoNetHandle_t autonet, const dwFreespaceDetectorInitParams *initParams, dwContextHandle_t ctx)
Initializes a free space detector module based on OpenRoadNet.
DW_API_PUBLIC dwStatus dwFreespaceDetector_setCameraExtrinsics(dwTransformation3f cam2rig, dwFreespaceDetectorHandle_t obj)
Set the transformation from camera to rig.
float32_t temporalSmoothingFactor
Temporal smooth factor, check dwFreespaceDetector_setTemporalSmoothFactor for more details...
DW_API_PUBLIC dwStatus dwFreespaceDetector_setRuntimeParams(const dwFreespaceDetectorRuntimeParams *rtParams, dwFreespaceDetectorHandle_t obj)
Set the runtime parameters associated with a free space detector module.
DW_API_PUBLIC dwStatus dwFreespaceDetector_setTemporalSmoothFactor(float32_t factor, dwFreespaceDetectorHandle_t obj)
Set the temporal smoothing factor.
Holds the free space detector runtime parameters.
uint32_t frameHeight
Height of camera frame when initialized without camera intrinsics, ignored if camera handle is valid...
NVIDIA DriveWorks API: DNN Methods
Holds the common free space detector initialization parameters.
dwStatus
Status definition.
dwFreespaceBoundaryType
Category of free space boundary.
uint32_t frameWidth
Width of camera frame when initialized without camera intrinsics, ignored if camera handle is valid...
uint32_t sensorId
Camera sensor ID.
Holds the definition of free space boundary in one image.
int64_t dwTime_t
Specifies a timestamp unit, in microseconds.
float32_t maxDistance
Maximum distance in meters at which free space boundary distance can be distinguished.
uint32_t spatialSmoothingWidth
Width of an 1-D Gaussian filter, check dwFreespaceDetector_setSpatialSmoothFilterWidth for more detai...
#define DW_DEPRECATED(msg)
DW_API_PUBLIC dwStatus dwFreespaceDetector_detectBoundary(dwFreespaceDetection *boundary, const dwImageCUDA *frame, dwFreespaceDetectorHandle_t obj)
Processes the given frame on the GPU asynchronously, runs the interpretation of the processed results...
DW_API_PUBLIC dwStatus dwFreespaceDetector_getDNNMetaData(dwDNNMetaData *metaData, dwFreespaceDetectorHandle_t obj)
Returns the DNN metadata.
#define DW_FREESPACE_POINT_MAX_COUNT
DW_API_PUBLIC dwStatus dwFreespaceDetector_interpretHost(dwFreespaceDetectorHandle_t obj)
Runs the interpretation of the processed results on the CPU.
struct dwFreespaceDetectorObject * dwFreespaceDetectorHandle_t
Handle to a free space detector.
DW_API_PUBLIC dwStatus dwFreespaceDetector_setCameraExtrinsics_new(uint32_t imageIdx, dwTransformation3f cam2rig, dwFreespaceDetectorHandle_t obj)
Set the camera to rig transformation for a specific camera image in the batch.
DW_API_PUBLIC dwStatus dwFreespaceDetector_getRuntimeParams(dwFreespaceDetectorRuntimeParams *rtParams, dwFreespaceDetectorHandle_t obj)
Get the runtime parameters associated with a free space detector module.
dwRect roi
Region Of Interest of frame to be processed by the detector.
DW_API_PUBLIC dwStatus dwFreespaceDetector_setMaxFreespaceDistance(float32_t maxDistance, dwFreespaceDetectorHandle_t obj)
Set the maximum distance in meters at which free space boundary can be detected.
struct dwContextObject * dwContextHandle_t
Context handle.
struct dwAutoNetObject * dwAutoNetHandle_t
Handle to a AutoNet object.
DW_API_PUBLIC dwStatus dwFreespaceDetector_setDetectionROI_new(uint32_t imageIdx, const dwRect *roi, dwFreespaceDetectorHandle_t obj)
Set the detection Region of Interest (ROI) for the detector.
struct dwAutoNetOutputObject * dwAutoNetOutputHandle_t
Handle to a AutoNet output object.
struct dwCameraModelObject * dwCameraModelHandle_t
A pointer to the handle representing a calibrated camera model.
DW_API_PUBLIC dwStatus dwFreespaceDetector_getDetectionROI_new(uint32_t imageIdx, dwRect *roi, dwFreespaceDetectorHandle_t obj)
Gets the detection Region of Interest (ROI) for the detector.
DW_API_PUBLIC dwStatus dwFreespaceDetector_setSpatialSmoothFilterWidth(uint32_t width, dwFreespaceDetectorHandle_t obj)
Sets the spatial smoothing filter width.
DW_API_PUBLIC dwStatus dwFreespaceDetector_initializeFromOpenRoadNet_new(dwFreespaceDetectorHandle_t *obj, const dwFreespaceDetectorInitParams *initParams, dwContextHandle_t ctx)
Initializes a free space detector module based on OpenRoadNet.
DW_API_PUBLIC dwStatus dwFreespaceDetector_setCUDAStream(cudaStream_t stream, dwFreespaceDetectorHandle_t obj)
Sets the CUDA stream for CUDA related operations.
dwOpenRoadNetHandle_t openroadnet
Specifies the handle to the OpenRoadNet module.
DW_API_PUBLIC dwStatus dwFreespaceDetector_getDetectionROI(dwRect *roi, dwFreespaceDetectorHandle_t obj)
Gets the detection Region of Interest (ROI) for the detector.
#define DW_FREESPACE_IMAGE_MAX_COUNT
Maximum number of images to run free space detector on.
DW_API_PUBLIC dwStatus dwFreespaceDetector_release(dwFreespaceDetectorHandle_t obj)
Releases the detector module.
uint32_t numberOfBoundaryPoints