2012-11-21 2 views
2

cv2 및 Python을 사용하여 SURF 설명자를 추출하는 것은 매우 간단합니다. here, towards the bottom of the page 언급으로 OpponentColorDescriptorExtractor에 대한OpenCV, OpponentColorDescriptorExtractor 및 Python

extractor = cv2.DescriptorExtractor_create("SURF") 

그러나 : 당신은 단지의 라인을 따라 뭔가를 사용하여 그것을 기술자를 초기화하고 적용 할 필요가?

Opponent Color 추출기 via this blog post을 만드는 데 C++ 코드가 있지만 필자는 Python 바인딩을 찾을 수 없습니다.

누군가 파이썬 바인딩을 사용하여 상대 색상 표기 추출기를 만드는 방법을 알고 있습니까?

답변

4

문서를 좀 더 잘 읽었어야합니다. 설명자 앞에 상대방을 추가하기 만하면됩니다.

>>> d = cv2.DescriptorExtractor_create("SURF") # normal SURF descriptor 
>>> d = cv2.DescriptorExtractor_create("OpponentSURF") # SURF descriptor applied to each channel in the opponent color space and concatenated together 
관련 문제