|
发表于 2019-6-10 10:02:41
|
显示全部楼层
- threshold types
- Enumerator
- THRESH_BINARY
- Python: cv.THRESH_BINARY
- dst(x,y)={maxval0if src(x,y)>threshotherwise
- THRESH_BINARY_INV
- Python: cv.THRESH_BINARY_INV
- dst(x,y)={0maxvalif src(x,y)>threshotherwise
- THRESH_TRUNC
- Python: cv.THRESH_TRUNC
- dst(x,y)={thresholdsrc(x,y)if src(x,y)>threshotherwise
- THRESH_TOZERO
- Python: cv.THRESH_TOZERO
- dst(x,y)={src(x,y)0if src(x,y)>threshotherwise
- THRESH_TOZERO_INV
- Python: cv.THRESH_TOZERO_INV
- dst(x,y)={0src(x,y)if src(x,y)>threshotherwise
- THRESH_MASK
- Python: cv.THRESH_MASK
- THRESH_OTSU
- Python: cv.THRESH_OTSU
- flag, use Otsu algorithm to choose the optimal threshold value
- THRESH_TRIANGLE
- Python: cv.THRESH_TRIANGLE
- flag, use Triangle algorithm to choose the optimal threshold value
复制代码
你这个是旧版的写法,最新版的opencv应该是THRESH_OTSU 。 |
|