Commit 529d8a96 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Fix step2 in tutorial.

	* doc/tutorial/figures/tuto1_first_image-1.pbm,
	* doc/tutorial/outputs/tuto1_first_image.txt: remove. Not needed
	anymore.

	* doc/tutorial/samples/tuto2_first_image.cc: update image saving.

	* doc/tutorial/tutorial.tex: include the right files.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3246 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 3a52f9fe
2009-02-03 Guillaume Lazzara <z@lrde.epita.fr>
Fix step2 in tutorial.
* doc/tutorial/figures/tuto1_first_image-1.pbm,
* doc/tutorial/outputs/tuto1_first_image.txt: remove. Not needed
anymore.
* doc/tutorial/samples/tuto2_first_image.cc: update image saving.
* doc/tutorial/tutorial.tex: include the right files.
2009-02-02 Guillaume Lazzara <z@lrde.epita.fr>
Introduce subject_point_impl.
P4
# Generated by Milena 1.0 http://olena.lrde.epita.fr
# EPITA Research and Development Laboratory (LRDE)
21 13
ث
\ No newline at end of file
- - - - - - - - - - - - - - - - - - - - -
- | - | - | | | - | - - - | - - - - | - -
- | - | - | - - - | - - - | - - - | - | -
- | | | - | | | - | - - - | - - - | - | -
- | - | - | - - - | - - - | - - - | - | -
- | - | - | | | - | | | - | | | - - | - -
- - - - - - - - - - - - - - - - - - - - -
- | - | - - | - - | | - - | - - - | | - -
- | - | - | - | - | - | - | - - - | - | -
- | - | - | - | - | | - - | - - - | - | -
- | | | - | - | - | - | - | - - - | - | -
- | - | - - | - - | - | - | | | - | | - -
- - - - - - - - - - - - - - - - - - - - -
#include <mln/essential/2d.hh>
#include <doc/tutorial/tools/sample_utils.hh>
int main()
{
using namespace mln;
......@@ -30,6 +31,6 @@ int main()
// \}
// \{
io::pbm::save(ima, "../figures/tuto1_first_image-1.pbm");
doc::pbmsave(ima, "tuto2_first_image");
// \}
}
......@@ -420,27 +420,27 @@ After this step you should know how to:
First, declare an array of bool which will represent the image grid. Each each
cell in this grid is a site and each cell contains a value, \val{true} or
\val{false}.
\doxycode[1]{tuto1_first_image}
\doxycode[1]{tuto2_first_image}
From that grid, simply call make::image to get an image initialized with that
data.
\doxycode[2]{tuto1_first_image}
\doxycode[2]{tuto2_first_image}
This way of initializing an image is the most common one. However, there are
several other ways described in section \doxyref{imacreate}.
To be sure that the data is correctly initialized, it is possible to display the
image in the standard output using debug::println.
\doxycode[3]{tuto1_first_image}
\doxycode[3]{tuto2_first_image}
Output:
\doxyoutput{tuto1_first_image}
\doxyoutput{tuto2_first_image}
Finally, you may want to save the image. Since we use bool as image value, the
PBM format is the best choice. Therefore, we use io::pbm::save.
\doxycode[4]{tuto1_first_image}
\doxycode[4]{tuto2_first_image}
The output image looks like the following:
\doxyfigure{tuto1_first_image}{3cm}
\doxyfigure{tuto2_first_image}{3cm}
In this first step we used a boolean image. Many other value types are available
though. A more detailed description can be found in section
......
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