$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scribo::line_set< L > Class Template Reference

#include <scribo/core/line_set.hh>

Public Member Functions

const component_set< L > & components () const
component_set< L > & components_ ()
void compute_lines (const object_groups< L > &groups)
line_set< L > duplicate () const
const object_groups< L > & groups () const
const line_info< L > & info (const typename L::value &id) const
line_info< L > & info (const typename L::value &id)
const mln::util::array
< line_info< L > > & 
infos () const
bool is_valid () const
const object_links< L > & links () const
L::value nelements () const
line_info< L > & operator() (const line_id_t &id)
const line_info< L > & operator() (const line_id_t &id) const
void update_line_data_ (const mln::util::array< line_info< L > > &line_data)
template<typename F >
void update_tags (const mln::Function_v2b< F > &f, line::Tag tag)
template<typename F >
void update_types (const mln::Function_v2b< F > &f, line::Type type)
 line_set ()
 line_set (const object_groups< L > &groups)
 line_set (const object_groups< L > &groups, const mln::util::array< line_info< L > > &line_data)
void force_stats_update ()
const mln::util::array
< scribo::line_info< L > > & 
infos_ () const

Detailed Description

template<typename L>
class scribo::line_set< L >

Lines container.

Line ids start from 1.

Definition at line 94 of file line_set.hh.

Constructor & Destructor Documentation

template<typename L>
scribo::line_set< L >::line_set ( )

ConstructorsConstructor without argument.

template<typename L>
scribo::line_set< L >::line_set ( const object_groups< L > &  groups)

Constructor from object groups.

template<typename L>
scribo::line_set< L >::line_set ( const object_groups< L > &  groups,
const mln::util::array< line_info< L > > &  line_data 
)

Constructor useful for delayed construction (loading from file).

Member Function Documentation

template<typename L>
const component_set<L>& scribo::line_set< L >::components ( ) const

Return the underlying component set.

template<typename L>
component_set<L>& scribo::line_set< L >::components_ ( )

Return the underlying component set (non-const version).

template<typename L>
void scribo::line_set< L >::compute_lines ( const object_groups< L > &  groups)

Compute line stats and fill the underlying information.

template<typename L>
line_set<L> scribo::line_set< L >::duplicate ( ) const

Create a copy of this line_set<L>

template<typename L>
void scribo::line_set< L >::force_stats_update ( )

Massive line computation.

template<typename L>
const object_groups<L>& scribo::line_set< L >::groups ( ) const

Return the underlying component group.

template<typename L>
const line_info<L>& scribo::line_set< L >::info ( const typename L::value id) const

Return line information for a given line id id.

template<typename L>
line_info<L>& scribo::line_set< L >::info ( const typename L::value id)

Return line information for a given line id id.

template<typename L>
const mln::util::array<line_info<L> >& scribo::line_set< L >::infos ( ) const

Return all the line information.

template<typename L>
const mln::util::array<scribo::line_info<L> >& scribo::line_set< L >::infos_ ( ) const

Internal methods.

Return all the line infos.

template<typename L>
bool scribo::line_set< L >::is_valid ( ) const

Return false if it is not initialized (built with the default constructor).

template<typename L>
const object_links<L>& scribo::line_set< L >::links ( ) const

Return the underlying links.

template<typename L>
L ::value scribo::line_set< L >::nelements ( ) const

Return the line count.

template<typename L>
line_info<L>& scribo::line_set< L >::operator() ( const line_id_t id)

Return line information for a given line id id.

template<typename L>
const line_info<L>& scribo::line_set< L >::operator() ( const line_id_t id) const

Return line information for a given line id id.

template<typename L>
template<typename F >
void scribo::line_set< L >::update_tags ( const mln::Function_v2b< F > &  f,
line::Tag  tag 
)

Update tag of lines set to 'false' in f with tag.

template<typename L>
template<typename F >
void scribo::line_set< L >::update_types ( const mln::Function_v2b< F > &  f,
line::Type  type 
)

Update Type of lines set to 'false' in f with tag.