#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 Types | |
using | Vector2U = MyMatrix::Vector2< unsigned int > |
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.
|
private |
Definition at line 78 of file MinAreaRectangle.hpp.
|
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.
|
inlineprivate |
Definition at line 88 of file MinAreaRectangle.hpp.
void ApproxMVBB::MinAreaRectangle::compute | ( | ) |
Definition at line 13 of file MinAreaRectangle.cpp.
|
private |
Definition at line 36 of file MinAreaRectangle.cpp.
|
private |
Definition at line 118 of file MinAreaRectangle.cpp.
Definition at line 168 of file MinAreaRectangle.cpp.
|
inline |
Definition at line 69 of file MinAreaRectangle.hpp.
|
inlineprivate |
Definition at line 179 of file MinAreaRectangle.hpp.
|
inlineprivate |
Definition at line 169 of file MinAreaRectangle.hpp.
|
private |
Definition at line 200 of file MinAreaRectangle.hpp.
|
private |
Definition at line 204 of file MinAreaRectangle.hpp.
|
private |
Definition at line 198 of file MinAreaRectangle.hpp.
|
private |
Definition at line 201 of file MinAreaRectangle.hpp.
|
private |
Definition at line 202 of file MinAreaRectangle.hpp.