opencv 阈值分割
opencv 阈值分割int _tmain(int argc, _TCHAR* argv[]) { gsrcimage=cvLoadImage("lena.jpg",CV_LOAD_IMAGE_GRAYSCALE); gcannyimage=cvCreateImage(cvGetSize(gsrcimage),IPL_DEPTH_8U,1); cvNamedWindow("lena",CV_WINDOW_AUTOSIZE); cvNamedWindow("canny",CV_WINDOW_AUTOSIZE); int nThresholdEdge=1; cvCreateTrackbar("threhold","canny",&nThresholdEdge,100,on_trackbar); cvShowImage("lena",gsrcimage);