Types of thresholding
| C# | Visual Basic | Visual C++ |
public enum THRESH
Public Enumeration THRESH
public enum class THRESH
| Member | Description |
|---|---|
| CV_THRESH_BINARY |
value = value > threshold ? max_value : 0
|
| CV_THRESH_BINARY_INV |
value = value > threshold ? 0 : max_value
|
| CV_THRESH_TRUNC |
value = value > threshold ? threshold : value
|
| CV_THRESH_TOZERO |
value = value > threshold ? value : 0
|
| CV_THRESH_TOZERO_INV |
value = value > threshold ? 0 : value
|
| CV_THRESH_MASK | |
| CV_THRESH_OTSU |
use Otsu algorithm to choose the optimal threshold value;
combine the flag with one of the above CV_THRESH_* values
|