使用多线程及图像分块实现图像处理加速运算

上传者: u013085897 | 上传时间: 2019-12-21 21:27:03 | 文件大小: 1.99MB | 文件类型: zip
对于一副图像,比如1000*800分辨率,我们在处理时,通常思路是从第1个像素开始,一直计算到最后一个像素。其实,目前不论手机还是个人电脑,处理器都是多核。那么完全可以将整副图像分成若干块,比如cpu为4核处理器,那么可以分成4块,每块图像大小为1000*200,这样程序可以创建4个线程,每个处理器执行一个线程,每个线程处理一个图像块。更多内容可参考:http://blog.csdn.net/grafx/article/details/71084473

文件下载

资源详情

[{"title":"( 27 个子文件 1.99MB ) 使用多线程及图像分块实现图像处理加速运算","children":[{"title":"TestBlog","children":[{"title":"TestBlog.suo <span style='color:#111;'> 18.00KB </span>","children":null,"spread":false},{"title":"TestBlog.sln <span style='color:#111;'> 889B </span>","children":null,"spread":false},{"title":"TestBlog","children":[{"title":"stdafx.cpp <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":"Release","children":null,"spread":false},{"title":"stdafx.h <span style='color:#111;'> 276B </span>","children":null,"spread":false},{"title":"include","children":[{"title":"semaphore.h <span style='color:#111;'> 4.46KB </span>","children":null,"spread":false},{"title":"pthread.h <span style='color:#111;'> 42.84KB </span>","children":null,"spread":false},{"title":"sched.h <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false}],"spread":true},{"title":"TestBlog.vcproj <span style='color:#111;'> 4.77KB </span>","children":null,"spread":false},{"title":"TestBlog.vcproj.SUNCH-THINK.CC.user <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"result.png <span style='color:#111;'> 892.02KB </span>","children":null,"spread":false},{"title":"TestBlog.vcproj.LAPTOP-8TEOO0IS.sunch.user <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"pthreadVC2.lib <span style='color:#111;'> 29.62KB </span>","children":null,"spread":false}],"spread":true},{"title":"Debug","children":null,"spread":false},{"title":"TestBlog.cpp <span style='color:#111;'> 5.79KB </span>","children":null,"spread":false},{"title":"test.png <span style='color:#111;'> 842.27KB </span>","children":null,"spread":false},{"title":"ReadMe.txt <span style='color:#111;'> 956B </span>","children":null,"spread":false}],"spread":false},{"title":"debug","children":[{"title":"pthreadVSE2.dll <span style='color:#111;'> 56.00KB </span>","children":null,"spread":false},{"title":"TestBlog.exe <span style='color:#111;'> 64.00KB </span>","children":null,"spread":false},{"title":"pthreadVC2.dll <span style='color:#111;'> 54.50KB </span>","children":null,"spread":false},{"title":"pthreadVCE2.dll <span style='color:#111;'> 60.50KB </span>","children":null,"spread":false},{"title":"pthreadGC2.dll <span style='color:#111;'> 117.08KB </span>","children":null,"spread":false},{"title":"pthreadGCE2.dll <span style='color:#111;'> 119.09KB </span>","children":null,"spread":false}],"spread":true},{"title":"release","children":[{"title":"pthreadVSE2.dll <span style='color:#111;'> 56.00KB </span>","children":null,"spread":false},{"title":"TestBlog.exe <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false},{"title":"pthreadVC2.dll <span style='color:#111;'> 54.50KB </span>","children":null,"spread":false},{"title":"pthreadVCE2.dll <span style='color:#111;'> 60.50KB </span>","children":null,"spread":false},{"title":"pthreadGC2.dll <span style='color:#111;'> 117.08KB </span>","children":null,"spread":false},{"title":"pthreadGCE2.dll <span style='color:#111;'> 119.09KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明