27 #ifndef SCRIBO_FILTER_OBJECT_LINKS_BBOX_RATIO_HH
28 # define SCRIBO_FILTER_OBJECT_LINKS_BBOX_RATIO_HH
36 # include <mln/util/array.hh>
38 # include <scribo/core/macros.hh>
39 # include <scribo/core/object_links.hh>
40 # include <scribo/core/component_set.hh>
69 # ifndef MLN_INCLUDE_ONLY
78 mln_trace(
"scribo::filter::object_links_bbox_ratio");
80 mln_precondition(links.is_valid());
82 const component_set<L>&
components = links.components();
83 object_links<L> output = links.duplicate();
85 for_all_links(i, links)
86 if (links.is_linked(i))
95 std::swap(lmin, lmax);
97 if ((lmax/ lmin) > max_ratio)
105 # endif // ! MLN_INCLUDE_ONLY
113 #endif // ! SCRIBO_FILTER_OBJECT_LINKS_BBOX_RATIO_HH