26 #ifndef LINE_SEGMENT_INTERSECTION_H 27 #define LINE_SEGMENT_INTERSECTION_H 32 #include <opencv2/core/core.hpp> 33 #include <opencv2/highgui/highgui.hpp> 34 #include <opencv2/imgproc/imgproc.hpp> 56 bool lineSegmentIntersection (
const cv::Point2f &a1 ,
const cv::Point2f &b1 ,
const cv::Point2f &a2 ,
const cv::Point2f &b2 );
77 bool lineSegmentIntersection (
const cv::Point2f &a1 ,
const cv::Point2f &b1 ,
const cv::Point2f &a2 ,
const cv::Point2f &b2 , cv::Point2f &intersection );
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 );
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