diff --git a/3.c b/3.c new file mode 100644 index 0000000..194b5e2 --- /dev/null +++ b/3.c @@ -0,0 +1,56 @@ +#include +#include +#include +#include +#include +#include +int main(){ + void applySeparableGaussianBlur(float src[][100],float dst[][100],int h,int w,float kx[3],float ky[3]); + int i,j; + float inputImage[5][100]={ + {1,2,3,4,5}, + {6,7,8,9,10}, + {11,12,13,14,15}, + {16,17,18,19,20}, + {21,22,23,24,25} + }; + float outputImage[5][100]; + float kx[3]={0.25,0.5,0.25}; + float ky[3]={0.25,0.5,0.25}; + clock_t start=clock(); + applySeparableGaussianBlur(inputImage,outputImage,5,5,kx,ky); + clock_t end=clock(); + std::cout<<"²½Öè3ÔËËãʱ¼ä£º"<