Commit befb6e64 authored by Guillaume Lazzara's avatar Guillaume Lazzara
Browse files

Use extract::* routines in tutorial examples.

	* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-10.ppm
	* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-7.pgm
	* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-7.ppm
	* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-8.pgm
	* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-8.ppm
	* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-9.pgm
	* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-9.ppm:
	new reference files.

	* milena/doc/tutorial/samples/tuto4_genericity_and_algorithms.cc:
	uncomment code using extract::* routines.

	* milena/doc/tutorial/tutorial.tex: include code and images related to
	extract::* routines. More explanations need to be written.

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3193 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 3eba104e
2009-01-23 Guillaume Lazzara <z@lrde.epita.fr>
Use extract::* routines in tutorial examples.
* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-10.ppm
* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-7.pgm
* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-7.ppm
* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-8.pgm
* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-8.ppm
* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-9.pgm
* milena/doc/tutorial/figures/tuto4_genericity_and_algorithms-9.ppm:
new reference files.
* milena/doc/tutorial/samples/tuto4_genericity_and_algorithms.cc:
uncomment code using extract::* routines.
* milena/doc/tutorial/tutorial.tex: include code and images related to
extract::* routines. More explanations need to be written.
2009-01-23 Guillaume Lazzara <z@lrde.epita.fr>
 
Introduce literal::min and literal::max.
P5
# Generated by Milena 1.0 http://olena.lrde.epita.fr
# EPITA Research and Development Laboratory (LRDE)
64 64
65535
\ No newline at end of file
P5
# Generated by Milena 1.0 http://olena.lrde.epita.fr
# EPITA Research and Development Laboratory (LRDE)
1 4
65535
UzPղ PqP
\ No newline at end of file
P5
# Generated by Milena 1.0 http://olena.lrde.epita.fr
# EPITA Research and Development Laboratory (LRDE)
1 4
65535
UzPղ PqP
\ No newline at end of file
......@@ -89,11 +89,13 @@ int main()
/*
lena = duplicate(lena_bak);
// \{
data::fill(fun::green(lena), literal::max);
data::fill(extract::green(lena).rw(), literal::max);
// \}
//FIXME: we would like to save the green component in rgb8.
doc::pgmsave(extract::green(lena), "tuto4_genericity_and_algorithms");
doc::ppmsave(lena, "tuto4_genericity_and_algorithms");
......@@ -101,10 +103,10 @@ int main()
lena = duplicate(lena_bak);
// \{
mln_VAR(object, pw::value(label) == pw::cst(3));
data::fill((fun::green(lena) | object).rw(), literal::max);
mln_VAR(object, pw::value(label) == pw::cst(3u));
data::fill((extract::green(lena).rw() | object).rw(), literal::max);
// \}
doc::pgmsave(object, "tuto4_genericity_and_algorithms");
doc::ppmsave(label, "tuto4_genericity_and_algorithms");
*/
doc::pgmsave(lena | object, "tuto4_genericity_and_algorithms");
doc::ppmsave(lena, "tuto4_genericity_and_algorithms");
}
\documentclass{report}
\usepackage{hevea}
%\usepackage{hevea}
\usepackage{graphicx}
\usepackage{listings}
\usepackage{makeidx}
......@@ -683,13 +685,46 @@ value in \var{label} is equal to 16'.
\end{center}
%**************************
\doxysection{tuto4component}{Image component restricted to a domain}
\doxycode[11]{tuto4_genericity_and_algorithms}
\begin{center}
\begin{tabular}{c c c c}
\doxyimg{small-enlarged} &
% \doxyfigure[7]{tuto4_genericity_and_algorithms}{3cm} &
~\huge{\rightarrow}~ &
\doxyfigure[8]{tuto4_genericity_and_algorithms}{3cm} \\
\multicolumn{4}{c}{Fill with green a region of interest defined by its
label.} \\
\end{tabular}
\end{center}
\doxycode[12]{tuto4_genericity_and_algorithms}
\begin{center}
\begin{tabular}{c c c c}
\doxyimg{small-enlarged} &
% \doxyfigure[9]{tuto4_genericity_and_algorithms}{3cm} &
~\huge{\rightarrow}~ &
\doxyfigure[10]{tuto4_genericity_and_algorithms}{3cm} \\
\multicolumn{4}{c}{Fill with green a region of interest defined by its
label.} \\
\end{tabular}
\end{center}
\vspace{2cm}
\begin{center}
\tutotoc{tuto3}{tuto5}
\end{center}
%====================================
%====================================%
%Ugly workaround to avoid missing chapter references in doxygen.
\doxychapter{1}{}
\doxychapter{tuto5}{Step 5: Conversion between image values}
......@@ -1317,10 +1352,6 @@ Return Type & Name & Arguments & Const & Comments \\ \hline
I::pvset & domain & - & X - & \\ \hline
const Value\& & operator() & const point\& p & X & Used for reading. \\ \hline
Value\& & operator() & const point\& p & - & Used for writing. \\ \hline
const P\& & at & unsigned x,
unsigned y & X & Used for reading. \\ \hline
P\& & at & unsigned x,
unsigned y & - & Used for writing. \\ \hline
bool & has & const Point\& p & X & \\ \hline
bool & has\_data & - & X & Returns true if the domain is defined. \\ \hline
site\_id & id & - & X & Return the Id of the underlying shared data. \\ \hline
......
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