$extrastylesheet
#include <mln/core/w_window.hh>
Public Member Functions | |
| w_window () | |
| void | clear () |
| unsigned | delta () const |
| const mln::window< D >::dpsite & | dp (unsigned i) const |
| bool | has (const typename mln::window< D >::dpsite &dp) const |
| w_window< D, W > & | insert (const W &w, const D &d) |
| bool | is_centered () const |
| bool | is_empty () const |
| bool | is_symmetric () const |
| bool | is_valid () const |
| unsigned | size () const |
| const std::vector< D > & | std_vector () const |
| void | sym () |
| W | w (unsigned i) const |
| const std::vector< W > & | weights () const |
| const mln::window< D > & | win () const |
Protected Attributes | |
| std::vector< W > | wei_ |
| mln::window< D > | win_ |
Public Types | |
| typedef with_w_ < dpsites_bkd_piter< w_window < D, W > >, W > | bkd_qiter |
| typedef Weighted_Window< void > | category |
| typedef D | dpsite |
| typedef w_window< D, W > | exact_t |
| typedef with_w_ < dpsites_fwd_piter< w_window < D, W > >, W > | fwd_qiter |
| typedef mln::window< D >::psite | psite |
| typedef mln::window< D >::site | site |
| typedef W | weight |
| typedef mln::window< D > | window |
Related Functions | |
(Note that these are not member functions.) | |
| template<typename D , typename W > | |
| std::ostream & | operator<< (std::ostream &ostr, const w_window< D, W > &w_win) |
| template<typename D , typename Wl , typename Wr > | |
| bool | operator== (const w_window< D, Wl > &lhs, const w_window< D, Wr > &rhs) |
Generic w_window class.
This type of w_window is just like a set of delta-points. The parameter D is the type of delta-points; the parameter W is the type of weights.
Definition at line 78 of file core/w_window.hh.
| mln::w_window< D, W >::w_window | ( | ) |
Constructor without argument.
| void mln::w_window< D, W >::clear | ( | ) |
Clear this window.
|
inherited |
Give the maximum coordinate gap; final method.
This method is valid iff the support is regular and the definition is not varying.
|
inherited |
Give the i-th delta-point; final method.
This method is valid iff the support is regular and the definition is unique.
|
inherited |
Test if the dp delta-point is in this window; final method.
This method is valid iff the support is regular and the definition is unique.
| w_window<D,W>& mln::w_window< D, W >::insert | ( | const W & | w, |
| const D & | d | ||
| ) |
Insert a couple of weight w and delta-point d.
|
inherited |
Test if the weighted window is centered; final method.
This method is valid iff the support is regular and the definition is not varying.
|
inherited |
Test if the weighted window is empty; final method.
| bool mln::w_window< D, W >::is_symmetric | ( | ) | const |
Test if the window is symmetric.
|
inherited |
return true by default.
|
inherited |
Give the window size; final method.
This method is valid iff the underlying window has a fixed size.
| const std::vector<D>& mln::w_window< D, W >::std_vector | ( | ) | const |
Give access to the vector of delta-points.
| void mln::w_window< D, W >::sym | ( | ) |
Apply a central symmetry to the window.
| W mln::w_window< D, W >::w | ( | unsigned | i | ) | const |
Give the i-th weight.
| const std::vector<W>& mln::w_window< D, W >::weights | ( | ) | const |
Give access to the vector of weights.
| const mln::window<D>& mln::w_window< D, W >::win | ( | ) | const |
Give the corresponding window.
|
related |
Print a weighted window w_win into an output stream ostr.
|
related |
Equality test between two weighted windows lhs and rhs.
|
protected |
Definition at line 129 of file core/w_window.hh.
|
protected |
Definition at line 128 of file core/w_window.hh.
| typedef with_w_< dpsites_bkd_piter< w_window<D, W> >, W > mln::w_window< D, W >::bkd_qiter |
Site_Iterator type to browse (backward) the points of a generic w_window.
Definition at line 92 of file core/w_window.hh.
|
inherited |
Definition at line 72 of file weighted_window.hh.
| typedef D mln::w_window< D, W >::dpsite |
Dpsite associated type.
Definition at line 82 of file core/w_window.hh.
|
inherited |
| typedef with_w_< dpsites_fwd_piter< w_window<D, W> >, W > mln::w_window< D, W >::fwd_qiter |
Site_Iterator type to browse (forward) the points of a generic w_window.
Definition at line 89 of file core/w_window.hh.
|
inherited |
Psite associated type.
Definition at line 60 of file weighted_window_base.hh.
|
inherited |
Site associated type.
Definition at line 63 of file weighted_window_base.hh.
| typedef W mln::w_window< D, W >::weight |
Weight associated type.
Definition at line 85 of file core/w_window.hh.
|
inherited |
Window associated type.
Definition at line 54 of file weighted_window_base.hh.