46#ifndef DW_IMAGEPROCESSING_SEGMENTATION_THRESHOLDING_H_
47#define DW_IMAGEPROCESSING_SEGMENTATION_THRESHOLDING_H_
NVIDIA DriveWorks API: Core Types
NVIDIA DriveWorks API: Core Methods
dwImageHandle_t thresholdingImage
thresholding image for MODE_PER_PIXEL.
dwThresholdBehavior behavior
threshold behavior
bool inverse
if false the comparison is pixel > threshold, else pixel < threshold
uint32_t manualThresholdValue
manual value for MODE_SIMPLE
uint32_t maxVal
maximum value
dwThresholdMode mode
threshold mode
DW_API_PUBLIC dwStatus dwThreshold_getCUDAStream(cudaStream_t *stream, dwThresholdHandle_t obj)
Gets the cuda stream used by the APIs of Image Threshold.
DW_API_PUBLIC dwStatus dwThreshold_release(dwThresholdHandle_t handle)
Releases an Threshold Handle.
DW_API_PUBLIC dwStatus dwThreshold_initialize(dwThresholdHandle_t *handle, dwThresholdParameters params, dwContextHandle_t context)
Initializes a Threshold Handle.
dwThresholdBehavior
thresholding behavior based on comparison (a > b if dwThresholdParameters.inverse is false,...
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.
struct dwThresholdObject * dwThresholdHandle_t
DW_API_PUBLIC dwStatus dwThreshold_setThresholdParameters(dwThresholdParameters parameters, dwThresholdHandle_t obj)
Changes the threshold parameters in runtime.
DW_API_PUBLIC dwStatus dwThreshold_setCUDAStream(cudaStream_t stream, dwThresholdHandle_t obj)
Sets the cuda stream used by the APIs of Image Threshold.
@ DW_THRESHOLD_BEHAVIOR_BINARY
if comparison between pixel and thresh yields true, pixel = maxval else 0
@ DW_THRESHOLD_BEHAVIOR_TO_ZERO
if comparison between pixel and thresh yields true, pixel = pixel else 0
@ DW_THRESHOLD_BEHAVIOR_TRUNCATE
if comparison between pixel and thresh yields true, pixel = thresh else pixel
@ DW_THRESHOLD_MODE_OTSU
automatically computes the best threshold (assuming bimodal histogram, see N. Otsu,...
@ DW_THRESHOLD_MODE_SIMPLE
based on a user selected manualThresholdValue
@ DW_THRESHOLD_MODE_PER_PIXEL
each pixel of the input image is thresholded individually
struct dwContextObject * dwContextHandle_t
Context handle.
dwStatus
Status definition.
struct dwImageObject * dwImageHandle_t
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality