opencv直方图统计例子
2015-06-02 09:56
274 查看
C++: void calcHist(const Mat*images, int
nimages, const int* channels, InputArraymask, OutputArray
hist, int dims, const int*histSize, const float**
ranges, bool uniform=true, boolaccumulate=false
)
以上是计算直方图的函数,但单从官方文档看参数说明并不是很清楚每个参数具体应该怎么使用。
在百度上找了许多例子,看了都不是很清楚。
最后还是找了一个在官方的例子,还是中文的
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/laugh.gif)
讲解的很简单明了,容易看懂,这里就不搬运了,附上链接:
http://www.opencv.org.cn/opencvdoc/2.3.2/html/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.html
nimages, const int* channels, InputArraymask, OutputArray
hist, int dims, const int*histSize, const float**
ranges, bool uniform=true, boolaccumulate=false
)
以上是计算直方图的函数,但单从官方文档看参数说明并不是很清楚每个参数具体应该怎么使用。
在百度上找了许多例子,看了都不是很清楚。
最后还是找了一个在官方的例子,还是中文的
![](http://static.blog.csdn.net/xheditor/xheditor_emot/default/laugh.gif)
讲解的很简单明了,容易看懂,这里就不搬运了,附上链接:
http://www.opencv.org.cn/opencvdoc/2.3.2/html/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.html
相关文章推荐
- ***Linux下使用git命令及github项目
- EM9280 Linux SPI 驱动简介
- Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
- 第一节---nginx安装
- Microsoft.Office.Interop.Excel的用法以及利用Microsoft.Office.Interop.Excel将web页面转成PDF
- 回收站功能在 Linux 中的实现
- PowerShell实现查询打开某个文件的默认应用程序
- 生产环境上shell的解读
- CentOS6.4 安装配置iptables
- Microsoft.Office.Interop.Excel的用法以及利用Microsoft.Office.Interop.Excel将web页面转成PDF
- linux ps 命令使用
- linux 访问远程务器代码
- apache开启.htaccess及.htaccess的使用方法
- Linux route命令详解:查看和操作IP路由表
- CENTOS 7 下安装mysql
- Linux 下编译Android-VLC开源播放器详解(附源码下载)
- Xcopy参数介绍
- PowerShell实现在字符串中查找大写字母
- zabbix监控tomcat两种配置方式
- PowerShell实现在控制台中插入绿色的打勾符号