#include "cv.h" #include "highgui.h" int main() { IplImage* image = cvLoadImage("E:\\lena.jpg"); cvNamedWindow("Example4-in"); cvNamedWindow("Example4-out"); cvShowImage("Example4-in", image); IplImage* out = cvCreateImage( cvGetSize(image), IPL_DEPTH_8U, 3 ); cvSmooth(image, out, CV_GAUSSIAN, 3, 3); cvShowImage("Example4-out", out); cvReleaseImage(&image); cvReleaseImage( &out ); cvWaitKey(0); cvDestroyWindow("Example4-in"); cvDestroyWindow("Example4-out"); return 0; }