Public Member Functions | Protected Member Functions | Protected Attributes

mln::topo::skeleton::is_simple_point< N > Struct Template Reference

#include <is_simple_point.hh>

List of all members.

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_

Detailed Description

template<typename N>
struct mln::topo::skeleton::is_simple_point< N >

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.


Constructor & Destructor Documentation

template<typename N >
mln::topo::skeleton::is_simple_point< N >::is_simple_point ( const Neighborhood< N > &  nbh  ) 

Member Function Documentation

template<typename N >
template<typename I >
bool mln::topo::skeleton::is_simple_point< N >::check ( const I &  ima,
const typename I::psite &  p 
) const [inline]
template<typename N >
template<typename I >
bool mln::topo::skeleton::is_simple_point< N >::check__ ( const I &  ima,
unsigned  p 
) const [inline]
template<typename N >
template<typename I , typename N2 >
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]
template<typename N >
template<typename I , typename N2 >
unsigned mln::topo::skeleton::is_simple_point< N >::nb_connexity2d__ ( const I &  ima,
const N2  nbh,
unsigned  p,
bool  object 
) const [protected]

Member Data Documentation

template<typename N >
bool mln::topo::skeleton::is_simple_point< N >::is_c8_ [protected]

Definition at line 80 of file is_simple_point.hh.

template<typename N >
const N& mln::topo::skeleton::is_simple_point< N >::nbh_ [protected]