OpenCV for Mac 是否使用 Accelerate 框架?
Accelerate 框架是一个特定于 Mac 的框架,提供图像卷积和 LAPACK 等功能,据说经过优化,可以在 Mac 上尽可能快地运行。我的问题:OpenCV 是否利用了这一点?具体来说,“filter2D”函数是否使用 Accelerate?
The Accelerate framework is a Mac-specific framework that provides things like image convolutions and LAPACK, supposedly optimized to be as fast as possible on Macs. My question: Does OpenCV take advantage of this? Specifically, does the function "filter2D" use Accelerate?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它不使用 Accelerate 框架,但看起来它已经使用 2.2 中的 CUDA 东西加速了
OpenCV2.2 中的相关文件 ...
/modules/gpu/include/opencv2/gpu/gpu.hpp
/modules/gpu/src/filtering.cpp
和
modules/imgproc/src/filter.cpp
用于非gpu 的东西
It does not use the Accelerate framework, but it looks like it has been speeded up using the CUDA stuff in 2.2
The relevant files in OpenCV2.2 ...
/modules/gpu/include/opencv2/gpu/gpu.hpp
/modules/gpu/src/filtering.cpp
and
modules/imgproc/src/filter.cpp
for the non-gpu stuff
不是 Mac 专家,但 AFAIK openCV 使用 IPP (如果已安装)< a href="http://www.threadingbuildingblocks.org/" rel="nofollow">TBB(构建选项)和 NVidia-CUDA(构建选项)
Not a mac expert but AFAIK openCV uses IPP (if installed) TBB (build option) and NVidia-CUDA (build option)
选项
如果您使用 MacPorts 版本,您可以指定我已成功使用的
。特别是关于 Accelerate.framework,这个博客条目 说“# Add Accelerate.framework,它是 OpenCV 库内部使用的。”,但我不知道这里是否是这种情况。
If you use the MacPorts version, you can specify the options
I have used
with success. Concerning the Accelerate.framework specifically, this blog entry says "# Add Accelerate.framework which is used internally from OpenCV library.", but I have no clue as to know if it is the case here.