#include <neighborhood3d.hh>
Inheritance diagram for oln::neighborhood3d:
Public Types | |
typedef abstract::neighborhoodnd< neighborhood3d > | super_type |
Super type. | |
typedef neighborhood3d | 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 |
typedef struct_elt_traits< self_type >::dpoint_type | dpoint_type |
The associate image's type of dpoint (move point). | |
Public Member Functions | |
neighborhood3d & | add (const dpoint_type &dp) |
Add a dpoint (move point) to the neighborhood. | |
neighborhood3d & | add (coord slice, coord row, coord col) |
Add a point by coordinates to the neighborhood. | |
neighborhood3d () | |
Construct a neighborhood of 3 dimensions. | |
neighborhood3d (unsigned size) | |
Construct a neighborhood of 3 dimensions. | |
neighborhood3d (unsigned n, const coord crd[]) | |
Construct a neighborhood of 3 dimension. | |
Static Public Member Functions | |
static 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< neighborhood3d >, neighborhood3d > |
It looks like structuring elements but here, when you add an element, you add its opposite. Points have 3 dimensions.
Definition at line 64 of file neighborhood3d.hh.
typedef struct_elt_traits< self_type >::iter_type oln::neighborhood3d::iter_type |
The associate image's type of iterator.
Definition at line 78 of file neighborhood3d.hh.
typedef struct_elt_traits< self_type >::dpoint_type oln::neighborhood3d::dpoint_type |
The associate image's type of dpoint (move point).
Reimplemented from oln::abstract::neighborhoodnd< Exact >.
Definition at line 86 of file neighborhood3d.hh.
oln::neighborhood3d::neighborhood3d | ( | unsigned | size | ) | [inline] |
Construct a neighborhood of 3 dimensions.
Definition at line 129 of file neighborhood3d.hh.
00129 : super_type(size) 00130 {}
oln::neighborhood3d::neighborhood3d | ( | unsigned | n, | |
const coord | crd[] | |||
) | [inline] |
Construct a neighborhood of 3 dimension.
Definition at line 137 of file neighborhood3d.hh.
References add().
00137 : super_type() 00138 { 00139 for (unsigned i = 0; i < 3 * n; i += 3) 00140 add(dpoint_type(crd[i], crd[i+1], crd[i+2])); 00141 }
neighborhood3d& oln::neighborhood3d::add | ( | const dpoint_type & | dp | ) | [inline] |
Add a dpoint (move point) to the neighborhood.
Definition at line 98 of file neighborhood3d.hh.
References oln::abstract::neighborhoodnd< Exact >::add_().
Referenced by add(), oln::mk_neighb_block(), oln::mk_neighb_ellipsoid(), and neighborhood3d().
neighborhood3d& oln::neighborhood3d::add | ( | coord | slice, | |
coord | row, | |||
coord | col | |||
) | [inline] |
Add a point by coordinates to the neighborhood.
Definition at line 114 of file neighborhood3d.hh.
References add().
00115 { 00116 return this->add(dpoint3d(slice, row, col)); 00117 }
coord oln::neighborhood3d::delta_update_ | ( | const dpoint_type & | dp | ) | [inline, protected] |
Update delta.
Definition at line 161 of file neighborhood3d.hh.
References oln::abstract::window_base< Sup, Exact >::delta_.
00162 { 00163 delta_(abs(dp.slice())); 00164 delta_(abs(dp.row())); 00165 delta_(abs(dp.col())); 00166 return delta_; 00167 }