Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef IMAGE_UTIL_GEOMETRY_UTIL_H_
00021 #define IMAGE_UTIL_GEOMETRY_UTIL_H_
00022
00023 #include <vector>
00024
00025 #include <opencv2/core/core.hpp>
00026
00027 #include <tf/transform_datatypes.h>
00028
00029 namespace swri_image_util
00030 {
00031 typedef cv::Rect_<double> BoundingBox;
00032
00042 double GetOverlappingArea(
00043 const cv::Rect& rect,
00044 const cv::Mat& rigid_transform);
00045
00054 bool Intersects(const BoundingBox& box1, const BoundingBox& box2);
00055
00064 cv::Mat ProjectEllipsoid(const cv::Mat& ellipsiod);
00065
00077 std::vector<tf::Vector3> GetEllipsePoints(
00078 const cv::Mat& ellipse,
00079 const tf::Vector3& center,
00080 double scale,
00081 int32_t num_points);
00082 }
00083
00084 #endif // IMAGE_UTIL_GEOMETRY_UTIL_H_