Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ApproxMVBB::MinAreaRectangle Class Reference

#include <MinAreaRectangle.hpp>

Classes

struct  Box2d
 
struct  Caliper
 

Public Member Functions

void compute ()
 
const Box2dgetMinRectangle ()
 
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
 

Detailed Description

Computes the Minimum Area Rectangle of the input points SideEffects: points is aftwards sorted and

Definition at line 30 of file MinAreaRectangle.hpp.

Member Typedef Documentation

Definition at line 78 of file MinAreaRectangle.hpp.

Constructor & Destructor Documentation

template<typename Derived >
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.

Member Function Documentation

void ApproxMVBB::MinAreaRectangle::adjustRectangle ( )
inlineprivate

Definition at line 88 of file MinAreaRectangle.hpp.

void ApproxMVBB::MinAreaRectangle::compute ( )

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] 
)
inlineprivate

Definition at line 179 of file MinAreaRectangle.hpp.

void ApproxMVBB::MinAreaRectangle::updateCalipers ( PREC  edgeAngle,
Caliper(&)  c[4] 
)
inlineprivate

Definition at line 169 of file MinAreaRectangle.hpp.

Member Data Documentation

std::vector<PREC> ApproxMVBB::MinAreaRectangle::m_angles
private

Definition at line 200 of file MinAreaRectangle.hpp.

ConvexHull2D ApproxMVBB::MinAreaRectangle::m_convh
private

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.


The documentation for this class was generated from the following files:


asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Mon Jun 10 2019 12:38:09