#include <window_base.hh>
Inheritance diagram for oln::abstract::window_base< Sup, Exact >:
Public Types | |
typedef window_base< Sup, Exact > | self_type |
Set self type. | |
typedef struct_elt_traits< Exact >::point_type | point_type |
The associate image's type of point. | |
typedef struct_elt_traits< Exact >::dpoint_type | dpoint_type |
The associate image's type of dpoint (move point). | |
typedef Exact | exact_type |
Set exact type. | |
typedef Sup | super_type |
Set type of class inherited. | |
enum | { dim = struct_elt_traits<Exact >::dim } |
Static Public Member Functions | |
std::string | name () |
Return the name of the type. | |
Protected Member Functions | |
bool | has_ (const dpoint_type &dp) const |
Test if the set of points contains this one.
| |
unsigned | card_ () const |
Get the number of points. | |
bool | is_centered_ () const |
Test if the set of points is centered. | |
bool | is_equal (const exact_type &win) const |
Compare two sets of points.
| |
coord | get_delta () const |
Get the delta of the set of points. | |
coord | delta_update (const dpoint_type &dp) |
Update delta.
| |
void | sym_ () |
Set a set of point to opposite. | |
const dpoint_type | at (unsigned i) const |
Get the nth structuring element.
| |
window_base () | |
CTor. | |
window_base (unsigned size) | |
Used only by sub-classes
| |
Protected Attributes | |
std::vector< dpoint_type > | dp_ |
The list of point. | |
max_accumulator< coord > | delta_ |
Delta : the maximale point of the list. | |
bool | centered_ |
Is the set of point centered ? | |
Friends | |
class | struct_elt< Exact > |
class | neighborhood< Exact > |
A window is a set of points and this class defines how to deal with. This class regroups common things for window, w_window (weight window) and neighborhood. Here, a set of point is a window or a weigh window or a neighborhood.
Definition at line 103 of file window_base.hh.
|
The associate image's type of dpoint (move point).
Reimplemented in oln::abstract::neighborhoodnd< Exact >, oln::abstract::w_windownd< Exact >, oln::abstract::windownd< Exact >, oln::neighborhood1d, oln::neighborhood2d, oln::neighborhood3d, oln::w_window1d< T >, oln::w_window2d< T >, oln::w_window3d< T >, oln::window1d, oln::window2d, oln::window3d, oln::abstract::neighborhoodnd< neighborhood3d >, oln::abstract::neighborhoodnd< neighborhood2d >, oln::abstract::neighborhoodnd< neighborhood1d >, oln::abstract::w_windownd< w_window2d< T2 > >, oln::abstract::w_windownd< w_window2d< T > >, oln::abstract::w_windownd< w_window1d< T > >, oln::abstract::w_windownd< w_window3d< T > >, oln::abstract::windownd< window1d >, oln::abstract::windownd< window3d >, oln::abstract::windownd< window2d >, and oln::w_window2d< T2 >. Definition at line 122 of file window_base.hh. |
|
The associate image's type of point.
Definition at line 115 of file window_base.hh. |
|
CTor. Used only by sub-classes Definition at line 251 of file window_base.hh.
00251 : super_type(), dp_(), delta_(0) 00252 { 00253 centered_ = false; 00254 } |
|
Used only by sub-classes
Set the number of points this object will get. Used only by sub-classes Definition at line 263 of file window_base.hh.
00263 : super_type(), dp_(), delta_(0) 00264 { 00265 dp_.reserve(size); 00266 centered_ = false; 00267 } |
|
Get the nth structuring element.
Definition at line 240 of file window_base.hh.
00241 { 00242 precondition(i < this->card()); 00243 return dp_[i]; 00244 } |
|
Get the number of points.
Definition at line 162 of file window_base.hh.
00163 { 00164 return dp_.size(); 00165 } |
|
Update delta.
Definition at line 216 of file window_base.hh.
00217 {
00218 return this->exact().delta_update_(dp);
00219 }
|
|
Get the delta of the set of points.
Definition at line 202 of file window_base.hh.
00203 { 00204 return delta_; 00205 } |
|
Test if the set of points contains this one.
Definition at line 152 of file window_base.hh.
|
|
Test if the set of points is centered.
Definition at line 176 of file window_base.hh.
00177 { 00178 return centered_; 00179 } |
|
Compare two sets of points.
Definition at line 187 of file window_base.hh.
|
|
Set a set of point to opposite. Each point of the set of point is assigned to its opposite. Definition at line 227 of file window_base.hh.
|
|
Definition at line 133 of file window_base.hh. |