Header functions for the line_and_point_operations.cpp.
More...
#include <stdio.h>
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
Go to the source code of this file.
|
#define | EPSILON 1E-5 |
| Maximum difference to consider two values equals. More...
|
|
|
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. More...
|
|
bool | lineSegmentIntersection (const cv::Point2f &a1, const cv::Point2f &b1, const cv::Point2f &a2, const cv::Point2f &b2, cv::Point2f &intersection) |
| Function that calculate the homography matrix that leave the frame_i to the intermediate plan between the plans of frame_master_pre and frame_master_pre with relation of the distance between them. More...
|
|
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. More...
|
|
Maximum difference to consider two values equals.
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.
- Parameters
-
points_src | - vector of source points. |
points_dst | - vector of destination points. |
angles | - object to save the angle of the vectors. |
mags | - object to save the magnitude of the vectors. |
- Returns
void
- Author
- Washington Luis de Souza Ramos
- Date
- 10/04/2016
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.
- See also
- https://github.com/Itseez/opencv/blob/master/modules/imgproc/src/min_enclosing_triangle.cpp
- Parameters
-
a1 | - first point of the first line segment. |
b1 | - second point of the first line segment. |
a2 | - first point of the second line segment. |
b2 | - second point of the second line segment. |
- Returns
bool
true - if there is a intersection point.
bool
false - if there is not a intersection point.
- Author
- Michel Melo da Silva
- Date
- 04/04/2016
bool lineSegmentIntersection |
( |
const cv::Point2f & |
a1, |
|
|
const cv::Point2f & |
b1, |
|
|
const cv::Point2f & |
a2, |
|
|
const cv::Point2f & |
b2, |
|
|
cv::Point2f & |
intersection |
|
) |
| |
Function that calculate the homography matrix that leave the frame_i to the intermediate plan between the plans of frame_master_pre and frame_master_pre with relation of the distance between them.
- See also
- https://github.com/Itseez/opencv/blob/master/modules/imgproc/src/min_enclosing_triangle.cpp
- Parameters
-
a1 | - first point of the first line segment. |
b1 | - second point of the first line segment. |
a2 | - first point of the second line segment. |
b2 | - second point of the second line segment. |
intersection | - intersection point between the line segments. |
- Returns
bool
true - if there is a intersection point.
bool
false - if there is not a intersection point.
- Author
- Michel Melo da Silva
- Date
- 04/04/2016