cvThreshold
来源:互联网 发布:apache socket框架 编辑:程序博客网 时间:2024/06/12 21:02
cvThreshold是opencv库中的一个函数
作用:函数 cvThreshold 对单通道数组应用固定阈值操作。该函数的典型应用是对灰度图像进行阈值操作得到二值图像。(cvCmpS 也可以达到此目的) 或者是去掉噪声,例如过滤很小或很大象素值的图像点。本函数支持的对图像取阈值的方法由 threshold_type 确定。
形式:void cvThreshold( const CvArr* src, CvArr* dst, double threshold, double max_value, int threshold_type );
src:原始数组 (单通道 , 8-bit of 32-bit 浮点数)。dst:输出数组,必须与 src 的类型一致,或者为 8-bit。
threshold:阈值
max_value:使用 CV_THRESH_BINARY 和 CV_THRESH_BINARY_INV 的最大值。
threshold_type:阈值类型 threshold_type=CV_THRESH_BINARY:
如果 src(x,y)>threshold 0,dst(x,y) = max_value, 否则.
threshold_type=CV_THRESH_BINARY_INV:
如果 src(x,y)>threshold,dst(x,y) = 0; 否则,dst(x,y) = max_value.
threshold_typ
本函数支持的对图像取阈值的方法由 threshold_type 确定:
threshold_type=CV_THRESH_BINARY:
dst(x,y) = max_value, if src(x,y)>threshold 0, otherwise.
threshold_type=CV_THRESH_BINARY_INV:
dst(x,y) = 0, if src(x,y)>threshold; dst(x,y) = max_value, otherwise.
threshold_type=CV_THRESH_TRUNC:
dst(x,y) = threshold, if src(x,y)>threshold; dst(x,y) = src(x,y), otherwise.
threshold_type=CV_THRESH_TOZERO:
dst(x,y) = src(x,y), if (x,y)>threshold ; dst(x,y) = 0, otherwise.
threshold_type=CV_THRESH_TOZERO_INV:
dst(x,y) = 0, if src(x,y)>threshold ; dst(x,y) = src(x,y), otherwise.
左面是图形化的阈值描述:
- cvThreshold()
- cvThreshold()
- cvThreshold
- cvThreshold
- cvThreshold
- cvThreshold的用法
- 关于cvThreshold二值化函数
- 二值化函数cvThreshold
- cvThreshold的用法
- OpenCV cvThreshold 函数解释
- cvThreshold ,cvGet2D,cvsmooth,cvSaveImage
- opencv二值化函数cvThreshold
- cvThreshold源码分析
- Learing OpenCV cvThreshold
- opencv二值化函数cvThreshold
- opencv cvThreshold() cvAdaptiveThreshold()
- cvThreshold() 阈值化
- opencv--cvThreshold源码分析
- 批评孩子的六个专门小技巧
- iphone 开发中给方法上锁
- 清洗肾脏的绝好秘方(图)
- JAVA连接数据库的方式
- hive mapjoin使用
- cvThreshold
- 解决CListCtrl闪烁问题
- extjs ComboBox 自动查询
- ios学习之取消第一响应
- node.js开发指南中出现的问题 has no method 'router'解决办法
- 指向指针的指针的使用
- JFreechart 时序图 显示x轴数据 横轴数据显示
- 第一个Java程序
- 人生要小心处理的事