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

#include <mln/topo/detach_cell.hh>

Public Member Functions

void operator() (const typename I::psite &f)
void set_image (mln::Image< I > &ima)
 detach_cell (const Neighborhood< N > &nbh)
 detach_cell (mln::Image< I > &ima, const Neighborhood< N > &nbh)

Detailed Description

template<typename I, typename N>
class mln::topo::detach_cell< I, N >

A functor detaching a cell from a binary (probably complex-based) image.

Template Parameters
IThe type of the image.
NAn neighborhood type corresponding to (directly) adjacent faces (should return the set of (n-1)- and (n+1)-faces adjacent to an n-face).

Definition at line 56 of file detach_cell.hh.

Constructor & Destructor Documentation

template<typename I , typename N >
mln::topo::detach_cell< I, N >::detach_cell ( const Neighborhood< N > &  nbh)

Constructors.

Construct an mln::topo::detach_cell from a neighborhood.

Parameters
nbhAn adjacency relationship between faces (should return the set of (n-1)- and (n+1)-faces adjacent to an n-face).
template<typename I , typename N >
mln::topo::detach_cell< I, N >::detach_cell ( mln::Image< I > &  ima,
const Neighborhood< N > &  nbh 
)

Construct an mln::topo::detach_cell from an image and a neighborhood.

Precondition
ima is an image of Boolean values.
Parameters
imaThe input image from which the cell is to be detached.
nbhAn adjacency relationship between faces (should return the set of (n-1)- and (n+1)-faces adjacent to an n-face).

Member Function Documentation

template<typename I , typename N >
void mln::topo::detach_cell< I, N >::operator() ( const typename I::psite &  f)

Detach the cell corresponding to f from ima_.

Parameters
fThe psite corresponding to the cell to detach.
template<typename I , typename N >
void mln::topo::detach_cell< I, N >::set_image ( mln::Image< I > &  ima)

Set the underlying image.

Precondition
ima is an image of Boolean values.