48 #ifndef DW_FREESPACEDETECTOR_H_ 49 #define DW_FREESPACEDETECTOR_H_ 64 #define DW_FREESPACE_IMAGE_MAX_COUNT 6 65 #define DW_FREESPACE_POINT_MAX_COUNT 960 97 DW_DEPRECATED(
"This structure variable is deprecated and will be removed in the next major release.");
104 DW_DEPRECATED(
"This structure variable is deprecated and will be removed in the next major release. Please consider " 105 "replacing it with cam_new");
136 DW_DEPRECATED(
"This structure is deprecated and will be removed in the next major release. Please consider " 137 "replacing it with dwFreespaceDetectorInitParams");
160 uint32_t frameHeight,
163 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 164 "replacing it with dwFreespaceDetector_initializeFromOpenRoadNet_new");
193 dwFreespaceDetectorHandle_t obj);
205 dwFreespaceDetectorHandle_t obj)
206 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 207 "replacing it with dwFreespaceDetector_initializeFromOpenRoadNet_release_2_2");
219 dwFreespaceDetectorHandle_t obj)
220 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 221 "getting member RuntimeParams via the corresponding get APIs");
233 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 234 "setting calibrated cameras with dwFreespaceDetector_initializeFromOpenRoadNet_release_2_2");
246 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 247 "setting calibrated cameras with dwFreespaceDetector_setCameraExtrinsics_new");
271 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 272 "replacing it with dwFreespaceDetector_setMaxFreespaceDistance_new");
317 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 318 "replacing it with dwFreespaceDetector_detectBoundary");
330 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 331 "replacing it with dwFreespaceDetector_detectBoundary");
346 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 347 "replacing it with dwFreespaceDetector_detectBoundary");
384 dwFreespaceDetectorHandle_t obj)
385 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 386 "replacing it with dwFreespaceDetector_setDetectionROI_new");
400 dwFreespaceDetectorHandle_t obj);
412 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 413 "replacing it with dwFreespaceDetector_getDetectionROI_new");
463 DW_DEPRECATED(
"This API is deprecated and will be removed in the next major release. Please consider " 464 "replacing it with dwOpenRoadNet_getDNNMetaData");
470 #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.
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_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_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...
Holds the definition of free space boundary in one image.
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.
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 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