---
scribo/ChangeLog | 5 +++++
.../primitive/link/internal/link_functor_base.hh | 9 +++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index baca941..df923b8 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-21 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * scribo/primitive/link/internal/link_functor_base.hh: Stop
+ neighbor lookup when a separator is found.
+
2011-03-14 Guillaume Lazzara <z(a)lrde.epita.fr>
Fix namespace ambiguities.
diff --git a/scribo/scribo/primitive/link/internal/link_functor_base.hh b/scribo/scribo/primitive/link/internal/link_functor_base.hh
index d214c91..5b4fefa 100644
--- a/scribo/scribo/primitive/link/internal/link_functor_base.hh
+++ b/scribo/scribo/primitive/link/internal/link_functor_base.hh
@@ -232,9 +232,14 @@ namespace scribo
{
(void) start_point;
mln_value(L) v = this->labeled_image_(p);
- bool is_separator = this->components_.separators()(p);
- if (is_separator)
+ // We found that we are passing through a separator. We stop
+ // looking up for a neighbor by returning true.
+ //
+ // Since we don't want to link with a separator,
+ // verify_link_criterion will invalidate this link.
+ //
+ if (this->components_.has_separators() && this->components_.separators()(p))
return true;
return v != literal::zero // Not the background
--
1.5.6.5
---
scribo/ChangeLog | 5 +++++
.../primitive/link/internal/link_functor_base.hh | 9 +++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index db6bc11..78c687b 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-21 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * scribo/primitive/link/internal/link_functor_base.hh: Stop
+ neighbor lookup when a separator is found.
+
2011-03-14 Guillaume Lazzara <z(a)lrde.epita.fr>
Fix namespace ambiguities.
diff --git a/scribo/scribo/primitive/link/internal/link_functor_base.hh b/scribo/scribo/primitive/link/internal/link_functor_base.hh
index d214c91..5b4fefa 100644
--- a/scribo/scribo/primitive/link/internal/link_functor_base.hh
+++ b/scribo/scribo/primitive/link/internal/link_functor_base.hh
@@ -232,9 +232,14 @@ namespace scribo
{
(void) start_point;
mln_value(L) v = this->labeled_image_(p);
- bool is_separator = this->components_.separators()(p);
- if (is_separator)
+ // We found that we are passing through a separator. We stop
+ // looking up for a neighbor by returning true.
+ //
+ // Since we don't want to link with a separator,
+ // verify_link_criterion will invalidate this link.
+ //
+ if (this->components_.has_separators() && this->components_.separators()(p))
return true;
return v != literal::zero // Not the background
--
1.5.6.5
---
scribo/ChangeLog | 5 +++++
.../primitive/link/internal/link_functor_base.hh | 9 +++++++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/scribo/ChangeLog b/scribo/ChangeLog
index db6bc11..78c687b 100644
--- a/scribo/ChangeLog
+++ b/scribo/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-21 Guillaume Lazzara <z(a)lrde.epita.fr>
+
+ * scribo/primitive/link/internal/link_functor_base.hh: Stop
+ neighbor lookup when a separator is found.
+
2011-03-14 Guillaume Lazzara <z(a)lrde.epita.fr>
Fix namespace ambiguities.
diff --git a/scribo/scribo/primitive/link/internal/link_functor_base.hh b/scribo/scribo/primitive/link/internal/link_functor_base.hh
index d214c91..5b4fefa 100644
--- a/scribo/scribo/primitive/link/internal/link_functor_base.hh
+++ b/scribo/scribo/primitive/link/internal/link_functor_base.hh
@@ -232,9 +232,14 @@ namespace scribo
{
(void) start_point;
mln_value(L) v = this->labeled_image_(p);
- bool is_separator = this->components_.separators()(p);
- if (is_separator)
+ // We found that we are passing through a separator. We stop
+ // looking up for a neighbor by returning true.
+ //
+ // Since we don't want to link with a separator,
+ // verify_link_criterion will invalidate this link.
+ //
+ if (this->components_.has_separators() && this->components_.separators()(p))
return true;
return v != literal::zero // Not the background
--
1.5.6.5
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch next-build-test has been updated
via 6c07eb07cb2b526fcc5f6f1e3e9129a909059907 (commit)
from 3c5ade3ef4ade56a212f140ccfaf964f6c045c26 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
6c07eb0 Regen generated files.
-----------------------------------------------------------------------
Summary of changes:
milena/ChangeLog | 7 +++++++
milena/headers.mk | 1 -
milena/tests/unit_test/unit-tests.mk | 2 --
3 files changed, 7 insertions(+), 3 deletions(-)
hooks/post-receive
--
Olena, a generic and efficient image processing platform
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Olena, a generic and efficient image processing platform".
The branch next-build-test has been updated
via 3c5ade3ef4ade56a212f140ccfaf964f6c045c26 (commit)
from 2021de27002717089153ea8bb6e1eb117e329cb8 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
3c5ade3 Fix namespace ambiguities.
-----------------------------------------------------------------------
Summary of changes:
scribo/ChangeLog | 9 +++++++++
scribo/src/debug/show_groups_bboxes.cc | 2 +-
.../src/debug/show_links_bottom_aligned_2angles.cc | 8 +++++---
scribo/src/debug/show_links_top_aligned_2angles.cc | 7 ++++---
4 files changed, 19 insertions(+), 7 deletions(-)
hooks/post-receive
--
Olena, a generic and efficient image processing platform