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

#include <scribo/fun/v2b/objects_on_border_filter.hh>

Public Types

typedef accu::math::count
< typename L::psite > 
card_t
typedef Function_v2b< void > category
typedef
components_on_border_filter< L > 
exact_t
typedef void mutable_result
typedef bool result

Public Member Functions

 components_on_border_filter (const component_set< L > &components)
bool operator() (const typename L::value &l) const

Public Attributes

const box2db_
const component_set< L > components_

Detailed Description

template<typename L>
struct scribo::fun::v2b::components_on_border_filter< L >

Filter Functor.

Return false for all components which are too large.

Definition at line 61 of file objects_on_border_filter.hh.

Constructor & Destructor Documentation

template<typename L >
scribo::fun::v2b::components_on_border_filter< L >::components_on_border_filter ( const component_set< L > &  components)

Constructor.

Parameters
[in]componentsComponent bounding boxes.

Member Function Documentation

template<typename L >
bool scribo::fun::v2b::components_on_border_filter< L >::operator() ( const typename L::value l) const

Check if the component is large enough.

Parameters
[in]lA label.
Returns
false if the component area is strictly inferion to max_size_.

Member Data Documentation

template<typename L >
const box2d& scribo::fun::v2b::components_on_border_filter< L >::b_

Labeled image bounding box.

Definition at line 86 of file objects_on_border_filter.hh.

template<typename L >
const component_set<L> scribo::fun::v2b::components_on_border_filter< L >::components_

The component set to filter.

Definition at line 83 of file objects_on_border_filter.hh.