#include <struct_elt.hh>
Inheritance diagram for oln::abstract::struct_elt< Exact >:
Public Types | |
enum | { dim = struct_elt_traits<Exact>::dim } |
typedef struct_elt< Exact > | self_type |
Set the exact self type of the class. | |
typedef struct_elt_traits< Exact >::abstract_type | abstract_type |
Set the abstract type of hisself. | |
typedef struct_elt_traits< Exact >::point_type | point_type |
Set the point type of the image from which points come. | |
typedef struct_elt_traits< Exact >::dpoint_type | dpoint_type |
Set the dpoint type. | |
typedef Exact | exact_type |
Public Member Functions | |
bool | has (const abstract::dpoint< 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 structuring elements is centered. | |
exact_type & | add (const abstract::dpoint< dpoint_type > &dp) |
Add a point to the structuring elements. | |
dpoint_type | dp (unsigned i) const |
Get the nth structuring element. | |
bool | operator== (const self_type &win) const |
Compare two sets of structuring elements. | |
coord | delta () const |
Get the delta of the structuring elements. | |
const dpoint_type | operator[] (unsigned i) const |
Get the nth structuring element. | |
exact_type | operator- () const |
Set structuring elements to opposite. | |
Static Public Member Functions | |
static std::string | name () |
Return the name of the type. | |
Protected Member Functions | |
void | sym () |
Set structuring elements to opposite. | |
struct_elt () | |
Do nothing, used only by sub-classes. |
This abstract class defines several virtual methods for its subclasses. Its goal is to deal with a set of 'move' points.
Definition at line 65 of file struct_elt.hh.
bool oln::abstract::struct_elt< Exact >::has | ( | const abstract::dpoint< dpoint_type > & | dp | ) | const [inline] |
Test if the set of points contains this one.
Definition at line 94 of file struct_elt.hh.
Referenced by oln::inter().
unsigned oln::abstract::struct_elt< Exact >::card | ( | ) | const [inline] |
Get the number of points.
Definition at line 104 of file struct_elt.hh.
Referenced by oln::utils::se_stat< Sum, Var >::compute(), oln::convol::slow::convolve(), oln::inter(), oln::morpho::sort_dimensions< E >::operator()(), and oln::uni().
00105 { 00106 return this->exact().card_(); 00107 }
bool oln::abstract::struct_elt< Exact >::is_centered | ( | void | ) | const [inline] |
Test if the structuring elements is centered.
Definition at line 116 of file struct_elt.hh.
00117 { 00118 return this->exact().is_centered_(); 00119 }
exact_type& oln::abstract::struct_elt< Exact >::add | ( | const abstract::dpoint< dpoint_type > & | dp | ) | [inline] |
Add a point to the structuring elements.
Add a new member to the structuring elements.
Definition at line 130 of file struct_elt.hh.
dpoint_type oln::abstract::struct_elt< Exact >::dp | ( | unsigned | i | ) | const [inline] |
Get the nth structuring element.
Definition at line 141 of file struct_elt.hh.
Referenced by oln::abstract::w_window< oln::w_window1d< T > >::add(), oln::abstract::struct_elt< oln::w_window1d< T > >::add(), oln::abstract::window< oln::window2d >::add_dp(), oln::abstract::w_window< oln::w_window1d< T > >::add_dp(), oln::convol::slow::convolve(), oln::abstract::struct_elt< oln::w_window1d< T > >::has(), oln::inter(), oln::abstract::w_window< oln::w_window1d< T > >::set(), and oln::uni().
00142 { 00143 return this->exact().at(i); 00144 }
bool oln::abstract::struct_elt< Exact >::operator== | ( | const self_type & | win | ) | const [inline] |
Compare two sets of structuring elements.
Definition at line 152 of file struct_elt.hh.
00153 { 00154 return this->exact().is_equal(win.exact()); 00155 }
coord oln::abstract::struct_elt< Exact >::delta | ( | ) | const [inline] |
Get the delta of the structuring elements.
Definition at line 164 of file struct_elt.hh.
Referenced by oln::convol::slow::convolve().
00165 { 00166 return this->exact().get_delta(); 00167 }
const dpoint_type oln::abstract::struct_elt< Exact >::operator[] | ( | unsigned | i | ) | const [inline] |
Get the nth structuring element.
Definition at line 175 of file struct_elt.hh.
00176 { 00177 return this->exact().at(i); 00178 }
exact_type oln::abstract::struct_elt< Exact >::operator- | ( | ) | const [inline] |
Set structuring elements to opposite.
Each point of structuring elements is assigned to its opposite.
Definition at line 186 of file struct_elt.hh.
00187 { 00188 exact_type win(this->exact()); 00189 win.sym(); 00190 return win; 00191 }
void oln::abstract::struct_elt< Exact >::sym | ( | ) | [inline, protected] |
Set structuring elements to opposite.
Each point of structuring elements is assigned to its opposite.
Definition at line 201 of file struct_elt.hh.
00202 { 00203 return this->exact().sym_(); 00204 }