1. 程式人生 > >opencv-api drawKeyPoints

opencv-api drawKeyPoints

1.dectAndCompute

def detectAndCompute(self, image, mask, descriptors=None, useProvidedKeypoints=None): detectAndCompute(image, mask[, descriptors[, useProvidedKeypoints]]) -> keypoints, descriptors

Detects keypoints and computes the descriptors

引數 描述
image 需要計算的圖片
mask 遮罩,一般設為None

2.FlannBasedMatcher

cv.FlannBasedMatcher( [, indexParams[, searchParams]] )

3.cv.findHomography

retval, mask = cv.findHomography( srcPoints, dstPoints[, method[, ransacReprojThreshold[, mask[, maxIters[, confidence]]]]] )

引數 描述
image 原始影象
keypoints 特徵點向量,每個元素對應一個特徵的資訊
outImage 特徵點繪製的影象
color 特徵點顏色
flags 繪製模式
模式 描述
DEFAULT 只繪製特徵點
DRAW_OVER_OUTIMG
NOT_DRAW_SINGLE_POINTS 單點特徵不會被繪製
DRAW_RICH_KEYPOINTS 顯示豐富的資訊
kps 描述
angle 關鍵點的方向
class_id 圖片分類
octave 金字塔層數
pt 關鍵點座標
response 特徵點強度
size 直徑大小