OpenCV for Mac 是否使用 Accelerate 框架?

发布于 2024-10-15 08:37:10 字数 132 浏览 7 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

若无相欠,怎会相见 2024-10-22 08:37:10

它不使用 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

风渺 2024-10-22 08:37:10

不是 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)

娇女薄笑 2024-10-22 08:37:10

选项

$ port variants opencv
opencv has the variants:
   debug: Enable debug binaries
   python26: Add Python 2.6 bindings
     * conflicts with python27
   python27: Add Python 2.7 bindings
     * conflicts with python26
   tbb: Use Intel TBB
   universal: Build for multiple architectures

如果您使用 MacPorts 版本,您可以指定我已成功使用的

sudo port install py26-numpy
sudo port install opencv +python26 +tbb

。特别是关于 Accelerate.framework,这个博客条目 说“# Add Accelerate.framework,它是 OpenCV 库内部使用的。”,但我不知道这里是否是这种情况。

If you use the MacPorts version, you can specify the options

$ port variants opencv
opencv has the variants:
   debug: Enable debug binaries
   python26: Add Python 2.6 bindings
     * conflicts with python27
   python27: Add Python 2.7 bindings
     * conflicts with python26
   tbb: Use Intel TBB
   universal: Build for multiple architectures

I have used

sudo port install py26-numpy
sudo port install opencv +python26 +tbb

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文