Commit f85eb23c authored by GilLevi's avatar GilLevi

sample for LATCH

parent a41ac8fd
...@@ -19,7 +19,7 @@ int main(void) ...@@ -19,7 +19,7 @@ int main(void)
Mat img1 = imread("../data/graf1.png", IMREAD_GRAYSCALE); Mat img1 = imread("../data/graf1.png", IMREAD_GRAYSCALE);
Mat img2 = imread("../data/graf3.png", IMREAD_GRAYSCALE); Mat img2 = imread("../data/graf3.png", IMREAD_GRAYSCALE);
Mat homography; Mat homography;
FileStorage fs("../data/H1to3p.xml", FileStorage::READ); FileStorage fs("../data/H1to3p.xml", FileStorage::READ);
...@@ -77,6 +77,7 @@ int main(void) ...@@ -77,6 +77,7 @@ int main(void)
Mat res; Mat res;
drawMatches(img1, inliers1, img2, inliers2, good_matches, res); drawMatches(img1, inliers1, img2, inliers2, good_matches, res);
imwrite("../../samples/data/latch_res.png", res); imwrite("../../samples/data/latch_res.png", res);
double inlier_ratio = inliers1.size() * 1.0 / matched1.size(); double inlier_ratio = inliers1.size() * 1.0 / matched1.size();
cout << "LATCH Matching Results" << endl; cout << "LATCH Matching Results" << endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment