int M = img_rgb->width;int N = img_rgb->height;// convert to gray scaleIplImage* img_gray = cvCreateImage( cvSize(M, N), IPL_DEPTH_8U, 1 ); cvCvtColor( img_rgb, img_gray, CV_BGR2GRAY );
No comments:
Post a Comment