#include <graph_elt_neighborhood_if.hh>
Public Types | |
typedef neighb_bkd_niter< W > | bkd_niter |
Backward site iterator associated type. | |
typedef Neighborhood< void > | category |
typedef W::dpsite | dpsite |
Dpsite associated type. | |
typedef E | exact_t |
typedef neighb_fwd_niter< W > | fwd_niter |
Forward site iterator associated type. | |
typedef fwd_niter | niter |
Site iterator associated type. | |
typedef W::psite | psite |
Psite associated type. | |
typedef W::site | site |
Site associated type. | |
typedef neighb < graph_elt_window_if< G, S, I > > | super_ |
typedef W | window |
Window associated type. | |
Public Member Functions | |
void | change_window (const W &new_win) |
Change the corresponding window. | |
unsigned | delta () const |
Give the maximum coordinate gap between the neighborhood center and a neighboring point. | |
const W::dpsite & | dp (unsigned i) const |
Give the maximum coordinate gap between the neighborhood center and a neighboring point. | |
graph_elt_neighborhood_if (const Image< I > &mask) | |
graph_elt_neighborhood_if () | |
Constructors @{ Construct an invalid neighborhood. | |
W & | hook_win_ () |
bool | is_valid () const |
Return true by default. | |
const I & | mask () const |
@} | |
unsigned | size () const |
Give the neighborhood size, i.e., the number of elements it contains. | |
const W & | win () const |
Get the corresponding window. | |
Package Attributes | |
__pad0__:neighb_base<W |
Definition at line 43 of file graph_elt_neighborhood_if.hh.
typedef neighb_bkd_niter<W> mln::neighb< W >::bkd_niter [inherited] |
typedef Neighborhood<void> mln::Neighborhood< E >::category [inherited] |
typedef W ::dpsite mln::internal::neighborhood_base< W, E >::dpsite [inherited] |
typedef E mln::Object< E >::exact_t [inherited] |
typedef neighb_fwd_niter<W> mln::neighb< W >::fwd_niter [inherited] |
typedef fwd_niter mln::neighb< W >::niter [inherited] |
typedef W ::psite mln::internal::neighborhood_base< W, E >::psite [inherited] |
typedef W ::site mln::internal::neighborhood_base< W, E >::site [inherited] |
typedef neighb< graph_elt_window_if<G,S,I> > mln::graph_elt_neighborhood_if< G, S, I >::super_ |
typedef W mln::internal::neighborhood_base< W, E >::window [inherited] |
mln::graph_elt_neighborhood_if< G, S, I >::graph_elt_neighborhood_if | ( | ) | [inline] |
Constructors @{ Construct an invalid neighborhood.
Definition at line 67 of file graph_elt_neighborhood_if.hh.
mln::graph_elt_neighborhood_if< G, S, I >::graph_elt_neighborhood_if | ( | const Image< I > & | mask | ) | [inline] |
[in] | mask | A graph image of Boolean. |
Definition at line 74 of file graph_elt_neighborhood_if.hh.
References mln::internal::neighb_base< W, E >::hook_win_().
void mln::internal::neighb_base< W, E >::change_window | ( | const W & | new_win | ) | [inline, inherited] |
Change the corresponding window.
Definition at line 107 of file neighb_base.hh.
References mln::internal::neighb_base< W, E >::win_.
Referenced by mln::convert::over_load::from_to_(), and mln::internal::neighb_base< W, E >::neighb_base().
unsigned mln::internal::neighborhood_impl< W, E >::delta | ( | ) | const [inline, inherited] |
Give the maximum coordinate gap between the neighborhood center and a neighboring point.
Definition at line 177 of file neighborhood_base.hh.
References mln::exact().
const W::dpsite & mln::internal::neighborhood_impl< W, E >::dp | ( | unsigned | i | ) | const [inline, inherited] |
Give the maximum coordinate gap between the neighborhood center and a neighboring point.
Definition at line 189 of file neighborhood_base.hh.
References mln::exact().
W & mln::internal::neighb_base< W, E >::hook_win_ | ( | ) | [inline, inherited] |
For internal use only.
Hook to the window.
Definition at line 116 of file neighb_base.hh.
References mln::internal::neighb_base< W, E >::win_.
Referenced by mln::c18(), mln::c2(), mln::c26(), mln::c4_3d(), mln::c6(), mln::convert::over_load::from_to_(), mln::graph_elt_neighborhood_if< G, S, I >::graph_elt_neighborhood_if(), and mln::graph_elt_neighborhood_if< G, S, I >::mask().
bool mln::internal::neighborhood_base< W, E >::is_valid | ( | ) | const [inline, inherited] |
const I & mln::graph_elt_neighborhood_if< G, S, I >::mask | ( | ) | const [inline] |
@}
Return the graph image used as mask.
Definition at line 83 of file graph_elt_neighborhood_if.hh.
References mln::internal::neighb_base< W, E >::hook_win_().
unsigned mln::internal::neighborhood_impl< W, E >::size | ( | ) | const [inline, inherited] |
Give the neighborhood size, i.e., the number of elements it contains.
Definition at line 167 of file neighborhood_base.hh.
References mln::exact().
Referenced by mln::c18(), mln::c2(), mln::c26(), mln::c2_col(), mln::c2_row(), mln::c4(), mln::c4_3d(), mln::c6(), mln::c8(), mln::c8_3d(), and mln::world::inter_pixel::v2v().
const W & mln::internal::neighb_base< W, E >::win | ( | ) | const [inline, inherited] |
Get the corresponding window.
Definition at line 99 of file neighb_base.hh.
References mln::internal::neighb_base< W, E >::win_.
Referenced by mln::convert::over_load::from_to_(), mln::mixed_neighb_bkd_niter< W >::mixed_neighb_bkd_niter(), mln::mixed_neighb_fwd_niter< W >::mixed_neighb_fwd_niter(), mln::neighb_bkd_niter< W >::neighb_bkd_niter(), and mln::neighb_fwd_niter< W >::neighb_fwd_niter().
mln::neighb< W >::__pad0__ [package, inherited] |
Definition at line 79 of file mln/core/neighb.hh.