【问题标题】:Does OpenCV for Mac use the Accelerate framework?OpenCV for Mac 是否使用 Accelerate 框架?
【发布时间】:2011-02-01 05:41:33
【问题描述】:

Accelerate 框架是一个特定于 Mac 的框架,提供图像卷积和 LAPACK 等功能,据称经过优化以在 Mac 上尽可能快。我的问题:OpenCV 是否利用了这一点?具体来说,“filter2D”函数是否使用Accelerate?

【问题讨论】:

    标签: opencv accelerate-framework


    【解决方案1】:

    它没有使用 Accelerate 框架,但看起来它已经使用 2.2 中的 CUDA 东西加速了

    OpenCV2.2中的相关文件...

    /modules/gpu/include/opencv2/gpu/gpu.hpp /modules/gpu/src/filtering.cpp

    模块/imgproc/src/filter.cpp

    对于非 gpu 的东西

    【讨论】:

      【解决方案2】:

      不是 mac 专家,但 AFAIK openCV 使用 IPP(如果已安装)TBB(构建选项)和 NVidia-CUDA(构建选项)

      【讨论】:

        【解决方案3】:

        如果使用MacPorts版本,可以指定选项

        $ 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
        

        我用过

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

        成功了。具体到 Accelerate.framework,这个blog entry 说“# Add Accelerate.framework which is used internal from OpenCV library.”,但我不知道这里是否是这种情况。

        【讨论】:

          猜你喜欢
          • 2015-03-18
          • 2011-03-24
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2015-09-11
          • 2020-11-22
          • 2013-01-03
          • 1970-01-01
          相关资源
          最近更新 更多