$extrastylesheet
#include <mln/topo/is_simple_pair.hh>
Public Member Functions | |
bool | operator() (const typename I::psite &f, const typename I::psite &g) const |
bool | operator() (const typename I::psite &f) const |
void | set_image (const mln::Image< I > &ima) |
is_simple_pair (const Neighborhood< NL > &lower_adj_nbh, const Neighborhood< NH > &higher_adj_nbh) | |
is_simple_pair (const mln::Image< I > &ima, const Neighborhood< NL > &lower_adj_nbh, const Neighborhood< NH > &higher_adj_nbh) |
Public Types | |
typedef Function_v2b< void > | category |
typedef is_simple_pair< I, NL, NH > | exact_t |
typedef void | mutable_result |
typedef bool | result |
A predicate for the simplicity of a pair (or a face that might belong to a simple pair).
The functor may either take a pair composed of an n-face F and an (n-1)-face G (where F is a facet), or just a single facet F. In this latter case, it tries to find an (n-1)-face G so that (F, G) form a simple pair.
I | The type of the image. |
NL | The neighborhood type returning the set of (n-1)-faces adjacent to a an n-face. |
NH | The neighborhood type returning the set of (n+1)-faces adjacent to a an n-face. |
Definition at line 60 of file is_simple_pair.hh.
mln::topo::is_simple_pair< I, NL, NH >::is_simple_pair | ( | const Neighborhood< NL > & | lower_adj_nbh, |
const Neighborhood< NH > & | higher_adj_nbh | ||
) |
Constructors.
Construct an mln::topo::is_simple_pair from a couple of neighborhoods.
lower_adj_nbh | An adjacency relationship between faces returning the set of (n-1)-faces adjacent to a given n-face. |
higher_adj_nbh | An adjacency relationship between faces returning the set of (n+1)-faces adjacent to a given n-face. |
mln::topo::is_simple_pair< I, NL, NH >::is_simple_pair | ( | const 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.
ima | The input image the pair belongs to. |
lower_adj_nbh | An adjacency relationship between faces returning the set of (n-1)-faces adjacent to a given n-face. |
higher_adj_nbh | An adjacency relationship between faces returning the set of (n+1)-faces adjacent to a given n-face. |
bool mln::topo::is_simple_pair< I, NL, NH >::operator() | ( | const typename I::psite & | f, |
const typename I::psite & | g | ||
) | const |
Test whether the pair (f, g) is simple.
If f is not a facet, return false. If g is not a (n-1)-face adjacent to the n-face f, return false.
bool mln::topo::is_simple_pair< I, NL, NH >::operator() | ( | const typename I::psite & | f | ) | const |
Test whether f is part of a simple pair.
If f is not a facet, return false.
void mln::topo::is_simple_pair< I, NL, NH >::set_image | ( | const mln::Image< I > & | ima | ) |
Set the underlying image.
|
inherited |
Definition at line 162 of file function.hh.
|
inherited |
|
inherited |
Definition at line 135 of file function.hh.
typedef bool mln::topo::is_simple_pair< I, NL, NH >::result |
Result type of the functor.
Definition at line 65 of file is_simple_pair.hh.