|
|
NVIDIA DriveOS Linux NSR SDK API Reference
|
7.0.3.0 Release
|
Go to the documentation of this file.
31 #ifndef DW_IMAGEPROCESSING_SEGMENTATION_THRESHOLDING_H_
32 #define DW_IMAGEPROCESSING_SEGMENTATION_THRESHOLDING_H_
34 #include <dw/core/context/Context.h>
35 #include <dw/core/base/Types.h>
36 #include <dw/image/Image.h>
204 #endif // DW_IMAGEPROCESSING_SEGMENTATION_THRESHOLDING_H_
@ DW_THRESHOLD_MODE_OTSU
automatically computes the best threshold (assuming bimodal histogram, see N. Otsu,...
DW_API_PUBLIC dwStatus dwThreshold_applyThreshold(dwImageHandle_t outputImage, const dwImageHandle_t inputImage, dwThresholdHandle_t obj)
Runs the Threshold Handle on input image using the operations set in dwThreshold_setOperations.
DW_API_PUBLIC dwStatus dwThreshold_reset(dwThresholdHandle_t obj)
Resets an Threshold Handle.
dwThresholdBehavior
thresholding behavior based on comparison (a > b if dwThresholdParameters.inverse is false,...
dwThresholdBehavior behavior
threshold behavior
dwThresholdMode mode
threshold mode
@ DW_THRESHOLD_BEHAVIOR_TO_ZERO
if comparison between pixel and thresh yields true, pixel = pixel else 0
@ DW_THRESHOLD_MODE_SIMPLE
based on a user selected manualThresholdValue
@ DW_THRESHOLD_BEHAVIOR_BINARY
if comparison between pixel and thresh yields true, pixel = maxval else 0
const WFDCommitType const WFDHandle handle
cudaStream_t stream
cuda stream
bool inverse
if false the comparison is pixel > threshold, else pixel < threshold
DW_API_PUBLIC dwStatus dwThreshold_getCUDAStream(cudaStream_t *stream, dwThresholdHandle_t obj)
Gets the cuda stream used by the APIs of Image Threshold.
uint32_t manualThresholdValue
manual value for MODE_SIMPLE
DW_API_PUBLIC dwStatus dwThreshold_initialize(dwThresholdHandle_t *handle, dwThresholdParameters params, dwContextHandle_t context)
Initializes a Threshold Handle.
struct dwContextObject * dwContextHandle_t
Context handle.
struct dwThresholdObject * dwThresholdHandle_t
@ DW_THRESHOLD_BEHAVIOR_TRUNCATE
if comparison between pixel and thresh yields true, pixel = thresh else pixel
struct dwImageObject * dwImageHandle_t
dwImageHandle_t thresholdingImage
thresholding image for MODE_PER_PIXEL.
dwStatus
Status definition.
DW_API_PUBLIC dwPointCloudRangeImageCreatorParams const *const params
DW_API_PUBLIC dwStatus dwThreshold_setThresholdParameters(dwThresholdParameters parameters, dwThresholdHandle_t obj)
Changes the threshold parameters in runtime.
struct dwThresholdParameters dwThresholdParameters
DW_API_PUBLIC dwStatus dwThreshold_release(dwThresholdHandle_t handle)
Releases an Threshold Handle.
@ DW_THRESHOLD_MODE_PER_PIXEL
each pixel of the input image is thresholded individually
const NvSciSyncObj *const obj
DW_API_PUBLIC dwStatus dwThreshold_setCUDAStream(cudaStream_t stream, dwThresholdHandle_t obj)
Sets the cuda stream used by the APIs of Image Threshold.
uint32_t maxVal
maximum value