#include <opencv\cv.h> #include <opencv\highgui.h> using namespace cv; void smooth( IplImage* image) { IplImage* out = cvCreateImage( cvGetSize(image), IPL_DEPTH_8U, 3 ); cvSmooth( image, out, CV_GAUSSIAN, 15, 15 ); cvShowImage( "out", out ); cvReleaseImage( &out ); } int main( int argc, char** argv ) { IplImage * img; img = cvLoadImage("a.jpg"); cvShowImage("second", img); smooth( img ); cvWaitKey(); cvDestroyWindow("second"); cvReleaseImage(&img); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)