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