iPhone 용 응용 프로그램을 만들려고하는데 OpenCV 및 iOS 용 새 개발자입니다. 나는 50 개 이상의 물체 이미지를 가지고 있는데, 나는 카메라로부터 하나의 장면 이미지를 가지고있다. 매번 나는이 장면들 중 하나를 가지고 있습니다. 나는 sift 알고리즘을 통해 하나의 객체를 찾을 수 있었지만 어떤 객체가 매우 유사하기 때문에 객체들과 비교할 자신감을 계산할 수있는 방법을 찾지 못했습니다. findHomography 함수를 사용했지만 여전히 자신감을 얻는 방법을 모릅니다. 오픈 CV 라이브러리에서 이걸 찾았습니다.opencv sift 알고리즘, findHomography에서 자신감을 얻는 방법
struct CV_EXPORTS MatchesInfo
{
MatchesInfo();
MatchesInfo(const MatchesInfo &other);
const MatchesInfo& operator =(const MatchesInfo &other);
int src_img_idx, dst_img_idx; // Images indices (optional)
std::vector<DMatch> matches;
std::vector<uchar> inliers_mask; // Geometrically consistent matches mask
int num_inliers; // Number of geometrically consistent matches
Mat H; // Estimated homography
double confidence; // Confidence two images are from the same panorama
};
그러나 나는 그것을 사용하는 방법을 모릅니다.
감사합니다.