$extrastylesheet
#include <mln/core/internal/classical_window_base.hh>
Public Member Functions | |
unsigned | delta () const |
const D & | dp (unsigned i) const |
bool | has (const D &dp) const |
bool | is_centered () const |
bool | is_empty () const |
bool | is_symmetric () const |
bool | is_valid () const |
void | print (std::ostream &ostr) const |
unsigned | size () const |
const std::vector< D > & | std_vector () const |
void | sym () |
const std::vector< D > & | vect () const |
Protected Member Functions | |
classical_window_base () | |
unsigned | delta_ () const |
void | insert (const D &d) |
void | print_ (std::ostream &ostr) const |
Protected Attributes | |
mln::window< D > | win_ |
Public Types | |
typedef dpsites_fwd_piter< E > | bkd_qiter |
typedef Window< void > | category |
typedef psite | center_t |
typedef D | dpsite |
typedef E | exact_t |
typedef dpsites_fwd_piter< E > | fwd_qiter |
typedef D::psite | psite |
typedef fwd_qiter | qiter |
typedef window< D > | regular |
typedef D::site | site |
Related Functions | |
(Note that these are not member functions.) | |
template<typename I , typename W > | |
util::array< int > | negative_offsets_wrt (const Image< I > &ima, const Window< W > &win) |
template<typename I , typename W > | |
util::array< int > | offsets_wrt (const Image< I > &ima, const Window< W > &win) |
template<typename I , typename W > | |
util::array< int > | positive_offsets_wrt (const Image< I > &ima, const Window< W > &win) |
Base class for classes based on a set of dpoints.
Definition at line 55 of file classical_window_base.hh.
|
protected |
unsigned mln::internal::classical_window_base< D, E >::delta | ( | ) | const |
Give the maximum coordinate gap between the window center and a window point.
|
protected |
Reimplemented in mln::win::cuboid3d, mln::win::line< M, i, C >, mln::win::line< grid::tick, 0, def::coord >, mln::win::line< grid::square, 1, def::coord >, mln::win::line< grid::cube, 0, def::coord >, mln::win::cube3d, mln::win::ball< G, C >, mln::win::octagon2d, mln::win::ball< grid::cube, def::coord >, mln::win::ball< grid::square, def::coord >, mln::win::backdiag2d, and mln::win::diag2d.
const D& mln::internal::classical_window_base< D, E >::dp | ( | unsigned | i | ) | const |
Give the i-th
delta-point.
bool mln::internal::classical_window_base< D, E >::has | ( | const D & | dp | ) | const |
Test if the delta-point dp
belongs to the window.
|
protected |
bool mln::internal::classical_window_base< D, E >::is_centered | ( | ) | const |
Test if the window is centered; return true.
bool mln::internal::classical_window_base< D, E >::is_empty | ( | ) | const |
Test if the window is empty (null size; no delta-point).
bool mln::internal::classical_window_base< D, E >::is_symmetric | ( | ) | const |
Test if the window is symmetric; return true.
|
inherited |
return true by default.
void mln::internal::classical_window_base< D, E >::print | ( | std::ostream & | ostr | ) | const |
Print into ostr
the window definition.
|
protected |
Reimplemented in mln::win::cuboid3d, mln::win::line< M, i, C >, mln::win::line< grid::tick, 0, def::coord >, mln::win::line< grid::square, 1, def::coord >, mln::win::line< grid::cube, 0, def::coord >, mln::win::octagon2d, mln::win::cube3d, mln::win::ball< G, C >, mln::win::ball< grid::cube, def::coord >, mln::win::ball< grid::square, def::coord >, mln::win::backdiag2d, and mln::win::diag2d.
unsigned mln::internal::classical_window_base< D, E >::size | ( | ) | const |
Give the number of delta-points.
Reimplemented in mln::win::line< M, i, C >, mln::win::line< grid::tick, 0, def::coord >, mln::win::line< grid::square, 1, def::coord >, and mln::win::line< grid::cube, 0, def::coord >.
const std::vector<D>& mln::internal::classical_window_base< D, E >::std_vector | ( | ) | const |
Give the vector of delta-points.
Reimplemented in mln::win::rectangle2d.
void mln::internal::classical_window_base< D, E >::sym | ( | ) |
Apply a central symmetry to the target window; a no-op here.
const std::vector<D>& mln::internal::classical_window_base< D, E >::vect | ( | ) | const |
Give the vector of delta-points.
|
related |
|
related |
|
related |
|
protected |
Definition at line 119 of file classical_window_base.hh.
typedef dpsites_fwd_piter<E> mln::internal::classical_window_base< D, E >::bkd_qiter |
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 |
typedef dpsites_fwd_piter<E> mln::internal::classical_window_base< D, E >::fwd_qiter |
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.
typedef fwd_qiter mln::internal::classical_window_base< D, E >::qiter |
Site iterator associated type.
Definition at line 71 of file classical_window_base.hh.
typedef window<D> mln::internal::classical_window_base< D, E >::regular |
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.