vocabtree  0.0.1
vision.hpp File Reference
#include <opencv2/opencv.hpp>
#include <opencv2/stitching.hpp>
#include <memory>
Include dependency graph for vision.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  vision::SIFTParams
 Describes SIFT extraction parameters when calling OpenCV's SIFT implementation. More...
 

Namespaces

namespace  vision
 Provides useful wrappers around many OpenCV functions as well as some simple vision - based routines.
 

Typedefs

typedef std::set< std::pair
< int, int > > 
vision::MatchesSet
 

Functions

bool vision::compute_sparse_sift_feature (const cv::Mat &img, const std::shared_ptr< const SIFTParams > &params, cv::Mat &keypoints, cv::Mat &descriptors)
 Given a grayscale image, img, and SIFT extraction parameters computes sparse sift features. More...
 
bool vision::compute_bow_feature (const cv::Mat &descriptors, const cv::Ptr< cv::DescriptorMatcher > &matcher, cv::Mat &bow_descriptors, std::shared_ptr< std::vector< std::vector< uint32_t > > > cluster_indices)
 Given a set of image descriptors, a descriptor matcher computes the the cluster match based on the matcher of each descriptor and returns the histogram of clusters. More...
 
cv::Ptr< cv::DescriptorMatcher > vision::construct_descriptor_matcher (const cv::Mat &vocabulary)
 Given a vocabulary constructs a FLANN based matcher needed to compute Bag of Words (BoW) features. More...
 
cv::Mat vision::merge_descriptors (std::vector< cv::Mat > &descriptors, bool release_original=true)
 Merges the descriptors into a single matrix. More...
 
void vision::geo_verify_h (const cv::Mat &descriptors0, const cv::Mat &points0, const cv::Mat &descriptors1, const cv::Mat &points1, cv::detail::MatchesInfo &matches_info, std::vector< uint32_t > *inliers0=0, std::vector< uint32_t > *inliers1=0)
 Computes a homography between the input pairs of points and descriptors and returns the result in MatchesInfo (including homography, confidence score, etc.) If output inlier vectors are provided, will insert a list of feature indices belonging to the homography inliers. More...
 
void vision::geo_verify_f (const cv::Mat &descriptors0, const cv::Mat &points0, const cv::Mat &descriptors1, const cv::Mat &points1, cv::detail::MatchesInfo &matches_info, std::vector< uint32_t > *inliers0=0, std::vector< uint32_t > *inliers1=0)
 Computes a fundamental matrix between the input pairs of points and descriptors and returns the result in MatchesInfo (including fundamental, confidence score, etc.) If output inlier vectors are provided, will insert a list of feature indices belonging to the fundamental inliers. More...
 
bool vision::is_good_match (const cv::detail::MatchesInfo &matches_info)
 Returns true if matches_info represents a good match, false if otherwise. More...