EgoVideoStabilizer  1.0.0
line_and_point_operations.h
Go to the documentation of this file.
1 //
4 // SemanticFastForward_EPIC@ECCVW is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // SemanticFastForward_JVCI is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with SemanticFastForward_EPIC@ECCVW. If not, see <http://www.gnu.org/licenses/>.
16 //
18 
26 #ifndef LINE_SEGMENT_INTERSECTION_H
27 #define LINE_SEGMENT_INTERSECTION_H
28 
29 #include <stdio.h>
30 #include <iostream>
31 
32 #include <opencv2/core/core.hpp>
33 #include <opencv2/highgui/highgui.hpp>
34 #include <opencv2/imgproc/imgproc.hpp>
35 
37 #define EPSILON 1E-5
38 
56 bool lineSegmentIntersection ( const cv::Point2f &a1 , const cv::Point2f &b1 , const cv::Point2f &a2 , const cv::Point2f &b2 );
57 
77 bool lineSegmentIntersection ( const cv::Point2f &a1 , const cv::Point2f &b1 , const cv::Point2f &a2 , const cv::Point2f &b2 , cv::Point2f &intersection );
78 
92 void computeAnglesAndMags ( const std::vector<cv::Point2f>& points_src , const std::vector<cv::Point2f>& points_dst , std::vector<float>& angles , std::vector<float>& mags );
93 
94 #endif // LINE_SEGMENT_INTERSECTION_H
void computeAnglesAndMags(const std::vector< cv::Point2f > &points_src, const std::vector< cv::Point2f > &points_dst, std::vector< float > &angles, std::vector< float > &mags)
Function that compute the angle and magnitude of the optical flow from the points_src to points_dst...
Definition: line_and_point_operations.cpp:183
bool lineSegmentIntersection(const cv::Point2f &a1, const cv::Point2f &b1, const cv::Point2f &a2, const cv::Point2f &b2)
Function that verify if two line segments have intersection point.
Definition: line_and_point_operations.cpp:131