首页 > 代码库 > 大津法阈值法代码

大津法阈值法代码

int otsu(IplImage *image){	assert(NULL != image);	int width = image->width;	int height = image->height;	int x=0,y=0;	int pixelCount[256];	float pixelPro[256];	int i, j, pixelSum = width * height, threshold = 0;	uchar* data = http://www.mamicode.com/(uchar*)image->imageData;>

  

大津法阈值法代码