2 #ifndef vgl_fit_oriented_box_2d_h_ 3 #define vgl_fit_oriented_box_2d_h_ 21 #define default_dtheta 0.0174524 // one degree 54 std::vector<vgl_point_2d<T> >
pts_;
58 #define VGL_FIT_ORIENTED_BOX_2D_INSTANTIATE(T) extern "please include vgl/algo/vgl_fit_oriented_box_2d.hxx first" 60 #endif // vgl_fit_oriented_box_2d_h_ a point in 2D nonhomogeneous space
vgl_fit_oriented_box_2d()
default constructor.
vgl_oriented_box_2d< T > fitted_box(double theta_rad)
fit box with specified oriention.
vgl_oriented_box_2d< T > obox_
vgl_oriented_box_2d< T > fitted_box()
brute force search.
std::vector< vgl_point_2d< T > > pts_
void fit_obox(T theta_rad=T(0))
vgl_fit_oriented_box_2d(std::vector< vgl_point_2d< T > > pts, double dtheta=default_dtheta)
constructor with points.
An orienteded box in 2-d.