* theo/esiee/laurent/ismm09/cplx2d.hh (mln::cplx2d::p2e):
New function.
---
milena/sandbox/ChangeLog | 7 +++++++
milena/sandbox/theo/esiee/laurent/ismm09/cplx2d.hh | 6 ++++++
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/milena/sandbox/ChangeLog b/milena/sandbox/ChangeLog
index 154f2d3..6306d6b 100644
--- a/milena/sandbox/ChangeLog
+++ b/milena/sandbox/ChangeLog
@@ -1,5 +1,12 @@
2009-09-18 Roland Levillain <roland(a)lrde.epita.fr>
+ Implement pixel-to-edges adjacency in mln::cplx2d.
+
+ * theo/esiee/laurent/ismm09/cplx2d.hh (mln::cplx2d::p2e):
+ New function.
+
+2009-09-18 Roland Levillain <roland(a)lrde.epita.fr>
+
Improve theo/esiee/laurent/ismm09/cplx2d.hh.
* theo/esiee/laurent/ismm09/cplx2d.hh: Add header guards.
diff --git a/milena/sandbox/theo/esiee/laurent/ismm09/cplx2d.hh
b/milena/sandbox/theo/esiee/laurent/ismm09/cplx2d.hh
index 0d9a3ce..beae45b 100644
--- a/milena/sandbox/theo/esiee/laurent/ismm09/cplx2d.hh
+++ b/milena/sandbox/theo/esiee/laurent/ismm09/cplx2d.hh
@@ -50,6 +50,12 @@ namespace mln
return p.row() % 2;
}
+ // Pixel to neighboring edges.
+ const neighb2d& p2e()
+ {
+ return c4();
+ }
+
// Edge to (the couple of) pixels.
const dbl_neighb2d& e2p()
{
--
1.6.4.2