26 #ifndef SCRIBO_FUN_V2B_COMPONENTS_ON_BORDER_FILTER_HH
27 # define SCRIBO_FUN_V2B_COMPONENTS_ON_BORDER_FILTER_HH
35 # include <mln/core/concept/function.hh>
37 # include <mln/util/array.hh>
39 # include <mln/accu/math/count.hh>
41 # include <mln/labeling/compute.hh>
43 # include <scribo/core/component_set.hh>
80 bool operator()(
const mln_value(L)& l)
const;
92 # ifndef MLN_INCLUDE_ONLY
99 : components_(components), b_(components_.
labeled_image().domain())
105 template <
typename L>
110 if (l == literal::zero)
113 if (components_(l).
bbox().pmin().row() == b_.
pmin().row()
114 || components_(l).bbox().pmax().row() == b_.pmax().row()
115 || components_(l).bbox().pmin().col() == b_.pmin().col()
116 || components_(l).bbox().pmax().col() == b_.pmax().col())
123 # endif // ! MLN_INCLUDE_ONLY
132 #endif // ! SCRIBO_FUN_V2B_COMPONENTS_ON_BORDER_FILTER_HH