标签:project val 技术 read bsp blog sharp create pre
//高斯滤波 int g_nGaussianBlurValue; void on_ChangeGaussianBlurValue(int,void*) { if(g_nGaussianBlurValue>0 && g_nGaussianBlurValue%2==1) { GaussianBlur(g_srcImage_Contrast,g_dstImage_Contrast,Size(g_nGaussianBlurValue,g_nGaussianBlurValue),0,0); imshow("高斯滤波",g_dstImage_Contrast); } } void Test_GaussianBlur() { namedWindow("高斯滤波"); namedWindow("原图"); g_srcImage_Contrast=imread("D:\\OpenCV Projects\\OpenCV_Test_Image\\16.jpg"); g_nGaussianBlurValue=3; createTrackbar("trackbar","高斯滤波",&g_nGaussianBlurValue,15,on_ChangeGaussianBlurValue); on_ChangeGaussianBlurValue(g_nGaussianBlurValue,0); imshow("原图",g_srcImage_Contrast); }
标签:project val 技术 read bsp blog sharp create pre
原文地址:http://www.cnblogs.com/foggia2004/p/6596788.html