| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- #실생활영어
- python list
- python 알고리즘
- opencv SURF
- 딥러닝
- #영어 명언
- 완전탐색
- object detection
- #프로젝트
- word embedding
- Convolution Neural Network
- 이미지 생성
- #영어
- 영어명언
- TensorFlow
- #Android
- keras
- 영어
- text2img
- #opencv
- #일상영어
- c언어
- findContours
- tokenizing
- convexhull
- #English
- python __init__
- #1일1영어
- tensorflow update
- #실생활 영어
Archives
- Today
- Total
When will you grow up?
23. SURF 특징 검출기 본문
reference
->
http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_feature2d/py_surf_intro/py_surf_intro.html
SURF 특징 검출기는 저작권 문제로 contrib로 따로 빠져있다.
예제로 연습하는것은 문제가 안되며 상용화 되는것은 라이센스를 확인해봐야 한다.
cv::SURF는
디폴트 임계 값이 300~500정도 사이가 적당하다고 한다.
값이 올라가면 올라갈수록 검출되는 점의 갯수가 적어진다.
결과 이미지 입니다.
소스코드 입니다
//SURF Detector
Mat img_1 = imread("img1.png");
Mat img_2 = imread("img2.png");
//-- Step 1: Detect the keypoints using SURF Detector
int minHessian = 4000;
Ptr detector = SURF::create(minHessian);
std::vector keypoints_1, keypoints_2;
detector->detect(img_1, keypoints_1);
detector->detect(img_2, keypoints_2);
//-- Draw keypoints
Mat img_keypoints_1; Mat img_keypoints_2;
drawKeypoints(img_1, keypoints_1, img_keypoints_1, Scalar::all(-1), DrawMatchesFlags::DEFAULT);
drawKeypoints(img_2, keypoints_2, img_keypoints_2, Scalar::all(-1), DrawMatchesFlags::DEFAULT);
//-- Show detected (drawn) keypoints
imshow("Keypoints 1", img_keypoints_1);
imshow("Keypoints 2", img_keypoints_2);
waitKey(0);
'02. Study > Computer Vision(openframworks&opencv)' 카테고리의 다른 글
| Haar Cascade Classifiers를 이용한 얼굴 인식 (0) | 2019.10.07 |
|---|---|
| [openCV] SIFT와 SURF를 이용한 WebCam 영상 매칭 (5) | 2016.12.10 |
| 22. 관심점 검출(Harris corner detector) (0) | 2016.12.02 |
| opencv로 Panorama Image 만들기 (0) | 2016.11.26 |
| 21. Perspective Transformation(투영변환) (0) | 2016.11.25 |
Comments