Defines the Image Threshold module.
◆ dwThresholdBehavior
◆ dwThresholdHandle_t
◆ dwThresholdMode
◆ dwThresholdParameters
◆ dwThresholdBehavior
thresholding behavior based on comparison (a > b if dwThresholdParameters.inverse is false, a < b otherwise)
| Enumerator |
|---|
| DW_THRESHOLD_BEHAVIOR_BINARY | if comparison between pixel and thresh yields true, pixel = maxval else 0
|
| DW_THRESHOLD_BEHAVIOR_TRUNCATE | if comparison between pixel and thresh yields true, pixel = thresh else pixel
|
| DW_THRESHOLD_BEHAVIOR_TO_ZERO | if comparison between pixel and thresh yields true, pixel = pixel else 0
|
Definition at line 45 of file Threshold.h.
◆ dwThresholdMode
| Enumerator |
|---|
| DW_THRESHOLD_MODE_SIMPLE | based on a user selected manualThresholdValue
|
| DW_THRESHOLD_MODE_OTSU | 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_THRESHOLD_MODE_PER_PIXEL | each pixel of the input image is thresholded individually
|
Definition at line 54 of file Threshold.h.
◆ dwThreshold_applyThreshold()
Runs the Threshold Handle on input image using the operations set in dwThreshold_setOperations.
- Parameters
-
| [out] | outputImage | A handle to the output image |
| [in] | inputImage | A handle to the input image |
| [in] | obj | Handle to the Threshold Handle |
- Returns
- DW_SUCCESS
DW_INVALID_HANDLE - If the given handle is invalid,i.e. null or of wrong type
- API Group
- Init: Yes
- Runtime: Yes
- De-Init: Yes
◆ dwThreshold_getCUDAStream()
Gets the cuda stream used by the APIs of Image Threshold.
- Parameters
-
| [out] | stream | CUDA stream |
| [in] | obj | Handle to the Threshold Handle |
- Returns
- DW_SUCCESS if the operation is successful
DW_CUDA_ERROR if the underlying cuda operation failed
- API Group
- Init: Yes
- Runtime: Yes
- De-Init: Yes
◆ dwThreshold_initialize()
Initializes a Threshold Handle.
- Parameters
-
| [out] | handle | Pointer to the Threshold Handle. |
| [in] | params | parameters of image Threshold. |
| [in] | context | Handle to Driveworks |
- Returns
- DW_INVALID_ARGUMENT if the handle is invalid
DW_SUCCESS if the operation is successful
DW_CUDA_ERROR if the underlying cuda operation failed
- API Group
- Init: Yes
- Runtime: No
- De-Init: No
◆ dwThreshold_release()
Releases an Threshold Handle.
- Parameters
-
| [in] | handle | Pointer to the Threshold Handle. |
- Returns
- DW_INVALID_ARGUMENT if the handle is invalid
DW_SUCCESS if the operation is successful
DW_CUDA_ERROR if the underlying cuda operation failed
- API Group
- Init: Yes
- Runtime: No
- De-Init: Yes
◆ dwThreshold_reset()
Resets an Threshold Handle.
- Parameters
-
| [in] | obj | Pointer to the Threshold Handle. |
- Returns
- DW_INVALID_ARGUMENT if the handle is invalid
DW_SUCCESS if the operation is successful
- API Group
- Init: Yes
- Runtime: Yes
- De-Init: Yes
◆ dwThreshold_setCUDAStream()
Sets the cuda stream used by the APIs of Image Threshold.
- Parameters
-
| [in] | stream | CUDA stream |
| [in] | obj | Handle to the Threshold Handle |
- Returns
- DW_INVALID_ARGUMENT if the handle is invalid
DW_SUCCESS if the operation is successful
DW_CUDA_ERROR if the underlying cuda operation failed
- API Group
- Init: Yes
- Runtime: Yes
- De-Init: Yes
◆ dwThreshold_setThresholdParameters()
Changes the threshold parameters in runtime.
- Parameters
-
| [in] | parameters | The new parameters to set |
| [in] | obj | Handle to the Threshold Handle |
- Returns
- DW_SUCCESS
DW_INVALID_HANDLE - If the given handle is invalid,i.e. null or of wrong type
- API Group
- Init: Yes
- Runtime: Yes
- De-Init: Yes