如何加快SURF的通信匹配過程?我使用提供的樣本並將其更改爲從網絡攝像頭捕獲彩色圖像進行處理,但速度肯定需要改進。這應該在哪裏解決?OpenCV SURF,捕獲的視頻是否正常?如何加快速度?
4
A
回答
3
首先,SURF(至少,OpenCV的)只支持灰色圖片。
有大量的描述符參數avalable調整,將其設置爲較低的值可以提高性能:
typedef struct CvSURFParams
{
int extended; // 0 means basic descriptors (64 elements each),
// 1 means extended descriptors (128 elements each)
double hessianThreshold; // only features with keypoint.hessian
// larger than that are extracted.
// good default value is ~300-500 (can depend on the
// average local contrast and sharpness of the image).
// user can further filter out some features based on
// their hessian values and other characteristics.
int nOctaves; // the number of octaves to be used for extraction.
// With each next octave the feature size is doubled
// (3 by default)
int nOctaveLayers; // The number of layers within each octave
// (4 by default)
}
CvSURFParams;
此外,檢查出原來article和notes on OpenSURF lib
0
有一個與cvRound功能的問題,就是通過廣泛SURF代碼中使用。總而言之,函數重載帶有double和float之間的附加類型轉換,這會減慢舍入代碼。您可以在這裏找到詳細的解釋,以及速度測量和補丁:http://computer-vision-talks.com/2011/06/a-few-thoughts-about-cvround/。