$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::topo::detach_pair< I, NL, NH > Class Template Reference

#include <mln/topo/detach_pair.hh>

Public Member Functions

void operator() (const typename I::psite &f, const typename I::psite &g)
void operator() (const typename I::psite &f)
void set_image (mln::Image< I > &ima)
 detach_pair (const Neighborhood< NL > &lower_adj_nbh, const Neighborhood< NH > &higher_adj_nbh)
 detach_pair (mln::Image< I > &ima, const Neighborhood< NL > &lower_adj_nbh, const Neighborhood< NH > &higher_adj_nbh)

Detailed Description

template<typename I, typename NL, typename NH>
class mln::topo::detach_pair< I, NL, NH >

\ brief A functor detaching a simple pair from a binary (probably complex-based) image (elementary collapse operation).

Template Parameters
IThe type of the image.
NLThe neighborhood type returning the set of (n-1)-faces adjacent to a an n-face.
NHThe neighborhood type returning the set of (n+1)-faces adjacent to a an n-face.

Definition at line 56 of file detach_pair.hh.

Constructor & Destructor Documentation

template<typename I , typename NL , typename NH >
mln::topo::detach_pair< I, NL, NH >::detach_pair ( const Neighborhood< NL > &  lower_adj_nbh,
const Neighborhood< NH > &  higher_adj_nbh 
)

Constructors.

Construct an mln::topo::detach_pair from a couple of neighborhoods.

Parameters
lower_adj_nbhAn adjacency relationship between faces returning the set of (n-1)-faces adjacent to a given n-face.
higher_adj_nbhAn adjacency relationship between faces returning the set of (n+1)-faces adjacent to a given n-face.
template<typename I , typename NL , typename NH >
mln::topo::detach_pair< I, NL, NH >::detach_pair ( mln::Image< I > &  ima,
const Neighborhood< NL > &  lower_adj_nbh,
const Neighborhood< NH > &  higher_adj_nbh 
)

Construct an mln::topo::detach_pair from an image and a couple of neighborhoods.

Precondition
ima is an image of Boolean values.
Parameters
imaThe input image from which the pair is to be detached.
lower_adj_nbhAn adjacency relationship between faces returning the set of (n-1)-faces adjacent to a given n-face.
higher_adj_nbhAn adjacency relationship between faces returning the set of (n+1)-faces adjacent to a given n-face.

Member Function Documentation

template<typename I , typename NL , typename NH >
void mln::topo::detach_pair< I, NL, NH >::operator() ( const typename I::psite &  f,
const typename I::psite &  g 
)

Detach the pair (f, q) from ima_.

Parameters
fAn n-facet of ima
gAn (n-1)-face ajacent to f.
template<typename I , typename NL , typename NH >
void mln::topo::detach_pair< I, NL, NH >::operator() ( const typename I::psite &  f)

Detach a simple pair from ima_ containing the face f.

Parameters
fAn n-facet of ima.
template<typename I , typename NL , typename NH >
void mln::topo::detach_pair< I, NL, NH >::set_image ( mln::Image< I > &  ima)

Set the underlying image.