$extrastylesheet
#include <mln/win/ball.hh>
Public Member Functions | |
ball (unsigned diameter) | |
unsigned | delta () const |
unsigned | delta_ () const |
unsigned | diameter () const |
const dpoint< G, C > & | dp (unsigned i) const |
bool | has (const dpoint< G, C > &dp) const |
bool | is_centered () const |
bool | is_empty () const |
bool | is_symmetric () const |
bool | is_valid () const |
void | print (std::ostream &ostr) const |
void | print_ (std::ostream &ostr) const |
unsigned | size () const |
const std::vector< dpoint< G, C > > & | std_vector () const |
void | sym () |
const std::vector< dpoint< G, C > > & | vect () const |
Protected Member Functions | |
void | insert (const dpoint< G, C > &d) |
Protected Attributes | |
unsigned | diameter_ |
mln::window< dpoint< G, C > > | win_ |
Public Types | |
typedef dpsites_fwd_piter < ball< G, C > > | bkd_qiter |
typedef Window< void > | category |
typedef psite | center_t |
typedef dpoint< G, C > | dpsite |
typedef ball< G, C > | exact_t |
typedef dpsites_fwd_piter < ball< G, C > > | fwd_qiter |
typedef dpoint< G, C >::psite | psite |
typedef fwd_qiter | qiter |
typedef window< dpoint< G, C > > | regular |
typedef dpoint< G, C >::site | site |
Generic ball window defined on a given grid.
A ball is centered and symmetric; so its diameter is odd.
G is the given grid on which the ball is defined and C is the type of coordinates.
mln::win::ball< G, C >::ball | ( | unsigned | diameter | ) |
Constructor.
[in] | diameter | Diameter of the ball. |
diameter
is odd.
|
inherited |
Give the maximum coordinate gap between the window center and a window point.
unsigned mln::win::ball< G, C >::delta_ | ( | ) | const |
Give the maximum coordinate gap between the window center and a window point.
Reimplemented from mln::internal::classical_window_base< dpoint< G, C >, ball< G, C > >.
unsigned mln::win::ball< G, C >::diameter | ( | ) | const |
Give the ball diameter.
|
inherited |
Give the i-th
delta-point.
|
inherited |
Test if the delta-point dp
belongs to the window.
|
protectedinherited |
|
inherited |
Test if the window is centered; return true.
|
inherited |
Test if the window is empty (null size; no delta-point).
|
inherited |
Test if the window is symmetric; return true.
|
inherited |
return true by default.
|
inherited |
Print into ostr
the window definition.
void mln::win::ball< G, C >::print_ | ( | std::ostream & | ostr | ) | const |
Reimplemented from mln::internal::classical_window_base< dpoint< G, C >, ball< G, C > >.
|
inherited |
Give the number of delta-points.
|
inherited |
Give the vector of delta-points.
|
inherited |
Apply a central symmetry to the target window; a no-op here.
|
inherited |
Give the vector of delta-points.
|
protected |
|
protectedinherited |
Definition at line 119 of file classical_window_base.hh.
|
inherited |
Backward site iterator associated type.
Definition at line 68 of file classical_window_base.hh.
|
inherited |
Definition at line 95 of file concept/window.hh.
|
inherited |
Type of the window center.
Definition at line 64 of file window_base.hh.
|
inherited |
DPsite associated type.
Definition at line 55 of file window_base.hh.
|
inherited |
|
inherited |
Forward site iterator associated type.
Definition at line 65 of file classical_window_base.hh.
|
inherited |
Psite associated type.
Definition at line 58 of file window_base.hh.
|
inherited |
Site iterator associated type.
Definition at line 71 of file classical_window_base.hh.
|
inherited |
Regular window associated type.
Definition at line 61 of file classical_window_base.hh.
|
inherited |
Site associated type.
Definition at line 61 of file window_base.hh.