$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
scribo::primitive::group Namespace Reference

Functions

template<typename L >
component_set< L > apply (const object_groups< L > &groups)
template<typename L >
component_set< L > apply (const object_links< L > &links)
template<typename L >
object_groups< L > from_double_link (const object_links< L > &left_link, const object_links< L > &right_link)
template<typename L >
object_groups< L > from_double_link_any (const object_links< L > &left_link, const object_links< L > &right_link)
template<typename L , typename G >
object_groups< L > from_graph (const component_set< L > &comps, const Graph< G > &g_)
template<typename L >
object_groups< L > from_single_link (const object_links< L > &links)
template<typename L >
object_groups< L > regroup_left (const component_set< L > &components, const object_groups< L > &groups, unsigned dmax)

Detailed Description

Namespace of primitive grouping related routines.

Function Documentation

template<typename L >
component_set<L> scribo::primitive::group::apply ( const object_groups< L > &  groups)

Apply grouping in an object image.

Parameters
groupsAn object group structure.
Returns
A copy of components with grouped components.
template<typename L >
component_set<L> scribo::primitive::group::apply ( const object_links< L > &  links)

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

template<typename L >
object_groups<L> scribo::primitive::group::from_double_link ( const object_links< L > &  left_link,
const object_links< L > &  right_link 
)

Group components from left and right links information and validate These links. A link must exist in both ways to be validated.

Parameters
[in]left_linkThe left neighbor of each line of text.
[in]right_linkThe right neighbor of each line of text.
Returns
Return object groups information.
template<typename L >
object_groups<L> scribo::primitive::group::from_double_link_any ( const object_links< L > &  left_link,
const object_links< L > &  right_link 
)

Group components from left and right links information and validate These links.

Parameters
[in]left_linkThe left neighbor of each line of text.
[in]right_linkThe right neighbor of each line of text.
Returns
Return object groups information.
template<typename L , typename G >
object_groups<L> scribo::primitive::group::from_graph ( const component_set< L > &  comps,
const Graph< G > &  g_ 
)

Group objects according to a graph of links.

Parameters
[in]compsA component set.
[in]g_The graph of object links.
Returns
Object groups information.
template<typename L >
object_groups<L> scribo::primitive::group::from_single_link ( const object_links< L > &  links)

Link text components with their neighbor line if they have one.

Parameters
[in]linksThe neighbor line of each line.
Returns
Object groups information.