您的位置:首页 > 运维架构

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://www.opencv.org.cn/opencvdoc/2.3.2/html/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: