00001 #ifndef bdgl_curve_region_h_ 00002 #define bdgl_curve_region_h_ 00003 00004 //----------------------------------------------------------------------------- 00005 //: 00006 // \file 00007 // \author P.L. Bazin 00008 // \brief tracking of extracted vdgl_edgel_chains on sequences 00009 // 00010 // \verbatim 00011 // Initial version February 12, 2003 00012 // \endverbatim 00013 // 00014 //----------------------------------------------------------------------------- 00015 #include <vgl/vgl_point_2d.h> 00016 #include <vdgl/vdgl_edgel_chain_sptr.h> 00017 00018 00019 //----------------------------------------------------------------------------- 00020 class bdgl_curve_region 00021 { 00022 public: 00023 00024 vgl_point_2d<double> center_; 00025 double radius_; 00026 00027 bdgl_curve_region(){} 00028 bdgl_curve_region(vdgl_edgel_chain_sptr curve){ init(curve); } 00029 ~bdgl_curve_region(){} 00030 00031 void init(vdgl_edgel_chain_sptr curve); 00032 00033 vgl_point_2d<double> get_center() const { return center_ ;} 00034 double get_radius() const { return radius_ ;} 00035 double x() const { return center_.x() ;} 00036 double y() const { return center_.y() ;} 00037 double r() const { return radius_ ;} 00038 }; 00039 00040 #endif // bdgl_curve_region_h_