/*================================================================== = 代码内容:最大熵阈值分割 = 修改日期:2009-3-3 = 作者:crond123 = 博客:http://blog.youkuaiyun.com/crond123/ = E_Mail:crond123@163.com ====================================================================*/ #include "stdafx.h" #include "cv.h" #include "highgui.h" #include <cmath> #include <iostream> #include <vector> #include <cassert> #pragma comment(lib,"highgui.lib") #pragma comment(lib,"cv.lib") #pragma comment(lib,"cvaux.lib") #pragma comment(lib,"cxcore.lib") std::vector<CvPoint> InitContour; IplImage* temp; //= cvCreateImage(cvGetSize(img), IPL_DEPTH_8U, 1); void showContent(IplImage * img) { if(temp==NULL) temp= cvCreateImage(cvGetSize(im