BRIEF:Binary Robust Independent Elementary Rreatures
它不是什么特征,是类似与LBP 和Haar 这样的特征描述符,
#!/usr/bin/env python
import cv2
img = cv2.imread('chess.png')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
star = cv2.FeatureDetector_create("STAR")
brief = cv2.DescriptorExtractor_create("BRIEF")
kp = star.detect(gray, None)
kp, des = brief.compute(img,kp)
print brief.getInt('bytes')
print des.shape