在cvCvtColor函数中以类型cv :: Exception:/opencv-2.4.8/modules/imgproc/src/color.cpp:4422:error:(-215)dst.data == dst0.data的未捕获异常终止
代码是:
IplImage* gray = cvCreateImage(cvGetSize(img), 8, 1);
CvMemStorage* storage = cvCreateMemStorage(0);
cvCvtColor(img, gray, CV_BGR2GRAY);