26 #ifndef SCRIBO_FILTER_COMPONENTS_ON_BORDER_HH
27 # define SCRIBO_FILTER_COMPONENTS_ON_BORDER_HH
34 # include <mln/core/concept/image.hh>
35 # include <mln/core/concept/neighborhood.hh>
36 # include <mln/core/concept/function.hh>
38 # include <mln/labeling/compute.hh>
39 # include <mln/accu/math/count.hh>
41 # include <mln/util/array.hh>
43 # include <mln/pw/all.hh>
45 # include <scribo/core/component_set.hh>
46 # include <scribo/primitive/extract/components.hh>
47 # include <scribo/fun/v2b/objects_on_border_filter.hh>
73 # ifndef MLN_INCLUDE_ONLY
81 mln_trace(
"scribo::filter::components_on_border");
83 mln_precondition(components.is_valid());
85 fun::v2b::components_on_border_filter<L> f(components);
87 component_set<L> output = components.duplicate();
95 # endif // ! MLN_INCLUDE_ONLY
101 #endif // ! SCRIBO_FILTER_COMPONENTS_ON_BORDER_HH