$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::accu::count_adjacent_vertices< F, S > Struct Template Reference

#include <mln/accu/count_adjacent_vertices.hh>

Public Member Functions

 count_adjacent_vertices ()
bool is_valid () const
unsigned subj_ ()
void take_as_init (const T &t)
void take_as_init_ (const T &t)
void take_n_times (unsigned n, const T &t)
void take_n_times_ (unsigned n, const T &t)
unsigned to_result () const
void init ()
void take (const argument &arg)
void take (const count_adjacent_vertices< F, S > &other)
void set_value (unsigned c)

Protected Member Functions

void update_ ()

Protected Attributes

unsigned count__
std::set< unsignedvertices_

Public Types

typedef mln::util::pix
< pw::image< F, S > > 
argument
typedef Accumulator< void > category
typedef
count_adjacent_vertices< F, S > 
exact_t
typedef unsigned q_result
typedef mln::metal::unqualif
< unsigned >::ret 
result

Detailed Description

template<typename F, typename S>
struct mln::accu::count_adjacent_vertices< F, S >

Accumulator class counting the number of vertices adjacent to a set of mln::p_edges_psite (i.e., a set of edges).

The type to be count is mln::util::pix< pw::image<F, S> > where F and S are the parameters of this class.

This accumulator is used by mln::closing_area_on_vertices and mln::opening_area_on_vertices.

Definition at line 58 of file accu/count_adjacent_vertices.hh.

Constructor & Destructor Documentation

template<typename F, typename S>
mln::accu::count_adjacent_vertices< F, S >::count_adjacent_vertices ( )

Member Function Documentation

template<typename F, typename S>
void mln::accu::count_adjacent_vertices< F, S >::init ( )

Manipulators.

template<typename F, typename S>
bool mln::accu::count_adjacent_vertices< F, S >::is_valid ( ) const

Return whether this accu can return a result.

template<typename F, typename S>
void mln::accu::count_adjacent_vertices< F, S >::set_value ( unsigned  c)

Force the value of the counter to c.

template<typename F, typename S>
void mln::accu::count_adjacent_vertices< F, S >::take ( const argument arg)
template<typename F, typename S>
void mln::accu::count_adjacent_vertices< F, S >::take ( const count_adjacent_vertices< F, S > &  other)
void mln::Accumulator< count_adjacent_vertices< F, S > >::take_as_init ( const T t)
inherited

Take as initialization the value t.

void mln::Accumulator< count_adjacent_vertices< F, S > >::take_as_init_ ( const T t)
inherited

INTERNAL_API

Default implementation of "take as initialization".

void mln::Accumulator< count_adjacent_vertices< F, S > >::take_n_times ( unsigned  n,
const T t 
)
inherited

Take n times the value t.

void mln::Accumulator< count_adjacent_vertices< F, S > >::take_n_times_ ( unsigned  n,
const T t 
)
inherited

INTERNAL_API

Default implementation of "take n times".

template<typename F, typename S>
unsigned mln::accu::count_adjacent_vertices< F, S >::to_result ( ) const

Get the value of the accumulator.

template<typename F, typename S>
void mln::accu::count_adjacent_vertices< F, S >::update_ ( )
protected

Update the value of the counter.

Member Data Documentation

template<typename F, typename S>
unsigned mln::accu::count_adjacent_vertices< F, S >::count__
protected

The value of the counter.

Definition at line 88 of file accu/count_adjacent_vertices.hh.

template<typename F, typename S>
std::set<unsigned> mln::accu::count_adjacent_vertices< F, S >::vertices_
protected

The set of adjacent vertices.

Definition at line 90 of file accu/count_adjacent_vertices.hh.

Member Typedef Documentation

template<typename F, typename S>
typedef mln::util::pix< pw::image<F,S> > mln::accu::count_adjacent_vertices< F, S >::argument

Definition at line 62 of file accu/count_adjacent_vertices.hh.

typedef Accumulator<void> mln::Accumulator< count_adjacent_vertices< F, S > >::category
inherited

Definition at line 64 of file accumulator.hh.

typedef count_adjacent_vertices< F, S > mln::Object< count_adjacent_vertices< F, S > >::exact_t
inherited

Definition at line 105 of file object.hh.

Definition at line 58 of file base.hh.

typedef mln::metal::unqualif< unsigned >::ret mln::accu::internal::base< unsigned , count_adjacent_vertices< F, S > >::result
inherited

Definition at line 59 of file base.hh.