last-svn-commit-656-gb7fe0b0 scribo/core/component_set.hh: Combine separator images.

--- scribo/scribo/core/component_set.hh | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/scribo/scribo/core/component_set.hh b/scribo/scribo/core/component_set.hh index 77cbaa5..103826f 100644 --- a/scribo/scribo/core/component_set.hh +++ b/scribo/scribo/core/component_set.hh @@ -46,6 +46,8 @@ # include <mln/labeling/compute.hh> # include <mln/labeling/relabel.hh> +# include <mln/logical/or.hh> + # include <mln/convert/from_to.hh> # include <mln/core/image/dmorph/image_if.hh> @@ -541,7 +543,10 @@ namespace scribo void component_set<L>::add_separators(const mln_ch_value(L, bool)& ima) { - this->data_->separators_ = ima; + if (! has_separators()) + this->data_->separators_ = ima; + else + mln::logical::or_inplace(this->data_->separators_, ima); } -- 1.5.6.5
participants (1)
-
Guillaume Lazzara