#include <MinAreaRectangle.hpp>
Classes | |
struct | Box2d |
struct | Caliper |
Public Member Functions | |
void | compute () |
const Box2d & | getMinRectangle () |
template<typename Derived > | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW ApproxMVBB_DEFINE_MATRIX_TYPES ApproxMVBB_DEFINE_POINTS_CONFIG_TYPES | MinAreaRectangle (const MatrixBase< Derived > &points) |
Private Member Functions | |
void | adjustRectangle () |
void | computeRectangle () |
void | findVertex (Caliper &c) |
void | getBox (Caliper(&c)[4], Box2d &box) |
void | updateAngles (PREC edgeAngle, Caliper(&c)[4]) |
void | updateCalipers (PREC edgeAngle, Caliper(&c)[4]) |
Private Attributes | |
std::vector< PREC > | m_angles |
ConvexHull2D | m_convh |
std::vector< unsigned int > | m_hullIdx |
Box2d | m_minBox |
const MatrixRef< const Matrix2Dyn > | m_p |
Computes the Minimum Area Rectangle of the input points SideEffects: points is aftwards sorted and
Definition at line 30 of file MinAreaRectangle.hpp.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW ApproxMVBB_DEFINE_MATRIX_TYPES ApproxMVBB_DEFINE_POINTS_CONFIG_TYPES ApproxMVBB::MinAreaRectangle::MinAreaRectangle | ( | const MatrixBase< Derived > & | points | ) | [inline] |
Cosntructor, points is not a temporary, it accepts all sorts of matrix expressions, however the construction of MatrixRef<> might create a temporary but this is stored in m_p! MatrixRef<> m_p is handed further to m_conv
Definition at line 42 of file MinAreaRectangle.hpp.
void ApproxMVBB::MinAreaRectangle::adjustRectangle | ( | ) | [inline, private] |
Definition at line 88 of file MinAreaRectangle.hpp.
Definition at line 13 of file MinAreaRectangle.cpp.
void ApproxMVBB::MinAreaRectangle::computeRectangle | ( | ) | [private] |
Definition at line 36 of file MinAreaRectangle.cpp.
void ApproxMVBB::MinAreaRectangle::findVertex | ( | Caliper & | c | ) | [private] |
Definition at line 118 of file MinAreaRectangle.cpp.
void ApproxMVBB::MinAreaRectangle::getBox | ( | Caliper(&) | c[4], |
Box2d & | box | ||
) | [private] |
Definition at line 168 of file MinAreaRectangle.cpp.
const Box2d& ApproxMVBB::MinAreaRectangle::getMinRectangle | ( | ) | [inline] |
Definition at line 69 of file MinAreaRectangle.hpp.
void ApproxMVBB::MinAreaRectangle::updateAngles | ( | PREC | edgeAngle, |
Caliper(&) | c[4] | ||
) | [inline, private] |
Definition at line 179 of file MinAreaRectangle.hpp.
void ApproxMVBB::MinAreaRectangle::updateCalipers | ( | PREC | edgeAngle, |
Caliper(&) | c[4] | ||
) | [inline, private] |
Definition at line 169 of file MinAreaRectangle.hpp.
std::vector<PREC> ApproxMVBB::MinAreaRectangle::m_angles [private] |
Definition at line 200 of file MinAreaRectangle.hpp.
Definition at line 204 of file MinAreaRectangle.hpp.
std::vector<unsigned int> ApproxMVBB::MinAreaRectangle::m_hullIdx [private] |
Definition at line 198 of file MinAreaRectangle.hpp.
Box2d ApproxMVBB::MinAreaRectangle::m_minBox [private] |
Definition at line 201 of file MinAreaRectangle.hpp.
const MatrixRef<const Matrix2Dyn> ApproxMVBB::MinAreaRectangle::m_p [private] |
Definition at line 202 of file MinAreaRectangle.hpp.