* doc/examples/ima2d-rot.cc (main): Pass a literal string as
second argument to doc::ppmsave to help gen-figures-mk.
* doc/examples/labeling-compute.cc (main): Have calls to
doc::ppmsave fit on a single line to help gen-figures-mk.
---
milena/ChangeLog | 9 +++++++++
milena/doc/examples/ima2d-rot.cc | 7 ++-----
milena/doc/examples/labeling-compute.cc | 3 +--
3 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index b853e0b..3cccfee 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,12 @@
+2010-03-20 Roland Levillain <roland(a)lrde.epita.fr>
+
+ Prepare doc examples for the automated generation of figures.mk.
+
+ * doc/examples/ima2d-rot.cc (main): Pass a literal string as
+ second argument to doc::ppmsave to help gen-figures-mk.
+ * doc/examples/labeling-compute.cc (main): Have calls to
+ doc::ppmsave fit on a single line to help gen-figures-mk.
+
2010-03-18 Roland Levillain <roland(a)lrde.epita.fr>
Typo in doc/.
diff --git a/milena/doc/examples/ima2d-rot.cc b/milena/doc/examples/ima2d-rot.cc
index 18e3663..5f7e277 100644
--- a/milena/doc/examples/ima2d-rot.cc
+++ b/milena/doc/examples/ima2d-rot.cc
@@ -23,9 +23,6 @@ int main()
{
using namespace mln;
- const char *IMA1_PPM = "ima2d-rot";
- const char *IMA2_PPM = "ima2d-rot";
-
// \{
border::thickness = 30;
@@ -47,7 +44,7 @@ int main()
// Draw the domain bounding box
draw::box(ima1, geom::bbox(ima1_), literal::red);
// Save the image, including its border.
- doc::ppmsave(ima1 | extended_domain, IMA1_PPM);
+ doc::ppmsave(ima1 | extended_domain, "ima2d-rot");
// Define and apply a point-wise rotation
fun::x2x::rotation<2,float> rot1(0.5, literal::zero);
@@ -60,7 +57,7 @@ int main()
}
draw::box(ima2, ima2.bbox(), literal::red);
- doc::ppmsave(extended_to(ima2, extended_domain), IMA2_PPM);
+ doc::ppmsave(extended_to(ima2, extended_domain), "ima2d-rot");
// \}
}
diff --git a/milena/doc/examples/labeling-compute.cc
b/milena/doc/examples/labeling-compute.cc
index 87dcd5c..493dc3f 100644
--- a/milena/doc/examples/labeling-compute.cc
+++ b/milena/doc/examples/labeling-compute.cc
@@ -39,8 +39,7 @@ int main()
label_8 nlabels;
image2d<label_8> lbl = labeling::blobs(ima, c4(), nlabels);
// \}
- doc::ppmsave(labeling::colorize(rgb8(), lbl, nlabels),
- "labeling-compute");
+ doc::ppmsave(labeling::colorize(rgb8(), lbl, nlabels), "labeling-compute");
// \{
--
1.5.6.5
Show replies by date