Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

OpenCV Error: Assertion failed (std::abs(dsize.width*2 - ssize.width)

$
0
0
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); }

Viewing all articles
Browse latest Browse all 41027

Trending Articles