include
swri_image_util
geometry_util.h
Go to the documentation of this file.
1
// *****************************************************************************
2
//
3
// Copyright (C) 2012 All Right Reserved, Southwest Research Institute® (SwRI®)
4
//
5
// Contract No. 10-R8248
6
// Contractor Southwest Research Institute® (SwRI®)
7
// Address 6220 Culebra Road, San Antonio, Texas 78228-0510
8
// Contact Kris Kozak <kkozak@swri.org> (210) 522-3854
9
//
10
// This code was developed as part of an internal research project fully funded
11
// by Southwest Research Institute®.
12
//
13
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
14
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
15
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
16
// PARTICULAR PURPOSE.
17
//
18
// *****************************************************************************
19
20
#ifndef IMAGE_UTIL_GEOMETRY_UTIL_H_
21
#define IMAGE_UTIL_GEOMETRY_UTIL_H_
22
23
#include <vector>
24
25
#include <opencv2/core/core.hpp>
26
27
#include <
tf/transform_datatypes.h
>
28
29
namespace
swri_image_util
30
{
31
typedef
cv::Rect_<double>
BoundingBox
;
32
42
double
GetOverlappingArea
(
43
const
cv::Rect& rect,
44
const
cv::Mat& rigid_transform);
45
54
bool
Intersects
(
const
BoundingBox
& box1,
const
BoundingBox
& box2);
55
64
cv::Mat
ProjectEllipsoid
(
const
cv::Mat& ellipsiod);
65
77
std::vector<tf::Vector3>
GetEllipsePoints
(
78
const
cv::Mat& ellipse,
79
const
tf::Vector3& center,
80
double
scale,
81
int32_t num_points);
82
}
83
84
#endif // IMAGE_UTIL_GEOMETRY_UTIL_H_
swri_image_util::GetEllipsePoints
std::vector< tf::Vector3 > GetEllipsePoints(const cv::Mat &ellipse, const tf::Vector3 ¢er, double scale, int32_t num_points)
Definition:
geometry_util.cpp:195
swri_image_util
Definition:
draw_util.h:37
swri_image_util::BoundingBox
cv::Rect_< double > BoundingBox
Definition:
geometry_util.h:31
swri_image_util::GetOverlappingArea
double GetOverlappingArea(const cv::Rect &rect, const cv::Mat &rigid_transform)
Definition:
geometry_util.cpp:51
swri_image_util::ProjectEllipsoid
cv::Mat ProjectEllipsoid(const cv::Mat &ellipsiod)
Definition:
geometry_util.cpp:73
swri_image_util::Intersects
bool Intersects(const BoundingBox &box1, const BoundingBox &box2)
Definition:
geometry_util.cpp:46
transform_datatypes.h
swri_image_util
Author(s): Kris Kozak
autogenerated on Fri Aug 2 2024 08:39:19