Skip to content
forked from josefmaierfl/GTM

Interface for Ground Truth Matches to test vision based algorithms

License

Notifications You must be signed in to change notification settings

KimberlySama/GTM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GTM

Interface to access Ground Truth Matches (GTM) to test computer vision algorithms using GT image features from popular datasets.

Description

Feature matching quality strongly influences the accuracy of most computer vision tasks. This led to impressive advances in keypoint detection, descriptor calculation, and feature matching itself. To compare different approaches and evaluate their quality, datasets from related tasks are used (KITTI, Oxford (Mikolajczyk et al.), HCI Training 1K, ...). Unfortunately, none of these datasets actually provides ground truth (GT) feature matches. Thus, due to repeatability errors of keypoint detectors and inaccuracies of GT, matches can only be approximated. Here, we introduce Ground Truth Matches (GTM) for several well known datasets. Based on the provided spacial ground truth, we automatically generated them using popular feature types.

Further information can be found in our paper [1] and on our website.

Currently, we provide GTM for

GTMs of the above-mentioned datasets are available for the following keypoint types:

  • AKAZE
  • KAZE
  • BRISK
  • FAST
  • MSD
  • ORB
  • SIFT

For each dataset-keypoint combination, GTMs are available for various inlier ratios ranging from 1% to 100% (1, 2, ..., 10, 12, ..., 20, 25, ..., 100). For testing without a specific inlier ratio, data with the maximum possible (depends on the images and keypoint type) number of true feature matches and true negatives (keypoints without a match in the other image) is also available.

The provided code includes functionalities to read and display the Ground Truth Matches. After reading, the information of the GTM-files is stored in the OpenCV format for matches and keypoints (cv::DMatch and cv::KeyPoint). Moreover, the following information is available for each corresponding image pair:

  • Left inlier mask (std::vector<bool>)
  • Matches (std::vector <cv::DMatch>)
  • Left keypoints (std::vector <cv::KeyPoint>)
  • Right keypoints (std::vector <cv::KeyPoint>)
  • Left inlier ratio (double)
  • Right inlier ratio (double)
  • Average inlier ratio of both images (double)
  • Number of true positive matches (double)
  • Number of true negatives in the left image (double)
  • Number of true negatives in the right image (double)
  • Estimated threshold for generating GTM (double)

Naming Convention for GTM Files

Using a specific inlier ratio:

[dataset image 1]_[dataset image 2]_inlRat[inlier ratio in percent multiplied by 10][keypoint type].gtm

Without a specific inlier ratio:

[dataset image 1]_[dataset image 2]_inlRatInitial[keypoint type].gtm

GTM Download

http:https://www.vitro-testing.com/test-data/gtm

Platform

This cmake project was tested under Linux (Ubuntu 14.04) and Windows 7 (Visual Studio 2015).

Dependencies

OpenCV 3.2

Using the Code

The project provides functionalities to read and display the GTM of multiple corresponding images and GTM-files. By providing the path to the images and GTM files in addition to the prefix and/or postfix of the image names and GTM file names, the GTM of all image pairs within the specified folders are displayed.

If only the core functionality of reading GTM files is required, the header file include/readGTM.h can be included in your own code.

To show the different options for reading and displaying GTM, use the option -h in cunjuction with the compiled executable.

For testing, this repository includes a few sample image pairs from KITTI and Oxford datasets with their corresponding GTM in the folder data. For testing, use one of the following command arguments:

  • KITTI disparity image pairs with GTM, AKAZE keypoints, and an inlier ratio of 75%:  
--img_path=YOURPATH/data/KITTI/imgs/ --l_img_pref=/image_2/*_10 --r_img_pref=/image_3/*_10 --gtm_path=YOURPATH/data/KITTI/GTMs/disp --gtm_postf=/*750AKAZE
  • KITTI flow image pairs with GTM, AKAZE keypoints, and an inlier ratio of 75%:
--img_path=YOURPATH/data/KITTI/imgs/image_2/ --l_img_pref=*_10 --r_img_pref=*_11 --gtm_path=YOURPATH/data/KITTI/GTMs/flow --gtm_postf=/*750AKAZE
  • Oxford wall image pair with GTM, FAST keypoints, and an inlier ratio of 50%:
--img_path=YOURPATH/data/Oxford-wall/imgs --l_img_pref=img1 --r_img_pref=img2 --gtm_path=YOURPATH/data/Oxford-wall/GTMs --gtm_postf=img1_img2_inlRat500FAST

Compile and run the examples for Linux:

git clone https://github.com/josefmaierfl/GTM.git
cd GTM
mkdir build
cd build
cmake ..
make
  • KITTI disparity image pairs with GTM, AKAZE keypoints, and an inlier ratio of 75%:
./loadGTMfiles --img_path=../data/KITTI/imgs/ --l_img_pref=/image_2/*_10 --r_img_pref=/image_3/*_10 --gtm_path=../data/KITTI/GTMs/disp --gtm_postf=/*750AKAZE

  • KITTI flow image pairs with GTM, AKAZE keypoints, and an inlier ratio of 75%:
./loadGTMfiles --img_path=../data/KITTI/imgs/image_2/ --l_img_pref=*_10 --r_img_pref=*_11 --gtm_path=../data/KITTI/GTMs/flow --gtm_postf=/*750AKAZE

  • Oxford wall image pair with GTM, FAST keypoints, and an inlier ratio of 50%:
./loadGTMfiles --img_path=../data/Oxford-wall/imgs --l_img_pref=img1 --r_img_pref=img2 --gtm_path=../data/Oxford-wall/GTMs --gtm_postf=img1_img2_inlRat500FAST

Citation

If you use our test data please cite:

[1]: J. Maier, M. Humenberger, O. Zendel, M. Vincze. Ground Truth Accuracy and Performance of the Matching Pipeline. In IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), 2017

About

Interface for Ground Truth Matches to test vision based algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 51.3%
  • C 23.3%
  • Makefile 15.0%
  • CMake 10.4%