#include <neighborhood2d.hh>
Inheritance diagram for oln::neighborhood2d:
Public Types | |
typedef abstract::neighborhoodnd< neighborhood2d > | super_type |
Super type. | |
typedef neighborhood2d | self_type |
Self type. | |
typedef struct_elt_traits< self_type >::iter_type | iter_type |
The associate image's type of iterator. | |
typedef struct_elt_traits< self_type >::neighb_type | neighb_type |
Set the neighborhood type. | |
typedef struct_elt_traits< self_type >::dpoint_type | dpoint_type |
The associate image's type of dpoint (move point). | |
Public Member Functions | |
neighborhood2d & | add (const dpoint_type &dp) |
Add a dpoint (move point) to the neighborhood.
| |
neighborhood2d & | add (coord row, coord col) |
Add a point by coordinates to the neighborhood.
| |
neighborhood2d () | |
Construct a neighborhood of 2 dimensions. | |
neighborhood2d (unsigned size) | |
Construct a neighborhood of 2 dimensions.
| |
neighborhood2d (unsigned n, const coord crd[]) | |
Construct a neighborhood of 2 dimensions.
| |
neighborhood2d (const io::internal::anything &r) | |
Static Public Member Functions | |
std::string | name () |
Return the name of the type. | |
Protected Member Functions | |
coord | delta_update_ (const dpoint_type &dp) |
Update delta.
| |
Friends | |
class | abstract::window_base< abstract::neighborhood< neighborhood2d >, neighborhood2d > |
It looks like structuring elements but here, when you add an element, you add its opposite. Points have 2 dimensions.
Definition at line 65 of file neighborhood2d.hh.
|
The associate image's type of dpoint (move point).
Reimplemented from oln::abstract::neighborhoodnd< neighborhood2d >. Definition at line 88 of file neighborhood2d.hh. Referenced by add(), and neighborhood2d(). |
|
The associate image's type of iterator.
Reimplemented from oln::abstract::neighborhood< neighborhood2d >. Definition at line 79 of file neighborhood2d.hh. |
|
Add a point by coordinates to the neighborhood.
Add a new member by its coordinates to the neighborhood. The coordinates have 2 dimensions. Definition at line 115 of file neighborhood2d.hh. References add(), oln::coord, and dpoint_type.
00116 { 00117 return this->add(dpoint_type(row, col)); 00118 } |
|
Add a dpoint (move point) to the neighborhood.
Add a new member to the neighborhood. This point must be of 2 dimensions. Definition at line 100 of file neighborhood2d.hh. Referenced by add(), oln::mk_neighb_rectangle(), and neighborhood2d().
00101 {
00102 this->exact().add_(dp);
00103 return this->exact().add_(-dp);
00104 }
|
|
Update delta.
Definition at line 168 of file neighborhood2d.hh. References oln::abstract::window_base< neighborhood< neighborhood2d >, neighborhood2d >::delta_.
|