Public Member Functions | Protected Attributes

mln::topo::is_simple_2d_t< N > Struct Template Reference

Test if a point is simple or not. More...

#include <is_simple_2d.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_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_

Detailed Description

template<typename N>
struct mln::topo::is_simple_2d_t< N >

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.


Constructor & Destructor Documentation

template<typename N >
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_.


Member Function Documentation

template<typename N >
template<typename I >
bool mln::topo::is_simple_2d_t< N >::check ( const I &  ima,
const typename I::psite &  p 
) const [inline]
template<typename N >
template<typename I >
bool mln::topo::is_simple_2d_t< N >::check__ ( const I &  ima,
unsigned  p 
) const [inline]
template<typename N >
template<typename I , typename N2 >
unsigned mln::topo::is_simple_2d_t< N >::nb_connectivity2d ( const I &  ima,
const N2 &  nbh,
const typename I::psite &  p,
bool  object 
) const
template<typename N >
template<typename I , typename N2 >
unsigned mln::topo::is_simple_2d_t< N >::nb_connectivity2d__ ( const I &  ima,
const N2 &  nbh,
unsigned  p,
bool  object 
) const

Member Data Documentation

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