$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
is_simple_2d< I, N > Class Template Reference

#include <apps/morphers/image2d-skel.hh>

Public Member Functions

 is_simple_2d (const mln::Neighborhood< N > &nbh_fg)
 is_simple_2d (const mln::Neighborhood< N > &nbh_fg, const mln::Image< I > &ima)
bool operator() (const typename I::psite &p) const
void set_image (const mln::Image< I > &ima)

Public Types

typedef Function_v2b< void > category
typedef is_simple_2d< I, N > exact_t
typedef void mutable_result
typedef bool result
typedef
mln::topo::is_simple_2d_t< N > 
super

Private 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
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

Private Attributes

const N & nbh_

Detailed Description

template<typename I, typename N>
class is_simple_2d< I, N >

An equivalent (for mln::image2d) of the mln::topo::is_simple_cell functor, based on the mask-based criterion mln::topo::is_simple_2d.

This functor acts as an adapter, since mln::topo::is_simple_2d_t does not fit (yet) in the canvas of mln::topo::skeleton::breadth_first_thinning.

Definition at line 47 of file image2d-skel.hh.

Constructor & Destructor Documentation

template<typename I, typename N>
is_simple_2d< I, N >::is_simple_2d ( const mln::Neighborhood< N > &  nbh_fg)
inline

Build a functor.

Parameters
nbh_fgThe foreground neighborhood.

Definition at line 59 of file image2d-skel.hh.

template<typename I, typename N>
is_simple_2d< I, N >::is_simple_2d ( const mln::Neighborhood< N > &  nbh_fg,
const mln::Image< I > &  ima 
)
inline

Build a functor, and assign an image to it.

Parameters
nbh_fgThe foreground neighborhood.
imaThe image.

Definition at line 69 of file image2d-skel.hh.

Member Function Documentation

template<typename I, typename N>
bool is_simple_2d< I, N >::operator() ( const typename I::psite &  p) const
inline

Based on connectivity numbers.

Definition at line 83 of file image2d-skel.hh.

template<typename I, typename N>
void is_simple_2d< I, N >::set_image ( const mln::Image< I > &  ima)
inline

Set the underlying image.

Definition at line 77 of file image2d-skel.hh.

Member Typedef Documentation

typedef Function_v2b<void> mln::Function_v2b< is_simple_2d< I, N > >::category
inherited

Definition at line 162 of file function.hh.

typedef is_simple_2d< I, N > mln::Object< is_simple_2d< I, N > >::exact_t
inherited

Definition at line 105 of file object.hh.

typedef void mln::Function_v2v< is_simple_2d< I, N > >::mutable_result
inherited

Definition at line 135 of file function.hh.

template<typename I, typename N>
typedef bool is_simple_2d< I, N >::result

Result type of the functor.

Definition at line 54 of file image2d-skel.hh.

template<typename I, typename N>
typedef mln::topo::is_simple_2d_t<N> is_simple_2d< I, N >::super

Definition at line 51 of file image2d-skel.hh.