D
(a D-complex
).
More...
#include <p_complex.hh>
Public Types | |
typedef Site_Set< void > | category |
typedef E | exact_t |
typedef subject< P >::ret | site |
Site associated type. | |
typedef p_complex_bkd_piter_ < D, G > | bkd_piter |
Backward Site_Iterator associated type. | |
typedef super_::site | element |
Associated types. | |
typedef p_complex_fwd_piter_ < D, G > | fwd_piter |
Forward Site_Iterator associated type. | |
typedef fwd_piter | piter |
Site_Iterator associated type. | |
typedef complex_psite< D, G > | psite |
Point_Site associated type. | |
Public Member Functions | |
bool | has (const psite &p) const |
Does this site set has p? | |
bool | is_empty () const |
Test if the site set is empty. | |
bool | is_valid () const |
Is this site set valid? | |
std::size_t | memory_size () const |
unsigned | nfaces () const |
Return the number of faces in the complex. | |
unsigned | nfaces_of_dim (unsigned n) const |
Return the number of n-faces in the complex. | |
unsigned | nsites () const |
Return The number of sites of the set, i.e., the number of faces. | |
p_complex (const topo::complex< D > &cplx, const G &geom) | |
Construct a complex psite set from a complex. | |
topo::complex< D > & | cplx () |
Return the complex associated to the p_complex domain (mutable version). | |
topo::complex< D > & | cplx () const |
Accessors. | |
const G & | geom () const |
Return the geometry of the complex. | |
Package Attributes | |
__pad0__:site_set_base_< complex_psite<D | |
G | |
self_ | super_ |
Private Types | |
typedef p_complex< D, G > | self_ |
Private Attributes | |
topo::complex< D > | cplx_ |
The complex on which this pset is built. | |
G | geom_ |
Geometry of the complex. | |
Related Functions | |
(Note that these are not member functions.) | |
template<typename Sl, typename Sr> | |
p_set< typename Sl::site > | diff (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Set theoretic difference of lhs and rhs . | |
template<typename Sl, typename Sr> | |
p_set< typename Sl::site > | inter (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Intersection between a couple of point sets. | |
template<typename Sl, typename Sr> | |
bool | operator< (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Strict inclusion test between site sets lhs and rhs . | |
template<typename S> | |
std::ostream & | operator<< (std::ostream &ostr, const Site_Set< S > &set) |
Print a site set set into the output stream ostr . | |
template<typename Sl, typename Sr> | |
bool | operator<= (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Inclusion test between site sets lhs and rhs . | |
template<typename Sl, typename Sr> | |
bool | operator== (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Equality test between site sets lhs and rhs . | |
template<typename Sl, typename Sr> | |
p_set< typename Sl::site > | sym_diff (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Set theoretic symmetrical difference of lhs and rhs . | |
template<typename Sl, typename Sr> | |
p_set< typename Sl::site > | uni (const Site_Set< Sl > &lhs, const Site_Set< Sr > &rhs) |
Union of a couple of point sets. | |
template<typename S> | |
p_set< typename S::site > | unique (const Site_Set< S > &s) |
Give the unique set of s . |
D
(a D-complex
).
D | The dimension of the complex. | |
G | A function object type, associating localization information (geometry) to each face of the complex. |
Definition at line 116 of file p_complex.hh.
typedef p_complex_bkd_piter_<D, G> mln::p_complex< D, G >::bkd_piter |
typedef Site_Set<void> mln::Site_Set< E >::category [inherited] |
typedef super_ ::site mln::p_complex< D, G >::element |
typedef E mln::Object< E >::exact_t [inherited] |
typedef p_complex_fwd_piter_<D, G> mln::p_complex< D, G >::fwd_piter |
typedef fwd_piter mln::p_complex< D, G >::piter |
typedef complex_psite<D, G> mln::p_complex< D, G >::psite |
typedef p_complex<D, G> mln::p_complex< D, G >::self_ [private] |
Definition at line 119 of file p_complex.hh.
typedef subject<P>::ret mln::internal::site_set_base_< P, E >::site [inherited] |
Site associated type.
Reimplemented in mln::p_centered< W >.
Definition at line 55 of file site_set_base.hh.
mln::p_complex< D, G >::p_complex | ( | const topo::complex< D > & | cplx, | |
const G & | geom | |||
) | [inline] |
topo::complex< D > & mln::p_complex< D, G >::cplx | ( | ) | [inline] |
Return the complex associated to the p_complex domain (mutable version).
Definition at line 301 of file p_complex.hh.
References mln::p_complex< D, G >::is_valid().
topo::complex< D > & mln::p_complex< D, G >::cplx | ( | ) | const [inline] |
Accessors.
Return the complex associated to the p_complex domain (const version)
Definition at line 293 of file p_complex.hh.
References mln::p_complex< D, G >::is_valid().
Referenced by mln::complex_psite< D, G >::change_target(), mln::complex_psite< D, G >::complex_psite(), mln::complex_psite< D, G >::is_valid(), mln::operator==(), mln::complex_psite< D, G >::target_(), and mln::complex_psite< D, G >::update_().
const G & mln::p_complex< D, G >::geom | ( | ) | const [inline] |
Return the geometry of the complex.
Definition at line 309 of file p_complex.hh.
Referenced by mln::complex_psite< D, G >::update_().
bool mln::p_complex< D, G >::has | ( | const psite & | p | ) | const [inline] |
Does this site set has p?
Definition at line 271 of file p_complex.hh.
References mln::complex_psite< D, G >::is_valid(), mln::p_complex< D, G >::is_valid(), and mln::complex_psite< D, G >::site_set().
bool mln::internal::site_set_base_< P, E >::is_empty | ( | ) | const [inline, inherited] |
Test if the site set is empty.
This final method dispatches to is_empty_ whose default implementation relies on the 'nsites' method.
Definition at line 84 of file site_set_base.hh.
References mln::exact().
Referenced by mln::canvas::labeling::impl::generic::blobs(), mln::p_set_of< S >::clear(), mln::p_mutable_array_of< S >::clear(), mln::p_array< P >::clear(), mln::canvas::impl::generic::distance_geodesic(), mln::morpho::watershed::impl::generic::flooding(), mln::morpho::watershed::impl::flooding_fastest(), mln::p_queue_fast< P >::front(), mln::p_queue< P >::front(), mln::p_priority< P, Q >::front(), mln::p_priority< P, Q >::highest_priority(), mln::registration::icp(), mln::influence_zones(), mln::p_priority< P, Q >::lowest_priority(), mln::morpho::meyer_wst(), mln::p_queue_fast< P >::pop(), mln::p_queue< P >::pop(), mln::p_priority< P, Q >::pop(), mln::p_queue_fast< P >::pop_front(), mln::p_queue< P >::pop_front(), mln::p_priority< P, Q >::pop_front(), mln::registration::internal::registration_tests(), mln::geom::impl::seeds2tiling(), mln::geom::impl::seeds2tiling_roundness(), mln::morpho::skeleton_constrained(), and mln::morpho::watershed::topological().
bool mln::p_complex< D, G >::is_valid | ( | ) | const [inline] |
Is this site set valid?
Definition at line 263 of file p_complex.hh.
Referenced by mln::p_complex< D, G >::cplx(), and mln::p_complex< D, G >::has().
std::size_t mln::p_complex< D, G >::memory_size | ( | ) | const [inline] |
Definition at line 284 of file p_complex.hh.
unsigned mln::p_complex< D, G >::nfaces | ( | ) | const [inline] |
Return the number of faces in the complex.
Definition at line 247 of file p_complex.hh.
Referenced by mln::p_complex< D, G >::nsites().
unsigned mln::p_complex< D, G >::nfaces_of_dim | ( | unsigned | n | ) | const [inline] |
Return the number of n-faces in the complex.
Definition at line 255 of file p_complex.hh.
Referenced by mln::complex_image< D, G, V >::complex_image().
unsigned mln::p_complex< D, G >::nsites | ( | ) | const [inline] |
Return The number of sites of the set, i.e., the number of faces.
(Required by the mln::Site_Set concept, since the property trait::site_set::nsites::known of this site set is set to `known'.)
Definition at line 239 of file p_complex.hh.
References mln::p_complex< D, G >::nfaces().
bool operator< | ( | const Site_Set< Sl > & | lhs, | |
const Site_Set< Sr > & | rhs | |||
) | [related, inherited] |
std::ostream & operator<< | ( | std::ostream & | ostr, | |
const Site_Set< S > & | set | |||
) | [related, inherited] |
bool operator<= | ( | const Site_Set< Sl > & | lhs, | |
const Site_Set< Sr > & | rhs | |||
) | [related, inherited] |
bool operator== | ( | const Site_Set< Sl > & | lhs, | |
const Site_Set< Sr > & | rhs | |||
) | [related, inherited] |
mln::p_complex< D, G >::__pad0__ [package] |
Definition at line 120 of file p_complex.hh.
topo::complex<D> mln::p_complex< D, G >::cplx_ [mutable, private] |
mln::p_complex< D, G >::G [package] |
Definition at line 120 of file p_complex.hh.
G mln::p_complex< D, G >::geom_ [private] |
self_ mln::p_complex< D, G >::super_ [package] |
Definition at line 120 of file p_complex.hh.