OpenCV 高斯模糊

所谓"模糊",可以理解成每一个像素都取周边像素的平均值


void Example2_4(IplImage* image)
{
	cvNamedWindow("in");
	cvNamedWindow("out");

	cvShowImage("in", image);

	IplImage* out = cvCreateImage(cvGetSize(image), IPL_DEPTH_8U, 3);
	cvSmooth(image, out, CV_GAUSSIAN, 3, 3);

	cvShowImage("out", out);

	cvReleaseImage(&out);
	cvWaitKey(0);
	cvDestroyWindow("in");
	cvDestroyWindow("out");
}


你可能感兴趣的:(opencv)