openCV, 특징 추출과 바이너리 디스크립터 ORB


openCV, 특징 추출과 바이너리 디스크립터 ORB

특징 추출과 바이너리 디스크립터 전체 코드 #include <opencv2/opencv.hpp> using namespace std; using namespace cv; int main() { // 이미지 로드 Mat img1 = imread("box.png", IMREAD_GRAYSCALE); Mat img2 = imread("box_in_scene.png", IMREAD_GRAYSCALE); // ORB 디스크립터 Ptr<Feature2D> b = ORB::create(); // 또는 b = BRISK::create(); vector<KeyPoint> kp1, kp2; Mat desc1, desc2; b->detectAndCompute(img1, Mat(), kp1, desc1, false); b->detectAndCompute(img2, Mat(), kp2, desc2, false); Ptr<DescriptorMatcher> descriptorMatcher = Descripto...


#opencv #ORB #매칭 #바이너리디스크립터 #특징추출

원문링크 : openCV, 특징 추출과 바이너리 디스크립터 ORB