把彩色图转为灰度图IplImage* dst1 = cvCreateImage(cvGetSize(in),IPL_DEPTH_8U,1);cvCvtColor(in,dst1,CV_BGR2GRAY);dst1与in应该是同一个IPL_DEPTH_8U边缘检测cvCanny(pImg, pCannyImg, 50, 150, 3);只能是灰度图像 复制图像IplImage* img=cvCreateImage(cvGetSize(image),image->depth,image->nChannels); cvCopy(image,img... Read More
posted @ 2012-05-23 15:02 lawdong Views(329) Comments(0) Diggs(0) Edit
http://home.cnblogs.com/ing/