Commit b599cccf authored by Roland Levillain's avatar Roland Levillain
Browse files

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.
parent 4ee83123
2010-03-20 Roland Levillain <roland@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@lrde.epita.fr>
 
Typo in doc/.
......@@ -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");
// \}
}
......@@ -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");
// \{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment