$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::topo::skeleton::is_simple_point< N > Struct Template Reference

#include <mln/topo/skeleton/is_simple_point.hh>

Public Member Functions

 is_simple_point (const Neighborhood< N > &nbh)
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

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
template<typename N>
template<typename I >
bool mln::topo::skeleton::is_simple_point< N >::check__ ( const I &  ima,
unsigned  p 
) const
template<typename N>
template<typename I , typename N2 >
unsigned mln::topo::skeleton::is_simple_point< N >::nb_connexity2d ( const I &  ,
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 &  ,
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

Definition at line 79 of file is_simple_point.hh.