2011-02-01 75 views
2

Accelerate框架是一個特定於Mac的框架,它提供了圖像卷積和LAPACK之類的東西,據說在Mac上可以儘可能快地進行優化。我的問題:OpenCV是否利用了這一點?具體來說,函數「filter2D」是否使用Accelerate?OpenCV for Mac使用Accelerate框架嗎?

回答

1

不是Mac的專家,但據我所知OpenCV的使用IPP(如果已安裝)TBB(構建選項)和NVidia-CUDA(構建選項)

2

它不使用加速架構,但看起來它已經加快了使用CUDA的東西在2.2

在OpenCV2.2相關文件...

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

模塊/ imgproc/src目錄/ filter.cpp

對於非GPU的東西

1

如果使用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 

with su CCESS。具體來說,關於Accelerate.framework,這個blog entry說:「#從OpenCV庫內部使用的#添加Accelerate.framework」,但我不知道這裏是否屬於這種情況。