Test if a point is simple or not. More...
#include <is_simple_2d.hh>
Public Member Functions | |
template<typename I > | |
bool | check (const I &ima, const typename I::psite &p) const |
template<typename I > | |
bool | check__ (const I &ima, unsigned p) const |
is_simple_2d_t (const Neighborhood< N > &nbh) | |
template<typename I , typename N2 > | |
unsigned | nb_connectivity2d (const I &, const N2 &nbh, const typename I::psite &p, bool object) const |
template<typename I , typename N2 > | |
unsigned | nb_connectivity2d__ (const I &, const N2 &nbh, unsigned p, bool object) const |
Protected Attributes | |
const N & | nbh_ |
Test if a point is simple or not.
A point of an object is simple if in its c8 neiborhood, there is exactly one connected component of the object, and only one connected component of the background Examples : ( | == object, - = background)
Definition at line 66 of file is_simple_2d.hh.
mln::topo::is_simple_2d_t< N >::is_simple_2d_t | ( | const Neighborhood< N > & | nbh | ) |
Definition at line 145 of file is_simple_2d.hh.
References mln::topo::is_simple_2d_t< N >::nbh_.
bool mln::topo::is_simple_2d_t< N >::check | ( | const I & | ima, | |
const typename I::psite & | p | |||
) | const [inline] |
Definition at line 228 of file is_simple_2d.hh.
References mln::topo::is_simple_2d_t< N >::nb_connectivity2d(), and mln::topo::is_simple_2d_t< N >::nbh_.
bool mln::topo::is_simple_2d_t< N >::check__ | ( | const I & | ima, | |
unsigned | p | |||
) | const [inline] |
Definition at line 242 of file is_simple_2d.hh.
References mln::topo::is_simple_2d_t< N >::nb_connectivity2d__(), and mln::topo::is_simple_2d_t< N >::nbh_.
unsigned mln::topo::is_simple_2d_t< N >::nb_connectivity2d | ( | const I & | ima, | |
const N2 & | nbh, | |||
const typename I::psite & | p, | |||
bool | object | |||
) | const |
Definition at line 156 of file is_simple_2d.hh.
References mln::c8(), mln::topo::internal::connectivity_number_c4, and mln::topo::internal::connectivity_number_c8.
Referenced by mln::topo::is_simple_2d_t< N >::check().
unsigned mln::topo::is_simple_2d_t< N >::nb_connectivity2d__ | ( | const I & | ima, | |
const N2 & | nbh, | |||
unsigned | p, | |||
bool | object | |||
) | const |
Definition at line 191 of file is_simple_2d.hh.
References mln::c8(), mln::topo::internal::connectivity_number_c4, mln::topo::internal::connectivity_number_c8, mln::util::array< T >::nelements(), and mln::offsets_wrt().
Referenced by mln::topo::is_simple_2d_t< N >::check__().
const N& mln::topo::is_simple_2d_t< N >::nbh_ [protected] |
Definition at line 85 of file is_simple_2d.hh.
Referenced by mln::topo::is_simple_2d_t< N >::check(), mln::topo::is_simple_2d_t< N >::check__(), and mln::topo::is_simple_2d_t< N >::is_simple_2d_t().