threshold
来源:互联网 发布:淘宝号被冻结解冻方法 编辑:程序博客网 时间:2024/05/18 14:12
Applies a fixed-level threshold to each array element.
- C++: double threshold(InputArraysrc, OutputArray dst, double thresh, doublemaxval, int type)
- Python:cv2.threshold(src, thresh, maxval, type[, dst]) → retval, dst
- C: double cvThreshold(const CvArr*src, CvArr* dst, double threshold, doublemax_value, int threshold_type)
- Python:cv.Threshold(src, dst,threshold, maxValue, thresholdType) → None
Parameters: - src – input array (single-channel, 8-bit or 32-bit floating point).
- dst – output array of the same size and type as src.
- thresh – threshold value.
- maxval – maximum value to use with the THRESH_BINARY and THRESH_BINARY_INVthresholding types.
- type – thresholding type (see the details below).
The function applies fixed-level thresholdingto a single-channel array. The function is typically used to get abi-level (binary) image out of a grayscale image (compare() couldbe also used for this purpose) or for removing a noise, that is, filteringout pixels with too small or too large values. There are severaltypes ofthresholding supported by the function. They are determined bytype :
THRESH_BINARY
THRESH_BINARY_INV
THRESH_TRUNC
THRESH_TOZERO
THRESH_TOZERO_INV
Also, the special value THRESH_OTSU may be combined withone of the above values. In this case, the function determines the optimalthresholdvalue using the Otsu’s algorithm and uses it instead of the specifiedthresh .The function returns the computed threshold value.Currently, the Otsu’s method is implemented only for 8-bit images.
See also
adaptiveThreshold(),findContours(),compare(),min(),max()
- threshold
- threshold 阈值
- threshold函数
- RTS Threshold
- logdistance/Energy Detection Threshold
- Logic Threshold Voltage Levels
- OpenCV二值化函数Threshold
- OpenCV Threshold的用法
- openCV threshold 阈值
- cost threshold for parallelism
- \tutorial_code\ImgProc\Threshold.cpp
- OpenCV二值化函数Threshold
- 滚动条+threshold()
- 二值化函数Threshold
- halcon之threshold
- threshold的用法介绍
- threshold_sub_pix(Segmentation/Threshold)
- OpenCV--阈值分割-threshold()
- 第17周项目20-百钱百鸡
- 回收站的文件不见了还有办法恢复吗
- IOS 之 商业模式 应用内购买
- 借助Grub4DOS的grldr启动Windows PE(软启动)
- MySQL学习笔记 1 - 基础知识
- threshold
- hdu 1800 flying to the mars(贪心算法)
- Mac OS X 文件夹本地化方法(汉化)
- URAL 1297 Palindrome
- 数据结构算法3_2
- 大学毕业后五年决定你的命运
- c/c++编译中遇到的问题
- VC中ComboBox下拉列表不显示数据或只显示一行问题
- 黑马程序员—多线程