I'm using Xcode on macPro, I got this error but every things looks good. any one can help?
#include
#include
#include
IplImage* doPyrDown(IplImage* in, int filter = IPL_GAUSSIAN_5x5){
assert(in->width%2 == 0 && in->height%2 == 0);
IplImage* out = cvCreateImage(cvSize(in->width, in->height), in->depth, in->nChannels);
cvPyrDown(in, out);
return out;
}
int main(int argc, char** argv) {
IplImage* img = cvLoadImage("/Users/Downloads/opencv.png");
IplImage* img1 = doPyrDown(img, IPL_GAUSSIAN_5x5);
imageDisplay(img1);
}
↧