Public Member Functions | Private Member Functions | Private Attributes | List of all members
vgl_fit_oriented_box_2d< T > Class Template Reference

#include <vgl_fit_oriented_box_2d.h>

Public Member Functions

 vgl_fit_oriented_box_2d ()
 default constructor. More...
 
 vgl_fit_oriented_box_2d (vgl_polygon< T > const &poly, double dtheta=default_dtheta)
 constructor with polygon. More...
 
 vgl_fit_oriented_box_2d (std::vector< vgl_point_2d< T > > pts, double dtheta=default_dtheta)
 constructor with points. More...
 
vgl_oriented_box_2d< T > fitted_box ()
 brute force search. More...
 
vgl_oriented_box_2d< T > fitted_box (double theta_rad)
 fit box with specified oriention. More...
 

Private Member Functions

void fit_obox (T theta_rad=T(0))
 

Private Attributes

bool fixed_theta_
 
bool fit_valid_
 
double dtheta_
 
std::vector< vgl_point_2d< T > > pts_
 
vgl_oriented_box_2d< T > obox_
 

Detailed Description

template<class T>
class vgl_fit_oriented_box_2d< T >

Definition at line 23 of file vgl_fit_oriented_box_2d.h.

Constructor & Destructor Documentation

◆ vgl_fit_oriented_box_2d() [1/3]

template<class T >
vgl_fit_oriented_box_2d< T >::vgl_fit_oriented_box_2d ( )
inline

default constructor.

Definition at line 26 of file vgl_fit_oriented_box_2d.h.

◆ vgl_fit_oriented_box_2d() [2/3]

template<class T >
vgl_fit_oriented_box_2d< T >::vgl_fit_oriented_box_2d ( vgl_polygon< T > const &  poly,
double  dtheta = default_dtheta 
)

constructor with polygon.

Definition at line 8 of file vgl_fit_oriented_box_2d.hxx.

◆ vgl_fit_oriented_box_2d() [3/3]

template<class T >
vgl_fit_oriented_box_2d< T >::vgl_fit_oriented_box_2d ( std::vector< vgl_point_2d< T > >  pts,
double  dtheta = default_dtheta 
)
inline

constructor with points.

Definition at line 32 of file vgl_fit_oriented_box_2d.h.

Member Function Documentation

◆ fit_obox()

template<class T >
void vgl_fit_oriented_box_2d< T >::fit_obox ( theta_rad = T(0))
private

Definition at line 17 of file vgl_fit_oriented_box_2d.hxx.

◆ fitted_box() [1/2]

template<class T >
vgl_oriented_box_2d< T > vgl_fit_oriented_box_2d< T >::fitted_box ( )

brute force search.

Definition at line 76 of file vgl_fit_oriented_box_2d.hxx.

◆ fitted_box() [2/2]

template<class T >
vgl_oriented_box_2d<T> vgl_fit_oriented_box_2d< T >::fitted_box ( double  theta_rad)
inline

fit box with specified oriention.

theta is defined ccw with respect to the x-axis

Definition at line 40 of file vgl_fit_oriented_box_2d.h.

Member Data Documentation

◆ dtheta_

template<class T >
double vgl_fit_oriented_box_2d< T >::dtheta_
private

Definition at line 53 of file vgl_fit_oriented_box_2d.h.

◆ fit_valid_

template<class T >
bool vgl_fit_oriented_box_2d< T >::fit_valid_
private

Definition at line 52 of file vgl_fit_oriented_box_2d.h.

◆ fixed_theta_

template<class T >
bool vgl_fit_oriented_box_2d< T >::fixed_theta_
private

Definition at line 50 of file vgl_fit_oriented_box_2d.h.

◆ obox_

template<class T >
vgl_oriented_box_2d<T> vgl_fit_oriented_box_2d< T >::obox_
private

Definition at line 55 of file vgl_fit_oriented_box_2d.h.

◆ pts_

template<class T >
std::vector<vgl_point_2d<T> > vgl_fit_oriented_box_2d< T >::pts_
private

Definition at line 54 of file vgl_fit_oriented_box_2d.h.


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