32 #include <opencv2/core/core.hpp> 33 #include <opencv2/features2d/features2d.hpp> 34 #include <opencv2/highgui/highgui.hpp> 35 #include <opencv2/nonfree/nonfree.hpp> 36 #include <opencv2/calib3d/calib3d.hpp> 37 #include <opencv2/imgproc/imgproc.hpp> 65 bool findHomographyMatrix (
const cv::Mat &image_src ,
const cv::Mat &image_dst , cv::Mat &homography_matrix, cv::Mat &ransac_mask ) ;
81 bool findHomographyMatrix (
const cv::Mat &image_src ,
const cv::Mat &image_dst , cv::Mat &homography_matrix ) ;
100 bool findHomographyMatrix(
const std::vector<cv::KeyPoint> &keypoints_image_src,
const std::vector<cv::KeyPoint> &keypoints_image_dst,
101 const cv::Mat &descriptors_image_src,
const cv::Mat &descriptors_image_dst,
102 cv::Mat &homography_matrix, cv::Mat &ransac_mask );
120 bool findHomographyMatrix(
const std::vector<cv::KeyPoint> &keypoints_image_src,
const std::vector<cv::KeyPoint> &keypoints_image_dst,
121 const cv::Mat &descriptors_image_src,
const cv::Mat &descriptors_image_dst,
122 cv::Mat &homography_matrix);
138 bool applyHomographyMatrix (
const cv::Mat &image_src ,
const cv::Mat &homography_matrix , cv::Mat &image_result ) ;
190 double getAreaRatio (
const cv::Mat& image_src,
const cv::Mat& homography_matrix,
const cv::Rect& frame_limits );
204 HomogCoverage getHomogCoverage (
const cv::Mat& image_src,
const cv::Mat& homography_matrix,
const cv::Rect& drop_area,
const cv::Rect& crop_area);
218 #endif // HOMOGRAPHY_H HomogCoverage
The HomogCoverage enum.
Definition: homography.h:44
Definition: homography.h:45
void getKeypointsAndDescriptors(const cv::Mat &image, std::vector< cv::KeyPoint > &keypoints, cv::Mat &descriptors)
Function that gets the keypoints and describe an image in order to avoid unnecessary computations for...
Definition: homography.cpp:604
double getAreaRatio(const cv::Mat &image_src, const cv::Mat &homography_matrix, const cv::Rect &frame_limits)
Function that calculates the loss(%) of the homography transformation in a ROI.
Definition: homography.cpp:523
It covers the drop area, but doesn't cover the crop area.
Definition: homography.h:47
HomogCoverage getHomogCoverage(const cv::Mat &image_src, const cv::Mat &homography_matrix, const cv::Rect &drop_area, const cv::Rect &crop_area)
Function that calculates the loss(%) of the homography transformation in a ROI.
Definition: homography.cpp:556
bool checkHomographyConsistency(const std::vector< cv::Point2f > img_corners, const cv::Mat &homography_matrix)
Function that checks if after made the homography transformation the corner consistency is maintained...
Definition: homography.cpp:463
bool applyHomographyMatrix(const cv::Mat &image_src, const cv::Mat &homography_matrix, cv::Mat &image_result)
Function that apply homography matrix in a given image.
Definition: homography.cpp:400
It can't cover neither the drop area nor the crop area.
Definition: homography.h:46
bool findHomographyMatrix(const cv::Mat &image_src, const cv::Mat &image_dst, cv::Mat &homography_matrix, cv::Mat &ransac_mask)
Function that find the homography matrix that leave the imageSrc to the plan of the imageDst...
Definition: homography.cpp:48
Macros used in the code relate with debug/view flags and usual values.