$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_small_filter< L > Struct Template Reference

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

Public Types

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

Public Member Functions

 components_small_filter (const component_set< L > &components, unsigned min_size)
bool operator() (const typename L::value &l) const

Public Attributes

const component_set< L > components_
mln::util::array< boolmarked_
unsigned min_size_
L::value nlabels_

Detailed Description

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

Filter Functor.

Return false for all components which are too small.

Definition at line 62 of file objects_small_filter.hh.

Constructor & Destructor Documentation

template<typename L >
scribo::fun::v2b::components_small_filter< L >::components_small_filter ( const component_set< L > &  components,
unsigned  min_size 
)

Constructor.

Parameters
[in]componentsComponent bounding boxes.
[in]min_sizeMinimum component size.

Member Function Documentation

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

Check if the component is large enough.

Parameters
lA label.
Returns
false if the component area is strictly inferion to min_size_.

Member Data Documentation

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

The component set to filter.

Definition at line 89 of file objects_small_filter.hh.

template<typename L >
mln::util::array<bool> scribo::fun::v2b::components_small_filter< L >::marked_
mutable

Has already been taken into account.

Definition at line 95 of file objects_small_filter.hh.

template<typename L >
unsigned scribo::fun::v2b::components_small_filter< L >::min_size_

The minimum area.

Definition at line 86 of file objects_small_filter.hh.

template<typename L >
L ::value scribo::fun::v2b::components_small_filter< L >::nlabels_
mutable

The number of labels remaining after filtering.

Definition at line 92 of file objects_small_filter.hh.