#include <is_simple_point.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_point (const Neighborhood< N > &nbh) | |
Protected Member Functions | |
template<typename I , typename N2 > | |
unsigned | nb_connexity2d (const I &, const N2 nbh, const typename I::psite &p, bool object) const |
template<typename I , typename N2 > | |
unsigned | nb_connexity2d__ (const I &, const N2 nbh, unsigned p, bool object) const |
Protected Attributes | |
bool | is_c8_ |
const N & | nbh_ |
Tell 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)
- - | | P | Here p is simple in the c4 and c8 case. | | | - | - | P | Here p is never simple. | | |
Definition at line 68 of file is_simple_point.hh.
mln::topo::skeleton::is_simple_point< N >::is_simple_point | ( | const Neighborhood< N > & | nbh | ) |
Definition at line 145 of file is_simple_point.hh.
References mln::topo::skeleton::is_simple_point< N >::nbh_.
bool mln::topo::skeleton::is_simple_point< N >::check | ( | const I & | ima, | |
const typename I::psite & | p | |||
) | const [inline] |
Definition at line 222 of file is_simple_point.hh.
References mln::topo::skeleton::is_simple_point< N >::nb_connexity2d(), and mln::topo::skeleton::is_simple_point< N >::nbh_.
bool mln::topo::skeleton::is_simple_point< N >::check__ | ( | const I & | ima, | |
unsigned | p | |||
) | const [inline] |
Definition at line 237 of file is_simple_point.hh.
References mln::topo::skeleton::is_simple_point< N >::nb_connexity2d__(), and mln::topo::skeleton::is_simple_point< N >::nbh_.
unsigned mln::topo::skeleton::is_simple_point< N >::nb_connexity2d | ( | const I & | ima, | |
const N2 | nbh, | |||
const typename I::psite & | p, | |||
bool | object | |||
) | const [protected] |
Definition at line 155 of file is_simple_point.hh.
References mln::c8(), mln::topo::skeleton::internal::nb_connexity_c4, and mln::topo::skeleton::internal::nb_connexity_c8.
Referenced by mln::topo::skeleton::is_simple_point< N >::check().
unsigned mln::topo::skeleton::is_simple_point< N >::nb_connexity2d__ | ( | const I & | ima, | |
const N2 | nbh, | |||
unsigned | p, | |||
bool | object | |||
) | const [protected] |
Definition at line 187 of file is_simple_point.hh.
References mln::c8(), mln::topo::skeleton::internal::nb_connexity_c4, mln::topo::skeleton::internal::nb_connexity_c8, mln::util::array< T >::nelements(), and mln::offsets_wrt().
Referenced by mln::topo::skeleton::is_simple_point< N >::check__().
bool mln::topo::skeleton::is_simple_point< N >::is_c8_ [protected] |
Definition at line 80 of file is_simple_point.hh.
const N& mln::topo::skeleton::is_simple_point< N >::nbh_ [protected] |
Definition at line 79 of file is_simple_point.hh.
Referenced by mln::topo::skeleton::is_simple_point< N >::check(), mln::topo::skeleton::is_simple_point< N >::check__(), and mln::topo::skeleton::is_simple_point< N >::is_simple_point().