opencv+vs2013实现 最大类间二值化(附源代码)
//求最大类间二值化
int otsu(IplImage* image)
{
//生成直方图
int dims = 1;
int size = 256;
float range[] = { 0, 255 };
float* ranges[] = { range };
CvHistogram* hist = cvCreateHist(dims, &size, CV_HIST_ARRAY,
原创
2014-11-06 21:16:39 ·
808 阅读 ·
0 评论