openmp在图像处理上面的运用
//openmptest的测试程序 // #include"stdafx.h" voidTest(intn){ for(inti=0;i<10000;i++) { intj=0; j=j+1; } printf("%d",n); } int_tmain(intargc,_TCHAR*argv[]) { for(inti=0;i<10;i++) { Test(i); } getchar(); return0; } 而开启openmp 代码 //openmptest的测试程序 // #include"stdafx.h" voidTest(intn){ for(inti=0;i<10000;i++) { intj=0; j=j+1; } printf("%d",n); } int_tmain(intargc,_TCHAR*argv[]) { for(inti=0;i<10;i++) { Test(i); } getchar(); return0; } 速度更快。 在最简单的层次上,openmp提供了粗颗粒的并行算法。一直以来,我都在寻找图像处理的加速算法,...
