$extrastylesheet
#include <mln/topo/is_simple_point2d.hh>
Public Member Functions | |
is_simple_point2d (const Neighborhood< N > &nbh_fg, const Neighborhood< N > &nbh_bg) | |
is_simple_point2d (const Neighborhood< N > &nbh_fg, const Neighborhood< N > &nbh_bg, const Image< I > &ima) | |
bool | operator() (const typename I::psite &p) const |
void | set_image (const Image< I > &ima) |
Public Types | |
typedef Function_v2b< void > | category |
typedef is_simple_point2d< I, N > | exact_t |
typedef void | mutable_result |
typedef bool | result |
A predicate for the simplicity of an mln::point2d based on the mask-based criterion mln::topo::is_simple_2d.
This functor acts as an adapter, since mln::topo::is_simple_2d does not fit (yet) in the canvas of mln::topo::skeleton::breadth_first_thinning. Moreover, this code is a bit easier to read since it does not make use of a dual neighborhood (having a long and complex type).
Definition at line 55 of file is_simple_point2d.hh.
mln::topo::is_simple_point2d< I, N >::is_simple_point2d | ( | const Neighborhood< N > & | nbh_fg, |
const Neighborhood< N > & | nbh_bg | ||
) |
Build a functor.
nbh_fg | The foreground neighborhood. |
nbh_bg | The background neighborhood. |
mln::topo::is_simple_point2d< I, N >::is_simple_point2d | ( | const Neighborhood< N > & | nbh_fg, |
const Neighborhood< N > & | nbh_bg, | ||
const Image< I > & | ima | ||
) |
Build a functor, and assign an image to it.
nbh_fg | The foreground neighborhood. |
nbh_bg | The background neighborhood. |
ima | The image. |
bool mln::topo::is_simple_point2d< I, N >::operator() | ( | const typename I::psite & | p | ) | const |
Tell whether p is a simple point or not.
This computation is based on connectivity numbers.
void mln::topo::is_simple_point2d< I, N >::set_image | ( | const 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_point2d< I, N >::result |
Result type of the functor.
Definition at line 59 of file is_simple_point2d.hh.