* tests/core/image/graph_image.cc (main): Actually print the
graph.
Update comments.
---
milena/ChangeLog | 8 ++++++++
milena/tests/core/image/graph_image.cc | 29 ++++++++++++-----------------
2 files changed, 20 insertions(+), 17 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 75774a4..a2d2e4e 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,11 @@
+2009-10-06 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Update tests/core/image/graph_image.
+
+ * tests/core/image/graph_image.cc (main): Actually print the
+ graph.
+ Update comments.
+
2011-06-09 Roland Levillain <roland(a)lrde.epita.fr>
Make Milena's copyright headers uniform.
diff --git a/milena/tests/core/image/graph_image.cc
b/milena/tests/core/image/graph_image.cc
index 05932c5..f27969d 100644
--- a/milena/tests/core/image/graph_image.cc
+++ b/milena/tests/core/image/graph_image.cc
@@ -133,29 +133,24 @@ int main()
box2d bbox = a.to_result();
mln_assertion(bbox == make::box2d(5, 5));
- // Print the image.
- /* FIXME: Unfortunately, displaying graph images is not easy right
- now(2008-02-05). We could use
+ // Print the image.
+ /* FIXME: Unfortunately, displaying graph images is not easy right
+ now (2008-02-05). We could use
- debug::println(ima);
+ debug::println(ima);
- but there's not specialization working for graph_image; the one
- selected by the compiler is based on a 2-D bbox, and expects the
- interface of graph_image to work with points(not psites).
- Moreover, this implementation only shows *values*, not the graph
- itslef.
+ but there's not specialization working for graph_image; the one
+ selected by the compiler is based on a 2-D bbox, and expects
+ the interface of graph_image to work with points (not psites).
- An alternative is to use debug::graph,
- but it doesn't show the values, only the vertices and edges of the
- graph.
+ An alternative is to use debug::draw_graph, but it doesn't show
+ the values, only the vertices and edges of the graph.
- The current solution is a mix between debug::graph and hand-made
- iterations. */
+ The current solution is a mix between debug::draw_graph and
+ hand-made iterations. */
image2d<int> ima_rep(bbox);
-
- // We use the value 9 in debug::graph to represent edges to distinguish it
- // from vertices holding a value of 1.
debug::draw_graph(ima_rep, pv, 1, 9);
+ debug::println(ima_rep);
}
/*------------.
--
1.7.2.5
Show replies by date