ã«ã¼ã« #pragma omp parallel for [schedule(ã¹ã±ã¸ã¥ã¼ãªã³ã°æ³)] ãforæã®ç´åã«å ¥ããã ãµã³ãã«ã½ã¼ã¹ 100x100ã®ç»åãcvSet2Dã§å¡ãæ½°ãã®ãx, yã«ã¤ãã¦ä¸¦åå dynamic, static, guidedã®3種ãé 次y, xã«ã¤ãã¦è¡ãªã ã¹ã¬ããæ°ã¯ããã»ããµæ°*4 #include <cv.h> #include <highgui.h> #include <omp.h> int main(void){ IplImage *src = cvCreateImage(cvSize(100,100),IPL_DEPTH_8U,3); cvSetZero(src); int y,x; cvNamedWindow("src",1); int nProc = omp_get_num_procs(); int nTh = nProc * 4
{{#tags}}- {{label}}
{{/tags}}