Olena-patches
Threads by month
- ----- 2025 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- 9625 discussions
* doc/doxyfuns.sty: add new functions.
* doc/examples/tuto3/colorize.cc: change saved file names.
* doc/figures/colorize-1.pgm,
* doc/figures/colorize-2.ppm: move...
* doc/figures/tuto3_colorize-1.pgm,
* doc/figures/tuto3_colorize-2.ppm:... here.
* doc/tutorial/tutorial.tex: fix typos and invalid figure includes.
---
milena/ChangeLog | 16 ++
milena/doc/doxyfuns.sty | 14 ++
milena/doc/examples/tuto3/colorize.cc | 4 +-
.../{colorize-1.pgm => tuto3_colorize-1.pgm} | Bin 141 -> 141 bytes
.../{colorize-2.ppm => tuto3_colorize-2.ppm} | Bin 191 -> 191 bytes
milena/doc/tutorial/tutorial.tex | 235 ++++++++++++--------
6 files changed, 178 insertions(+), 91 deletions(-)
rename milena/doc/figures/{colorize-1.pgm => tuto3_colorize-1.pgm} (100%)
rename milena/doc/figures/{colorize-2.ppm => tuto3_colorize-2.ppm} (100%)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 538f285..a7caba7 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,21 @@
2009-05-29 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+ Fix tutorial typos and issues.
+
+ * doc/doxyfuns.sty: add new functions.
+
+ * doc/examples/tuto3/colorize.cc: change saved file names.
+
+ * doc/figures/colorize-1.pgm,
+ * doc/figures/colorize-2.ppm: move...
+
+ * doc/figures/tuto3_colorize-1.pgm,
+ * doc/figures/tuto3_colorize-2.ppm:... here.
+
+ * doc/tutorial/tutorial.tex: fix typos and invalid figure includes.
+
+2009-05-29 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+
Improve pretty check.
* tests/tools/pretty_check.sh: make the C++ compiler depend on
diff --git a/milena/doc/doxyfuns.sty b/milena/doc/doxyfuns.sty
index a5fd47b..6abd049 100644
--- a/milena/doc/doxyfuns.sty
+++ b/milena/doc/doxyfuns.sty
@@ -142,6 +142,18 @@
\end{center}%
}
+\newcommand{\tutotocnext}[1]{%
+\begin{center}%
+ Go to \doxyref{#1}~ \longrightarrow%
+\end{center}%
+}
+
+\newcommand{\tutotocprev}[1]{%
+\begin{center}%
+ \longleftarrow ~Go to \doxyref{#1} \hspace{1cm}%
+\end{center}%
+}
+
\newenvironment{doxymath}
{
%\backslash endhtmlonly%
@@ -181,6 +193,8 @@ $$
\renewcommand{\doxyref}[1]{\ref{#1}}
\renewcommand{\doxysee}[1]{\ref{#1}}
\renewcommand{\tutotoc}[2]{}
+\renewcommand{\tutotocnext}[1]{}
+\renewcommand{\tutotocprev}[1]{}
\renewenvironment{doxymath}
{
$$
diff --git a/milena/doc/examples/tuto3/colorize.cc b/milena/doc/examples/tuto3/colorize.cc
index f611908..b74a192 100644
--- a/milena/doc/examples/tuto3/colorize.cc
+++ b/milena/doc/examples/tuto3/colorize.cc
@@ -20,6 +20,6 @@ int main()
image2d<rgb8> ima_color = labeling::colorize(rgb8(), ima, 230);
// \}
- doc::pgmsave(ima, "colorize");
- doc::ppmsave(ima_color, "colorize");
+ doc::pgmsave(ima, "tuto3_colorize");
+ doc::ppmsave(ima_color, "tuto3_colorize");
}
diff --git a/milena/doc/figures/colorize-1.pgm b/milena/doc/figures/tuto3_colorize-1.pgm
similarity index 100%
rename from milena/doc/figures/colorize-1.pgm
rename to milena/doc/figures/tuto3_colorize-1.pgm
diff --git a/milena/doc/figures/colorize-2.ppm b/milena/doc/figures/tuto3_colorize-2.ppm
similarity index 100%
rename from milena/doc/figures/colorize-2.ppm
rename to milena/doc/figures/tuto3_colorize-2.ppm
diff --git a/milena/doc/tutorial/tutorial.tex b/milena/doc/tutorial/tutorial.tex
index 9905e57..1a383e2 100644
--- a/milena/doc/tutorial/tutorial.tex
+++ b/milena/doc/tutorial/tutorial.tex
@@ -127,13 +127,13 @@ out and commented by the documentation.
Taking a look at the test suite is also a good idea. The tests usually focus on
a single functionality and handle several use cases which may overlap your needs.
-The test suite is located at \hpath{milena/tests} (FIXME: ref?).
+The test suite is located in \hpath{milena/tests} (FIXME: ref?).
-Still not enough information? More information about all the functions is
+Still not enough information? More information about all the routines is
available in the User HTML documentation (FIXME:ref).
It mainly targets \textit{designers} and \textit{providers}.
The latter may also be interested by the Developer HTML documentation
-(FIXME:ref).
+(not available yet).
@@ -178,7 +178,7 @@ First, be sure that SVN is already installed on your system.
Open a terminal and type:
\begin{verbatim}
-\$ svn --version --quiet
+$ svn --version --quiet
1.4.6
\end{verbatim}
@@ -187,34 +187,42 @@ then you need to install SVN.
Usually, systems providing packages reference SVN's package as 'subversion'.
-Once you have SVN installed, go to the directory where you woudl like to
+To install SVN on Debian or Ubuntu, run:
+
+\begin{verbatim}
+$ sudo apt-get install subversion
+\end{verbatim}
+
+For other distributions, please refer to the user documentation of your system.
+
+Once you have SVN installed, go to the directory where you would like to
download Olena and create a new directory.
\begin{verbatim}
-\$ cd $HOME
-\$ mkdir olena
-\$ cd olena
+$ cd $HOME
+$ mkdir olena
+$ cd olena
\end{verbatim}
Then 'checkout' (download) the repository with the following command.
\begin{verbatim}
-\$ svn co https://svn.lrde.epita.fr/svn/oln/trunk
+$ svn co https://svn.lrde.epita.fr/svn/oln/trunk
\end{verbatim}
Enter the 'trunk' directory.
\begin{verbatim}
-\$ cd trunk
+$ cd trunk
\end{verbatim}
You are now ready to configure the directory and install Milena as described
in section \ref{tuto2}.
We invite you to take a look at the description of the directory structure
-(\ref{tuto1dirstruct}.
+(section \ref{tuto1dirstruct}).
If you encounter any issues in the installation process or if you have any
-question, do not forget to join the mailing lists (\ref{tuto1mailinglists}
-and/or use the other documentations ressources (\ref{tuto1documentation}).
+question, do not forget to join the mailing lists (section \ref{tuto1mailinglists})
+and/or use the other documentations ressources (section ref{tuto1documentation}).
@@ -232,7 +240,7 @@ Milena's packages can be downloaded from:
On this page you will find the latest and past releases.
Currently, we provide only '.tar.gz' and 'tar.bz2' archives.
-Once download, you just need to uncompress the archive.
+Once downloaded, you just need to uncompress the archive.
For the '.tar.gz' archive:
\begin{verbatim}
@@ -253,10 +261,11 @@ $ cd olena-1.0
You are now ready to configure the directory and install Milena as described
in section \ref{tuto2}.
We invite you to take a look at the description of the directory structure
-(\ref{tuto1dirstruct}.
+(section \ref{tuto1dirstruct}).
If you encounter any issues in the installation process or if you have any
-question, do not forget to join the mailing lists (\ref{tuto1mailinglists}
-and/or use the other documentations ressources (\ref{tuto1documentation}).
+question, do not forget to join the mailing lists (section
+\ref{tuto1mailinglists}) and/or use the other documentations ressources
+(section \ref{tuto1documentation})).
@@ -299,6 +308,7 @@ you finding what you need, you will find a description of all these
subdirectories.
+\vspace{0.5cm}
List of \hpath{milena}'s subdirectories:
\begin{itemize}
@@ -324,7 +334,7 @@ List of \hpath{milena}'s subdirectories:
\end{itemize}
-
+\vspace{0.5cm}
List of \hpath{mln}'s subdirectories:
\begin{itemize}
\item \dir{accu} --- Set of Accumulators.
@@ -337,21 +347,21 @@ List of \hpath{mln}'s subdirectories:
\item \dir{convert} --- Automatic conversion mechanism.
\item \dir{core} --- Core of the library. Here you can find the image types,
the site set types and basic concepts.
- \item \dir{data} --- Routine that modify image data.
+ \item \dir{data} --- Routines that modify image data.
\item \dir{debug} --- Debug related routines.
\item \dir{display} --- Display images on the screen.
\item \dir{draw} --- Draw geometric objects in an image.
\item \dir{essential} --- Set of essential headers for 1,2,3-D manipulations.
\item \dir{estim} --- Compute data on image values.
\item \dir{extension} --- Image extension manipulation.
- \item \dir{extract} --- FIXME: extract will be removed and replaced by thru().
+% \item \dir{extract} --- FIXME: extract will be removed and replaced by thru().
\item \dir{fun} --- Set of functions applying on sites, values, \ldots
\item \dir{geom} --- Functions related to image geometry.
\item \dir{graph} --- Graph related routines.
\item \dir{histo} --- Histogram related functions.
\item \dir{io} --- I/O related routines.
\item \dir{labeling} --- Labeling related routines.
- \item \dir{level} --- Point-wise operators on levels.
+% \item \dir{level} --- Point-wise operators on levels.
\item \dir{linear} --- Linear operators.
\item \dir{literal} --- Generic image values such as zero, black, white \ldots
\item \dir{logical} --- Logical operators.
@@ -360,7 +370,7 @@ List of \hpath{mln}'s subdirectories:
\item \dir{metal} --- Metalic macros/structures. Static library helping
developing doing static tests.
\item \dir{morpho} --- Mathematical morphology.
- \item \dir{norm} --- Norm computation
+ \item \dir{norm} --- Norm computation.
\item \dir{opt} --- Optional routines. Routines which may work on a
specific image type only.
\item \dir{pw} --- Point-wise image related routines.
@@ -390,7 +400,7 @@ List of \hpath{doc}'s subdirectories:
\item \dir{tutorial} --- Tutorial sources.
\item \dir{white\_paper} --- White paper sources.
-\item \dir{technical} --- Technical documentation. (DEPRECATED)
+%\item \dir{technical} --- Technical documentation. (DEPRECATED)
\item \dir{ref\_guide} --- Reference guide sources.
\item \dir{figures} --- Reference figures for documentation generation.
\item \dir{outputs} --- Reference outputs for documentation examples.
@@ -406,14 +416,14 @@ List of \hpath{doc}'s subdirectories:
This tutorial is not the only documentation of Milena. Other documents are available:
\begin{itemize}
- \item \dir{White paper} --- a small document of few pages presenting the key
+ \item \dir{White paper} --- A small document of few pages presenting the key
features of the library. It intents to give a big picture of the library.
- \item \dir{Quick tour} --- it aims giving an overview of Milena's possibilities.
+ \item \dir{Quick tour} --- It aims at giving an overview of Milena's possibilities.
It does not only give the concepts but illustrate them with small sample
codes.
- \item \dir{Quick reference guide} --- Present in details all the main
+ \item \dir{Quick reference guide} --- Presents in details all the main
functionalities of Milena.
Hints and full examples are also provided. The sample codes are commented
and each concept in the library is detailed. This is the reference document for any
@@ -440,8 +450,8 @@ for new contributors.
\item If you are a user, please send us feedback about the library.
Did you find what you wanted? Do you miss something?
- \item Please report bugs and defect in the API. Mailing lists are the best
- way for reporting that.
+ \item Please report bugs and defects in the API. Mailing lists are the best
+ way for reporting that (section \ref{tuto1mailinglists}).
\item Developers, if you write cool open source programs or algorithms with Milena,
send them to us. We may ship your code with Olena and/or add it to
@@ -460,7 +470,7 @@ for new contributors.
\doxysection{tuto1projectstatus}{Project status}
If you want to stay tuned to Milena's development, the best way is probably
-the mailing-lists (\ref{tuto1mailinglists}).
+the mailing-lists (section \ref{tuto1mailinglists}).
There are other ways to get to know what is the status of the project.
@@ -476,7 +486,7 @@ There are other ways to get to know what is the status of the project.
are compiled and run. The buildfarm can show you whether it is safe
to update your svn copy of Milena or not\ldots
-\item Test failures
+\item Test failures \\
\href{http://www.lrde.epita.fr/dload/olena/test-failures-daily.html}{http://www.lrde.epita.fr/dload/olena/test-failures-daily.html} \\
Through this page, you can see exactly which tests do not compile or pass.
This page is updated every night.
@@ -523,6 +533,10 @@ If you want to reach us directly, you can contact one of the following people:
+\vspace{2cm}
+\begin{center}
+ \tutotocnext{tuto2}
+\end{center}
@@ -606,9 +620,9 @@ We are now about to configure the build directory. This process will create
the necessary files to compile documentation, examples and tools and prepare the
installation.
-\textbf{Important Note}: the Install path prefix must be chosen at this step.
+\textbf{Important Note}: the installation path prefix must be chosen at this step.
By default, Milena will be installed in /usr/local but you may like to install
-it elsewhere. To do so, pass the option \textit{--prefix=/installation/path/prefix}
+it elsewhere. To do so, pass the option \textit{-{}-prefix=/installation/path/prefix}
to the configure script (see below). Replace '/installation/path/prefix' with the
wanted installation path prefix.
@@ -630,6 +644,13 @@ config.status: executing depfiles commands
$
\end{verbatim}
+And if you type the following command, a '0' is printed out.
+\begin{verbatim}
+$ echo $?
+0
+$
+\end{verbatim}
+
The build directory is now configured, the library can be installed.
@@ -650,6 +671,7 @@ perform the installation. Then, you may type:
\begin{verbatim}
$ sudo make install
\end{verbatim}
+You will be prompted for the administrator password.
Otherwise, if you set the install path prefix to a directory own by your
user, simply type:
@@ -659,7 +681,7 @@ $ make install
When the installation is finished, you are done. Milena is installed on your
system. But maybe you would like to build the examples? This is described
-in the next section \ref{tuto2optionalcomp}.
+in section \ref{tuto2optionalcomp}.
A description of the installation content is also available in section
\ref{tuto2installcontent}.
@@ -725,6 +747,8 @@ $ make
\doxysubsection{tuto2tests}{Tests}
The test suite used for Milena's development is shipped with the library.
+It is usually useless for simple users and tends to be used by developers
+extending the library.
In order to build and run it, just do the following:
\begin{verbatim}
@@ -741,7 +765,7 @@ Running the test suite is memory and CPU consumming and will take a while.
Once installed, Milena's files are located in the installed path prefix
you passed to the configure script or in the default path /usr/local.
-In the installed path prefix, Milena's files are located in:
+In the installation path prefix, Milena's files are located in:
\begin{itemize}
\item include/mln/ --- The library. All the headers are located here.
@@ -749,6 +773,10 @@ In the installed path prefix, Milena's files are located in:
example programs.
\end{itemize}
+\vspace{2cm}
+\begin{center}
+ \tutotoc{tuto1}{tuto3}
+\end{center}
%====================================
@@ -762,7 +790,7 @@ take benefit of it, let's see what genericity really means for us and how it is
illustrated in the library.
A \B{Generic algorithm} is written once, without duplicates, and works on
-different kind of input.
+different kinds of input.
Let's have a look to a small example. In any image processing library, we may be
interested in a small routine to fill an image with data. A common
@@ -781,7 +809,7 @@ So, what would happen if we would like to use it for 3D images, use rgb8 as
value or even work on a region of interest?
This implementation would require to be reimplemented and the user would have to
-deal with the various version of the fill routine. For the developer, it is error
+deal with the various versions of the fill routine. For the developer, it is error
prone, redundant and hard to maintain. For the user, it is confusing and forces
to always think about what he is manipulating.
According to our definition, this algorithm is clearly \B{not} generic.
@@ -794,7 +822,7 @@ With Milena, the previous example would be written as follow:
\doxycode{fill}
In this version, the routine can take any kind of image types as arguments. So
-it is for the values: The expected type depends on the value used in the
+it is for the values: the expected type depends on the value used in the
given image.
The \code{for\_all} loop is also significantly generic to support any kind of
images since the iterator guarantees it will pass through every sites.
@@ -803,13 +831,13 @@ This code is more generic and remains really close to the common description of
the generic algorithm.
As a result, with this algorithm we can fill an image,...
-\doxycode[2]{fill}
-\doxyfigure[1]{fill}{3cm}
-
-... Or fill only a region of interest (a set of points).
\doxycode[3]{fill}
\doxyfigure[2]{fill}{3cm}
+... Or fill only a region of interest (a set of points).
+\doxycode[2]{fill}
+\doxyfigure[1]{fill}{3cm}
+
%**************************
@@ -829,8 +857,8 @@ Let's see the different parts of the algorithm.
The prototype is restrictive enough, readable and still generic.
We use concepts to statically check that the generic type passed as
parameter is what the routine expects. The ``exact'' image type is \type{I}. For
-instance an image of type \type{image2d} inherits from \type{Image<image2d>}. So
-an \type{image2d} is an \type{Image<I>}.
+instance an image of type \type{image2d} inherits from \type{Image$<$image2d$>$}. So
+an \type{image2d} is an \type{Image$<$I$>$}.
Note that the return type of this function is defined by a macro.
\code{mln\_concrete} is a macro hidding tricky mechanisms (traits) used in Milena.
The important point to remember is that a generic function should not return
@@ -843,7 +871,7 @@ will be detailled in section \ref{tuto3debughints}.
\doxycode[4]{tuto3_first_routine}
-Since the function take some arguments thanks their concept, these object cannot
+Since the function take some arguments as concept objects, these object cannot
be used as such. Indeed, concepts are empty shells only used for dispatching and
concept checking, that's the reason why they are parameterized with their exact
type. The exact type let us know what is the real type of the object. To get an
@@ -853,30 +881,32 @@ debug.
\doxycode[5]{tuto3_first_routine}
-In this portion of code, the image is labeled and the number of site per label
+In this portion of code, the image is labeled and the number of sites per label
is computed. This code does not depend on the image type at all. Again, a macro
-\code{mln\_ch\_value} (``mln change value'') helps us. \code{labeling::blobs} is a routine returning an
-image of the same kind as the input image but with a different value.
-\code{mln\_ch\_value} enables the possibility of doing that, whatever the image type
-\type{I} and whatever its value type, it returns the same image type with a
-different value type.
+\code{mln\_ch\_value} (``mln change value'') helps us. \code{labeling::blobs} is
+a routine returning an image of the same kind as the input image but with a
+different value. \code{mln\_ch\_value} enables the possibility of doing that,
+whatever the image type \type{I} and whatever its value type, it returns the
+same image type with a different value type.
\doxycode[6]{tuto3_first_routine}
The output image is declared here. Like any variable, it must be initialized at
some point. To do so, \code{initialize()} is provided. It is a generic routine
-which can initialize the geometry any kind of image with another image of the
+which can initialize the geometry of any image kind with another image of the
same kind.
After this call, \var{output} has a valid domain and is valid. It can be used in
an algorithm, here \code{data::fill}, to have its values modified.
Note that the value passed to \code{data::fill} is also generic. The library
includes few generic common values from which any value type can convert to.
+\code{literal::one} is one of them. It is a generic one value which can convert
+to every value type in the library.
\doxycode[7]{tuto3_first_routine}
In this part, every region from the labeled image, of which cardinality is lower
than 10 sites, is set to \val{literal::zero} in \var{output}.
-Once again, a generic value is used in order to avoid a constraints on the image
+Once again, a generic value is used in order to avoid constraints on the image
value type.
@@ -899,7 +929,7 @@ If Milena has been installed in a custom directory, e.g. not /usr/include or
/usr/local/include, the path to the library headers must be passed to the
compiler.
-With g++ and MinGW, the option is \B{-I<path>}.
+With g++ and MinGW, the option is \B{-I$<$path$>$}.
\begin{verbatim}
$ g++ -Ipath/to/mln my_program.cc
\end{verbatim}
@@ -948,8 +978,8 @@ their impact on the compilation and execution time.
\doxysubsubsection{tuto3compoptimother}{Other compilers}
-Currently, have not tested different optimization flags with other compilers. If
-you did, please report us your results.
+Currently, we have not tested different optimization flags with other
+compilers. If you did, please report us your results.
@@ -959,15 +989,15 @@ you did, please report us your results.
\doxysubsection{tuto3gdbhints}{Using assertions and GDB}
As said above, Milena already includes a lot of post and pre conditions.
Thus, if you made a mistake in your code there is a high probability that it
-will be detected at run time. If an assertion fail, we advice you to compile
+will be detected at run time. If an assertion fails, we advice you to compile
with the following options:
\begin{verbatim}
$ g++ -ggdb -Ipath/to/mln my_program.cc
\end{verbatim}
-Note that you \B{MUST NOT} compile \var{-DNDEBUG} other the assertions will be
-deactivated.
+Note that you \B{MUST NOT} compile with \var{-DNDEBUG} since assertions will be
+disabled.
Once compiled, restart the program with GDB.
\begin{verbatim}
@@ -1005,7 +1035,7 @@ are printed out in the backtrace as you can see in the following example:
\doxysubsection{tuto3traces}{Traces}
Sometimes, compiling for GDB without optimization flags and with debug
assertions enabled could lead to execution time dramaticaly high.
-If the function parameter values are not necessary for debbuging,
+If the function parameter values are not necessary for debugging,
a good alternative is the trace system provided in Milena.
Each time a routine is called, a trace log is written.
@@ -1072,17 +1102,28 @@ Milena also provides a lot of debug tools. Here is a small list of the tools:
\doxyfigure[2]{tuto3_colorize}{3cm} \\
\end{tabular}
\end{center}
-\end{itemize}
-A very simple processing chain; the target is the end-user!
+ \item mln::labeling::superpose, Superpose two images.
+
+ \item mln::labeling::filename, easily format debug file names.
+
+\end{itemize}
+
-OR (?)
-this chain plus a sample tiny generic algorithm
+%A very simple processing chain; the target is the end-user!
+%
+%OR (?)
+%this chain plus a sample tiny generic algorithm
+%
+%** misc
+%/!\ step by step...
+%compilation time w.r.t compilation options (O1, DNDEBUG).
-** misc
-/!\ step by step...
-compilation time w.r.t compilation options (O1, DNDEBUG).
+\vspace{2cm}
+\begin{center}
+ \tutotoc{tuto2}{tuto4}
+\end{center}
%====================================
@@ -1097,7 +1138,7 @@ then the image itself which stores the values.
\doxysection{tuto4images}{Sites}
A pixel is an element having both information, localization and
-pixels. In Milena, we make a difference between a pixel, a pixel value and a pixel
+value. In Milena, we make a difference between a pixel, a pixel value and a pixel
location. Thus, in order to refer to a pixel location, we have the site concept.
A site can be any kind of localization element.
For instance, in an image defined on a 2D regular grid, it is a 2D point with
@@ -1105,7 +1146,7 @@ For instance, in an image defined on a 2D regular grid, it is a 2D point with
\doxycode{tuto4_point2d}
-The site type in an image is defined by its underlying site set.
+The image site type is defined by its underlying site set.
@@ -1119,6 +1160,9 @@ Site sets can used as standalone containers.
A list of available site sets is available in section \ref{siteset}.
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% MOVE PARTS OF THE NEXT CHAPTERS RIGHT HERE. %
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%--------------------------
\doxysubsection{tuto4createsiteset}{Creating a site set}
@@ -1154,7 +1198,7 @@ In this section, we will detail how to create common images.
%====================================
-\doxychapter{tuto4}{Step 4: Load and save images}
+\doxychapter{tuto5}{Load and save images}
After this step you shoud know how to:
\begin{itemize}
@@ -1188,12 +1232,12 @@ The supported file formats and their associated image value types are listed
in section \doxyref{imaio}.
\vspace{2cm}
-\tutotoc{tuto3}{tuto5}
+\tutotoc{tuto4}{tuto6}
%====================================
-\doxychapter{tuto5}{Step 5: Create your first image}
+\doxychapter{tuto6}{Create your first image}
After this step you should know how to:
\begin{itemize}
@@ -1237,12 +1281,12 @@ though. A more detailed description can be found in section
\vspace{2cm}
\begin{center}
- \tutotoc{tuto4}{tuto6}
+ \tutotoc{tuto5}{tuto7}
\end{center}
%====================================
-\doxychapter{tuto6}{Step 6: Read and write images}
+\doxychapter{tuto7}{Read and write images}
After this step you should know how to:
\begin{itemize}
@@ -1281,7 +1325,7 @@ If we want to initialize \var{ima} with \var{lena}, we can use \code{data::fill}
\doxycode[6]{tuto3_rw_image}
Output: \\
-\doxyfigure[2]{tuto3_rw_image}{3cm}
+\doxyfigure[2]{tuto3_rw_image}{3cm} \\
Note that to fill an image with some data, the image domain \must be smaller
or equal to the data.
@@ -1296,12 +1340,12 @@ the reference guide.
\vspace{2cm}
\begin{center}
- \tutotoc{tuto5}{tuto7}
+ \tutotoc{tuto6}{tuto8}
\end{center}
%====================================
-\doxychapter{tuto7}{Step 7: Regions of interest}
+\doxychapter{tuto8}{Regions of interest}
After this step you should know how to:
\begin{itemize}
@@ -1314,7 +1358,7 @@ After this step you should know how to:
In the previous step, we used the routine \code{data::fill} in order to change
the values of an image. It was convenient since we did not need to write any
-loop by hand. The problem was that we could not specificy which region to fill
+loop by hand. The problem was that we could not specify which region to fill
with data. This point leads us to talk about the genericity in Olena.
All along this example we will use the routine \code{data::fill} to illustrate
the possibilities in Olena but note that every image types passed to the
@@ -1351,12 +1395,12 @@ First, we just need to declare this square which is actually a site set, a
Then, we just need to tell \code{data::fill} that we would like to fill the
image \var{lena} but only in this restricted part of the image domain.
\doxycode[3]{tuto4_genericity_and_algorithms}
-Operator '|' can be read 'restricted to'. So below, we wrote 'image \var{lena}
+Operator '$|$' can be read 'restricted to'. So below, we wrote 'image \var{lena}
restricted to the region of interest \var{roi}'. Actually this is not directly
\var{lena} which is restricted but its domain.
Note the use of \code{rw()} which is mandatory due to C++ limitations. In C++,
-the image created by \code{lena | roi} is \code{const}, e.g. read-only, though
+the image created by \code{lena $|$ roi} is \code{const}, e.g. read-only, though
\code{data::fill} expect a \code{non-const} image, e.g. read-write. \code{rw()}
is a workaround to make it read-write.
@@ -1379,10 +1423,14 @@ image, we \textbf{do not want} to write anyloop or construct any site set by han
\doxycode[5]{tuto4_genericity_and_algorithms}
A shorter way to get exactly the same result, is to define that behavior by a
-function. In Milena, a function \code{fun::p2v::chess} is available and does
+function. In Milena, a function \code{fun::p2b::chess} is available and does
exactly what we want. Like if it was a site set, simply restrict the image with
the function.
+%
+%Paste code of p2b::chess?
+%
+
\doxycode[6]{tuto4_genericity_and_algorithms}
\begin{center}
\begin{tabular}{c c c}
@@ -1394,10 +1442,10 @@ the function.
Note that the functions provided by default in Olena are actually functors.
Thus, they must be constructed like any object which why it is written
-\code{lena | fun::p2v::chess()} and not \code{lena | fun::p2v::chess}.
+\code{lena $|$ fun::p2v::chess()} and not \code{lena $|$ fun::p2v::chess}.
-FIXME: Talk about C functions once it is possible in Milena.
+%FIXME: Talk about C functions once it is possible in Milena.
%**************************
@@ -1414,7 +1462,7 @@ We construct a mask, \var{mask}. It is initialized with the same geometry proper
\doxycode[7]{tuto4_genericity_and_algorithms}
Then, we cannot restrict directly \var{lena} with \var{mask}. These two images
-have the same domain, so \code{lena | mask.domain()} would not do anything.
+have the same domain, so \code{lena $|$ mask.domain()} would not do anything.
\var{mask} is a classical image, there is not specific type for mask images.
Therefore, we need to express that we want that binary image to be considered as
a mask.
@@ -1456,7 +1504,7 @@ The two routines are :
Let's see a common use case.
First, we binarize lena according to specific criterions, only site values with
-specific colors are set to true in \var{lena_bw}. Others are set to false. This
+specific colors are set to true in \var{lena\_bw}. Others are set to false. This
image will be used in order to label the components.
Let's consider a labeled image \var{label}. Each component of \var{lena} is labeled with a unique index.
Now, we consider that that our region of interest is a component with id 16.
@@ -1482,6 +1530,13 @@ value in \var{label} is equal to 16'.
%**************************
\doxysection{tuto4component}{Image component restricted to a domain}
+%FIXME: be more verbose?
+
+It is also possible to restrict an image to one of its component and apply
+various operators upon it. In the following code, the green component of
+this color image is extracted and filled with the maximum value allowed.
+Other components such as red and blue are left unchanged.
+
\doxycode[11]{tuto4_genericity_and_algorithms}
\begin{center}
@@ -1490,12 +1545,14 @@ value in \var{label} is equal to 16'.
% \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.} \\
+ \multicolumn{4}{c}{Set the image green component to its maximum value.} \\
\end{tabular}
\end{center}
+Thanks to Milena's genericity, it is also possible to combine this operator
+with others. Here the green component is extracted from a region of interest
+and only that part is modified.
\doxycode[12]{tuto4_genericity_and_algorithms}
@@ -1504,15 +1561,15 @@ value in \var{label} is equal to 16'.
\doxyimg{small-enlarged}{3cm} &
~\huge{$\rightarrow$}~ &
\doxyfigure[9]{tuto4_genericity_and_algorithms}{3cm} \\
- \multicolumn{4}{c}{Fill with green a region of interest defined by its
- label.} \\
+ \multicolumn{4}{c}{Set the green component of a region of interest
+ to its maximum value.} \\
\end{tabular}
\end{center}
\vspace{2cm}
\begin{center}
- \tutotoc{tuto6}{tuto8}
+ \tutotocprev{tuto7}
\end{center}
--
1.5.6.5
1
0
29 May '09
https://svn.lrde.epita.fr/svn/oln/trunk/milena/sandbox
Index: ChangeLog
from Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
Updating level/ to data/ and labeling::level to ::value.
* duhamel/labeling_level_generic_10000x1000.cc,
* duhamel/slow_seed2tiling.cc,
* duhamel/labeling_algo.cc,
* duhamel/level.hh,
* duhamel/main.cc,
* duhamel/paste.hh,
* duhamel/labeling_level_fast.cc,
* duhamel/canvas_labeling.hh,
* duhamel/level_cpy_from_mln.hh,
* duhamel/mem.hh,
* duhamel/fill.hh,
* duhamel/abr_to_image.cc,
* duhamel/labeling_cpy_from_mln.hh,
* duhamel/labeling.hh,
* levillain/morpho/shortest_path_watershed.hh,
* fred/old/accuprops.cc,
* fred/old/leveling.cc,
* fred/old/algebraic.cc,
* fred/old/accuprops2.cc,
* fred/old/leveling_filter.hh,
* fred/old/accu_trait.hh,
* igr/code/test.cc,
* icdar/2009/dibco/quasi.cc,
* icdar/2009/dibco/svg.1.binarization.cc,
* icdar/2009/dibco/svg.2.binarization.cc,
* icdar/2009/dibco/svg.3.binarization.cc,
* icdar/2009/dibco/binarization.cc,
* icdar/2009/hsc/icdar2ppm.hh,
* icdar/2009/hsc/icdar_io.cc,
* icdar/2009/hsc/clean_input.hh,
* icdar/2009/hsc/lines_to_boxes.cc,
* icdar/2009/hsc/first_attempts/exec/iz_lines.cc,
* icdar/2009/hsc/first_attempts/exec/relabel_lines.cc,
* icdar/2009/hsc/first_attempts/boxes.cc,
* icdar/2009/hsc/first_attempts/main.cc,
* icdar/2009/hsc/input_to_ws.hh,
* icdar/2009/hsc/old_input_to_lines.cc,
* icdar/2009/hsc/lines_to_words.cc,
* icdar/2009/hsc/ws_to_wsl.hh,
* nivault/plugin-gimp/src/build-image.hh,
* nivault/extract_score.cc,
* nivault/extract_character.cc,
* nivault/median.hh,
* exec/bw_negate_in_color.cc,
* fabien/igr/time_max_norm.cc,
* fabien/igr/smooth_fixed_seg/main.cc,
* fabien/igr/time_max.cc,
* fabien/igr/fun_labels.cc,
* fabien/igr/norm.cc,
* fabien/igr/watershed2d.cc,
* fabien/igr/watershed3d.cc,
* fabien/igr/min_max_float.cc,
* fabien/igr/seg_vol_irm.hh,
* fabien/igr/wst_edges.cc,
* fabien/igr/mat2mln/raw2mlndata.cc,
* fabien/igr/mat2mln/mat2mln.cc,
* fabien/igr/label2gif.cc,
* fabien/igr/plot_label.hh,
* fabien/igr/space_smooth/morpho.cc,
* fabien/igr/watershed.hh,
* fabien/igr/matlab.cc,
* fabien/igr/graph.cc,
* fabien/igr/time_smooth/morpho.cc,
* fabien/igr/med.cc,
* fabien/igr/fixed_seg/main.cc,
* fabien/igr/dist_edges.cc,
* fabien/igr/igr.cc,
* fabien/igr/mean_slices.cc,
* fabien/igr/nbasins_finder.cc,
* fabien/igr/filter.cc,
* fabien/level.hh,
* fabien/regional_minima.hh,
* fabien/bin/dump_mask.cc,
* fabien/bin/dicom_mask.cc,
* fabien/bin/dumpi12_to_pgm.cc,
* fabien/binarization/test.cc,
* fabien/regional_maxima.hh,
* fabien/labeling.hh,
* fabien/level.cc,
* jardonnet/n_cmpt/tikz.hh,
* jardonnet/n_cmpt/nwst.hh,
* jardonnet/n_cmpt/test_attribute_watershed.cc,
* jardonnet/n_cmpt/fused_filter.cc,
* jardonnet/n_cmpt/n_cmpt2.hh,
* jardonnet/n_cmpt/n_cmpt3.hh,
* jardonnet/n_cmpt/n_cmpt4.hh,
* jardonnet/n_cmpt/n_cmpt5.hh,
* jardonnet/n_cmpt/ref_filter.cc,
* jardonnet/n_cmpt/n_cmpt.hh,
* jardonnet/igr/src/igr.cc,
* dalila/plop.cc,
* garrigues/level_set.hh,
* garrigues/fllt/fllt_simple.svg.3.cc,
* garrigues/fllt/fllt_simple.cc,
* garrigues/fllt/compute_level_set_fast2.hh,
* garrigues/fllt/fllt_optimized.hh,
* garrigues/fllt/debug.hh,
* garrigues/fllt/compute_level_set_fast.hh,
* garrigues/fllt/fllt.hh,
* garrigues/fllt/give_confs.cc,
* garrigues/fllt/compute_level_set.hh,
* garrigues/union_find/reconstructions_on_function.hh,
* garrigues/union_find/reconstructions_on_set.hh,
* garrigues/union_find/self_dual_reconstruction.hh,
* garrigues/factures/extract_array_highlight.cc,
* garrigues/factures/extract_array.cc,
* abraham/tests/morpho/test_watershed.cc,
* abraham/tests/morpho/test_watershed_topo.cc,
* abraham/mln/morpho/najman_wst.hh,
* abraham/mln/morpho/basic_najman.hh,
* abraham/mln/morpho/topo_wst.hh,
* abraham/mln/level/thru.hh,
* inim/2010/boxes/boxes.cc,
* inim/2010/morpho/main_dilation-n.cc,
* inim/2010/morpho/morpho.cc,
* inim/2010/rag/rag.hh,
* inim/2010/cag/superpose.hh,
* inim/2011/fredwin/inim.cc,
* inim/2009/classif/src/max_tree.hh,
* inim/2009/classif/src/iccvg04.cc,
* inim/2009/binarization/snake2d.cc,
* inim/2009/color/min_tree_volume_filter.cc,
* inim/2009/color/reference.cc,
* inim/2009/color/min_tree_area_filter.cc,
* inim/2009/color/min_tree_height_filter.cc,
* inim/2009/color/min_tree_color.cc,
* inim/2009/color/reference2.cc,
* inim/2009/color/min_tree_color_v2.cc,
* inim/2009/nature/nature.cc,
* inim/2009/nature/hom.cc,
* inim/2009/nature/histo_hsi.cc,
* theo/igr/irm_seg_with_mm_and_rag.cc,
* theo/igr/irm_anat_segm.cc,
* theo/igr/irm_anat_segm__2D_ONLY.cc,
* theo/igr/segment_2d_t.cc,
* theo/igr/dump_to_dist.cc,
* theo/rush/exo2/exo2.cc,
* theo/rush/exo3/exo3_fun_generator.cc,
* theo/rush/exo3/exo3_fun_area.cc,
* theo/exec/diff_abs.cc,
* theo/exec/gaussian_directional_2d__float.cc,
* theo/exec/watershed_flooding.cc,
* theo/exec/dump_12bit_to_pgm.cc,
* theo/exec/color_labeling_mean.cc,
* theo/exec/gaussian_directional_2d.cc,
* theo/exec/distance_thick.cc,
* theo/test_attribute.cc,
* theo/fllt.svg.6.cc,
* theo/esiee/laurent/presentation/wst_edge.cc,
* theo/esiee/laurent/presentation/wst2d.cc,
* theo/esiee/laurent/presentation/wst3d.cc,
* theo/esiee/laurent/presentation/segmentation.hh,
* theo/esiee/laurent/ismm09/trash.hh,
* theo/esiee/laurent/ismm09/extinct_attributes.hh,
* theo/esiee/laurent/ismm09/main.ext.cc,
* theo/esiee/laurent/ismm09/main.cc,
* theo/esiee/laurent/ismm09/util.hh,
* theo/esiee/laurent/ismm09/pseudo_tree.hh,
* theo/cs2d/cs2d.cc,
* theo/cs2d/kruskal.cc,
* theo/cs2d/cs2d_morpho.hh,
* theo/publis/icip2009/compute_a.cc,
* theo/publis/icip2009/regmin_count.cc,
* theo/fllt/fllt.hh,
* theo/fllt/fllt.svg.7.hh,
* theo/fllt/fllt.svg.4.cc,
* theo/fllt/fllt.svg.5.cc,
* theo/fllt/fllt.svg.6.cc,
* theo/fllt/fllt_test.hh,
* theo/fllt.svg.7.hh,
* theo/dmap.cc,
* theo/Rd/diff.cc,
* theo/Rd/utils.hh,
* theo/Rd/diff_pgm.cc,
* theo/tufa_2008/steps.0.cc,
* theo/tufa_2008/steps.1.cc,
* theo/tufa_2008/steps.2.cc,
* theo/tufa_2008/steps.3.cc,
* theo/tufa_2008/steps.2b.cc,
* theo/tufa_2008/filter_n.cc,
* theo/tufa_2008/wst_f_equal_wst_a.cc,
* theo/tufa_2008/wst.cc,
* theo/tufa_2008/experiment.cc,
* theo/tufa_2008/n_cmpt.cc,
* theo/tufa_2008/filter.cc,
* theo/tufa_2008/fz_count.cc,
* theo/color/segment.hh,
* theo/color/segment_rgb_pixels.cc,
* theo/color/segment_rgb_edges.cc,
* theo/color/change_attributes.hh,
* theo/color/filter_blen_rgb_edges.cc,
* theo/color/filter_meandist_rgb_pixels.cc,
* theo/color/segment_gl_pixels.cc,
* theo/csi/edwin.cc,
* bugs/lut.cc,
* lazzara/igr/irm_seg_with_mm_and_rag.mine.cc,
* lazzara/igr/igr-biggest-comp.cc,
* lazzara/igr/irm/wst_rag_hsl.cc,
* lazzara/igr/irm/grad_clo_and_wshd.cc,
* lazzara/igr/irm/hsl_grad_and_wst.cc,
* lazzara/igr/irm/wst_rag.cc,
* edwin/tree/tree.cc,
* edwin/tree/propagation.cc,
* edwin/rush/leaves/test/export.cc,
* edwin/rush/leaves/get_leaves.cc,
* edwin/rush/granulometry/test.cc,
* edwin/rush/exo2/wst_from_closing.cc,
* edwin/rush/exo2/test.cc,
* edwin/rush/exo2/wst_from_tree.cc,
* edwin/rush/exo2/color_labeling_mean.hh,
* edwin/tests/sharp.cc,
* camille/graph-wst.cc,
* camille/graph-line-gradient-closing.cc,
* vigouroux/convert/stretch.hh,
* vigouroux/yuv/test.cc,
* vigouroux/yuv/testfun.cc,
* vigouroux/cmy/test.cc,
* vigouroux/cmy/testfun.cc,
* vigouroux/xyz/test.cc,
* vigouroux/xyz/testfun.cc,
* vigouroux/moyenne.cc,
* vigouroux/lap.cc,
* vigouroux/yiq/test.cc,
* vigouroux/yiq/testfun.cc,
* vigouroux/load.cc,
* vigouroux/conv/test.cc,
* vigouroux/testfun.cc,
* folio/test/histo/compute_histo_rgb_from_ppm.cc,
* folio/test/histo/projected3d.cc,
* folio/test/histo/classify_with_histo_rgb.cc,
* folio/test/dt/psn.cc,
* folio/test/dt/psn_log.cc,
* folio/test/dt/dt_maze.cc,
* folio/test/dt/chamfer.cc,
* folio/test/dt/dt_bench.cc,
* folio/test/dt/dt.cc,
* folio/test/value/hsv.cc,
* folio/mln/dt/dt_old/psn.cc,
* folio/mln/dt/dt_old/psn_log.cc,
* folio/mln/dt/dt_old/distance_front.cc,
* folio/mln/dt/dt_old/chamfer.cc,
* folio/mln/dt/dt_old/dt.cc,
* beguin/irm_g.cc,
* beguin/segm_to_pregraph.hh,
* beguin/irm.cc,
* laurent/ismm2009.cc,
* laurent/playing_with_attributes.cc,
* delmon/minsurf/main.cc (level): Update to data.
(labeling::level): Update to labeling::value.
abraham/mln/level/thru.hh | 22 +++++++--------
abraham/mln/morpho/basic_najman.hh | 6 ++--
abraham/mln/morpho/najman_wst.hh | 6 ++--
abraham/mln/morpho/topo_wst.hh | 4 +-
abraham/tests/morpho/test_watershed.cc | 2 -
abraham/tests/morpho/test_watershed_topo.cc | 2 -
beguin/irm.cc | 14 +++++-----
beguin/irm_g.cc | 8 ++---
beguin/segm_to_pregraph.hh | 2 -
bugs/lut.cc | 8 ++---
camille/graph-line-gradient-closing.cc | 2 -
camille/graph-wst.cc | 2 -
dalila/plop.cc | 4 +-
delmon/minsurf/main.cc | 4 +-
duhamel/abr_to_image.cc | 4 +-
duhamel/canvas_labeling.hh | 2 -
duhamel/fill.hh | 2 -
duhamel/labeling.hh | 2 -
duhamel/labeling_algo.cc | 4 +-
duhamel/labeling_cpy_from_mln.hh | 2 -
duhamel/labeling_level_fast.cc | 2 -
duhamel/labeling_level_generic_10000x1000.cc | 2 -
duhamel/level.hh | 6 ++--
duhamel/level_cpy_from_mln.hh | 6 ++--
duhamel/main.cc | 2 -
duhamel/mem.hh | 2 -
duhamel/paste.hh | 2 -
duhamel/slow_seed2tiling.cc | 8 ++---
edwin/rush/exo2/color_labeling_mean.hh | 4 +-
edwin/rush/exo2/test.cc | 4 +-
edwin/rush/exo2/wst_from_closing.cc | 4 +-
edwin/rush/exo2/wst_from_tree.cc | 12 ++++----
edwin/rush/granulometry/test.cc | 4 +-
edwin/rush/leaves/get_leaves.cc | 4 +-
edwin/rush/leaves/test/export.cc | 4 +-
edwin/tests/sharp.cc | 8 ++---
edwin/tree/propagation.cc | 4 +-
edwin/tree/tree.cc | 8 ++---
exec/bw_negate_in_color.cc | 2 -
fabien/bin/dicom_mask.cc | 4 +-
fabien/bin/dump_mask.cc | 4 +-
fabien/bin/dumpi12_to_pgm.cc | 6 ++--
fabien/binarization/test.cc | 8 ++---
fabien/igr/dist_edges.cc | 10 +++----
fabien/igr/filter.cc | 14 +++++-----
fabien/igr/fixed_seg/main.cc | 18 ++++++------
fabien/igr/fun_labels.cc | 12 ++++----
fabien/igr/graph.cc | 10 +++----
fabien/igr/igr.cc | 10 +++----
fabien/igr/label2gif.cc | 6 ++--
fabien/igr/mat2mln/mat2mln.cc | 4 +-
fabien/igr/mat2mln/raw2mlndata.cc | 4 +-
fabien/igr/matlab.cc | 6 ++--
fabien/igr/mean_slices.cc | 2 -
fabien/igr/med.cc | 6 ++--
fabien/igr/min_max_float.cc | 4 +-
fabien/igr/nbasins_finder.cc | 8 ++---
fabien/igr/norm.cc | 6 ++--
fabien/igr/plot_label.hh | 4 +-
fabien/igr/seg_vol_irm.hh | 24 ++++++++---------
fabien/igr/smooth_fixed_seg/main.cc | 18 ++++++------
fabien/igr/space_smooth/morpho.cc | 6 ++--
fabien/igr/time_max.cc | 8 ++---
fabien/igr/time_max_norm.cc | 8 ++---
fabien/igr/time_smooth/morpho.cc | 6 ++--
fabien/igr/watershed.hh | 28 ++++++++++----------
fabien/igr/watershed2d.cc | 28 ++++++++++----------
fabien/igr/watershed3d.cc | 28 ++++++++++----------
fabien/igr/wst_edges.cc | 6 ++--
fabien/labeling.hh | 12 ++++----
fabien/level.cc | 4 +-
fabien/level.hh | 8 ++---
fabien/regional_maxima.hh | 2 -
fabien/regional_minima.hh | 2 -
folio/mln/dt/dt_old/chamfer.cc | 4 +-
folio/mln/dt/dt_old/distance_front.cc | 2 -
folio/mln/dt/dt_old/dt.cc | 4 +-
folio/mln/dt/dt_old/psn.cc | 4 +-
folio/mln/dt/dt_old/psn_log.cc | 4 +-
folio/test/dt/chamfer.cc | 4 +-
folio/test/dt/dt.cc | 2 -
folio/test/dt/dt_bench.cc | 4 +-
folio/test/dt/dt_maze.cc | 2 -
folio/test/dt/psn.cc | 4 +-
folio/test/dt/psn_log.cc | 4 +-
folio/test/histo/classify_with_histo_rgb.cc | 4 +-
folio/test/histo/compute_histo_rgb_from_ppm.cc | 2 -
folio/test/histo/projected3d.cc | 10 +++----
folio/test/value/hsv.cc | 6 ++--
fred/old/accu_trait.hh | 2 -
fred/old/accuprops.cc | 16 +++++------
fred/old/accuprops2.cc | 16 +++++------
fred/old/algebraic.cc | 12 ++++----
fred/old/leveling.cc | 6 ++--
fred/old/leveling_filter.hh | 26 +++++++++---------
garrigues/factures/extract_array.cc | 4 +-
garrigues/factures/extract_array_highlight.cc | 6 ++--
garrigues/fllt/compute_level_set.hh | 6 ++--
garrigues/fllt/compute_level_set_fast.hh | 6 ++--
garrigues/fllt/compute_level_set_fast2.hh | 6 ++--
garrigues/fllt/debug.hh | 2 -
garrigues/fllt/fllt.hh | 6 ++--
garrigues/fllt/fllt_optimized.hh | 6 ++--
garrigues/fllt/fllt_simple.cc | 2 -
garrigues/fllt/fllt_simple.svg.3.cc | 2 -
garrigues/fllt/give_confs.cc | 4 +-
garrigues/level_set.hh | 12 ++++----
garrigues/union_find/reconstructions_on_function.hh | 8 ++---
garrigues/union_find/reconstructions_on_set.hh | 2 -
garrigues/union_find/self_dual_reconstruction.hh | 8 ++---
icdar/2009/dibco/binarization.cc | 22 +++++++--------
icdar/2009/dibco/quasi.cc | 8 ++---
icdar/2009/dibco/svg.1.binarization.cc | 6 ++--
icdar/2009/dibco/svg.2.binarization.cc | 14 +++++-----
icdar/2009/dibco/svg.3.binarization.cc | 16 +++++------
icdar/2009/hsc/clean_input.hh | 4 +-
icdar/2009/hsc/first_attempts/boxes.cc | 2 -
icdar/2009/hsc/first_attempts/exec/iz_lines.cc | 2 -
icdar/2009/hsc/first_attempts/exec/relabel_lines.cc | 4 +-
icdar/2009/hsc/first_attempts/main.cc | 8 ++---
icdar/2009/hsc/icdar2ppm.hh | 4 +-
icdar/2009/hsc/icdar_io.cc | 2 -
icdar/2009/hsc/input_to_ws.hh | 10 +++----
icdar/2009/hsc/lines_to_boxes.cc | 4 +-
icdar/2009/hsc/lines_to_words.cc | 4 +-
icdar/2009/hsc/old_input_to_lines.cc | 8 ++---
icdar/2009/hsc/ws_to_wsl.hh | 8 ++---
igr/code/test.cc | 2 -
inim/2009/binarization/snake2d.cc | 2 -
inim/2009/classif/src/iccvg04.cc | 2 -
inim/2009/classif/src/max_tree.hh | 4 +-
inim/2009/color/min_tree_area_filter.cc | 6 ++--
inim/2009/color/min_tree_color.cc | 6 ++--
inim/2009/color/min_tree_color_v2.cc | 4 +-
inim/2009/color/min_tree_height_filter.cc | 4 +-
inim/2009/color/min_tree_volume_filter.cc | 4 +-
inim/2009/color/reference.cc | 4 +-
inim/2009/color/reference2.cc | 4 +-
inim/2009/nature/histo_hsi.cc | 14 +++++-----
inim/2009/nature/hom.cc | 2 -
inim/2009/nature/nature.cc | 8 ++---
inim/2010/boxes/boxes.cc | 4 +-
inim/2010/cag/superpose.hh | 4 +-
inim/2010/morpho/main_dilation-n.cc | 8 ++---
inim/2010/morpho/morpho.cc | 8 ++---
inim/2010/rag/rag.hh | 2 -
inim/2011/fredwin/inim.cc | 10 +++----
jardonnet/igr/src/igr.cc | 6 ++--
jardonnet/n_cmpt/fused_filter.cc | 6 ++--
jardonnet/n_cmpt/n_cmpt.hh | 4 +-
jardonnet/n_cmpt/n_cmpt2.hh | 4 +-
jardonnet/n_cmpt/n_cmpt3.hh | 4 +-
jardonnet/n_cmpt/n_cmpt4.hh | 4 +-
jardonnet/n_cmpt/n_cmpt5.hh | 4 +-
jardonnet/n_cmpt/nwst.hh | 2 -
jardonnet/n_cmpt/ref_filter.cc | 6 ++--
jardonnet/n_cmpt/test_attribute_watershed.cc | 2 -
jardonnet/n_cmpt/tikz.hh | 8 ++---
laurent/ismm2009.cc | 4 +-
laurent/playing_with_attributes.cc | 8 ++---
lazzara/igr/igr-biggest-comp.cc | 4 +-
lazzara/igr/irm/grad_clo_and_wshd.cc | 4 +-
lazzara/igr/irm/hsl_grad_and_wst.cc | 12 ++++----
lazzara/igr/irm/wst_rag.cc | 6 ++--
lazzara/igr/irm/wst_rag_hsl.cc | 8 ++---
lazzara/igr/irm_seg_with_mm_and_rag.mine.cc | 14 +++++-----
levillain/morpho/shortest_path_watershed.hh | 4 +-
nivault/extract_character.cc | 10 +++----
nivault/extract_score.cc | 12 ++++----
nivault/median.hh | 8 ++---
nivault/plugin-gimp/src/build-image.hh | 2 -
theo/Rd/diff.cc | 2 -
theo/Rd/diff_pgm.cc | 2 -
theo/Rd/utils.hh | 2 -
theo/color/change_attributes.hh | 4 +-
theo/color/filter_blen_rgb_edges.cc | 6 ++--
theo/color/filter_meandist_rgb_pixels.cc | 4 +-
theo/color/segment.hh | 8 ++---
theo/color/segment_gl_pixels.cc | 4 +-
theo/color/segment_rgb_edges.cc | 2 -
theo/color/segment_rgb_pixels.cc | 4 +-
theo/cs2d/cs2d.cc | 2 -
theo/cs2d/cs2d_morpho.hh | 8 ++---
theo/cs2d/kruskal.cc | 4 +-
theo/csi/edwin.cc | 4 +-
theo/dmap.cc | 4 +-
theo/esiee/laurent/ismm09/extinct_attributes.hh | 2 -
theo/esiee/laurent/ismm09/main.cc | 2 -
theo/esiee/laurent/ismm09/main.ext.cc | 2 -
theo/esiee/laurent/ismm09/pseudo_tree.hh | 8 ++---
theo/esiee/laurent/ismm09/trash.hh | 2 -
theo/esiee/laurent/ismm09/util.hh | 4 +-
theo/esiee/laurent/presentation/segmentation.hh | 2 -
theo/esiee/laurent/presentation/wst2d.cc | 4 +-
theo/esiee/laurent/presentation/wst3d.cc | 4 +-
theo/esiee/laurent/presentation/wst_edge.cc | 6 ++--
theo/exec/color_labeling_mean.cc | 8 ++---
theo/exec/diff_abs.cc | 4 +-
theo/exec/distance_thick.cc | 4 +-
theo/exec/dump_12bit_to_pgm.cc | 4 +-
theo/exec/gaussian_directional_2d.cc | 6 ++--
theo/exec/gaussian_directional_2d__float.cc | 6 ++--
theo/exec/watershed_flooding.cc | 4 +-
theo/fllt.svg.6.cc | 2 -
theo/fllt.svg.7.hh | 2 -
theo/fllt/fllt.hh | 6 ++--
theo/fllt/fllt.svg.4.cc | 2 -
theo/fllt/fllt.svg.5.cc | 2 -
theo/fllt/fllt.svg.6.cc | 2 -
theo/fllt/fllt.svg.7.hh | 2 -
theo/fllt/fllt_test.hh | 2 -
theo/igr/dump_to_dist.cc | 4 +-
theo/igr/irm_anat_segm.cc | 4 +-
theo/igr/irm_anat_segm__2D_ONLY.cc | 4 +-
theo/igr/irm_seg_with_mm_and_rag.cc | 8 ++---
theo/igr/segment_2d_t.cc | 6 ++--
theo/publis/icip2009/compute_a.cc | 8 ++---
theo/publis/icip2009/regmin_count.cc | 4 +-
theo/rush/exo2/exo2.cc | 4 +-
theo/rush/exo3/exo3_fun_area.cc | 4 +-
theo/rush/exo3/exo3_fun_generator.cc | 4 +-
theo/test_attribute.cc | 14 +++++-----
theo/tufa_2008/experiment.cc | 16 +++++------
theo/tufa_2008/filter.cc | 6 ++--
theo/tufa_2008/filter_n.cc | 4 +-
theo/tufa_2008/fz_count.cc | 4 +-
theo/tufa_2008/n_cmpt.cc | 4 +-
theo/tufa_2008/steps.0.cc | 8 ++---
theo/tufa_2008/steps.1.cc | 8 ++---
theo/tufa_2008/steps.2.cc | 6 ++--
theo/tufa_2008/steps.2b.cc | 6 ++--
theo/tufa_2008/steps.3.cc | 6 ++--
theo/tufa_2008/wst.cc | 2 -
theo/tufa_2008/wst_f_equal_wst_a.cc | 10 +++----
vigouroux/cmy/test.cc | 6 ++--
vigouroux/cmy/testfun.cc | 6 ++--
vigouroux/conv/test.cc | 6 ++--
vigouroux/convert/stretch.hh | 4 +-
vigouroux/lap.cc | 4 +-
vigouroux/load.cc | 2 -
vigouroux/moyenne.cc | 6 ++--
vigouroux/testfun.cc | 6 ++--
vigouroux/xyz/test.cc | 6 ++--
vigouroux/xyz/testfun.cc | 6 ++--
vigouroux/yiq/test.cc | 6 ++--
vigouroux/yiq/testfun.cc | 6 ++--
vigouroux/yuv/test.cc | 6 ++--
vigouroux/yuv/testfun.cc | 6 ++--
248 files changed, 744 insertions(+), 744 deletions(-)
Index: duhamel/labeling_level_generic_10000x1000.cc
--- duhamel/labeling_level_generic_10000x1000.cc (revision 3923)
+++ duhamel/labeling_level_generic_10000x1000.cc (working copy)
@@ -57,7 +57,7 @@
unsigned n;
image2d_b<value::int_u8> out(i1.domain(), border);
- labeling::level(i1, 2, c4(), out, n);
+ labeling::value(i1, 2, c4(), out, n);
mln_assertion (n == 1);
}
Index: duhamel/slow_seed2tiling.cc
--- duhamel/slow_seed2tiling.cc (revision 3923)
+++ duhamel/slow_seed2tiling.cc (working copy)
@@ -36,7 +36,7 @@
# include <mln/core/alias/neighb2d.hh>
# include <mln/value/int_u8.hh>
# include <mln/data/fill.hh>
-# include <mln/level/stretch.hh>
+# include <mln/data/stretch.hh>
# include <mln/border/fill.hh>
# include <mln/io/pbm/load.hh>
# include <mln/io/pgm/save.hh>
@@ -129,14 +129,14 @@
inte = geom::slow_seeds2tiling(lab, max);
border::fill (inte, 0);
- level::stretch (inte, inte2);
+ data::stretch (inte, inte2);
io::pgm::save(inte2, "ima_slow.pgm");
std::cout << "ima_slow generate with seeds2tiling"
<< std::endl;
inte = geom::seeds2tiling(lab, c4 ());
border::fill (inte, 0);
- level::stretch (inte, inte2);
+ data::stretch (inte, inte2);
io::pgm::save(inte2, "ima1.pgm");
std::cout << "ima1 generate with seeds2tiling"
<< std::endl;
@@ -146,7 +146,7 @@
// << std::endl;
// inte = geom::seeds2tiling_with_chamfer(lab, w_win, max, c4 ());
// border::fill (inte, 0);
-// level::stretch (inte, inte2);
+// data::stretch (inte, inte2);
// io::pgm::save(inte2, "ima2.pgm");
// std::cout << "ima2 generate with seeds2tiling_with_chamfer"
Index: duhamel/labeling_algo.cc
--- duhamel/labeling_algo.cc (revision 3923)
+++ duhamel/labeling_algo.cc (working copy)
@@ -35,7 +35,7 @@
# include <mln/core/alias/neighb2d.hh>
# include <mln/value/int_u8.hh>
# include <mln/data/fill.hh>
-# include <mln/level/stretch.hh>
+# include <mln/data/stretch.hh>
# include <mln/border/fill.hh>
# include <mln/io/pbm/load.hh>
# include <mln/io/pgm/save.hh>
@@ -71,7 +71,7 @@
image2d_b<int_u8> inte2(inte.domain());
- level::stretch (inte, inte2);
+ data::stretch (inte, inte2);
io::pgm::save(inte2, "inte.pgm");
Index: duhamel/level.hh
--- duhamel/level.hh (revision 3923)
+++ duhamel/level.hh (working copy)
@@ -73,7 +73,7 @@
bool level_(const Image<I>& input, const mln_value(I)& val, const Neighborhood<N>& nbh,
Image<O>& output, unsigned& nlabels)
{
- typedef impl::level_t<I,N,O> F;
+ typedef impl::data_t<I,N,O> F;
F f(exact(input), val, exact(nbh), exact(output));
canvas::labeling<F> run(f);
nlabels = f.nlabels;
@@ -86,7 +86,7 @@
bool level_(const Fast_Image<I>& input, const mln_value(I)& val, const Neighborhood<N>& nbh,
Fast_Image<O>& output, unsigned& nlabels)
{
- typedef impl::level_t<I,N,O> F;
+ typedef impl::data_t<I,N,O> F;
F f(exact(input), val, exact(nbh), exact(output));
canvas::labeling_fast<F> run(f);
nlabels = f.nlabels;
@@ -104,7 +104,7 @@
Image<O>& output, unsigned& nlabels)
{
mln_precondition(exact(output).domain() == exact(input).domain());
- return impl::level_(exact(input), val, nbh, output, nlabels);
+ return impl::data_(exact(input), val, nbh, output, nlabels);
}
# endif // ! MLN_INCLUDE_ONLY
Index: duhamel/main.cc
--- duhamel/main.cc (revision 3923)
+++ duhamel/main.cc (working copy)
@@ -3,7 +3,7 @@
#include <mln/core/alias/neighb2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/data/fill.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
#include <mln/io/pgm/save.hh>
Index: duhamel/paste.hh
--- duhamel/paste.hh (revision 3923)
+++ duhamel/paste.hh (working copy)
@@ -9,7 +9,7 @@
namespace mln
{
- namespace level
+ namespace data
{
template <typename I>
Index: duhamel/labeling_level_fast.cc
--- duhamel/labeling_level_fast.cc (revision 3923)
+++ duhamel/labeling_level_fast.cc (working copy)
@@ -56,7 +56,7 @@
unsigned n;
image2d_b<value::int_u8> out(i1.domain(), border);
- labeling::level_fast(i1, 2, c4(), out, n);
+ labeling::value_fast(i1, 2, c4(), out, n);
std::cout << "n = " << n << std::endl;
debug::println(out);
Index: duhamel/canvas_labeling.hh
--- duhamel/canvas_labeling.hh (revision 3923)
+++ duhamel/canvas_labeling.hh (working copy)
@@ -35,7 +35,7 @@
*/
# include <mln/data/fill.hh>
-# include <mln/level/sort_points.hh>
+# include <mln/data/sort_points.hh>
# include <mln/convert/to_window.hh>
Index: duhamel/level_cpy_from_mln.hh
--- duhamel/level_cpy_from_mln.hh (revision 3923)
+++ duhamel/level_cpy_from_mln.hh (working copy)
@@ -99,7 +99,7 @@
bool level_(const Image<I>& input, const mln_value(I)& val, const Neighborhood<N>& nbh,
Image<O>& output, unsigned& nlabels)
{
- typedef impl::level_t<I,N,O> F;
+ typedef impl::data_t<I,N,O> F;
F f(exact(input), val, exact(nbh), exact(output));
canvas::labeling<F> run(f);
nlabels = f.nlabels;
@@ -114,7 +114,7 @@
bool level_(const Fast_Image<I>& input, const mln_value(I)& val, const Neighborhood<N>& nbh,
Image<O>& output, unsigned& nlabels)
{
- typedef impl::level_t<I,N,O> F;
+ typedef impl::data_t<I,N,O> F;
F f(exact(input), val, exact(nbh), exact(output));
canvas::labeling_fast<F> run(f);
nlabels = f.nlabels;
@@ -134,7 +134,7 @@
Image<O>& output, unsigned& nlabels)
{
mln_precondition(exact(output).domain() == exact(input).domain());
- return impl::level_(exact(input), val, nbh, output, nlabels);
+ return impl::data_(exact(input), val, nbh, output, nlabels);
}
# endif // ! MLN_INCLUDE_ONLY
Index: duhamel/mem.hh
--- duhamel/mem.hh (revision 3923)
+++ duhamel/mem.hh (working copy)
@@ -18,7 +18,7 @@
namespace mln
{
- namespace level
+ namespace data
{
template <typename I>
Index: duhamel/fill.hh
--- duhamel/fill.hh (revision 3923)
+++ duhamel/fill.hh (working copy)
@@ -23,7 +23,7 @@
namespace mln
{
- namespace level
+ namespace data
{
template <typename I>
Index: duhamel/abr_to_image.cc
--- duhamel/abr_to_image.cc (revision 3923)
+++ duhamel/abr_to_image.cc (working copy)
@@ -37,7 +37,7 @@
#include <mln/core/image/image2d.hh>
#include <mln/core/set_p.hh>
#include <mln/value/int_u8.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/io/pgm/save.hh>
#include <vector>
@@ -135,7 +135,7 @@
image2d<int_u8> out(output.domain());
- level::stretch (output, out);
+ data::stretch (output, out);
io::pgm::save(out, "out.pgm");
Index: duhamel/labeling_cpy_from_mln.hh
--- duhamel/labeling_cpy_from_mln.hh (revision 3923)
+++ duhamel/labeling_cpy_from_mln.hh (working copy)
@@ -35,7 +35,7 @@
*/
# include <mln/data/fill.hh>
-# include <mln/level/sort_points.hh>
+# include <mln/data/sort_points.hh>
# include <mln/convert/to_window.hh>
Index: duhamel/labeling.hh
--- duhamel/labeling.hh (revision 3923)
+++ duhamel/labeling.hh (working copy)
@@ -9,7 +9,7 @@
# include <mln/data/fill.hh>
# include "fill.hh"
-# include <mln/level/sort_points.hh>
+# include <mln/data/sort_points.hh>
namespace mln
Index: levillain/morpho/shortest_path_watershed.hh
--- levillain/morpho/shortest_path_watershed.hh (revision 3923)
+++ levillain/morpho/shortest_path_watershed.hh (working copy)
@@ -44,7 +44,7 @@
# include <queue>
# include <mln/data/fill.hh>
-# include <mln/level/extrema_components.hh>
+# include <mln/data/extrema_components.hh>
# include <mln/morpho/lower_completion.hh>
# include <mln/trait/value_.hh>
@@ -101,7 +101,7 @@
// Initialize output with the minima components.
typename ch_value_type<I, DestValue>::ret output =
- level::minima_components<DestValue>(input);
+ data::minima_components<DestValue>(input);
// Distance.
typedef ntg_cumul_type(DestValue) cumul_type;
Index: fred/old/accuprops.cc
--- fred/old/accuprops.cc (revision 3923)
+++ fred/old/accuprops.cc (working copy)
@@ -25,7 +25,7 @@
# define mln_trait_accu_has_stop(A) typename mln::trait::accu_< A >::has_stop
/// Shortcut to the accumulator property about behavior when pixel is given as take() value
-/// Used for instance in mln::canvas::morpho::leveling
+/// Used for instance in mln::canvas::morpho::dataing
# define mln_trait_accu_when_pix(A) typename mln::trait::accu_< A >::when_pix
namespace mln {
@@ -151,7 +151,7 @@
const Image<I>& input,
Accumulator<A>& acc)
{
- impl::generic::leveling(input, acc);
+ impl::generic::dataing(input, acc);
}
template <typename I, typename A>
@@ -161,7 +161,7 @@
const Image<I>& input,
Accumulator<A>& acc)
{
- impl::leveling_fastest(input, acc);
+ impl::dataing_fastest(input, acc);
}
template <typename I, typename A>
@@ -177,7 +177,7 @@
mlc_equal(mln_trait_accu_when_pix(A),
trait::accu::when_pix::use_v)::value
};
- internal::leveling_dispatch(metal::bool_<test>(),
+ internal::dataing_dispatch(metal::bool_<test>(),
input, acc);
}
@@ -190,7 +190,7 @@
leveling(const Image<I>& input,
Accumulator< A< util::pix<I> > >& acc)
{
- internal::leveling_dispatch(input, acc);
+ internal::dataing_dispatch(input, acc);
}
} // end of namespace mln::canvas::morpho
@@ -308,7 +308,7 @@
acc.init();
chrono.start();
for (int i = 0; i < 50; i++)
- mln::canvas::morpho::leveling(ima, acc);
+ mln::canvas::morpho::dataing(ima, acc);
elapsed = chrono.stop();
std::cout << "(auto) " << elapsed << "s : " << acc.to_result() << std::endl;
@@ -316,7 +316,7 @@
acc.init();
chrono.start();
for (int i = 0; i < 50; i++)
- mln::canvas::morpho::impl::generic::leveling(ima, acc);
+ mln::canvas::morpho::impl::generic::dataing(ima, acc);
elapsed = chrono.stop();
std::cout << "(generic) " << elapsed << "s : " << acc.to_result() << std::endl;
@@ -324,7 +324,7 @@
acc.init();
chrono.start();
for (int i = 0; i < 50; i++)
- mln::canvas::morpho::impl::leveling_fastest(ima, acc);
+ mln::canvas::morpho::impl::dataing_fastest(ima, acc);
elapsed = chrono.stop();
std::cout << "(fast) " << elapsed << "s : " << acc.to_result() << std::endl;
Index: fred/old/leveling.cc
--- fred/old/leveling.cc (revision 3923)
+++ fred/old/leveling.cc (working copy)
@@ -26,20 +26,20 @@
I out;
chrono.start();
- out = mln::canvas::morpho::leveling_filter(lena, c4(), c, lambda, true);
+ out = mln::canvas::morpho::dataing_filter(lena, c4(), c, lambda, true);
elapsed = chrono.stop();
std::cout << "(auto) " << elapsed << "s" << std::endl;
mln::io::pgm::save(out, "auto.pgm");
chrono.start();
- out = mln::canvas::morpho::internal::leveling_filter_dispatch(mln::metal::true_(), lena, c4(), c, lambda, true);
+ out = mln::canvas::morpho::internal::dataing_filter_dispatch(mln::metal::true_(), lena, c4(), c, lambda, true);
elapsed = chrono.stop();
std::cout << "(fast) " << elapsed << "s" << std::endl;
mln::io::pgm::save(out, "fast.pgm");
chrono.start();
- out = mln::canvas::morpho::internal::leveling_filter_dispatch(mln::metal::false_(), lena, c4(), c, lambda, true);
+ out = mln::canvas::morpho::internal::dataing_filter_dispatch(mln::metal::false_(), lena, c4(), c, lambda, true);
elapsed = chrono.stop();
std::cout << "(slow) " << elapsed << "s" << std::endl;
Index: fred/old/algebraic.cc
--- fred/old/algebraic.cc (revision 3923)
+++ fred/old/algebraic.cc (working copy)
@@ -41,8 +41,8 @@
# include <mln/convert/to_upper_window.hh>
# include <mln/extension/adjust_fill.hh>
-# include <mln/level/sort_psites.hh>
-# include <mln/level/sort_offsets.hh>
+# include <mln/data/sort_psites.hh>
+# include <mln/data/sort_offsets.hh>
# include <mln/core/alias/neighb2d.hh>
# include "../edwin/accu_trait.hh"
@@ -304,8 +304,8 @@
{
p_array < mln_psite(I) > s =
increasing ?
- level::sort_psites_increasing(input) :
- level::sort_psites_decreasing(input);
+ data::sort_psites_increasing(input) :
+ data::sort_psites_decreasing(input);
return impl::generic::algebraic(input, nbh, s, a, lambda);
}
@@ -317,8 +317,8 @@
{
util::array<unsigned> s =
increasing ?
- level::sort_offsets_increasing(input) :
- level::sort_offsets_decreasing(input);
+ data::sort_offsets_increasing(input) :
+ data::sort_offsets_decreasing(input);
return impl::algebraic_fastest(input, nbh, s, a, lambda);
}
Index: fred/old/accuprops2.cc
--- fred/old/accuprops2.cc (revision 3923)
+++ fred/old/accuprops2.cc (working copy)
@@ -25,7 +25,7 @@
# define mln_trait_accu_has_stop(A) typename mln::trait::accu_< A >::has_stop
/// Shortcut to the accumulator property about behavior when pixel is given as take() value
-/// Used for instance in mln::canvas::morpho::leveling
+/// Used for instance in mln::canvas::morpho::dataing
# define mln_trait_accu_when_pix(A) typename mln::trait::accu_< A >::when_pix
namespace mln {
@@ -151,7 +151,7 @@
const Image<I>& input,
Accumulator<A>& acc)
{
- impl::generic::leveling(input, acc);
+ impl::generic::dataing(input, acc);
}
template <typename I, typename A>
@@ -161,7 +161,7 @@
const Image<I>& input,
Accumulator<A>& acc)
{
- impl::leveling_fastest(input, acc);
+ impl::dataing_fastest(input, acc);
}
template <typename I, typename A>
@@ -177,7 +177,7 @@
mlc_equal(mln_trait_accu_when_pix(A),
trait::accu::when_pix::use_v)::value
};
- internal::leveling_dispatch(metal::bool_<test>(),
+ internal::dataing_dispatch(metal::bool_<test>(),
input, acc);
}
@@ -190,7 +190,7 @@
leveling(const Image<I>& input,
Accumulator< A< util::pix<I> > >& acc)
{
- internal::leveling_dispatch(input, acc);
+ internal::dataing_dispatch(input, acc);
}
} // end of namespace mln::canvas::morpho
@@ -357,7 +357,7 @@
acc.init();
chrono.start();
for (int i = 0; i < 50; i++)
- mln::canvas::morpho::leveling(ima, acc);
+ mln::canvas::morpho::dataing(ima, acc);
elapsed = chrono.stop();
std::cout << "(auto) " << elapsed << "s : " << acc.to_result() << std::endl;
@@ -365,7 +365,7 @@
acc.init();
chrono.start();
for (int i = 0; i < 50; i++)
- mln::canvas::morpho::impl::generic::leveling(ima, acc);
+ mln::canvas::morpho::impl::generic::dataing(ima, acc);
elapsed = chrono.stop();
std::cout << "(generic) " << elapsed << "s : " << acc.to_result() << std::endl;
@@ -373,7 +373,7 @@
acc.init();
chrono.start();
for (int i = 0; i < 50; i++)
- mln::canvas::morpho::impl::leveling_fastest(ima, acc);
+ mln::canvas::morpho::impl::dataing_fastest(ima, acc);
elapsed = chrono.stop();
std::cout << "(fast) " << elapsed << "s : " << acc.to_result() << std::endl;
Index: fred/old/leveling_filter.hh
--- fred/old/leveling_filter.hh (revision 3923)
+++ fred/old/leveling_filter.hh (working copy)
@@ -41,8 +41,8 @@
# include <mln/data/fill.hh>
# include <mln/extension/adjust_fill.hh>
-# include <mln/level/sort_psites.hh>
-# include <mln/level/sort_offsets.hh>
+# include <mln/data/sort_psites.hh>
+# include <mln/data/sort_offsets.hh>
@@ -93,7 +93,7 @@
const Site_Set<S>& s_,
const Accumulator<A>& a_, const typename A::result& lambda)
{
- trace::entering("canvas::morpho::impl::generic::leveling_filter");
+ trace::entering("canvas::morpho::impl::generic::dataing_filter");
// FIXME: Test?!
const I& input = exact(input_);
@@ -185,7 +185,7 @@
output(p) = output(parent(p));
}
- trace::exiting("canvas::morpho::impl::generic::leveling_filter");
+ trace::exiting("canvas::morpho::impl::generic::dataing_filter");
return output;
}
@@ -212,7 +212,7 @@
const util::array<unsigned>& s,
const Accumulator<A>& a_, const typename A::result& lambda)
{
- trace::entering("canvas::morpho::impl::leveling_fastest");
+ trace::entering("canvas::morpho::impl::dataing_fastest");
// FIXME: Tests?
@@ -297,7 +297,7 @@
}
}
- trace::exiting("canvas::morpho::impl::leveling_fastest");
+ trace::exiting("canvas::morpho::impl::dataing_fastest");
return output;
}
@@ -317,9 +317,9 @@
{
p_array < mln_psite(I) > s =
increasing ?
- level::sort_psites_increasing(input) :
- level::sort_psites_decreasing(input);
- return impl::generic::leveling_filter(input, nbh, s, a, lambda);
+ data::sort_psites_increasing(input) :
+ data::sort_psites_decreasing(input);
+ return impl::generic::dataing_filter(input, nbh, s, a, lambda);
}
template <typename I, typename N, typename A>
@@ -331,9 +331,9 @@
{
util::array<unsigned> s =
increasing ?
- level::sort_offsets_increasing(input) :
- level::sort_offsets_decreasing(input);
- return impl::leveling_filter_fastest(input, nbh, s, a, lambda);
+ data::sort_offsets_increasing(input) :
+ data::sort_offsets_decreasing(input);
+ return impl::dataing_filter_fastest(input, nbh, s, a, lambda);
}
template <typename I, typename N, typename A>
@@ -370,7 +370,7 @@
bool increasing)
{
//FIXME: Do we need to check input validity ?
- return internal::leveling_filter_dispatch(input, nbh, a, lambda, increasing);
+ return internal::dataing_filter_dispatch(input, nbh, a, lambda, increasing);
}
} // end of namespace mln::canvas::morpho
Index: fred/old/accu_trait.hh
--- fred/old/accu_trait.hh (revision 3923)
+++ fred/old/accu_trait.hh (working copy)
@@ -14,7 +14,7 @@
# define mln_trait_accu_has_stop(A) typename mln::trait::accu_< A >::has_stop
/// Shortcut to the accumulator property about behavior when pixel is given as take() value
-/// Used for instance in mln::canvas::morpho::leveling
+/// Used for instance in mln::canvas::morpho::dataing
# define mln_trait_accu_when_pix(A) typename mln::trait::accu_< A >::when_pix
namespace mln {
Index: igr/code/test.cc
--- igr/code/test.cc (revision 3923)
+++ igr/code/test.cc (working copy)
@@ -17,7 +17,7 @@
#include <mln/io/pgm/save.hh>
#include <mln/data/paste.hh>
-#include <mln/level/apply.hh>
+#include <mln/data/apply.hh>
#include <mln/fun/v2v/rgb_to_hsi.hh>
#include <mln/fun/v2v/abs.hh>
Index: icdar/2009/dibco/quasi.cc
--- icdar/2009/dibco/quasi.cc (revision 3923)
+++ icdar/2009/dibco/quasi.cc (working copy)
@@ -20,8 +20,8 @@
#include <mln/labeling/regional_minima.hh>
#include <mln/labeling/wrap.hh>
-#include <mln/level/transform.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/transform.hh>
+#include <mln/data/convert.hh>
#include <mln/math/diff_abs.hh>
@@ -54,7 +54,7 @@
mln_precondition(input.is_valid());
typedef mln_psite(I) P;
- p_array<P> s = level::sort_psites_increasing(input);
+ p_array<P> s = data::sort_psites_increasing(input);
std::vector<bool> valid;
valid.push_back(false); // For valid[0] where 0 is the non-label value.
@@ -135,7 +135,7 @@
fun::i2v::array<bool> f_valid;
convert::from_to(valid, f_valid);
- mln_ch_value(I, bool) out = level::transform(lab, f_valid);
+ mln_ch_value(I, bool) out = data::transform(lab, f_valid);
io::pgm::save(labeling::wrap(value::int_u8(), lab),
"tmp_lab.pgm");
Index: icdar/2009/dibco/svg.1.binarization.cc
--- icdar/2009/dibco/svg.1.binarization.cc (revision 3923)
+++ icdar/2009/dibco/svg.1.binarization.cc (working copy)
@@ -361,7 +361,7 @@
fun::i2v::array<int_u8> f_med;
convert::from_to(basin_med, f_med);
- // io::pgm::save(level::transform(wst, f_med), "basin_med.pgm");
+ // io::pgm::save(data::transform(wst, f_med), "basin_med.pgm");
p_vertices<util::graph, fun::i2v::array<point2d> >
pv = make::common_pvertices(wst, nbasins, rag_data.first());
@@ -406,7 +406,7 @@
}
}
- io::pgm::save(level::transform(wst, out.function()),
+ io::pgm::save(data::transform(wst, out.function()),
"temp_out.pgm");
// Enqueuing.
@@ -458,7 +458,7 @@
out(p_) = id; // object or background.
}
- io::pgm::save(level::transform(wst, out.function()),
+ io::pgm::save(data::transform(wst, out.function()),
"temp_out_2.pgm");
}
Index: icdar/2009/dibco/svg.2.binarization.cc
--- icdar/2009/dibco/svg.2.binarization.cc (revision 3923)
+++ icdar/2009/dibco/svg.2.binarization.cc (working copy)
@@ -46,8 +46,8 @@
#include <mln/labeling/regional_minima.hh>
#include <mln/labeling/wrap.hh>
-#include <mln/level/transform.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/transform.hh>
+#include <mln/data/convert.hh>
#include <mln/linear/gaussian_1d.hh>
@@ -622,9 +622,9 @@
if (echo)
{
- io::pgm::save(level::transform(w_all, f_med),
+ io::pgm::save(data::transform(w_all, f_med),
"temp_w_all.pgm");
- io::pgm::save(level::transform(ws, f_med), "temp_basin_med.pgm");
+ io::pgm::save(data::transform(ws, f_med), "temp_basin_med.pgm");
}
p_vertices<util::graph, fun::i2v::array<point2d> >
@@ -672,7 +672,7 @@
if (echo)
{
- io::pgm::save(level::transform(ws, out.function()),
+ io::pgm::save(data::transform(ws, out.function()),
"temp_out.pgm");
}
@@ -727,11 +727,11 @@
if (echo)
{
- io::pgm::save(level::transform(ws, out.function()),
+ io::pgm::save(data::transform(ws, out.function()),
"temp_out_2.pgm");
}
- io::pbm::save((pw::value(level::transform(ws,
+ io::pbm::save((pw::value(data::transform(ws,
out.function())) == pw::cst(255))
| input.domain(),
argv[4]);
Index: icdar/2009/dibco/svg.3.binarization.cc
--- icdar/2009/dibco/svg.3.binarization.cc (revision 3923)
+++ icdar/2009/dibco/svg.3.binarization.cc (working copy)
@@ -48,8 +48,8 @@
#include <mln/labeling/regional_minima.hh>
#include <mln/labeling/wrap.hh>
-#include <mln/level/transform.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/transform.hh>
+#include <mln/data/convert.hh>
#include <mln/linear/gaussian_1d.hh>
@@ -725,9 +725,9 @@
if (echo)
{
- io::pgm::save(level::transform(w_all, f_med),
+ io::pgm::save(data::transform(w_all, f_med),
"temp_w_all.pgm");
- io::pgm::save(level::transform(ws, f_med), "temp_basin_med.pgm");
+ io::pgm::save(data::transform(ws, f_med), "temp_basin_med.pgm");
}
p_vertices<util::graph, fun::i2v::array<point2d> >
@@ -746,7 +746,7 @@
mln_VAR( lab, labeling__quasi_regional_minima(med, nbh, threshold, n_objects) );
- io::pbm::save((pw::value(level::transform(ws,
+ io::pbm::save((pw::value(data::transform(ws,
lab.function())) != pw::cst(0))
| input.domain(),
argv[4]);
@@ -790,7 +790,7 @@
if (echo)
{
- io::pgm::save(level::transform(ws, out.function()),
+ io::pgm::save(data::transform(ws, out.function()),
"temp_out.pgm");
}
@@ -846,11 +846,11 @@
if (echo)
{
- io::pgm::save(level::transform(ws, out.function()),
+ io::pgm::save(data::transform(ws, out.function()),
"temp_out_2.pgm");
}
- io::pbm::save((pw::value(level::transform(ws,
+ io::pbm::save((pw::value(data::transform(ws,
out.function())) == pw::cst(255))
| input.domain(),
argv[4]);
Index: icdar/2009/dibco/binarization.cc
--- icdar/2009/dibco/binarization.cc (revision 3923)
+++ icdar/2009/dibco/binarization.cc (working copy)
@@ -48,8 +48,8 @@
#include <mln/labeling/regional_minima.hh>
#include <mln/labeling/wrap.hh>
-#include <mln/level/transform.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/transform.hh>
+#include <mln/data/convert.hh>
#include <mln/linear/gaussian_1d.hh>
@@ -509,7 +509,7 @@
mln_precondition(input.is_valid());
typedef mln_psite(I) P;
- p_array<P> s = level::sort_psites_increasing(input);
+ p_array<P> s = data::sort_psites_increasing(input);
std::vector<bool> valid;
valid.push_back(false); // For valid[0] where 0 is the non-label value.
@@ -564,7 +564,7 @@
fun::i2v::array<bool> f_valid;
convert::from_to(valid, f_valid);
- mln_ch_value(I, bool) out = level::transform(lab, f_valid);
+ mln_ch_value(I, bool) out = data::transform(lab, f_valid);
trace::exiting("labeling__quasi_regional_minima");
return out;
@@ -702,9 +702,9 @@
if (echo)
{
- io::pgm::save(level::transform(w_all, f_med),
+ io::pgm::save(data::transform(w_all, f_med),
"temp_w_all.pgm");
- io::pgm::save(level::transform(ws, f_med), "temp_basin_med.pgm");
+ io::pgm::save(data::transform(ws, f_med), "temp_basin_med.pgm");
}
p_vertices<util::graph, fun::i2v::array<point2d> >
@@ -722,11 +722,11 @@
mln_VAR( lab, labeling__quasi_regional_minima(med, nbh, threshold, n_objects) );
- io::pbm::save(pw::value(level::transform(ws, lab.function()))
+ io::pbm::save(pw::value(data::transform(ws, lab.function()))
| input.domain(),
argv[4]);
-// io::pbm::save((pw::value(level::transform(ws,
+// io::pbm::save((pw::value(data::transform(ws,
// lab.function())) != pw::cst(0))
// | input.domain(),
// argv[4]);
@@ -770,7 +770,7 @@
if (echo)
{
- io::pgm::save(level::transform(ws, out.function()),
+ io::pgm::save(data::transform(ws, out.function()),
"temp_out.pgm");
}
@@ -826,11 +826,11 @@
if (echo)
{
- io::pgm::save(level::transform(ws, out.function()),
+ io::pgm::save(data::transform(ws, out.function()),
"temp_out_2.pgm");
}
- io::pbm::save((pw::value(level::transform(ws,
+ io::pbm::save((pw::value(data::transform(ws,
out.function())) == pw::cst(255))
| input.domain(),
argv[4]);
Index: icdar/2009/hsc/icdar2ppm.hh
--- icdar/2009/hsc/icdar2ppm.hh (revision 3923)
+++ icdar/2009/hsc/icdar2ppm.hh (working copy)
@@ -4,7 +4,7 @@
# include <mln/core/image/image2d.hh>
# include <mln/value/label_8.hh>
# include <mln/value/rgb8.hh>
-# include <mln/level/compute.hh>
+# include <mln/data/compute.hh>
# include <mln/accu/count_labels.hh>
# include <mln/labeling/colorize.hh>
# include <mln/io/ppm/save.hh>
@@ -25,7 +25,7 @@
image2d<value::label_8> ima;
io::icdar::load(ima, icdarfile, ref.nrows(), ref.ncols());
- value::label_8 nlines = level::compute(accu::meta::count_labels(), ima);
+ value::label_8 nlines = data::compute(accu::meta::count_labels(), ima);
io::ppm::save(labeling::colorize(value::rgb8(), ima, nlines), ppmfile);
}
Index: icdar/2009/hsc/icdar_io.cc
--- icdar/2009/hsc/icdar_io.cc (revision 3923)
+++ icdar/2009/hsc/icdar_io.cc (working copy)
@@ -3,7 +3,7 @@
#include <mln/make/image2d.hh>
#include <mln/debug/println.hh>
#include <mln/io/pgm/load.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include "io/icdar/save.hh"
#include "io/icdar/load.hh"
Index: icdar/2009/hsc/clean_input.hh
--- icdar/2009/hsc/clean_input.hh (revision 3923)
+++ icdar/2009/hsc/clean_input.hh (working copy)
@@ -8,7 +8,7 @@
#include <mln/accu/bbox.hh>
#include <mln/fun/i2v/array.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
namespace mln
@@ -39,7 +39,7 @@
center_col <= 3)
ok(l) = true;
}
- return level::transform(lab, ok);
+ return data::transform(lab, ok);
}
} // mln
Index: icdar/2009/hsc/lines_to_boxes.cc
--- icdar/2009/hsc/lines_to_boxes.cc (revision 3923)
+++ icdar/2009/hsc/lines_to_boxes.cc (working copy)
@@ -4,7 +4,7 @@
#include <mln/io/pgm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/literal/colors.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
#include <mln/value/label_8.hh>
#include <mln/estim/min_max.hh>
@@ -48,7 +48,7 @@
input_,
n);
- image2d<rgb8> out = level::convert(rgb8(), input);
+ image2d<rgb8> out = data::convert(rgb8(), input);
scribo::draw::bounding_boxes(out, boxes, literal::red);
io::ppm::save(out, argv[2]);
}
Index: icdar/2009/hsc/first_attempts/exec/iz_lines.cc
--- icdar/2009/hsc/first_attempts/exec/iz_lines.cc (revision 3923)
+++ icdar/2009/hsc/first_attempts/exec/iz_lines.cc (working copy)
@@ -13,7 +13,7 @@
#include <mln/transform/influence_zone_geodesic.hh>
-// #include <mln/level/transform.hh>
+// #include <mln/data/transform.hh>
// #include <mln/fun/v2v/wrap.hh>
Index: icdar/2009/hsc/first_attempts/exec/relabel_lines.cc
--- icdar/2009/hsc/first_attempts/exec/relabel_lines.cc (revision 3923)
+++ icdar/2009/hsc/first_attempts/exec/relabel_lines.cc (working copy)
@@ -16,7 +16,7 @@
#include <mln/labeling/colorize.hh>
#include <mln/transform/influence_zone_geodesic.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/fun/v2v/wrap.hh>
@@ -190,7 +190,7 @@
image2d<L2> line_lab = labeling::blobs(lines, c8(), n_lines);
{
- io::pgm::save(level::transform(line_lab,
+ io::pgm::save(data::transform(line_lab,
fun::v2v::wrap<value::int_u8>()),
"tmp_lines.pgm");
}
Index: icdar/2009/hsc/first_attempts/boxes.cc
--- icdar/2009/hsc/first_attempts/boxes.cc (revision 3923)
+++ icdar/2009/hsc/first_attempts/boxes.cc (working copy)
@@ -97,7 +97,7 @@
io::dump::save(grouped_text.label_image(), argv[2]);
- io::pgm::save(level::transform(grouped_text.label_image(),
+ io::pgm::save(data::transform(grouped_text.label_image(),
fun::v2v::wrap<value::int_u8>()),
"tmp.pgm");
Index: icdar/2009/hsc/first_attempts/main.cc
--- icdar/2009/hsc/first_attempts/main.cc (revision 3923)
+++ icdar/2009/hsc/first_attempts/main.cc (working copy)
@@ -7,8 +7,8 @@
#include <mln/pw/all.hh>
#include <mln/data/fill.hh>
-#include <mln/level/saturate.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/saturate.hh>
+#include <mln/data/convert.hh>
#include <mln/arith/revert.hh>
#include <mln/value/int_u8.hh>
@@ -321,7 +321,7 @@
out = linear::gaussian_directional_2d(temp, 1, h_sigma, 0);
out = linear::gaussian_directional_2d(out, 0, v_sigma, 0);
- fuzzy = level::saturate(int_u8(), out);
+ fuzzy = data::saturate(int_u8(), out);
# ifdef LOG
io::pgm::save(fuzzy, "tmp_fuzzy.pgm");
@@ -350,7 +350,7 @@
io::pgm::save(ws, "tmp_ws.pgm");
- image2d<rgb8> cool = level::convert(rgb8(), small);
+ image2d<rgb8> cool = data::convert(rgb8(), small);
data::fill((cool | (pw::value(ws) == pw::cst(0))).rw(),
literal::red);
io::ppm::save(cool, "tmp_ws.ppm");
Index: icdar/2009/hsc/input_to_ws.hh
--- icdar/2009/hsc/input_to_ws.hh (revision 3923)
+++ icdar/2009/hsc/input_to_ws.hh (working copy)
@@ -2,7 +2,7 @@
#include <mln/core/alias/neighb2d.hh>
#include <mln/data/fill.hh>
-#include <mln/level/saturate.hh>
+#include <mln/data/saturate.hh>
#include <mln/value/int_u8.hh>
@@ -17,7 +17,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/literal/colors.hh>
#include <mln/labeling/colorize.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
#include <mln/labeling/wrap.hh>
#include <mln/pw/all.hh>
#include <mln/core/image/dmorph/image_if.hh>
@@ -59,7 +59,7 @@
out = linear::gaussian_directional_2d(temp, 1, h_sigma, 0);
out = linear::gaussian_directional_2d(out, 0, v_sigma, 0);
- fuzzy = level::saturate(value::int_u8(), out);
+ fuzzy = data::saturate(value::int_u8(), out);
#ifdef LOG
io::pgm::save(small, "temp_small.pgm");
@@ -78,14 +78,14 @@
# ifdef LOG
{
// Watershed line (red) over small image.
- image2d<value::rgb8> cool = level::convert(value::rgb8(), small);
+ image2d<value::rgb8> cool = data::convert(value::rgb8(), small);
data::fill((cool | (pw::value(ws) == pw::cst(0))).rw(),
literal::red);
io::ppm::save(cool, "temp_small_ws.ppm");
}
{
// Watershed line (red) over fuzzy image.
- image2d<value::rgb8> cool = level::convert(value::rgb8(), fuzzy);
+ image2d<value::rgb8> cool = data::convert(value::rgb8(), fuzzy);
data::fill((cool | (pw::value(ws) == pw::cst(0))).rw(),
literal::red);
io::ppm::save(cool, "temp_fuzzy_ws.ppm");
Index: icdar/2009/hsc/old_input_to_lines.cc
--- icdar/2009/hsc/old_input_to_lines.cc (revision 3923)
+++ icdar/2009/hsc/old_input_to_lines.cc (working copy)
@@ -7,8 +7,8 @@
#include <mln/pw/all.hh>
#include <mln/data/fill.hh>
-#include <mln/level/saturate.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/saturate.hh>
+#include <mln/data/convert.hh>
#include <mln/arith/revert.hh>
#include <mln/value/int_u8.hh>
@@ -324,7 +324,7 @@
out = linear::gaussian_directional_2d(temp, 1, h_sigma, 0);
out = linear::gaussian_directional_2d(out, 0, v_sigma, 0);
- fuzzy = level::saturate(int_u8(), out);
+ fuzzy = data::saturate(int_u8(), out);
# ifdef LOG
io::pgm::save(fuzzy, "tmp_fuzzy.pgm");
@@ -353,7 +353,7 @@
io::pgm::save(ws, "tmp_ws.pgm");
- image2d<rgb8> cool = level::convert(rgb8(), small);
+ image2d<rgb8> cool = data::convert(rgb8(), small);
data::fill((cool | (pw::value(ws) == pw::cst(0))).rw(),
literal::red);
io::ppm::save(cool, "tmp_ws.ppm");
Index: icdar/2009/hsc/lines_to_words.cc
--- icdar/2009/hsc/lines_to_words.cc (revision 3923)
+++ icdar/2009/hsc/lines_to_words.cc (working copy)
@@ -7,7 +7,7 @@
#include <mln/io/pbm/all.hh>
#include <mln/io/ppm/all.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
#include <mln/labeling/relabel.hh>
#include "get_line_images.hh"
@@ -39,7 +39,7 @@
image2d<int_u8> lines_;
io::pgm::load(lines_, argv[2]);
- image2d<label_16> lines = level::convert(label_16(), lines_);
+ image2d<label_16> lines = data::convert(label_16(), lines_);
label_16 nlines;
labeling::relabel_inplace(lines, nlines);
Index: icdar/2009/hsc/ws_to_wsl.hh
--- icdar/2009/hsc/ws_to_wsl.hh (revision 3923)
+++ icdar/2009/hsc/ws_to_wsl.hh (working copy)
@@ -10,7 +10,7 @@
#include <mln/value/int_u8.hh>
#include <mln/util/array.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/accu/internal/base.hh>
@@ -31,12 +31,12 @@
#include <mln/io/ppm/save.hh>
#include <mln/literal/colors.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
#include <mln/pw/all.hh>
#include <mln/core/image/dmorph/image_if.hh>
#include <mln/fun/i2v/array.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/labeling/colorize.hh>
@@ -406,7 +406,7 @@
for (L l = 1; l <= n_basins; ++l)
f_relab(l) = parent[l];
- image2d<L> ws_ = level::transform(ws, f_relab);
+ image2d<L> ws_ = data::transform(ws, f_relab);
image2d<rgb8> cool = labeling::colorize(rgb8(), ws_, n_basins);
data::fill((cool | (pw::value(ws) == pw::cst(0))).rw(),
literal::white);
Index: nivault/plugin-gimp/src/build-image.hh
--- nivault/plugin-gimp/src/build-image.hh (revision 3923)
+++ nivault/plugin-gimp/src/build-image.hh (working copy)
@@ -38,7 +38,7 @@
# include <mln/value/rgb8.hh>
# include <mln/literal/all.hh>
# include <mln/core/concept/function.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/border/resize.hh>
# include <mln/io/ppm/save.hh>
Index: nivault/extract_score.cc
--- nivault/extract_score.cc (revision 3923)
+++ nivault/extract_score.cc (working copy)
@@ -63,8 +63,8 @@
# include <mln/core/mesh_p.hh>
# include <mln/draw/mesh.hh>
-# include <mln/level/stretch.hh>
-# include <mln/level/threshold.hh>
+# include <mln/data/stretch.hh>
+# include <mln/data/threshold.hh>
# include <mln/linear/gaussian.hh>
# include <mln/core/image_if_value.hh>
@@ -160,7 +160,7 @@
pt2[coord] = 0;
projected(pt2) += ima(p);
}
- level::stretch(projected, projected_stretched);
+ data::stretch(projected, projected_stretched);
return projected_stretched;
}
@@ -190,10 +190,10 @@
// linear::gaussian(histo_col, 5, histo_col_blur);
// io::pgm::save(histo_col_blur, "histo_col_blur.pgm");
-// level::stretch(histo_col, histo_col);
+// data::stretch(histo_col, histo_col);
// io::pgm::save(histo_col, "histo_col.pgm");
// IB histo_col_b(histo_col.domain());
-// histo_col_b = level::threshold(histo_col, mln_value_(IU8)(175));
+// histo_col_b = data::threshold(histo_col, mln_value_(IU8)(175));
// io::pbm::save(histo_col_b, "histo_col_b.pbm");
// }
@@ -205,7 +205,7 @@
// unsigned nlabels;
// IU inter_labeled = labeling::blobs(only_big, c4(), nlabels); // labelling blobs don't use algo(input, output) formalism
// IU8 labeled(inter_labeled.domain()); // and it should return int_u8 ?
-// level::stretch(inter_labeled, labeled);
+// data::stretch(inter_labeled, labeled);
// io::pgm::save(labeled, "labeled.pgm");
// }
Index: nivault/extract_character.cc
--- nivault/extract_character.cc (revision 3923)
+++ nivault/extract_character.cc (working copy)
@@ -61,7 +61,7 @@
# include <mln/core/mesh_p.hh>
# include <mln/draw/mesh.hh>
-# include <mln/level/stretch.hh>
+# include <mln/data/stretch.hh>
# include <mln/core/image_if_value.hh>
# include <mln/core/image/dmorph/sub_image.hh>
@@ -335,17 +335,17 @@
image2d<int_u8> out (label_image.domain ());
// // Save the influence area of the node of the graphe (seed2tiling result).
-// level::stretch (zi_image, out);
+// data::stretch (zi_image, out);
// io::pgm::save(out, path_output + ".text_area.approx.pgm");
// std::cout << path_output + ".text_area.approx.pgm" << " generated" << std::endl;
// // Save the graph of the text.
-// level::stretch (gr_image, out);
+// data::stretch (gr_image, out);
// io::pgm::save(out, path_output + ".text_graph.pgm");
// std::cout << path_output + ".text_graph.pgm" << " generated" << std::endl;
// Save the the text image.
- level::stretch (text_image, out);
+ data::stretch (text_image, out);
io::pgm::save(out, path_output + ".text.pgm");
std::cout << path_output + ".text.pgm" << " generated" << std::endl;
@@ -354,7 +354,7 @@
std::cout << path_output + ".ppm" << " generated" << std::endl;
// image2d<int_u8> process (input.domain ());
-// level::stretch (output_2, process);
+// data::stretch (output_2, process);
// io::pgm::save(process, "process.pgm");
}
Index: nivault/median.hh
--- nivault/median.hh (revision 3923)
+++ nivault/median.hh (working copy)
@@ -28,7 +28,7 @@
#ifndef MLN_LEVEL_MEDIAN_HH
# define MLN_LEVEL_MEDIAN_HH
-/*! \file mln/level/median.hh
+/*! \file mln/data/median.hh
*
* \brief Median filtering of an image.
*/
@@ -56,7 +56,7 @@
namespace mln
{
- namespace level
+ namespace data
{
/*! Compute in \p output the median filter of image \p input by
@@ -223,7 +223,7 @@
# endif
- } // end of namespace mln::level::impl
+ } // end of namespace mln::data::impl
// Facades.
@@ -249,7 +249,7 @@
# endif // ! MLN_INCLUDE_ONLY
- } // end of namespace mln::level
+ } // end of namespace mln::data
} // end of namespace mln
Index: exec/bw_negate_in_color.cc
--- exec/bw_negate_in_color.cc (revision 3923)
+++ exec/bw_negate_in_color.cc (working copy)
@@ -42,5 +42,5 @@
io::ppm::load(input, argv[1]);
bw_negate_in_color f;
- io::ppm::save(level::transform(input, f), argv[2]);
+ io::ppm::save(data::transform(input, f), argv[2]);
}
Index: fabien/igr/time_max_norm.cc
--- fabien/igr/time_max_norm.cc (revision 3923)
+++ fabien/igr/time_max_norm.cc (working copy)
@@ -24,8 +24,8 @@
#include <mln/data/fill.hh>
#include <mln/data/paste.hh>
-#include <mln/level/compute.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/compute.hh>
+#include <mln/data/stretch.hh>
#include <mln/math/abs.hh>
#include <mln/pw/all.hh>
@@ -66,8 +66,8 @@
std::ostringstream stime;
stime << desc << "_time.pgm";
- image2d<int_u8> result_c = level::stretch(int_u8(), ima_c);
- image2d<int_u8> result_t = level::stretch(int_u8(), ima_t);
+ image2d<int_u8> result_c = data::stretch(int_u8(), ima_c);
+ image2d<int_u8> result_t = data::stretch(int_u8(), ima_t);
io::pgm::save(result_c, smax.str());
io::pgm::save(result_t, stime.str());
}
Index: fabien/igr/smooth_fixed_seg/main.cc
--- fabien/igr/smooth_fixed_seg/main.cc (revision 3923)
+++ fabien/igr/smooth_fixed_seg/main.cc (working copy)
@@ -28,9 +28,9 @@
#include <mln/fun/v2v/fit.hh>
#include <mln/labeling/compute.hh>
#include <mln/labeling/wrap.hh>
-#include <mln/level/compute.hh>
-#include <mln/level/convert.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/compute.hh>
+#include <mln/data/convert.hh>
+#include <mln/data/stretch.hh>
#include <mln/linear/convolve.hh>
#include <mln/make/image2d.hh>
#include <mln/make/w_window1d.hh>
@@ -111,12 +111,12 @@
image1d<V> tmp_ima;
convert::from_to(v1, tmp_ima);
image1d<float> morpho_ima = mean_image(tmp_ima);
- float sum_v1 = level::compute(accu_sum, morpho_ima);
+ float sum_v1 = data::compute(accu_sum, morpho_ima);
image1d<V> tmp_ima2;
convert::from_to(v2, tmp_ima2);
image1d<float> morpho_ima2 = mean_image(tmp_ima2);
- float sum_v2 = level::compute(accu_sum, morpho_ima2);
+ float sum_v2 = data::compute(accu_sum, morpho_ima2);
mln_piter(image1d<float>) p(morpho_ima.domain());
for_all(p)
@@ -168,14 +168,14 @@
// Edges distance computation.
mln_VAR(edges, world::inter_pixel::compute(imax, dist));
- mln_VAR(e, level::transform(edges, fun::v2v::fit<float>(SATURATION)));
+ mln_VAR(e, data::transform(edges, fun::v2v::fit<float>(SATURATION)));
io::dump::save(e.unmorph_(), "edges_int_u12.dump");
typedef int_u12 E_TYPE;
{
// Display.
mln_VAR(display_ima, world::inter_pixel::display_edge(e.unmorph_(), 0.0, 3));
- io::pgm::save(level::stretch(int_u8(), display_ima), "01_edges.pgm");
+ io::pgm::save(data::stretch(int_u8(), display_ima), "01_edges.pgm");
}
@@ -186,7 +186,7 @@
{
// Display.
mln_VAR(display_clo, world::inter_pixel::display_edge(clo.unmorph_(), 0.0, 3));
- io::pgm::save(level::stretch(int_u8(), display_clo), "03_closing.pgm");
+ io::pgm::save(data::stretch(int_u8(), display_clo), "03_closing.pgm");
}
@@ -233,7 +233,7 @@
for (unsigned i = 1; i < means.nelements(); ++i)
data::fill((ima_means | pw::value(ima_means) == pw::cst(i)).rw(), means[i]);
mln_VAR(display_means, world::inter_pixel::display_edge(ima_means.unmorph_(), 0.0, 3));
- io::pgm::save(level::stretch(int_u8(), display_means), "04_means.pgm");
+ io::pgm::save(data::stretch(int_u8(), display_means), "04_means.pgm");
}
Index: fabien/igr/time_max.cc
--- fabien/igr/time_max.cc (revision 3923)
+++ fabien/igr/time_max.cc (working copy)
@@ -22,8 +22,8 @@
#include <mln/data/fill.hh>
#include <mln/data/paste.hh>
-#include <mln/level/compute.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/compute.hh>
+#include <mln/data/stretch.hh>
#include <mln/math/abs.hh>
#include <mln/pw/all.hh>
@@ -108,8 +108,8 @@
ima_t(p) = k;
}
- image2d<int_u8> result_c = level::stretch(int_u8(), ima_c);
- image2d<int_u8> result_t = level::stretch(int_u8(), ima_t);
+ image2d<int_u8> result_c = data::stretch(int_u8(), ima_c);
+ image2d<int_u8> result_t = data::stretch(int_u8(), ima_t);
io::magick::save(result_c, "result_max.png");
io::magick::save(result_t, "result_time.png");
Index: fabien/igr/fun_labels.cc
--- fabien/igr/fun_labels.cc (revision 3923)
+++ fabien/igr/fun_labels.cc (working copy)
@@ -28,8 +28,8 @@
#include <mln/accu/mean.hh>
#include <mln/accu/median_h.hh>
#include <mln/data/fill.hh>
-#include <mln/level/compute.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/compute.hh>
+#include <mln/data/stretch.hh>
#include <mln/make/box3d.hh>
#include <mln/morpho/elementary/dilation.hh>
#include <mln/pw/all.hh>
@@ -72,7 +72,7 @@
sli, max_row, max_col);
mln_VAR(slice_label, vol_label | slice);
accu::mean<mln_value(I)> accu_mean;
- float mean = level::compute(accu_mean, slice_label);
+ float mean = data::compute(accu_mean, slice_label);
arr.append(mean);
}
@@ -105,7 +105,7 @@
{
image2d<int_u12> ima_slice = duplicate(slice(ima, sli));
image2d<label_16> lbl_slice = duplicate(slice(ima_labels, sli));
- float mean = level::compute(accu_mean, ima_slice | pw::value(lbl_slice) == pw::cst(l));
+ float mean = data::compute(accu_mean, ima_slice | pw::value(lbl_slice) == pw::cst(l));
arrays[l].append(mean);
}
}
@@ -168,7 +168,7 @@
}
// Taking the median value of the region.
accu::mean<mln_value(I)> accu_mean;
- mln_value(I) mean = level::compute(accu_mean, ima_slice | pw::value(lbl_slice) == pw::cst(lbl_slice(point)));
+ mln_value(I) mean = data::compute(accu_mean, ima_slice | pw::value(lbl_slice) == pw::cst(lbl_slice(point)));
arr.append(mean);
prev_lbl = lbl_slice(point);
@@ -181,7 +181,7 @@
if (sli < 10)
str_ima << "0";
str_ima << sli << ".pgm";
- io::pgm::save(level::stretch(int_u8(), ima_slice), str_ima.str());*/
+ io::pgm::save(data::stretch(int_u8(), ima_slice), str_ima.str());*/
}
if (!arr.is_empty())
Index: fabien/igr/norm.cc
--- fabien/igr/norm.cc (revision 3923)
+++ fabien/igr/norm.cc (working copy)
@@ -21,11 +21,11 @@
#include <mln/core/var.hh>
#include <mln/estim/min_max.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
/*#include <mln/accu/min.hh>
#include <mln/accu/max.hh>
-#include <mln/level/compute.hh>*/
+#include <mln/data/compute.hh>*/
using namespace mln;
using value::int_u12;
@@ -65,7 +65,7 @@
image2d<float> ima_ini = mean_slices(ima_f, first, last);
// Debug.
- //io::pgm::save(level::stretch(value::int_u8(), ima_ini), "mean_slices.pgm");
+ //io::pgm::save(data::stretch(value::int_u8(), ima_ini), "mean_slices.pgm");
image3d<float> ima_result;
initialize(ima_result, ima);
Index: fabien/igr/watershed2d.cc
--- fabien/igr/watershed2d.cc (revision 3923)
+++ fabien/igr/watershed2d.cc (working copy)
@@ -17,8 +17,8 @@
#include <mln/value/int_u12.hh>
#include <mln/value/label_16.hh>
-#include <mln/level/transform.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/transform.hh>
+#include <mln/data/stretch.hh>
#include <mln/labeling/mean_values.hh>
@@ -50,7 +50,7 @@
#include <mln/accu/compute.hh>
#include <mln/core/alias/dpoint2d.hh>
#include <mln/draw/box.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/fun/v2v/id.hh>
#include <mln/fun/l2l/wrap.hh>
#include <mln/core/image/line_graph_elt_neighborhood.hh>
@@ -132,7 +132,7 @@
convert::from_to(m_3f, m);
m[0] = 150u;
- /*io::ppm::save(level::transform(w,
+ /*io::ppm::save(data::transform(w,
convert::to< fun::i2v::array<mln_value(I)> >(m)),
"wst_rag_wshd_color.ppm");*/
@@ -259,7 +259,7 @@
image2d<int_u12> dcm;
io::dicom::load(dcm, argv[1]);
- io::pgm::save(level::stretch(int_u8(), dcm), "wsd_01_src.pgm");
+ io::pgm::save(data::stretch(int_u8(), dcm), "wsd_01_src.pgm");
image2d<int_u12> grad = morpho::gradient(dcm, win_c4p());
image2d<int_u12> clo = morpho::closing::area(grad, c4(), closure_lambda);
@@ -267,14 +267,14 @@
label_16 nbasins;
image2d<label_16> wshed = morpho::meyer_wst(clo, c4(), nbasins);
- io::pgm::save(level::stretch(int_u8(), clo), "wsd_02.pgm");
- io::pgm::save(level::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_03.pgm");
+ io::pgm::save(data::stretch(int_u8(), clo), "wsd_02.pgm");
+ io::pgm::save(data::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_03.pgm");
mln_VAR(vol2_, morpho::elementary::dilation(extend(wshed | (pw::value(wshed) == 0u), wshed), c8()));
data::fill((wshed | (pw::value(wshed) == 0u)).rw(), vol2_);
- io::pgm::save(level::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_04.pgm");
+ io::pgm::save(data::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_04.pgm");
/// Build graph
util::graph g = make::graph(wshed, c4(), nbasins);
@@ -309,9 +309,9 @@
}
mln_invariant(f(0) == 0u);
--nbasins2; // nbasins2 does not count the basin with label 0.
- image2d<label_16> wsd2 = level::transform(wshed, f);
+ image2d<label_16> wsd2 = data::transform(wshed, f);
- io::pgm::save(level::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_05.pgm");
+ io::pgm::save(data::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_05.pgm");
/// Reconstruct a graph from the simplified image.
util::graph g2 = make::graph(wsd2, c4(), nbasins2);
@@ -324,8 +324,8 @@
data::fill((wsd2 | (pw::value(wsd2) == 0u)).rw(), wsd2_);
- io::pgm::save(level::transform(labeling::mean_values(dcm, wsd2, nbasins2), fun::l2l::wrap<int_u8>()), "wsd_06_mean_colors.pgm");
- io::pgm::save(level::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 4095)), "wsd_07_graph_image2_white.pgm");
- io::pgm::save(level::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 0)), "wsd_08_graph_image2_black.pgm");
- io::pgm::save(level::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_99_result.pgm");
+ io::pgm::save(data::transform(labeling::mean_values(dcm, wsd2, nbasins2), fun::l2l::wrap<int_u8>()), "wsd_06_mean_colors.pgm");
+ io::pgm::save(data::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 4095)), "wsd_07_graph_image2_white.pgm");
+ io::pgm::save(data::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 0)), "wsd_08_graph_image2_black.pgm");
+ io::pgm::save(data::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_99_result.pgm");
}
Index: fabien/igr/watershed3d.cc
--- fabien/igr/watershed3d.cc (revision 3923)
+++ fabien/igr/watershed3d.cc (working copy)
@@ -21,8 +21,8 @@
#include <mln/value/label_16.hh>
#include <mln/value/label_32.hh>
-#include <mln/level/transform.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/transform.hh>
+#include <mln/data/stretch.hh>
#include <mln/labeling/mean_values.hh>
@@ -54,7 +54,7 @@
#include <mln/accu/compute.hh>
#include <mln/core/alias/dpoint2d.hh>
#include <mln/draw/box.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/fun/v2v/id.hh>
#include <mln/fun/l2l/wrap.hh>
#include <mln/core/image/line_graph_elt_neighborhood.hh>
@@ -136,7 +136,7 @@
convert::from_to(m_3f, m);
m[0] = 150u;
- /*io::ppm::save(level::transform(w,
+ /*io::ppm::save(data::transform(w,
convert::to< fun::i2v::array<mln_value(I)> >(m)),
"wst_rag_wshd_color.ppm");*/
@@ -266,7 +266,7 @@
// Debug
assert(mln_max(label_32) == 4294967295);
- io::dump::save(level::stretch(int_u8(), dcm), "wsd_01_src.dump");
+ io::dump::save(data::stretch(int_u8(), dcm), "wsd_01_src.dump");
// Gradient
image3d<int_u12> grad = morpho::elementary::gradient(dcm, c6());
@@ -280,13 +280,13 @@
std::cout << "nbasins = " << nbasins << std::endl;
// Debug
- io::dump::save(level::stretch(int_u8(), clo), "wsd_02.dump");
- io::dump::save(level::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_03.dump");
+ io::dump::save(data::stretch(int_u8(), clo), "wsd_02.dump");
+ io::dump::save(data::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_03.dump");
//mln_VAR(vol2_, morpho::elementary::dilation(extend(wshed | (pw::value(wshed) == 0u), wshed), c26()));
//data::fill((wshed | (pw::value(wshed) == 0u)).rw(), vol2_);
- io::dump::save(level::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_04.dump");
+ io::dump::save(data::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_04.dump");
/// Graph
trace::quiet = false;
@@ -322,9 +322,9 @@
}
mln_invariant(f(0) == 0u);
--nbasins2; // nbasins2 does not count the basin with label 0.
- image3d<label_32> wsd2 = level::transform(wshed, f);
+ image3d<label_32> wsd2 = data::transform(wshed, f);
- io::dump::save(level::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_05.dump");
+ io::dump::save(data::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_05.dump");
/// Reconstruct a graph from the simplified image.
util::graph g2 = make::graph(wsd2, c6(), nbasins2);
@@ -337,8 +337,8 @@
data::fill((wsd2 | (pw::value(wsd2) == 0u)).rw(), wsd2_);
- io::dump::save(level::transform(labeling::mean_values(dcm, wsd2, nbasins2), fun::l2l::wrap<int_u8>()), "wsd_06_mean_colors.dump");
- //io::dump::save(level::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 4095)), "wsd_07_graph_image2_white.dump");
- //io::dump::save(level::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 0)), "wsd_08_graph_image2_black.dump");
- io::dump::save(level::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_99_result.dump");*/
+ io::dump::save(data::transform(labeling::mean_values(dcm, wsd2, nbasins2), fun::l2l::wrap<int_u8>()), "wsd_06_mean_colors.dump");
+ //io::dump::save(data::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 4095)), "wsd_07_graph_image2_white.dump");
+ //io::dump::save(data::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 0)), "wsd_08_graph_image2_black.dump");
+ io::dump::save(data::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_99_result.dump");*/
}
Index: fabien/igr/min_max_float.cc
--- fabien/igr/min_max_float.cc (revision 3923)
+++ fabien/igr/min_max_float.cc (working copy)
@@ -10,7 +10,7 @@
#include <mln/histo/array.hh>
#include <mln/histo/compute.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
namespace mln
@@ -78,7 +78,7 @@
std::cout << "min: " << min << std::endl;
std::cout << "max: " << max << std::endl;
- /*image3d<value::int_u12> quantified = level::transform(input, int_u12_from_float(min, max));
+ /*image3d<value::int_u12> quantified = data::transform(input, int_u12_from_float(min, max));
histo::array<value::int_u12> histogram = histo::compute(quantified);
image1d<value::int_u12> hist_ima;
Index: fabien/igr/seg_vol_irm.hh
--- fabien/igr/seg_vol_irm.hh (revision 3923)
+++ fabien/igr/seg_vol_irm.hh (working copy)
@@ -61,16 +61,16 @@
#include <mln/labeling/fill_holes.hh>
#include <mln/labeling/n_max.hh>
-#include <mln/level/compare.hh>
-#include <mln/level/compute.hh>
-#include <mln/level/convert.hh>
-#include <mln/level/stretch.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/compare.hh>
+#include <mln/data/compute.hh>
+#include <mln/data/convert.hh>
+#include <mln/data/stretch.hh>
+#include <mln/data/transform.hh>
#include <mln/fun/internal/selector.hh>
#include <mln/fun/v2b/threshold.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/accu/count.hh>
#include <mln/accu/center.hh>
@@ -198,7 +198,7 @@
ima_histo(point1d(i)) += ima_histo(point1d(i - 1));
}
accu::max<unsigned> max_accu;
- unsigned max = level::compute(max_accu, ima_histo);
+ unsigned max = data::compute(max_accu, ima_histo);
bool low_done = false;
bool high_done = false;
for (unsigned int i = 0; i < ima_histo.nelements(); ++i)
@@ -246,7 +246,7 @@
data::fill((ima_obj | (pw::value(obj_labels) != pw::cst(arr_o_big[1]))).rw(), false);*/
// Debug output images
- mln_ch_value(I, rgb8) out = level::convert(rgb8(), level::stretch(int_u8(), input));
+ mln_ch_value(I, rgb8) out = data::convert(rgb8(), level::stretch(int_u8(), input));
data::fill((out | pw::value(morpho::elementary::gradient_internal(ima_bg, nbh)) == true).rw(), literal::red);
data::fill((out | pw::value(morpho::elementary::gradient_internal(ima_obj, nbh)) == true).rw(), literal::green);
save_regions_color(out, metal::int_<I::site::dim>());
@@ -269,7 +269,7 @@
image1d<unsigned> ima_bg_histo;
convert::from_to(bg_histo, ima_bg_histo);
ima_bg_histo(point1d(0)) = 0;
- unsigned bg_sum = level::compute(sum_accu, ima_bg_histo);
+ unsigned bg_sum = data::compute(sum_accu, ima_bg_histo);
std::ofstream fout_bg("bg_histo.plot");
std::ofstream fout_p_bg("bg_histo_norm.plot");
for (unsigned int i = 0; i < ima_bg_histo.nelements(); ++i)
@@ -282,7 +282,7 @@
image1d<unsigned> ima_obj_histo;
convert::from_to(obj_histo, ima_obj_histo);
- unsigned obj_sum = level::compute(sum_accu, ima_obj_histo);
+ unsigned obj_sum = data::compute(sum_accu, ima_obj_histo);
std::ofstream fout_obj("obj_histo.plot");
std::ofstream fout_p_obj("obj_histo_norm.plot");
for (unsigned int i = 0; i < ima_obj_histo.nelements(); ++i)
@@ -316,10 +316,10 @@
unsigned coef = 1;
accu::mean<unsigned> mean_accu;
- unsigned mean = level::compute(mean_accu, (input | (pw::value(input) != 0)));
+ unsigned mean = data::compute(mean_accu, (input | (pw::value(input) != 0)));
accu::stat::deviation<unsigned, unsigned, float> dev_accu(mean);
- float deviation = level::compute(dev_accu, (input | pw::value(input) != 0));
+ float deviation = data::compute(dev_accu, (input | pw::value(input) != 0));
std::cout << "[mean = " << mean << " | deviation = " << deviation << "]";
return floor(mean + coef * deviation);
Index: fabien/igr/wst_edges.cc
--- fabien/igr/wst_edges.cc (revision 3923)
+++ fabien/igr/wst_edges.cc (working copy)
@@ -32,9 +32,9 @@
#include <mln/fun/v2v/fit.hh>
#include <mln/labeling/compute.hh>
#include <mln/labeling/wrap.hh>
-#include <mln/level/compute.hh>
-#include <mln/level/convert.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/compute.hh>
+#include <mln/data/convert.hh>
+#include <mln/data/stretch.hh>
#include <mln/make/image2d.hh>
#include <mln/make/w_window1d.hh>
#include <mln/math/diff_abs.hh>
Index: fabien/igr/mat2mln/raw2mlndata.cc
--- fabien/igr/mat2mln/raw2mlndata.cc (revision 3923)
+++ fabien/igr/mat2mln/raw2mlndata.cc (working copy)
@@ -6,7 +6,7 @@
#include <mln/io/pgm/save.hh>
#include <mln/value/int_u8.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/core/image/dmorph/slice_image.hh>
#include <mln/core/routine/duplicate.hh>
#include <mln/core/image/image2d.hh>
@@ -123,7 +123,7 @@
// Debug.
image2d<V> ima_debug;
ima_debug = duplicate(slice(ima, 50));
- //io::pgm::save(level::stretch(value::int_u8(), ima_debug), "debug.pgm");
+ //io::pgm::save(data::stretch(value::int_u8(), ima_debug), "debug.pgm");
io::pgm::save(ima_debug, "debug.pgm");
return 0;
Index: fabien/igr/mat2mln/mat2mln.cc
--- fabien/igr/mat2mln/mat2mln.cc (revision 3923)
+++ fabien/igr/mat2mln/mat2mln.cc (working copy)
@@ -8,7 +8,7 @@
#include <mln/debug/slices_2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
using namespace mln;
using value::int_u8;
@@ -53,7 +53,7 @@
io::dump::save(ima, argv[2]);
- image2d<int_u8> ima_flat = debug::slices_2d(level::stretch(int_u8(), ima), 1.f, 0);
+ image2d<int_u8> ima_flat = debug::slices_2d(data::stretch(int_u8(), ima), 1.f, 0);
io::pgm::save(ima_flat, "debug.pgm");
return 0;
Index: fabien/igr/label2gif.cc
--- fabien/igr/label2gif.cc (revision 3923)
+++ fabien/igr/label2gif.cc (working copy)
@@ -27,8 +27,8 @@
#include <mln/accu/mean.hh>
#include <mln/accu/median_h.hh>
#include <mln/data/fill.hh>
-#include <mln/level/compute.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/compute.hh>
+#include <mln/data/stretch.hh>
#include <mln/make/box3d.hh>
#include <mln/morpho/elementary/dilation.hh>
#include <mln/pw/all.hh>
@@ -64,7 +64,7 @@
str_ima << "0";
str_ima << sli << ".pgm";
- io::pgm::save(level::stretch(int_u8(), ima_slice), str_ima.str());
+ io::pgm::save(data::stretch(int_u8(), ima_slice), str_ima.str());
}
}
Index: fabien/igr/plot_label.hh
--- fabien/igr/plot_label.hh (revision 3923)
+++ fabien/igr/plot_label.hh (working copy)
@@ -15,7 +15,7 @@
#include <mln/accu/mean.hh>
#include <mln/accu/median_h.hh>
-#include <mln/level/compute.hh>
+#include <mln/data/compute.hh>
#include <mln/pw/all.hh>
#include <mln/util/array.hh>
@@ -38,7 +38,7 @@
{
image2d<I> slice_ima = duplicate(slice(ima, sli));
accu::mean<I> accu_mean;
- float mean = level::compute(accu_mean, slice_ima | ima_label.domain());
+ float mean = data::compute(accu_mean, slice_ima | ima_label.domain());
arr.append(mean);
}
Index: fabien/igr/space_smooth/morpho.cc
--- fabien/igr/space_smooth/morpho.cc (revision 3923)
+++ fabien/igr/space_smooth/morpho.cc (working copy)
@@ -20,8 +20,8 @@
/*#include <mln/draw/line.hh>
#include <mln/io/magick/save.hh>
-#include <mln/level/convert.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/convert.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
#include <mln/value/rgb8.hh>
#include <mln/literal/all.hh>
@@ -73,7 +73,7 @@
// Outputs //
// //
/////////////
- /*image2d<rgb8> ima_color = level::convert(rgb8(), level::stretch(int_u8(), slice(input, 0)));
+ /*image2d<rgb8> ima_color = data::convert(rgb8(), level::stretch(int_u8(), slice(input, 0)));
algebra::vec<2, unsigned int> vmin;
algebra::vec<2, unsigned int> vmax;
vmin[0] = 160;
Index: fabien/igr/watershed.hh
--- fabien/igr/watershed.hh (revision 3923)
+++ fabien/igr/watershed.hh (working copy)
@@ -17,8 +17,8 @@
#include <mln/value/int_u12.hh>
#include <mln/value/label_16.hh>
-#include <mln/level/transform.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/transform.hh>
+#include <mln/data/stretch.hh>
#include <mln/labeling/mean_values.hh>
@@ -50,7 +50,7 @@
#include <mln/accu/compute.hh>
#include <mln/core/alias/dpoint2d.hh>
#include <mln/draw/box.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/fun/v2v/id.hh>
#include <mln/fun/l2l/wrap.hh>
#include <mln/core/image/line_graph_elt_neighborhood.hh>
@@ -132,7 +132,7 @@
convert::from_to(m_3f, m);
m[0] = 150u;
- /*io::ppm::save(level::transform(w,
+ /*io::ppm::save(data::transform(w,
convert::to< fun::i2v::array<mln_value(I)> >(m)),
"wst_rag_wshd_color.ppm");*/
@@ -259,7 +259,7 @@
image2d<int_u12> dcm;
io::dicom::load(dcm, argv[1]);
- io::pgm::save(level::stretch(int_u8(), dcm), "wsd_01_src.pgm");
+ io::pgm::save(data::stretch(int_u8(), dcm), "wsd_01_src.pgm");
image2d<int_u12> grad = morpho::gradient(dcm, win_c4p());
image2d<int_u12> clo = morpho::closing::area(grad, c4(), closure_lambda);
@@ -267,14 +267,14 @@
label_16 nbasins;
image2d<label_16> wshed = morpho::meyer_wst(clo, c4(), nbasins);
- io::pgm::save(level::stretch(int_u8(), clo), "wsd_02.pgm");
- io::pgm::save(level::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_03.pgm");
+ io::pgm::save(data::stretch(int_u8(), clo), "wsd_02.pgm");
+ io::pgm::save(data::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_03.pgm");
mln_VAR(vol2_, morpho::elementary::dilation(extend(wshed | (pw::value(wshed) == 0u), wshed), c8()));
data::fill((wshed | (pw::value(wshed) == 0u)).rw(), vol2_);
- io::pgm::save(level::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_04.pgm");
+ io::pgm::save(data::transform(wshed, fun::l2l::wrap<int_u8>()), "wsd_04.pgm");
/// Build graph
util::graph g = make::graph(wshed, c4(), nbasins);
@@ -309,9 +309,9 @@
}
mln_invariant(f(0) == 0u);
--nbasins2; // nbasins2 does not count the basin with label 0.
- image2d<label_16> wsd2 = level::transform(wshed, f);
+ image2d<label_16> wsd2 = data::transform(wshed, f);
- io::pgm::save(level::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_05.pgm");
+ io::pgm::save(data::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_05.pgm");
/// Reconstruct a graph from the simplified image.
util::graph g2 = make::graph(wsd2, c4(), nbasins2);
@@ -324,8 +324,8 @@
data::fill((wsd2 | (pw::value(wsd2) == 0u)).rw(), wsd2_);
- io::pgm::save(level::transform(labeling::mean_values(dcm, wsd2, nbasins2), fun::l2l::wrap<int_u8>()), "wsd_06_mean_colors.pgm");
- io::pgm::save(level::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 4095)), "wsd_07_graph_image2_white.pgm");
- io::pgm::save(level::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 0)), "wsd_08_graph_image2_black.pgm");
- io::pgm::save(level::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_99_result.pgm");
+ io::pgm::save(data::transform(labeling::mean_values(dcm, wsd2, nbasins2), fun::l2l::wrap<int_u8>()), "wsd_06_mean_colors.pgm");
+ io::pgm::save(data::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 4095)), "wsd_07_graph_image2_white.pgm");
+ io::pgm::save(data::stretch(int_u8(), make_debug_graph_image(dcm, ima_v2, ima_e2, box_size, 0)), "wsd_08_graph_image2_black.pgm");
+ io::pgm::save(data::transform(wsd2, fun::l2l::wrap<int_u8>()), "wsd_99_result.pgm");
}
Index: fabien/igr/matlab.cc
--- fabien/igr/matlab.cc (revision 3923)
+++ fabien/igr/matlab.cc (working copy)
@@ -17,7 +17,7 @@
#include <mln/arith/all.hh>
#include <mln/data/fill.hh>
#include <mln/data/paste.hh>
-#include <mln/level/compute.hh>
+#include <mln/data/compute.hh>
#include <mln/math/abs.hh>
#include <mln/pw/all.hh>
#include <mln/trait/concrete.hh>
@@ -81,7 +81,7 @@
// calculé sur la première image
image2d<bool> roi_noise; // FIXME: init this ROI, should be a domain
accu::count<bool> accu_nbrpix1;
- unsigned nbrpix1 = level::compute(accu_nbrpix1, roi_noise);
+ unsigned nbrpix1 = data::compute(accu_nbrpix1, roi_noise);
image2d<float> datasli = arr_ima[0];
image2d<float> prodsignal1;
@@ -94,7 +94,7 @@
// //
/////////////
accu::mean<float> accu_mean;
- float moysignal1 = level::compute(accu_mean, prodsignal1 | pw::value(roi_noise) == pw::cst(true));
+ float moysignal1 = data::compute(accu_mean, prodsignal1 | pw::value(roi_noise) == pw::cst(true));
////////////////
// //
Index: fabien/igr/graph.cc
--- fabien/igr/graph.cc (revision 3923)
+++ fabien/igr/graph.cc (working copy)
@@ -46,7 +46,7 @@
#include <mln/accu/compute.hh>
#include <mln/core/alias/dpoint2d.hh>
#include <mln/draw/box.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/fun/v2v/id.hh>
#include <mln/fun/l2l/wrap.hh>
#include <mln/core/image/line_graph_elt_neighborhood.hh>
@@ -130,7 +130,7 @@
convert::from_to(m_3f, m);
m[0] = 150u;
- /*io::ppm::save(level::transform(w,
+ /*io::ppm::save(data::transform(w,
convert::to< fun::i2v::array<mln_value(I)> >(m)),
"wst_rag_wshd_color.ppm");*/
@@ -305,7 +305,7 @@
}
mln_invariant(f(0) == 0u);
--nbasins2; // nbasins2 does not count the basin with label 0.
- image2d<label_16> wsd2 = level::transform(wshed, f);
+ image2d<label_16> wsd2 = data::transform(wshed, f);
/// Reconstruct a graph from the simplified image.
util::graph g2 = make::graph(wsd2, c4(), nbasins2);
@@ -320,8 +320,8 @@
mln_VAR(wsd2_, morpho::elementary::dilation(extend(wsd2 | (pw::value(wsd2) == 0u), wsd2), c8()));
data::fill((wsd2 | (pw::value(wsd2) == 0u)).rw(), wsd2_);
- mln_VAR(original, level::stretch(int_u8(), labeling::mean_values(dcm, wshed, nbasins)));
- mln_VAR(mean, level::stretch(int_u8(), labeling::mean_values(dcm, wsd2, nbasins2)));
+ mln_VAR(original, data::stretch(int_u8(), labeling::mean_values(dcm, wshed, nbasins)));
+ mln_VAR(mean, data::stretch(int_u8(), labeling::mean_values(dcm, wsd2, nbasins2)));
io::pgm::save(original, "wsd_original.pgm");
io::pgm::save(mean, "wsd_mean_colors.pgm");
io::ppm::save(labeling::colorize(rgb8(), wshed, nbasins), "wsd_colorize_01.ppm");
Index: fabien/igr/time_smooth/morpho.cc
--- fabien/igr/time_smooth/morpho.cc (revision 3923)
+++ fabien/igr/time_smooth/morpho.cc (working copy)
@@ -20,8 +20,8 @@
/*#include <mln/draw/line.hh>
#include <mln/io/magick/save.hh>
-#include <mln/level/convert.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/convert.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
#include <mln/value/rgb8.hh>
#include <mln/literal/all.hh>
@@ -82,7 +82,7 @@
// Outputs //
// //
/////////////
- /*image2d<rgb8> ima_color = level::convert(rgb8(), level::stretch(int_u8(), slice(input, 0)));
+ /*image2d<rgb8> ima_color = data::convert(rgb8(), level::stretch(int_u8(), slice(input, 0)));
algebra::vec<2, unsigned int> vmin;
algebra::vec<2, unsigned int> vmax;
vmin[0] = 160;
Index: fabien/igr/med.cc
--- fabien/igr/med.cc (revision 3923)
+++ fabien/igr/med.cc (working copy)
@@ -23,7 +23,7 @@
#include <mln/histo/compute.hh>
#include <mln/labeling/compute.hh>
#include <mln/labeling/mean_values.hh>
-#include <mln/level/compute.hh>
+#include <mln/data/compute.hh>
#include <mln/morpho/elementary/dilation.hh>
#include <mln/pw/all.hh>
#include <mln/util/array.hh>
@@ -87,7 +87,7 @@
image1d<unsigned> ima_histo;
convert::from_to(histogram, ima_histo);
accu::median_h<int_u12> accu_med;
- median = level::compute(accu_med, ima_histo | pw::value(ima_histo) != pw::cst(0));
+ median = data::compute(accu_med, ima_histo | pw::value(ima_histo) != pw::cst(0));
for (int i = 0; i < histogram.nvalues(); ++i)
{
@@ -123,7 +123,7 @@
image1d<unsigned> ima_histo;
convert::from_to(histogram, ima_histo);
accu::median_h<int_u12> accu_med;
- median = level::compute(accu_med, ima_histo | pw::value(ima_histo) != pw::cst(0));
+ median = data::compute(accu_med, ima_histo | pw::value(ima_histo) != pw::cst(0));
for (int i = 0; i < histogram.nvalues(); ++i)
{
Index: fabien/igr/fixed_seg/main.cc
--- fabien/igr/fixed_seg/main.cc (revision 3923)
+++ fabien/igr/fixed_seg/main.cc (working copy)
@@ -32,9 +32,9 @@
#include <mln/fun/v2v/fit.hh>
#include <mln/labeling/compute.hh>
#include <mln/labeling/wrap.hh>
-#include <mln/level/compute.hh>
-#include <mln/level/convert.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/compute.hh>
+#include <mln/data/convert.hh>
+#include <mln/data/stretch.hh>
#include <mln/make/image2d.hh>
#include <mln/make/w_window1d.hh>
#include <mln/math/diff_abs.hh>
@@ -138,10 +138,10 @@
accu::sum<V> accu_sum;
convert::from_to(v1, tmp_ima);
- float sum_v1 = level::compute(accu_sum, tmp_ima);
+ float sum_v1 = data::compute(accu_sum, tmp_ima);
convert::from_to(v2, tmp_ima2);
- float sum_v2 = level::compute(accu_sum, tmp_ima2);
+ float sum_v2 = data::compute(accu_sum, tmp_ima2);
if (sum_v1 == 0 && sum_v2 == 0)
return 1;
@@ -173,14 +173,14 @@
image1d<float> morpho_ima = mean_image(tmp_ima, 15);
morpho_ima = mean_image(morpho_ima, 11);
morpho_ima = mean_image(morpho_ima, 7);
- float sum_v1 = level::compute(accu_sum, morpho_ima);
+ float sum_v1 = data::compute(accu_sum, morpho_ima);
image1d<V> tmp_ima2;
convert::from_to(v2, tmp_ima2);
image1d<float> morpho_ima2 = mean_image(tmp_ima2, 15);
morpho_ima2 = mean_image(tmp_ima2, 11);
morpho_ima2 = mean_image(tmp_ima2, 7);
- float sum_v2 = level::compute(accu_sum, morpho_ima2);
+ float sum_v2 = data::compute(accu_sum, morpho_ima2);
mln_piter(image1d<float>) p(morpho_ima.domain());
for_all(p)
@@ -292,7 +292,7 @@
for (unsigned i = 1; i < means.nelements(); ++i)
data::fill((ima_means | pw::value(ima_means) == pw::cst(i)).rw(), means[i]);
mln_VAR(display_means, world::inter_pixel::display_edge(ima_means.unmorph_(), 0.0, 3));
- io::pgm::save(level::stretch(int_u8(), display_means), "04_means.pgm");
+ io::pgm::save(data::stretch(int_u8(), display_means), "04_means.pgm");
}*/
/*typedef accu::mean<int_u12,float,int_u12> A;
@@ -307,7 +307,7 @@
if (m_[l] < 2) m_[l] == 2;
// basin <=> 2..255
}
- mln_VAR(d_m, level::transform(wst, m_));
+ mln_VAR(d_m, data::transform(wst, m_));
mln_VAR(out, world::inter_pixel::display_edge(d_m.unmorph_(),
0, // background <=> 0
3));
Index: fabien/igr/dist_edges.cc
--- fabien/igr/dist_edges.cc (revision 3923)
+++ fabien/igr/dist_edges.cc (working copy)
@@ -19,9 +19,9 @@
#include <mln/accu/sum.hh>
#include <mln/arith/div.hh>
#include <mln/convert/from_to.hh>
-#include <mln/level/compute.hh>
-#include <mln/level/convert.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/compute.hh>
+#include <mln/data/convert.hh>
+#include <mln/data/stretch.hh>
#include <mln/make/image2d.hh>
#include <mln/math/diff_abs.hh>
#include <mln/morpho/dilation.hh>
@@ -85,10 +85,10 @@
accu::sum<V> accu_sum;
convert::from_to(v1, tmp_ima);
- float sum_v1 = level::compute(accu_sum, tmp_ima);
+ float sum_v1 = data::compute(accu_sum, tmp_ima);
convert::from_to(v2, tmp_ima2);
- float sum_v2 = level::compute(accu_sum, tmp_ima2);
+ float sum_v2 = data::compute(accu_sum, tmp_ima2);
if (sum_v1 == 0 && sum_v2 == 0)
return 1;
Index: fabien/igr/igr.cc
--- fabien/igr/igr.cc (revision 3923)
+++ fabien/igr/igr.cc (working copy)
@@ -55,13 +55,13 @@
#include <mln/labeling/fill_holes.hh>
#include <mln/labeling/n_max.hh>
-#include <mln/level/compare.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/compare.hh>
+#include <mln/data/transform.hh>
#include <mln/fun/internal/selector.hh>
#include <mln/fun/v2b/threshold.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/accu/count.hh>
#include <mln/accu/center.hh>
#include <mln/set/compute.hh>
@@ -106,7 +106,7 @@
// Threshold.
- mln_ch_value(I, bool) threshold = level::transform(input, fun::v2b::threshold<int_u8>(25));
+ mln_ch_value(I, bool) threshold = data::transform(input, fun::v2b::threshold<int_u8>(25));
// Labeling.
@@ -133,7 +133,7 @@
mln_ch_value(I, bool) gradient = morpho::elementary::gradient_internal(big_second, nbh);
mln_VAR(gradient_map, gradient | pw::value(gradient) == true);
- mln_ch_value(I, rgb8) result = level::convert(rgb8(), input);
+ mln_ch_value(I, rgb8) result = data::convert(rgb8(), input);
data::fill((result | gradient_map.domain()).rw(), literal::red);
// Center.
Index: fabien/igr/mean_slices.cc
--- fabien/igr/mean_slices.cc (revision 3923)
+++ fabien/igr/mean_slices.cc (working copy)
@@ -27,7 +27,7 @@
#include <mln/accu/median_h.hh>
#include <mln/labeling/relabel.hh>
#include <mln/labeling/mean_values.hh>
-#include <mln/level/compute.hh>
+#include <mln/data/compute.hh>
#include <mln/make/image3d.hh>
#include <mln/morpho/elementary/dilation.hh>
#include <mln/pw/all.hh>
Index: fabien/igr/nbasins_finder.cc
--- fabien/igr/nbasins_finder.cc (revision 3923)
+++ fabien/igr/nbasins_finder.cc (working copy)
@@ -18,8 +18,8 @@
#include <mln/labeling/regional_minima.hh>
-#include <mln/level/transform.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/transform.hh>
+#include <mln/data/stretch.hh>
#include <mln/morpho/elementary/gradient.hh>
#include <mln/morpho/closing/volume.hh>
@@ -72,8 +72,8 @@
// Visualization
std::cout << " nbasins = " << nbasins << std::endl;
- //io::dump::save(level::transform(wshed, fun::l2l::wrap<int_u8>()), "result_nbasins.dump");
- //io::dump::save(level::stretch(int_u8(), wshed), "result_nbasins.dump");
+ //io::dump::save(data::transform(wshed, fun::l2l::wrap<int_u8>()), "result_nbasins.dump");
+ //io::dump::save(data::stretch(int_u8(), wshed), "result_nbasins.dump");
io::dump::save(labeling::colorize(rgb8(), wshed, nbasins), "result_nbasins.dump");
return 0;
Index: fabien/igr/filter.cc
--- fabien/igr/filter.cc (revision 3923)
+++ fabien/igr/filter.cc (working copy)
@@ -32,9 +32,9 @@
#include <mln/fun/v2v/fit.hh>
#include <mln/labeling/compute.hh>
#include <mln/labeling/wrap.hh>
-#include <mln/level/compute.hh>
-#include <mln/level/convert.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/compute.hh>
+#include <mln/data/convert.hh>
+#include <mln/data/stretch.hh>
#include <mln/make/image2d.hh>
#include <mln/make/w_window1d.hh>
#include <mln/math/diff_abs.hh>
@@ -114,10 +114,10 @@
accu::sum<V> accu_sum;
convert::from_to(v1, tmp_ima);
- float sum_v1 = level::compute(accu_sum, tmp_ima);
+ float sum_v1 = data::compute(accu_sum, tmp_ima);
convert::from_to(v2, tmp_ima2);
- float sum_v2 = level::compute(accu_sum, tmp_ima2);
+ float sum_v2 = data::compute(accu_sum, tmp_ima2);
if (sum_v1 == 0 && sum_v2 == 0)
return 1;
@@ -149,14 +149,14 @@
image1d<float> morpho_ima = mean_image(tmp_ima, 15);
morpho_ima = mean_image(morpho_ima, 11);
morpho_ima = mean_image(morpho_ima, 7);
- float sum_v1 = level::compute(accu_sum, morpho_ima);
+ float sum_v1 = data::compute(accu_sum, morpho_ima);
image1d<V> tmp_ima2;
convert::from_to(v2, tmp_ima2);
image1d<float> morpho_ima2 = mean_image(tmp_ima2, 15);
morpho_ima2 = mean_image(tmp_ima2, 11);
morpho_ima2 = mean_image(tmp_ima2, 7);
- float sum_v2 = level::compute(accu_sum, morpho_ima2);
+ float sum_v2 = data::compute(accu_sum, morpho_ima2);
mln_piter(image1d<float>) p(morpho_ima.domain());
for_all(p)
Index: fabien/level.hh
--- fabien/level.hh (revision 3923)
+++ fabien/level.hh (working copy)
@@ -148,15 +148,15 @@
level(const Image<I>& input, const mln_value(I)& val, const Neighborhood<N>& nbh,
L& nlabels)
{
- trace::entering("labeling::level");
+ trace::entering("labeling::value");
- internal::level_tests(input, val, nbh, nlabels);
+ internal::data_tests(input, val, nbh, nlabels);
mln_ch_value(I, L) output;
- impl::level_functor<I> f(input, val);
+ impl::data_functor<I> f(input, val);
output = canvas::labeling_video(input, nbh, nlabels, f);
- trace::exiting("labeling::level");
+ trace::exiting("labeling::value");
return output;
}
Index: fabien/regional_minima.hh
--- fabien/regional_minima.hh (revision 3923)
+++ fabien/regional_minima.hh (working copy)
@@ -39,7 +39,7 @@
# include "labeling.hh"
# include <mln/data/fill.hh>
-# include <mln/level/sort_psites.hh>
+# include <mln/data/sort_psites.hh>
namespace mln
Index: fabien/bin/dump_mask.cc
--- fabien/bin/dump_mask.cc (revision 3923)
+++ fabien/bin/dump_mask.cc (working copy)
@@ -16,7 +16,7 @@
#include <mln/literal/colors.hh>
#include <mln/morpho/elementary/gradient_internal.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/fun/v2b/threshold.hh>
#include <mln/data/fill.hh>
@@ -42,7 +42,7 @@
image3d<int_u8> input;
io::dump::load(input, argv[1]);
- image3d<bool> ima = level::transform(input, fun::v2b::threshold<int_u8>(1));
+ image3d<bool> ima = data::transform(input, fun::v2b::threshold<int_u8>(1));
mln_VAR(grad_int, morpho::elementary::gradient_internal(ima, c6()));
util::array<unsigned> xproj(ima.nrows(), 0);
Index: fabien/bin/dicom_mask.cc
--- fabien/bin/dicom_mask.cc (revision 3923)
+++ fabien/bin/dicom_mask.cc (working copy)
@@ -13,7 +13,7 @@
#include <mln/literal/colors.hh>
#include <mln/morpho/elementary/gradient_internal.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/fun/v2b/threshold.hh>
#include <mln/data/fill.hh>
@@ -59,7 +59,7 @@
fout_ysrc << i << " " << ysrcproj[i] << std::endl;
}
- image2d<bool> ima = level::transform(input, fun::v2b::threshold<int_u8>(1));
+ image2d<bool> ima = data::transform(input, fun::v2b::threshold<int_u8>(1));
io::pbm::save(ima, argv[2]);
mln_VAR(grad_int, morpho::elementary::gradient_internal(ima, c4()));
Index: fabien/bin/dumpi12_to_pgm.cc
--- fabien/bin/dumpi12_to_pgm.cc (revision 3923)
+++ fabien/bin/dumpi12_to_pgm.cc (working copy)
@@ -8,7 +8,7 @@
#include <mln/io/dump/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
int usage(char* argv[])
@@ -41,14 +41,14 @@
{
image2d<int_u12> ima2d;
io::dump::load(ima2d, argv[1]);
- image2d<int_u8> ima_pgm = level::stretch(int_u8(), ima2d);
+ image2d<int_u8> ima_pgm = data::stretch(int_u8(), ima2d);
io::pgm::save(ima_pgm, argv[3]);
}
else
{
image3d<int_u12> ima3d;
io::dump::load(ima3d, argv[1]);
- image3d<int_u8> ima_pgm = level::stretch(int_u8(), ima3d);
+ image3d<int_u8> ima_pgm = data::stretch(int_u8(), ima3d);
image2d<int_u8> ima_result = debug::slices_2d(ima_pgm, 1.f, 0);
io::pgm::save(ima_result, argv[3]);
Index: fabien/binarization/test.cc
--- fabien/binarization/test.cc (revision 3923)
+++ fabien/binarization/test.cc (working copy)
@@ -15,8 +15,8 @@
#include <mln/io/magick/all.hh>
-#include <mln/level/convert.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/convert.hh>
+#include <mln/data/stretch.hh>
#include <mln/literal/colors.hh>
@@ -88,7 +88,7 @@
image1d<int> ima_lines;
convert::from_to(inter_lines, ima_lines);
accu::median_h<int_u12> accu_med;
- median = level::compute(accu_med, ima_lines);
+ median = data::compute(accu_med, ima_lines);
// Gnuplot files creation
/*std::ofstream fout_row("row.plot");
@@ -113,7 +113,7 @@
image2d<bool> ima;
io::magick::load(ima, argv[1]);
- image2d<rgb8> ima_color = level::convert(rgb8(), ima);
+ image2d<rgb8> ima_color = data::convert(rgb8(), ima);
//image2d<int_u8> ima_sampled = world::binary_2d::subsample(ima, 3);
//io::pgm::save(ima_sampled, argv[2]);
Index: fabien/regional_maxima.hh
--- fabien/regional_maxima.hh (revision 3923)
+++ fabien/regional_maxima.hh (working copy)
@@ -39,7 +39,7 @@
# include "labeling.hh"
# include <mln/data/fill.hh>
-# include <mln/level/sort_psites.hh>
+# include <mln/data/sort_psites.hh>
namespace mln
Index: fabien/labeling.hh
--- fabien/labeling.hh (revision 3923)
+++ fabien/labeling.hh (working copy)
@@ -41,8 +41,8 @@
# include <mln/convert/to_upper_window.hh>
# include <mln/extension/adjust_fill.hh>
-# include <mln/level/sort_psites.hh>
-# include <mln/level/sort_offsets.hh>
+# include <mln/data/sort_psites.hh>
+# include <mln/data/sort_offsets.hh>
namespace mln
@@ -511,8 +511,8 @@
{
p_array<mln_psite(I)> s =
increasing ?
- level::sort_psites_increasing(input) :
- level::sort_psites_decreasing(input);
+ data::sort_psites_increasing(input) :
+ data::sort_psites_decreasing(input);
return impl::generic::labeling(input, nbh, nlabels,
s, functor);
}
@@ -526,8 +526,8 @@
{
util::array<unsigned> s =
increasing ?
- level::sort_offsets_increasing(input) :
- level::sort_offsets_decreasing(input);
+ data::sort_offsets_increasing(input) :
+ data::sort_offsets_decreasing(input);
return impl::labeling_sorted_fastest(input, nbh, nlabels,
s, functor);
}
Index: fabien/level.cc
--- fabien/level.cc (revision 3923)
+++ fabien/level.cc (working copy)
@@ -28,7 +28,7 @@
/// \file tests/labeling/level.cc
///
-/// Test on mln::labeling::level.
+/// Test on mln::labeling::value.
#include <mln/core/image/image2d.hh>
#include <mln/core/alias/neighb2d.hh>
@@ -59,7 +59,7 @@
unsigned n, npixels = 0;
for (unsigned l = 0; l <= 255; ++l)
{
- image2d<unsigned> labels = labeling::level(lena, l, c4(), n);
+ image2d<unsigned> labels = labeling::value(lena, l, c4(), n);
unsigned npix =
accu::compute(accu::meta::count(),
labels | (pw::value(labels) != pw::cst(0u)));
Index: jardonnet/n_cmpt/tikz.hh
--- jardonnet/n_cmpt/tikz.hh (revision 3923)
+++ jardonnet/n_cmpt/tikz.hh (working copy)
@@ -44,7 +44,7 @@
# include <mln/morpho/tree/compute_attribute_image.hh>
# include <mln/data/paste.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
namespace mln
{
@@ -111,14 +111,14 @@
typedef mln_ch_value(I, value::int_u<16>) V;
typedef accu::volume<I> A;
- S sp = level::sort_psites_decreasing(ima);
+ S sp = data::sort_psites_decreasing(ima);
morpho::tree::data<I,S> t(ima, sp, nbh);
V volume(ima.domain());
data::paste(morpho::tree::compute_attribute_image(A(), t),
volume);
- sp = level::sort_psites_increasing(volume);
+ sp = data::sort_psites_increasing(volume);
std::cout << "/volume/" << std::endl;
debug::println(volume);
io::tikz::save(volume, "volume.tex");
@@ -271,7 +271,7 @@
tik(d) = tik(parent(d));
}
- //mln_ch_value(I, value::rgb8) tik_rgb = level::transform(tik, col);
+ //mln_ch_value(I, value::rgb8) tik_rgb = data::transform(tik, col);
//tik_rgb(p) = literal::red;
tik(p) = 255;
Index: jardonnet/n_cmpt/nwst.hh
--- jardonnet/n_cmpt/nwst.hh (revision 3923)
+++ jardonnet/n_cmpt/nwst.hh (working copy)
@@ -81,7 +81,7 @@
// sort ima psites
typedef mln_psite(I) P;
typedef p_array<P> S;
- S sp = level::sort_psites_increasing(ima);
+ S sp = data::sort_psites_increasing(ima);
// init watershed image
mln_ch_value(I, value::rgb8) wst(ima.domain());
Index: jardonnet/n_cmpt/test_attribute_watershed.cc
--- jardonnet/n_cmpt/test_attribute_watershed.cc (revision 3923)
+++ jardonnet/n_cmpt/test_attribute_watershed.cc (working copy)
@@ -49,7 +49,7 @@
typedef mln_ch_value_(I,unsigned) V;
typedef accu::volume<I> A;
- S sp = level::sort_psites_decreasing(ima);
+ S sp = data::sort_psites_decreasing(ima);
morpho::tree::data<I,S> t(ima, sp, c4());
V volume = morpho::tree::compute_attribute_image(A(), t);
Index: jardonnet/n_cmpt/fused_filter.cc
--- jardonnet/n_cmpt/fused_filter.cc (revision 3923)
+++ jardonnet/n_cmpt/fused_filter.cc (working copy)
@@ -4,7 +4,7 @@
#include <mln/debug/println.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/morpho/tree/data.hh>
@@ -62,7 +62,7 @@
debug::println("f =", f);
typedef p_array<mln_psite(I)> S;
- S s = level::sort_psites_increasing(a);
+ S s = data::sort_psites_increasing(a);
// s maps increasing attributes.
mln_ch_value(I, mln_site(I)) par;
@@ -237,7 +237,7 @@
usage(argv);
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
// Children go towards lower levels so leafs are regional minima.
// We get a min-tree so that we can perform morphological closings.
Index: jardonnet/n_cmpt/n_cmpt2.hh
--- jardonnet/n_cmpt/n_cmpt2.hh (revision 3923)
+++ jardonnet/n_cmpt/n_cmpt2.hh (working copy)
@@ -30,7 +30,7 @@
# include <mln/data/fill.hh>
# include <mln/core/site_set/p_vaccess.hh>
-# include <mln/level/sort_psites.hh>
+# include <mln/data/sort_psites.hh>
# include <mln/accu/volume.hh>
# include <mln/morpho/tree/data.hh>
# include <mln/morpho/tree/compute_attribute_image.hh>
@@ -74,7 +74,7 @@
// compute volume image
typedef p_array<mln_psite(I)> S;
typedef accu::volume<I> A;
- S sp = level::sort_psites_increasing(input);
+ S sp = data::sort_psites_increasing(input);
morpho::tree::data<I,S> t(input, sp, c4());
image2d<unsigned> volume = morpho::tree::compute_attribute_image(A(), t);
Index: jardonnet/n_cmpt/n_cmpt3.hh
--- jardonnet/n_cmpt/n_cmpt3.hh (revision 3923)
+++ jardonnet/n_cmpt/n_cmpt3.hh (working copy)
@@ -81,10 +81,10 @@
typedef mln_ch_value(I,unsigned) V;
typedef accu::volume<I> A;
- S sp = level::sort_psites_decreasing(ima);
+ S sp = data::sort_psites_decreasing(ima);
morpho::tree::data<I,S> t(ima, sp, nbh);
V volume = morpho::tree::compute_attribute_image(A(), t);
- sp = level::sort_psites_increasing(volume);
+ sp = data::sort_psites_increasing(volume);
std::cout << "/volume/" << std::endl;
debug::println(volume);
Index: jardonnet/n_cmpt/n_cmpt4.hh
--- jardonnet/n_cmpt/n_cmpt4.hh (revision 3923)
+++ jardonnet/n_cmpt/n_cmpt4.hh (working copy)
@@ -81,10 +81,10 @@
typedef mln_ch_value(I,unsigned) V;
typedef accu::volume<I> A;
- S sp = level::sort_psites_decreasing(ima);
+ S sp = data::sort_psites_decreasing(ima);
morpho::tree::data<I,S> t(ima, sp, nbh);
V volume = morpho::tree::compute_attribute_image(A(), t);
- sp = level::sort_psites_increasing(volume);
+ sp = data::sort_psites_increasing(volume);
std::cout << "/volume/" << std::endl;
debug::println(volume);
Index: jardonnet/n_cmpt/n_cmpt5.hh
--- jardonnet/n_cmpt/n_cmpt5.hh (revision 3923)
+++ jardonnet/n_cmpt/n_cmpt5.hh (working copy)
@@ -81,10 +81,10 @@
typedef mln_ch_value(I,unsigned) V;
typedef accu::volume<I> A;
- S sp = level::sort_psites_decreasing(ima);
+ S sp = data::sort_psites_decreasing(ima);
morpho::tree::data<I,S> t(ima, sp, nbh);
V volume = morpho::tree::compute_attribute_image(A(), t);
- sp = level::sort_psites_increasing(volume);
+ sp = data::sort_psites_increasing(volume);
std::cout << "/volume/" << std::endl;
debug::println(volume);
Index: jardonnet/n_cmpt/ref_filter.cc
--- jardonnet/n_cmpt/ref_filter.cc (revision 3923)
+++ jardonnet/n_cmpt/ref_filter.cc (working copy)
@@ -4,7 +4,7 @@
#include <mln/debug/println.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/morpho/tree/data.hh>
@@ -58,7 +58,7 @@
debug::println("f =", f);
typedef p_array<mln_psite(I)> S;
- S s = level::sort_psites_increasing(a);
+ S s = data::sort_psites_increasing(a);
// s maps increasing attributes.
mln_ch_value(I, mln_site(I)) par;
@@ -210,7 +210,7 @@
usage(argv);
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
// Children go towards lower levels so leafs are regional minima.
// We get a min-tree so that we can perform morphological closings.
Index: jardonnet/n_cmpt/n_cmpt.hh
--- jardonnet/n_cmpt/n_cmpt.hh (revision 3923)
+++ jardonnet/n_cmpt/n_cmpt.hh (working copy)
@@ -32,7 +32,7 @@
# include <mln/core/concept/neighborhood.hh>
# include <mln/data/fill.hh>
# include <mln/util/pix.hh>
-# include <mln/level/sort_psites.hh>
+# include <mln/data/sort_psites.hh>
# include <mln/accu/count.hh>
# include <mln/accu/volume.hh>
@@ -80,7 +80,7 @@
typedef mln_psite(I) P;
typedef p_array<P> S;
- const S s(level::sort_psites_increasing(input));
+ const S s(data::sort_psites_increasing(input));
// Auxiliary data.
mln_ch_value(O, bool) deja_vu;
Index: jardonnet/igr/src/igr.cc
--- jardonnet/igr/src/igr.cc (revision 3923)
+++ jardonnet/igr/src/igr.cc (working copy)
@@ -17,7 +17,7 @@
#include <mln/io/pgm/save.hh>
#include <mln/data/paste.hh>
-#include <mln/level/apply.hh>
+#include <mln/data/apply.hh>
#include <mln/fun/v2v/rgb_to_hsi.hh>
#include <mln/fun/v2v/abs.hh>
@@ -51,7 +51,7 @@
// RGB -> GS
////////////////////
- image2d<hsi_f> hsi = level::transform(ima, fun::v2v::f_rgb_to_hsi_f);
+ image2d<hsi_f> hsi = data::transform(ima, fun::v2v::f_rgb_to_hsi_f);
//FIXME: fix and use alexandre stuff
/* thru<to_hsi, image2d<hsi_f> > tmp(hsi_f);
@@ -74,7 +74,7 @@
image2d<int_u8> mg_ima(g_ima.domain());
mg_ima = morpho::elementary::gradient(g_ima, c4());
- //level::apply(mg_ima, fun::v2v::abs<int_u8>());
+ //data::apply(mg_ima, fun::v2v::abs<int_u8>());
io::pgm::save(mg_ima, "mg_ima.ppm");
Index: dalila/plop.cc
--- dalila/plop.cc (revision 3923)
+++ dalila/plop.cc (working copy)
@@ -7,8 +7,8 @@
image2d<bool> ima1(2, 3);
image2d<bool> ima2(2, 3);
- level::fill(ima1, 2);
- level::fill(ima2, 3);
+ data::fill(ima1, 2);
+ data::fill(ima2, 3);
// debug::println(ima1);
// debug::println(ima2);
Index: garrigues/level_set.hh
--- garrigues/level_set.hh (revision 3923)
+++ garrigues/level_set.hh (working copy)
@@ -60,7 +60,7 @@
# include <mln/border/fill.hh>
-# include <mln/level/compute.hh>
+# include <mln/data/compute.hh>
# include <mln/data/fill.hh>
# include <mln/accu/min.hh>
# include <mln/accu/max.hh>
@@ -83,8 +83,8 @@
# include <mln/util/tree_to_image.hh>
# include <mln/value/int_u8.hh>
-# include <mln/level/stretch.hh>
-# include <mln/level/compare.hh>
+# include <mln/data/stretch.hh>
+# include <mln/data/compare.hh>
# include <mln/io/pgm/save.hh>
namespace mln
@@ -290,7 +290,7 @@
// gn <- min u(x) x belongs to N.
if ((env.u | set::inter(env.N, env.u.domain())).nsites() > 0)
- env.gn = level::compute< typename F::accu_for_gn >(env.u | set::inter(env.N, env.u.domain()));
+ env.gn = data::compute< typename F::accu_for_gn >(env.u | set::inter(env.N, env.u.domain()));
else
{
finished = true;
@@ -351,7 +351,7 @@
border_ima(z) = true;
}
unsigned n;
- labeling::level(border_ima, true, F::bdr_nbh(), tmp, n);
+ labeling::value(border_ima, true, F::bdr_nbh(), tmp, n);
// std::cout << "labeling : " << n << std::endl;
// std::cout << "nous : " << env.n_cc << std::endl;
@@ -367,7 +367,7 @@
// follow each border to find which is the exterior border
// and which are the holes. Keep one pixel of each holes.
- // WARNING : We trust labeling::level to label the exterior border with 1.
+ // WARNING : We trust labeling::value to label the exterior border with 1.
env.current_region->elt().holes.insert(a_point_of(tmp | pw::value(tmp) == pw::cst(i)));
// FIXME : [optimisation] Remove from N border of holes???.
Index: garrigues/fllt/fllt_simple.svg.3.cc
--- garrigues/fllt/fllt_simple.svg.3.cc (revision 3923)
+++ garrigues/fllt/fllt_simple.svg.3.cc (working copy)
@@ -41,7 +41,7 @@
#include <mln/io/pgm/save.hh>
#include <mln/data/fill.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/debug/println.hh>
#include <mln/labeling/regional_minima.hh>
#include <mln/accu/bbox.hh>
Index: garrigues/fllt/fllt_simple.cc
--- garrigues/fllt/fllt_simple.cc (revision 3923)
+++ garrigues/fllt/fllt_simple.cc (working copy)
@@ -46,7 +46,7 @@
#include <mln/io/pgm/save.hh>
#include <mln/data/fill.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/debug/println.hh>
#include <mln/labeling/regional_minima.hh>
#include <mln/accu/bbox.hh>
Index: garrigues/fllt/compute_level_set_fast2.hh
--- garrigues/fllt/compute_level_set_fast2.hh (revision 3923)
+++ garrigues/fllt/compute_level_set_fast2.hh (working copy)
@@ -133,7 +133,7 @@
finished = tmp.nsites() == 0;
if (!finished)
- gn = level::compute< typename F::accu_for_gn >(u | tmp.domain());
+ gn = data::compute< typename F::accu_for_gn >(u | tmp.domain());
if (finished)
gn += F::inc;
@@ -254,7 +254,7 @@
// border_ima(z) = true;
// }
// unsigned n;
-// tmp = labeling::level(border_ima, true, F::bdr_nbh(), n);
+// tmp = labeling::value(border_ima, true, F::bdr_nbh(), n);
// // debug::println(border_ima);
// //std::cout << "nb composantes :" << n << std::endl;
@@ -268,7 +268,7 @@
// // follow each border to find which is the exterior border
// // and which are the holes. Keep one pixel of each holes.
-// // WARNING : We trust labeling::level to label the exterior border with 1.
+// // WARNING : We trust labeling::value to label the exterior border with 1.
// current_region->elt().holes.insert(a_point_of(tmp | pw::value(tmp) == pw::cst(i)));
// // FIXME : [optimisation] Remove from N border of holes???.
Index: garrigues/fllt/fllt_optimized.hh
--- garrigues/fllt/fllt_optimized.hh (revision 3923)
+++ garrigues/fllt/fllt_optimized.hh (working copy)
@@ -44,8 +44,8 @@
# include <mln/util/tree_to_image.hh>
# include <mln/value/int_u8.hh>
-# include <mln/level/stretch.hh>
-# include <mln/level/compare.hh>
+# include <mln/data/stretch.hh>
+# include <mln/data/compare.hh>
# include <mln/io/pgm/save.hh>
namespace mln
@@ -143,7 +143,7 @@
image2d<value::int_u8> out(ima.domain());
image2d<value::int_u8> out2(ima.domain());
visualize_deepness(out, tree);
- level::stretch(out, out2);
+ data::stretch(out, out2);
io::pgm::save(out2, "fllt_deepnees.pgm");
visualize_bounds(out, tree, 800);
Index: garrigues/fllt/debug.hh
--- garrigues/fllt/debug.hh (revision 3923)
+++ garrigues/fllt/debug.hh (working copy)
@@ -151,7 +151,7 @@
// image2d<value::int_u8> viz2(ima.domain());
// visualize_deepness(viz, lower_tree);
- // level::stretch(viz, viz2);
+ // data::stretch(viz, viz2);
// debug::println(viz);
// debug::println(viz2);
// io::pgm::save(viz2, "fllt.pgm");
Index: garrigues/fllt/compute_level_set_fast.hh
--- garrigues/fllt/compute_level_set_fast.hh (revision 3923)
+++ garrigues/fllt/compute_level_set_fast.hh (working copy)
@@ -123,7 +123,7 @@
finished = N.nsites() == 0;
if (!finished)
- gn = level::compute< typename F::accu_for_gn >(u | N);
+ gn = data::compute< typename F::accu_for_gn >(u | N);
else
gn += F::inc;
@@ -248,7 +248,7 @@
// border_ima(z) = true;
// }
// unsigned n;
-// tmp = labeling::level(border_ima, true, F::bdr_nbh(), n);
+// tmp = labeling::value(border_ima, true, F::bdr_nbh(), n);
// // debug::println(border_ima);
// //std::cout << "nb composantes :" << n << std::endl;
@@ -262,7 +262,7 @@
// // follow each border to find which is the exterior border
// // and which are the holes. Keep one pixel of each holes.
-// // WARNING : We trust labeling::level to label the exterior border with 1.
+// // WARNING : We trust labeling::value to label the exterior border with 1.
// current_region->elt().holes.insert(a_point_of(tmp | pw::value(tmp) == pw::cst(i)));
// // FIXME : [optimisation] Remove from N border of holes???.
Index: garrigues/fllt/fllt.hh
--- garrigues/fllt/fllt.hh (revision 3923)
+++ garrigues/fllt/fllt.hh (working copy)
@@ -51,7 +51,7 @@
# include <mln/border/fill.hh>
-# include <mln/level/compute.hh>
+# include <mln/data/compute.hh>
# include <mln/data/fill.hh>
# include <mln/accu/min.hh>
# include <mln/accu/max.hh>
@@ -74,8 +74,8 @@
# include <mln/util/tree_to_image.hh>
# include <mln/value/int_u8.hh>
-# include <mln/level/stretch.hh>
-# include <mln/level/compare.hh>
+# include <mln/data/stretch.hh>
+# include <mln/data/compare.hh>
# include <mln/io/pgm/save.hh>
# include "types.hh"
Index: garrigues/fllt/give_confs.cc
--- garrigues/fllt/give_confs.cc (revision 3923)
+++ garrigues/fllt/give_confs.cc (working copy)
@@ -36,11 +36,11 @@
int x, y;
- labeling::level(ima, false, c8(), x);
+ labeling::value(ima, false, c8(), x);
ima(p) = true;
- labeling::level(ima, false, c8(), y);
+ labeling::value(ima, false, c8(), y);
// std::cout << "----- conf no " << i << "------" << std::endl;
// debug::println(ima);
Index: garrigues/fllt/compute_level_set.hh
--- garrigues/fllt/compute_level_set.hh (revision 3923)
+++ garrigues/fllt/compute_level_set.hh (working copy)
@@ -114,7 +114,7 @@
// gn <- min u(x) x belongs to N.
if ((u | set::inter(N, u.domain())).nsites() > 0)
- gn = level::compute< typename F::accu_for_gn >(u | set::inter(N, u.domain()));
+ gn = data::compute< typename F::accu_for_gn >(u | set::inter(N, u.domain()));
else
{
finished = true;
@@ -189,7 +189,7 @@
border_ima(z) = true;
}
unsigned n;
- tmp = labeling::level(border_ima, true, F::bdr_nbh(), n);
+ tmp = labeling::value(border_ima, true, F::bdr_nbh(), n);
// debug::println(border_ima);
//std::cout << "nb composantes :" << n << std::endl;
@@ -203,7 +203,7 @@
// follow each border to find which is the exterior border
// and which are the holes. Keep one pixel of each holes.
- // WARNING : We trust labeling::level to label the exterior border with 1.
+ // WARNING : We trust labeling::value to label the exterior border with 1.
current_region->elt().holes.insert(a_point_of(tmp | pw::value(tmp) == pw::cst(i)));
// FIXME : [optimisation] Remove from N border of holes???.
Index: garrigues/union_find/reconstructions_on_function.hh
--- garrigues/union_find/reconstructions_on_function.hh (revision 3923)
+++ garrigues/union_find/reconstructions_on_function.hh (working copy)
@@ -33,9 +33,9 @@
# include <mln/core/alias/neighb2d.hh>
# include <mln/core/routine/duplicate.hh>
# include <mln/data/fill.hh>
-# include <mln/level/compare.hh>
+# include <mln/data/compare.hh>
# include <mln/data/paste.hh>
-# include <mln/level/sort_psites.hh>
+# include <mln/data/sort_psites.hh>
# include <mln/literal/zero.hh>
# include <mln/math/max.hh>
# include <mln/math/min.hh>
@@ -62,7 +62,7 @@
: marker(marker),
mask(mask),
output(output),
- s(level::sort_psites_decreasing(mask))
+ s(data::sort_psites_decreasing(mask))
{
}
@@ -94,7 +94,7 @@
: marker(marker),
mask(mask),
output(output),
- s(level::sort_psites_increasing(mask))
+ s(data::sort_psites_increasing(mask))
{
}
Index: garrigues/union_find/reconstructions_on_set.hh
--- garrigues/union_find/reconstructions_on_set.hh (revision 3923)
+++ garrigues/union_find/reconstructions_on_set.hh (working copy)
@@ -33,7 +33,7 @@
# include <mln/core/alias/neighb2d.hh>
# include <mln/data/fill.hh>
# include <mln/data/paste.hh>
-# include <mln/level/compare.hh>
+# include <mln/data/compare.hh>
# include "canvas/reconstruction_on_set.hh"
Index: garrigues/union_find/self_dual_reconstruction.hh
--- garrigues/union_find/self_dual_reconstruction.hh (revision 3923)
+++ garrigues/union_find/self_dual_reconstruction.hh (working copy)
@@ -33,9 +33,9 @@
# include <mln/core/alias/neighb2d.hh>
# include <mln/core/routine/duplicate.hh>
# include <mln/data/fill.hh>
-# include <mln/level/compare.hh>
+# include <mln/data/compare.hh>
# include <mln/data/paste.hh>
-# include <mln/level/sort_psites.hh>
+# include <mln/data/sort_psites.hh>
# include <mln/literal/zero.hh>
# include <mln/math/max.hh>
# include <mln/math/min.hh>
@@ -71,8 +71,8 @@
: marker(marker),
mask(mask),
output(output),
- d1_s(level::sort_psites_decreasing(mask | (pw::value(marker) <= pw::value(mask)))),
- d2_s(level::sort_psites_increasing(mask | (pw::value(marker) > pw::value(mask))))
+ d1_s(data::sort_psites_decreasing(mask | (pw::value(marker) <= pw::value(mask)))),
+ d2_s(data::sort_psites_increasing(mask | (pw::value(marker) > pw::value(mask))))
{
}
Index: garrigues/factures/extract_array_highlight.cc
--- garrigues/factures/extract_array_highlight.cc (revision 3923)
+++ garrigues/factures/extract_array_highlight.cc (working copy)
@@ -39,8 +39,8 @@
#include <mln/pw/all.hh>
-#include <mln/level/stretch.hh>
-#include <mln/level/median.hh>
+#include <mln/data/stretch.hh>
+#include <mln/data/median.hh>
#include <mln/morpho/gradient.hh>
#include <mln/labeling/level.hh>
@@ -63,7 +63,7 @@
{
// Labeling.
unsigned nlabels;
- image2d<unsigned> labels = labeling::level(in, true, c4(), nlabels);
+ image2d<unsigned> labels = labeling::value(in, true, c4(), nlabels);
// Get the caracteristics of the connected components.
std::vector< accu::pair_< accu::bbox<point2d>, accu::count_<point2d> > > caracteristics(nlabels + 1);
Index: garrigues/factures/extract_array.cc
--- garrigues/factures/extract_array.cc (revision 3923)
+++ garrigues/factures/extract_array.cc (working copy)
@@ -36,7 +36,7 @@
#include <mln/pw/all.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/labeling/level.hh>
#include <mln/literal/all.hh>
@@ -67,7 +67,7 @@
// Labeling.
unsigned nlabels;
- image2d<unsigned> labels = labeling::level(bin, true, c4(), nlabels);
+ image2d<unsigned> labels = labeling::value(bin, true, c4(), nlabels);
// Get the caracteristics of the connected components.
std::vector< accu::pair_< accu::bbox<point2d>, accu::count_<point2d> > > caracteristics(nlabels);
Index: abraham/tests/morpho/test_watershed.cc
--- abraham/tests/morpho/test_watershed.cc (revision 3923)
+++ abraham/tests/morpho/test_watershed.cc (working copy)
@@ -3,7 +3,7 @@
#include <mln/core/alias/neighb2d.hh>
#include <mln/core/site_set/p_set.hh>
#include <mln/value/int_u8.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/io/pgm/load.hh>
#include <mln/io/pgm/save.hh>
Index: abraham/tests/morpho/test_watershed_topo.cc
--- abraham/tests/morpho/test_watershed_topo.cc (revision 3923)
+++ abraham/tests/morpho/test_watershed_topo.cc (working copy)
@@ -4,7 +4,7 @@
#include <mln/core/site_set/p_set.hh>
#include <mln/value/int_u8.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/io/pgm/load.hh>
#include <mln/io/pgm/save.hh>
Index: abraham/mln/morpho/najman_wst.hh
--- abraham/mln/morpho/najman_wst.hh (revision 3923)
+++ abraham/mln/morpho/najman_wst.hh (working copy)
@@ -30,7 +30,7 @@
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/data/fill.hh>
#include <mln/core/image/image2d.hh>
#include <mln/core/site_set/p_set.hh>
@@ -236,7 +236,7 @@
// Sort the sites in increasing order
p_array<mln_site(I)> S;
- S = level::sort_psites_increasing(pima);
+ S = data::sort_psites_increasing(pima);
// Clear the marker map
data::fill(isproc, false);
@@ -552,7 +552,7 @@
{
mln::p_priority< mln_value(I), p_queue_fast<site> > L;
- mln_value(I) max = level::compute(accu::meta::max(), pima);
+ mln_value(I) max = data::compute(accu::meta::max(), pima);
// I K(pima.domain(), pima.border());
mln_ch_value(I, unsigned) K(pima.domain(), pima.border());
Index: abraham/mln/morpho/basic_najman.hh
--- abraham/mln/morpho/basic_najman.hh (revision 3923)
+++ abraham/mln/morpho/basic_najman.hh (working copy)
@@ -26,7 +26,7 @@
// Public License.
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/data/fill.hh>
#include <mln/core/image/image2d.hh>
#include <mln/core/site_set/p_set.hh>
@@ -158,7 +158,7 @@
void init()
{
// Sort the sites in increasing order
- S = level::sort_psites_increasing(pima);
+ S = data::sort_psites_increasing(pima);
// Clear the marker map
data::fill(isproc, false);
@@ -526,7 +526,7 @@
{
mln::p_priority< mln_value(I), p_queue_fast<site> > L;
- mln_value(I) max = level::compute(accu::meta::max(), pima);
+ mln_value(I) max = data::compute(accu::meta::max(), pima);
// I K(pima.domain(), pima.border());
mln_ch_value(I, unsigned) K(pima.domain(), pima.border());
Index: abraham/mln/morpho/topo_wst.hh
--- abraham/mln/morpho/topo_wst.hh (revision 3923)
+++ abraham/mln/morpho/topo_wst.hh (working copy)
@@ -30,7 +30,7 @@
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/data/fill.hh>
#include <mln/core/image/image2d.hh>
#include <mln/core/site_set/p_set.hh>
@@ -260,7 +260,7 @@
// Sort the sites in increasing order
p_array<mln_site(I)> S;
- S = level::sort_psites_increasing(ima);
+ S = data::sort_psites_increasing(ima);
// Clear the marker map
data::fill(isproc, false);
Index: abraham/mln/level/thru.hh
--- abraham/mln/level/thru.hh (revision 3923)
+++ abraham/mln/level/thru.hh (working copy)
@@ -28,7 +28,7 @@
#ifndef MLN_LEVEL_APPLY_HH
# define MLN_LEVEL_APPLY_HH
-/*! \file mln/level/apply.hh
+/*! \file mln/data/apply.hh
*
* \brief Apply a function-object onto image pixel values.
*/
@@ -37,13 +37,13 @@
# include <mln/core/concept/function.hh>
// Specializations are in:
-# include <mln/level/apply.spe.hh>
+# include <mln/data/apply.spe.hh>
namespace mln
{
- namespace level
+ namespace data
{
/*! Apply a function-object to the image \p input.
@@ -54,7 +54,7 @@
* This routine runs: \n
* for all p of \p input, \p input(p) = \p f( \p input(p) ) \n
*
- * This routine is equivalent to level::tranform(input, f, input)
+ * This routine is equivalent to data::tranform(input, f, input)
* but it is faster since a single iterator is required.
*
* \todo Add versions for lowq images.
@@ -76,18 +76,18 @@
inline
void apply_(I& input, const F& f)
{
- trace::entering("level::impl::generic::apply_");
+ trace::entering("data::impl::generic::apply_");
mln_piter(I) p(input.domain());
for_all(p)
input(p) = f(input(p));
- trace::exiting("level::impl::generic::apply_");
+ trace::exiting("data::impl::generic::apply_");
}
- } // end of namespace mln::level::impl::generic
+ } // end of namespace mln::data::impl::generic
- } // end of namespace mln::level::impl
+ } // end of namespace mln::data::impl
// Facade.
@@ -96,18 +96,18 @@
inline
void apply(Image<I>& input, const Function_v2v<F>& f)
{
- trace::entering("level::apply");
+ trace::entering("data::apply");
mln_precondition(exact(input).is_valid());
impl::apply_(mln_trait_image_speed(I)(), exact(input),
exact(f));
- trace::exiting("level::apply");
+ trace::exiting("data::apply");
}
# endif // ! MLN_INCLUDE_ONLY
- } // end of namespace mln::level
+ } // end of namespace mln::data
} // end of namespace mln
Index: inim/2010/boxes/boxes.cc
--- inim/2010/boxes/boxes.cc (revision 3923)
+++ inim/2010/boxes/boxes.cc (working copy)
@@ -168,7 +168,7 @@
<< " boxes" << std::endl;
/// Save grouped text image
- io::pgm::save(level::transform(grouped_text.label_image(),
+ io::pgm::save(data::transform(grouped_text.label_image(),
fun::v2v::wrap<value::int_u8>()),
"words.pgm");
@@ -210,7 +210,7 @@
scribo::make::debug_filename("boxes.ppm"));
/// Does not seem to work (FIXME)
- io::pgm::save(level::transform(grouped_lines.label_image(),
+ io::pgm::save(data::transform(grouped_lines.label_image(),
fun::l2l::wrap<value::int_u8>()),
"fixme.ppm");
Index: inim/2010/morpho/main_dilation-n.cc
--- inim/2010/morpho/main_dilation-n.cc (revision 3923)
+++ inim/2010/morpho/main_dilation-n.cc (working copy)
@@ -7,8 +7,8 @@
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/convert.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/convert.hh>
+#include <mln/data/stretch.hh>
#include <mln/core/alias/window2d.hh>
@@ -33,8 +33,8 @@
io::pbm::load(in, argv[1]);
value::int_u8 k = 1;
- image2d<value::int_u8> ima = level::convert(k, in);
- ima = level::stretch(k, ima);
+ image2d<value::int_u8> ima = data::convert(k, in);
+ ima = data::stretch(k, ima);
std::cout << " => create window..." << std::endl;
window2d it;
Index: inim/2010/morpho/morpho.cc
--- inim/2010/morpho/morpho.cc (revision 3923)
+++ inim/2010/morpho/morpho.cc (working copy)
@@ -8,8 +8,8 @@
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
#include <mln/labeling/regional_maxima.hh>
-#include <mln/level/convert.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/convert.hh>
+#include <mln/data/stretch.hh>
#include <mln/linear/gaussian.hh>
#include <mln/morpho/rank_filter.hh>
#include <mln/value/label_8.hh>
@@ -28,8 +28,8 @@
// convert and stretch.
int_u8 k = 1;
- ima = level::convert(k, in);
- ima = level::stretch(k, ima);
+ ima = data::convert(k, in);
+ ima = data::stretch(k, ima);
}
void
Index: inim/2010/rag/rag.hh
--- inim/2010/rag/rag.hh (revision 3923)
+++ inim/2010/rag/rag.hh (working copy)
@@ -18,7 +18,7 @@
# include <mln/morpho/closing/area.hh>
# include <mln/morpho/opening/area.hh>
# include <mln/morpho/elementary/gradient.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/make/region_adjacency_graph.hh>
# include <mln/util/graph.hh>
Index: inim/2010/cag/superpose.hh
--- inim/2010/cag/superpose.hh (revision 3923)
+++ inim/2010/cag/superpose.hh (working copy)
@@ -36,7 +36,7 @@
# include <mln/core/concept/image.hh>
# include <mln/core/image/dmorph/image_if.hh>
-# include <mln/level/convert.hh>
+# include <mln/data/convert.hh>
# include <mln/data/fill.hh>
# include <mln/value/rgb8.hh>
# include <mln/literal/colors.hh>
@@ -95,7 +95,7 @@
mln_precondition(ws_ima.is_valid());
mln_ch_value(I,value::rgb8) output =
- level::convert(value::rgb8(), input);
+ data::convert(value::rgb8(), input);
data::fill((output |
(pw::value(ws_ima) != pw::cst(mln_max(mln_value(J))))).rw(),
Index: inim/2011/fredwin/inim.cc
--- inim/2011/fredwin/inim.cc (revision 3923)
+++ inim/2011/fredwin/inim.cc (working copy)
@@ -13,7 +13,7 @@
/* Site set */
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
/* Component trees */
#include <mln/morpho/tree/data.hh>
@@ -42,7 +42,7 @@
#include <mln/pw/all.hh>
/* labeling */
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/label_8.hh>
#include <mln/labeling/blobs.hh>
#include <mln/labeling/colorize.hh>
@@ -50,7 +50,7 @@
/* Draw debug */
#include <mln/draw/box.hh>
#include <mln/literal/colors.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
/* std */
#include <string>
@@ -168,7 +168,7 @@
typedef p_array< mln_site_(I) > S;
typedef morpho::tree::data<I,S> tree_t;
- S sorted_sites = level::sort_psites_decreasing(input);
+ S sorted_sites = data::sort_psites_decreasing(input);
tree_t tree(input, sorted_sites, c4());
@@ -247,7 +247,7 @@
/* Now store output image image */
O out, distance;
initialize(out, input);
- distance = level::convert(value::rgb8 (), input);
+ distance = data::convert(value::rgb8 (), input);
data::fill(out, literal::black_t());
data::paste(output | pw::value(input_), out);
Index: inim/2009/classif/src/max_tree.hh
--- inim/2009/classif/src/max_tree.hh (revision 3923)
+++ inim/2009/classif/src/max_tree.hh (working copy)
@@ -6,7 +6,7 @@
# include <mln/data/fill.hh>
# include <mln/util/pix.hh>
# include <mln/morpho/includes.hh>
-# include <mln/level/sort_psites.hh>
+# include <mln/data/sort_psites.hh>
# include <mln/core/image/image2d.hh>
# include <mln/core/image/image3d.hh>
@@ -57,7 +57,7 @@
mln::data::fill(deja_vu, false);
initialize(parent, f);
initialize(zpar, f);
- s = level::sort_psites_decreasing(f);
+ s = data::sort_psites_decreasing(f);
}
// first pass
Index: inim/2009/classif/src/iccvg04.cc
--- inim/2009/classif/src/iccvg04.cc (revision 3923)
+++ inim/2009/classif/src/iccvg04.cc (working copy)
@@ -31,7 +31,7 @@
#include <mln/literal/all.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <sys/stat.h>
#include <sstream>
Index: inim/2009/binarization/snake2d.cc
--- inim/2009/binarization/snake2d.cc (revision 3923)
+++ inim/2009/binarization/snake2d.cc (working copy)
@@ -1,7 +1,7 @@
#include <mln/win/rectangle2d.hh>
#include <mln/accu/maj_h.hh>
#include <mln/value/int_u8.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/make/image2d.hh>
#include <mln/border/thickness.hh>
#include "snake2d.hh"
Index: inim/2009/color/min_tree_volume_filter.cc
--- inim/2009/color/min_tree_volume_filter.cc (revision 3923)
+++ inim/2009/color/min_tree_volume_filter.cc (working copy)
@@ -29,7 +29,7 @@
# include <mln/data/paste.hh>
# include <mln/data/fill.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/extension/fill.hh>
# include <mln/morpho/closing_area.hh>
@@ -94,7 +94,7 @@
mln::data::fill(color, value::rgb8(255, 255, 255));
mln::data::fill(volume, 0);
- s = level::sort_psites_increasing(f);
+ s = data::sort_psites_increasing(f);
}
// first pass
Index: inim/2009/color/reference.cc
--- inim/2009/color/reference.cc (revision 3923)
+++ inim/2009/color/reference.cc (working copy)
@@ -30,7 +30,7 @@
# include <mln/data/paste.hh>
# include <mln/data/fill.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/extension/fill.hh>
# include <mln/convert/to.hh>
@@ -517,7 +517,7 @@
image2d<value::rgb8> cells(ima.domain());
data::fill(cells, literal::white);
- data::paste(level::transform(edge, colors), cells);
+ data::paste(data::transform(edge, colors), cells);
io::ppm::save(display_edge_with_bg(cells, 3, literal::white), "tmp_edge.ppm");
// Move the color of an edge which is non black in the cell
Index: inim/2009/color/min_tree_area_filter.cc
--- inim/2009/color/min_tree_area_filter.cc (revision 3923)
+++ inim/2009/color/min_tree_area_filter.cc (working copy)
@@ -30,7 +30,7 @@
# include <mln/data/paste.hh>
# include <mln/data/fill.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/extension/fill.hh>
# include <mln/morpho/meyer_wst.hh>
@@ -45,7 +45,7 @@
# include <mln/core/concept/neighborhood.hh>
# include <mln/util/pix.hh>
# include <mln/morpho/includes.hh>
-# include <mln/level/sort_psites.hh>
+# include <mln/data/sort_psites.hh>
#endif
# include "src/distance.hh"
@@ -104,7 +104,7 @@
//mln::data::fill(resp, false);
mln::data::fill(area, 0);
- s = level::sort_psites_increasing(f);
+ s = data::sort_psites_increasing(f);
}
// first pass
Index: inim/2009/color/min_tree_height_filter.cc
--- inim/2009/color/min_tree_height_filter.cc (revision 3923)
+++ inim/2009/color/min_tree_height_filter.cc (working copy)
@@ -29,7 +29,7 @@
# include <mln/data/paste.hh>
# include <mln/data/fill.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/extension/fill.hh>
# include <mln/opt/at.hh>
@@ -94,7 +94,7 @@
mln::data::fill(color, value::rgb8(255, 255, 255));
mln::data::fill(height, 0);
- s = level::sort_psites_increasing(f);
+ s = data::sort_psites_increasing(f);
}
// first pass
Index: inim/2009/color/min_tree_color.cc
--- inim/2009/color/min_tree_color.cc (revision 3923)
+++ inim/2009/color/min_tree_color.cc (working copy)
@@ -30,7 +30,7 @@
# include <mln/data/paste.hh>
# include <mln/data/fill.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/extension/fill.hh>
# include <mln/morpho/closing_area.hh>
@@ -44,7 +44,7 @@
# include <mln/core/concept/neighborhood.hh>
# include <mln/util/pix.hh>
# include <mln/morpho/includes.hh>
-# include <mln/level/sort_psites.hh>
+# include <mln/data/sort_psites.hh>
#endif
# include "src/distance.hh"
@@ -103,7 +103,7 @@
//mln::data::fill(resp, false);
mln::data::fill(color, value::rgb8(0, 0, 0));
- s = level::sort_psites_increasing(f);
+ s = data::sort_psites_increasing(f);
}
// first pass
Index: inim/2009/color/reference2.cc
--- inim/2009/color/reference2.cc (revision 3923)
+++ inim/2009/color/reference2.cc (working copy)
@@ -30,7 +30,7 @@
# include <mln/data/paste.hh>
# include <mln/data/fill.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/extension/fill.hh>
# include <mln/morpho/meyer_wst.hh>
@@ -371,7 +371,7 @@
image2d<value::rgb8> cells(ima.domain());
data::fill(cells, literal::white);
- data::paste(level::transform(edge, colors), cells);
+ data::paste(data::transform(edge, colors), cells);
io::ppm::save(display_edge(cells, literal::white, 3), "tmp_edge.ppm");
// Move the color of an edge which is non black in the cell
Index: inim/2009/color/min_tree_color_v2.cc
--- inim/2009/color/min_tree_color_v2.cc (revision 3923)
+++ inim/2009/color/min_tree_color_v2.cc (working copy)
@@ -29,7 +29,7 @@
# include <mln/data/paste.hh>
# include <mln/data/fill.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/extension/fill.hh>
# include <mln/morpho/closing_area.hh>
@@ -92,7 +92,7 @@
mln::data::fill(deja_vu, false);
mln::data::fill(color, value::rgb8(255, 255, 255));
- s = level::sort_psites_increasing(f);
+ s = data::sort_psites_increasing(f);
}
// first pass
Index: inim/2009/nature/nature.cc
--- inim/2009/nature/nature.cc (revision 3923)
+++ inim/2009/nature/nature.cc (working copy)
@@ -37,9 +37,9 @@
#include <mln/histo/compute.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/data/paste.hh>
-#include <mln/level/to_enc.hh>
+#include <mln/data/to_enc.hh>
#include <mln/value/rgb8.hh>
#include <mln/value/hsi.hh>
@@ -125,7 +125,7 @@
// First, we get the HSI histograms and corresponding greyscale versions of the picture
- image2d<hsi_f> hsi = level::transform(input, fun::v2v::f_rgb_to_hsi_f);
+ image2d<hsi_f> hsi = data::transform(input, fun::v2v::f_rgb_to_hsi_f);
thru<mln::meta::hue<hsi_f>, image2d<hsi_f> > hue(hsi);
thru<mln::meta::sat<hsi_f>, image2d<hsi_f> > sat(hsi);
@@ -164,7 +164,7 @@
dpoint2d d(0, 1);
image2d<int_u8> uinty (qinty.domain());
{
- image2d<unsigned char> tmp = level::transform(qinty, fun::v2v::enc< float01_8 >());
+ image2d<unsigned char> tmp = data::transform(qinty, fun::v2v::enc< float01_8 >());
data::paste(tmp, uinty);
/* mln_piter_(image2d<unsigned char>) p(tmp.domain());
for_all(p)
Index: inim/2009/nature/hom.cc
--- inim/2009/nature/hom.cc (revision 3923)
+++ inim/2009/nature/hom.cc (working copy)
@@ -39,7 +39,7 @@
# include <mln/core/alias/window2d.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/binarization/threshold.hh>
#include <mln/estim/mean.hh>
#include <mln/morpho/hit_or_miss.hh>
Index: inim/2009/nature/histo_hsi.cc
--- inim/2009/nature/histo_hsi.cc (revision 3923)
+++ inim/2009/nature/histo_hsi.cc (working copy)
@@ -39,12 +39,12 @@
#include <mln/value/hsi.hh>
#include <mln/fun/v2v/rgb_to_hsi.hh>
-#include <mln/level/to_enc.hh>
+#include <mln/data/to_enc.hh>
#include <mln/fun/meta/hue.hh>
#include <mln/fun/meta/sat.hh>
#include <mln/fun/meta/inty.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/io/ppm/load.hh>
#include <mln/io/pbm/save.hh>
@@ -52,7 +52,7 @@
#include <mln/accu/histo.hh>
#include <mln/histo/compute.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/data/fill.hh>
using namespace mln;
@@ -106,14 +106,14 @@
image2d<rgb8> input;
io::ppm::load(input, argv[i]);
- image2d<hsi_f> hsi = level::transform(input, fun::v2v::f_rgb_to_hsi_f);
+ image2d<hsi_f> hsi = data::transform(input, fun::v2v::f_rgb_to_hsi_f);
thru<mln::meta::hue<hsi_f>, image2d<hsi_f> > h(hsi);
cast_image_<float01_8, thru<mln::meta::hue<hsi_f>, image2d<hsi_f> > > hue(h);
std::string n(argv[i]);
n.erase(n.length() - 4);
image2d<int_u8> henc;
- level::transform(hue, fun::v2v::enc< float01_8 >(), henc);
+ data::transform(hue, fun::v2v::enc< float01_8 >(), henc);
io::pgm::save(henc, n.append("_hue.pgm"));
image2d<hsi_f>::piter p(hsi.domain());
@@ -138,7 +138,7 @@
n = argv[i];
n.erase(n.length() - 4);
image2d<int_u8> senc;
- level::transform(sat, fun::v2v::enc< float01_8 >(), senc);
+ data::transform(sat, fun::v2v::enc< float01_8 >(), senc);
io::pgm::save(senc, n.append("_sat.pgm"));
m = 0;
@@ -160,7 +160,7 @@
n = argv[i];
n.erase(n.length() - 4);
image2d<int_u8> ienc;
- level::transform(inty, fun::v2v::enc< float01_8 >(), ienc);
+ data::transform(inty, fun::v2v::enc< float01_8 >(), ienc);
io::pgm::save(ienc, n.append("_inty.pgm"));
Index: theo/igr/irm_seg_with_mm_and_rag.cc
--- theo/igr/irm_seg_with_mm_and_rag.cc (revision 3923)
+++ theo/igr/irm_seg_with_mm_and_rag.cc (working copy)
@@ -14,7 +14,7 @@
#include <mln/io/pgm/save.hh>
#include <mln/value/int_u8.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/convert/to_window.hh>
#include <mln/convert/to_image.hh>
@@ -25,7 +25,7 @@
#include <mln/morpho/meyer_wst.hh>
#include <mln/accu/mean.hh>
-#include <mln/level/take.hh>
+#include <mln/data/take.hh>
#include <mln/util/graph.hh>
@@ -56,7 +56,7 @@
// if (lbl(p) == 82)
// m.take(irm(p));
-// level::take(irm | (pw::value(lbl) == pw::cst(82)), m);
+// data::take(irm | (pw::value(lbl) == pw::cst(82)), m);
// std::cout << "reg 82 has mean = " << m << std::endl;
}
@@ -167,7 +167,7 @@
unsigned nbasins;
image2d<unsigned> wshed = morpho::meyer_wst(clo, c4(), nbasins);
std::cout << "nbasins = " << nbasins << std::endl;
- io::pgm::save( level::transform(wshed, convert::to_fun(foo)),
+ io::pgm::save( data::transform(wshed, convert::to_fun(foo)),
"tmp_wshed.pgm" );
// doit(irm, wshed, nbasins);
Index: theo/igr/irm_anat_segm.cc
--- theo/igr/irm_anat_segm.cc (revision 3923)
+++ theo/igr/irm_anat_segm.cc (working copy)
@@ -13,7 +13,7 @@
#include <mln/accu/mean.hh>
#include <mln/labeling/compute.hh>
#include <mln/fun/i2v/array.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
@@ -61,7 +61,7 @@
fun::i2v::array<int_u8> f;
convert::from_to(a, f);
- image3d<int_u8> out = level::transform(wst, f);
+ image3d<int_u8> out = data::transform(wst, f);
io::dump::save(out, argv[3]);
Index: theo/igr/irm_anat_segm__2D_ONLY.cc
--- theo/igr/irm_anat_segm__2D_ONLY.cc (revision 3923)
+++ theo/igr/irm_anat_segm__2D_ONLY.cc (working copy)
@@ -12,7 +12,7 @@
#include <mln/accu/mean.hh>
#include <mln/labeling/compute.hh>
#include <mln/fun/i2v/array.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
@@ -51,7 +51,7 @@
fun::i2v::array<int_u8> f;
convert::from_to(a, f);
- image2d<int_u8> out = level::transform(wst, f);
+ image2d<int_u8> out = data::transform(wst, f);
io::pgm::save(out, argv[2]);
}
Index: theo/igr/segment_2d_t.cc
--- theo/igr/segment_2d_t.cc (revision 3923)
+++ theo/igr/segment_2d_t.cc (working copy)
@@ -14,7 +14,7 @@
#include <mln/value/int_u8.hh>
#include <mln/value/int_u12.hh>
#include <mln/value/label.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/morpho/closing/height.hh>
#include <mln/morpho/watershed/flooding.hh>
@@ -92,7 +92,7 @@
std::cout << "min = " << min << " max = " << max << std::endl;
}
- mln_VAR(d, level::transform(df, int_u12_from_float()));
+ mln_VAR(d, data::transform(df, int_u12_from_float()));
// debug_println("d", d);
io_save_edges_int_u12(d, 0, "d.pgm");
@@ -119,7 +119,7 @@
if (m_[l] < 2) m_[l] == 2;
// basin <=> 2..255
}
- mln_VAR(d_m, level::transform(w, m_));
+ mln_VAR(d_m, data::transform(w, m_));
mln_VAR(out, world::inter_pixel::display_edge(d_m.unmorph_(),
0, // background <=> 0
3));
Index: theo/igr/dump_to_dist.cc
--- theo/igr/dump_to_dist.cc (revision 3923)
+++ theo/igr/dump_to_dist.cc (working copy)
@@ -14,7 +14,7 @@
#include <mln/io/pgm/save.hh>
#include <mln/util/array.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/data/paste.hh>
#include <mln/morpho/elementary/closing.hh>
@@ -152,7 +152,7 @@
io::dump::save(d_, argv[2]);
-// mln_VAR(d_8, level::transform(d, int_u8_from_float()));
+// mln_VAR(d_8, data::transform(d, int_u8_from_float()));
// io::pgm::save(display_edge(d_8.unmorph_(), 0, 3),
// argv[2]);
Index: theo/rush/exo2/exo2.cc
--- theo/rush/exo2/exo2.cc (revision 3923)
+++ theo/rush/exo2/exo2.cc (working copy)
@@ -10,7 +10,7 @@
#include <mln/io/pgm/load.hh>
#include <mln/io/pbm/save.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/morpho/tree/data.hh>
#include <mln/morpho/tree/compute_attribute_image.hh>
@@ -61,7 +61,7 @@
Accumulator<A> a_,
double lambda1,
double lambda2)
- : sorted_sites_(level::sort_psites_decreasing(exact(f_))),
+ : sorted_sites_(data::sort_psites_decreasing(exact(f_))),
tree_(exact(f_), sorted_sites_, c4())
{
mln_VAR(a, morpho::tree::compute_attribute_image(a_, tree_));
Index: theo/rush/exo3/exo3_fun_generator.cc
--- theo/rush/exo3/exo3_fun_generator.cc (revision 3923)
+++ theo/rush/exo3/exo3_fun_generator.cc (working copy)
@@ -10,7 +10,7 @@
#include <mln/fun/internal/resolve.hh>
#include <mln/morpho/attribute/card.hh>
#include <mln/morpho/attribute/sharpness.hh>
-#include <mln/level/sort_offsets.hh>
+#include <mln/data/sort_offsets.hh>
#include <mln/canvas/morpho/attribute_filter.hh>
#include <mln/canvas/morpho/internal/find_root.hh>
@@ -353,7 +353,7 @@
l_minarea = atoi(argv[4]);
mln_VAR(sharp, exo3_filter::attribute_filter(input, c4(),
- level::sort_psites_decreasing(input),
+ data::sort_psites_decreasing(input),
morpho::attribute::sharpness<I>(), l_sharpness));
mln_VAR(s, pw::value(sharp));
Index: theo/rush/exo3/exo3_fun_area.cc
--- theo/rush/exo3/exo3_fun_area.cc (revision 3923)
+++ theo/rush/exo3/exo3_fun_area.cc (working copy)
@@ -10,7 +10,7 @@
#include <mln/fun/internal/resolve.hh>
#include <mln/morpho/attribute/card.hh>
#include <mln/morpho/attribute/sharpness.hh>
-#include <mln/level/sort_offsets.hh>
+#include <mln/data/sort_offsets.hh>
#include <mln/canvas/morpho/attribute_filter.hh>
#include <mln/canvas/morpho/internal/find_root.hh>
@@ -303,7 +303,7 @@
l_maxarea = atoi(argv[4]);
mln_VAR(sharp, exo3_filter::attribute_filter(input, c4(),
- level::sort_psites_decreasing(input),
+ data::sort_psites_decreasing(input),
morpho::attribute::sharpness<I>(), l_sharpness));
mln_VAR(s, pw::value(sharp));
Index: theo/exec/diff_abs.cc
--- theo/exec/diff_abs.cc (revision 3923)
+++ theo/exec/diff_abs.cc (working copy)
@@ -1,7 +1,7 @@
#include "filetype.hh"
#include <mln/fun/vv2v/diff_abs.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
@@ -29,7 +29,7 @@
io::pgm::load(input1, argv[1]);
io::pgm::load(input2, argv[2]);
- io::pgm::save(level::transform(input1,
+ io::pgm::save(data::transform(input1,
input2,
fun::vv2v::diff_abs<int_u8>()),
argv[3]);
Index: theo/exec/gaussian_directional_2d__float.cc
--- theo/exec/gaussian_directional_2d__float.cc (revision 3923)
+++ theo/exec/gaussian_directional_2d__float.cc (working copy)
@@ -10,7 +10,7 @@
#include <mln/pw/all.hh>
#include <mln/data/fill.hh>
-#include <mln/level/saturate.hh>
+#include <mln/data/saturate.hh>
@@ -66,7 +66,7 @@
out = linear::gaussian_directional_2d(temp, dir, sigma, bdr);
- io::pgm::save(level::saturate(int_u8(),
+ io::pgm::save(data::saturate(int_u8(),
(pw::value(out) * pw::cst(255.f)) | out.domain()),
argv[5]);
}
@@ -86,7 +86,7 @@
out = linear::gaussian_directional_2d(temp, dir, sigma, bdr);
- io::pgm::save(level::saturate(int_u8(), out), argv[5]);
+ io::pgm::save(data::saturate(int_u8(), out), argv[5]);
}
break;
Index: theo/exec/watershed_flooding.cc
--- theo/exec/watershed_flooding.cc (revision 3923)
+++ theo/exec/watershed_flooding.cc (working copy)
@@ -3,7 +3,7 @@
#include <mln/morpho/watershed/flooding.hh>
#include <mln/value/label_16.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/convert/to_fun.hh>
@@ -57,7 +57,7 @@
}
else if (get_filetype(argv[2]) == filetype::pgm)
{
- io::pgm::save( level::transform(wst, convert::to_fun(L_to_int_u8)),
+ io::pgm::save( data::transform(wst, convert::to_fun(L_to_int_u8)),
argv[2] );
}
else if (get_filetype(argv[2]) == filetype::pbm)
Index: theo/exec/dump_12bit_to_pgm.cc
--- theo/exec/dump_12bit_to_pgm.cc (revision 3923)
+++ theo/exec/dump_12bit_to_pgm.cc (working copy)
@@ -1,7 +1,7 @@
#include "filetype.hh"
#include <mln/value/int_u12.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
@@ -28,7 +28,7 @@
io::dump::load(vol, argv[1]);
using value::int_u8;
- image3d<int_u8> out = level::stretch(int_u8(), vol);
+ image3d<int_u8> out = data::stretch(int_u8(), vol);
io::dump::save(out, argv[2]);
trace::exiting("main");
Index: theo/exec/color_labeling_mean.cc
--- theo/exec/color_labeling_mean.cc (revision 3923)
+++ theo/exec/color_labeling_mean.cc (working copy)
@@ -3,11 +3,11 @@
#include <mln/estim/min_max.hh>
#include <mln/labeling/compute.hh>
#include <mln/accu/mean.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/value/label_8.hh>
#include <mln/value/int_u16.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
#include <mln/io/pgm/load.hh>
#include <mln/io/ppm/load.hh>
@@ -42,7 +42,7 @@
image2d<int_u8> lab;
io::pgm::load(lab, argv[2]);
- image2d<int_u16> lab_ = level::convert(int_u16(), lab);
+ image2d<int_u16> lab_ = data::convert(int_u16(), lab);
int_u16 min, nlabels;
estim::min_max(lab_, min, nlabels);
@@ -63,5 +63,5 @@
c[l].blue() = m[l][2];
}
- io::ppm::save(level::transform(lab, c), argv[3]);
+ io::ppm::save(data::transform(lab, c), argv[3]);
}
Index: theo/exec/gaussian_directional_2d.cc
--- theo/exec/gaussian_directional_2d.cc (revision 3923)
+++ theo/exec/gaussian_directional_2d.cc (working copy)
@@ -10,7 +10,7 @@
#include <mln/pw/all.hh>
#include <mln/data/fill.hh>
-#include <mln/level/saturate.hh>
+#include <mln/data/saturate.hh>
@@ -66,7 +66,7 @@
out = linear::gaussian_directional_2d(temp, dir, sigma, bdr);
- io::pgm::save(level::saturate(int_u8(),
+ io::pgm::save(data::saturate(int_u8(),
(pw::value(out) * pw::cst(255.f)) | out.domain()),
argv[5]);
}
@@ -86,7 +86,7 @@
out = linear::gaussian_directional_2d(temp, dir, sigma, bdr);
- io::pgm::save(level::saturate(int_u8(), out), argv[5]);
+ io::pgm::save(data::saturate(int_u8(), out), argv[5]);
}
break;
Index: theo/exec/distance_thick.cc
--- theo/exec/distance_thick.cc (revision 3923)
+++ theo/exec/distance_thick.cc (working copy)
@@ -2,7 +2,7 @@
#include <mln/transform/distance_front.hh>
#include <mln/make/w_window2d_int.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
@@ -39,7 +39,7 @@
c4(), make::w_window2d_int(ws),
mln_max(int_u12));
- io::pgm::save(level::stretch(int_u8(), dmap),
+ io::pgm::save(data::stretch(int_u8(), dmap),
argv[2]);
trace::exiting("main");
Index: theo/test_attribute.cc
--- theo/test_attribute.cc (revision 3923)
+++ theo/test_attribute.cc (working copy)
@@ -32,8 +32,8 @@
#include <mln/core/image/image2d.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/sort_psites.hh>
+#include <mln/data/transform.hh>
#include <mln/debug/println.hh>
#include <mln/core/var.hh>
@@ -82,25 +82,25 @@
image2d<unsigned> area_inc, area_dec;
{
- S s = level::sort_psites_increasing(f);
+ S s = data::sort_psites_increasing(f);
morpho::tree::data<I,S> t(f, s, c4());
accu::count<Px> a;
area_inc = morpho::tree::compute_attribute_image(a, t);
debug::println("area_inc =", area_inc);
}
{
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
morpho::tree::data<I,S> t(f, s, c4());
accu::count<Px> a;
area_dec = morpho::tree::compute_attribute_image(a, t);
debug::println("area_dec =", area_dec);
}
- io::pgm::save(level::transform(area_inc, sat), "inc.pgm");
- io::pgm::save(level::transform(area_dec, sat), "dec.pgm");
+ io::pgm::save(data::transform(area_inc, sat), "inc.pgm");
+ io::pgm::save(data::transform(area_dec, sat), "dec.pgm");
image2d<unsigned> area = arith::min(area_inc, area_dec);
- io::pgm::save(level::transform(area, sat), "min.pgm");
+ io::pgm::save(data::transform(area, sat), "min.pgm");
unsigned lambda = 20;
Index: theo/fllt.svg.6.cc
--- theo/fllt.svg.6.cc (revision 3923)
+++ theo/fllt.svg.6.cc (working copy)
@@ -44,7 +44,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/data/fill.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/debug/println.hh>
#include <mln/labeling/regional_minima.hh>
#include <mln/labeling/regional_maxima.hh>
Index: theo/esiee/laurent/presentation/wst_edge.cc
--- theo/esiee/laurent/presentation/wst_edge.cc (revision 3923)
+++ theo/esiee/laurent/presentation/wst_edge.cc (working copy)
@@ -29,7 +29,7 @@
# include <mln/data/paste.hh>
# include <mln/data/fill.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/extension/fill.hh>
# include <mln/morpho/meyer_wst.hh>
@@ -344,7 +344,7 @@
image2d<value::rgb8> temp(label.domain());
data::fill(temp, literal::white);
- data::paste( level::transform(label | is_edge,
+ data::paste( data::transform(label | is_edge,
colors),
temp );
@@ -367,7 +367,7 @@
//
// 1 1 1
- io::ppm::save(level::transform(cells2image(label),
+ io::ppm::save(data::transform(cells2image(label),
colors),
filename);
}
Index: theo/esiee/laurent/presentation/wst2d.cc
--- theo/esiee/laurent/presentation/wst2d.cc (revision 3923)
+++ theo/esiee/laurent/presentation/wst2d.cc (working copy)
@@ -12,7 +12,7 @@
# include <mln/core/alias/neighb2d.hh>
# include <mln/make/double_neighb2d.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/literal/black.hh>
# include <mln/debug/println.hh>
@@ -113,7 +113,7 @@
// debug::println(labeling::regional_minima(clo, nbh, l));
// debug::println(wst);
- io::ppm::save(level::transform(wst, colorize(l)), filename);
+ io::ppm::save(data::transform(wst, colorize(l)), filename);
}
Index: theo/esiee/laurent/presentation/wst3d.cc
--- theo/esiee/laurent/presentation/wst3d.cc (revision 3923)
+++ theo/esiee/laurent/presentation/wst3d.cc (working copy)
@@ -3,7 +3,7 @@
# include <mln/value/int_u16.hh>
# include <mln/value/int_u8.hh>
-# include <mln/level/stretch.hh>
+# include <mln/data/stretch.hh>
# include <mln/io/pgm/load.hh>
# include <mln/io/ppm/save.hh>
@@ -63,7 +63,7 @@
abort();
image3d<int_u8> ima(ima16.domain());
- level::stretch(ima16, ima);
+ data::stretch(ima16, ima);
ima16.destroy();
int lambda = atoi(argv[2]);
Index: theo/esiee/laurent/presentation/segmentation.hh
--- theo/esiee/laurent/presentation/segmentation.hh (revision 3923)
+++ theo/esiee/laurent/presentation/segmentation.hh (working copy)
@@ -10,5 +10,5 @@
unsigned nbasins;
mln_ch_value(I, unsigned) wst = morpho::wst_meyer(filtered, nbh, nbasins);
- return level::transform(wst, colorize(nbasins));
+ return data::transform(wst, colorize(nbasins));
}
Index: theo/esiee/laurent/ismm09/trash.hh
--- theo/esiee/laurent/ismm09/trash.hh (revision 3923)
+++ theo/esiee/laurent/ismm09/trash.hh (working copy)
@@ -13,7 +13,7 @@
mln_ch_value(F,L) regmins = labeling::regional_minima(f, nbh, n_basins);
typedef p_array<mln_psite(F)> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
typedef morpho::tree::data<F,S> tree_t;
tree_t t(f, s, nbh);
Index: theo/esiee/laurent/ismm09/extinct_attributes.hh
--- theo/esiee/laurent/ismm09/extinct_attributes.hh (revision 3923)
+++ theo/esiee/laurent/ismm09/extinct_attributes.hh (working copy)
@@ -122,7 +122,7 @@
node_only.t = &t;
typedef p_array<P> S;
- S s = level::sort_psites_increasing(f | node_only);
+ S s = data::sort_psites_increasing(f | node_only);
if (echo)
{
Index: theo/esiee/laurent/ismm09/main.ext.cc
--- theo/esiee/laurent/ismm09/main.ext.cc (revision 3923)
+++ theo/esiee/laurent/ismm09/main.ext.cc (working copy)
@@ -55,7 +55,7 @@
{
typedef p_array<point2d> s_t;
- s_t s = level::sort_psites_decreasing(g); // min-tree
+ s_t s = data::sort_psites_decreasing(g); // min-tree
typedef morpho::tree::data<g_t,s_t> tree_t;
tree_t t(g, s, cplx2d::e2e());
Index: theo/esiee/laurent/ismm09/main.cc
--- theo/esiee/laurent/ismm09/main.cc (revision 3923)
+++ theo/esiee/laurent/ismm09/main.cc (working copy)
@@ -94,7 +94,7 @@
{
typedef p_array<point2d> s_t;
- s_t s = level::sort_psites_decreasing(g); // min-tree
+ s_t s = data::sort_psites_decreasing(g); // min-tree
typedef morpho::tree::data<g_t,s_t> tree_t;
tree_t t(g, s, cplx2d::e2e());
Index: theo/esiee/laurent/ismm09/util.hh
--- theo/esiee/laurent/ismm09/util.hh (revision 3923)
+++ theo/esiee/laurent/ismm09/util.hh (working copy)
@@ -2,7 +2,7 @@
#include <mln/core/concept/function.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/morpho/tree/data.hh>
#include <mln/morpho/tree/compute_attribute_image.hh>
@@ -58,7 +58,7 @@
node_only.t = &t;
typedef p_array<mln_site(A)> S;
- S s = level::sort_psites_increasing(a | node_only);
+ S s = data::sort_psites_increasing(a | node_only);
mln_fwd_piter(S) p(s);
for_all(p)
Index: theo/esiee/laurent/ismm09/pseudo_tree.hh
--- theo/esiee/laurent/ismm09/pseudo_tree.hh (revision 3923)
+++ theo/esiee/laurent/ismm09/pseudo_tree.hh (working copy)
@@ -17,8 +17,8 @@
#include <mln/core/image/image2d.hh>
#include <mln/value/int_u8.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
-#include <mln/level/compute.hh>
+#include <mln/data/stretch.hh>
+#include <mln/data/compute.hh>
#include <mln/accu/max.hh>
@@ -554,7 +554,7 @@
// Outputing.
{
- A aa_max = level::compute(accu::max<A>(), aa);
+ A aa_max = data::compute(accu::max<A>(), aa);
using value::int_u8;
if (aa_max < 256)
{
@@ -570,7 +570,7 @@
image2d<int_u8> output(aa_ext.domain());
data::fill(output, 0);
data::paste(aa_ext, output);
- io::pgm::save(level::stretch(int_u8(), output),
+ io::pgm::save(data::stretch(int_u8(), output),
"aa_line.pgm");
}
}
Index: theo/cs2d/cs2d.cc
--- theo/cs2d/cs2d.cc (revision 3923)
+++ theo/cs2d/cs2d.cc (working copy)
@@ -103,7 +103,7 @@
std::vector<int_u8> v(l + 1);
accu::compute<accu::mean>(cs_.cell, label, v);
- data::fill(cs_.cell, level::transform(label, v));
+ data::fill(cs_.cell, data::transform(label, v));
io::pgm::save(cell_image(cs_), argv[3]);
// io::ppm::save(pack(cs_, colorize, 7), "log.ppm");
Index: theo/cs2d/kruskal.cc
--- theo/cs2d/kruskal.cc (revision 3923)
+++ theo/cs2d/kruskal.cc (working copy)
@@ -17,7 +17,7 @@
# include <mln/morpho/gradient.hh>
# include <mln/morpho/meyer_wst.hh>
-# include <mln/level/sort_points.hh>
+# include <mln/data/sort_points.hh>
# include <mln/io/pgm/load.hh>
# include <mln/io/ppm/save.hh>
@@ -280,7 +280,7 @@
typedef typeof(edge) edge_t;
typedef p_array<point2d> Arr;
- Arr E = level::sort_points_increasing(edge);
+ Arr E = data::sort_points_increasing(edge);
// Aux data.
mln_ch_value_(edge_t, bool) T;
Index: theo/cs2d/cs2d_morpho.hh
--- theo/cs2d/cs2d_morpho.hh (revision 3923)
+++ theo/cs2d/cs2d_morpho.hh (working copy)
@@ -345,14 +345,14 @@
} // mln::accu
- namespace level
+ namespace data
{
template<typename I, typename R>
mln_ch_value(I, R)
transform(const Image<I>& input_, const std::vector<R>& v)
{
- trace::entering("level::transform");
+ trace::entering("data::transform");
const I& input = exact(input_);
mln_ch_value(I, R) output;
@@ -362,11 +362,11 @@
for_all(p)
output(p) = v[input(p)];
- trace::exiting("level::transform");
+ trace::exiting("data::transform");
return output;
}
- } // mln::level
+ } // mln::data
} // mln
Index: theo/publis/icip2009/compute_a.cc
--- theo/publis/icip2009/compute_a.cc (revision 3923)
+++ theo/publis/icip2009/compute_a.cc (working copy)
@@ -39,10 +39,10 @@
#include <mln/core/routine/duplicate.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/data/fill.hh>
#include <mln/data/paste.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/morpho/tree/data.hh>
#include <mln/morpho/tree/compute_attribute_image.hh>
@@ -131,7 +131,7 @@
{
typedef mln_site(I) P;
typedef p_array<P> S;
- S s = level::sort_psites_increasing(f);
+ S s = data::sort_psites_increasing(f);
// s maps increasing attributes.
mln_ch_value(I, P) par;
@@ -448,7 +448,7 @@
// NOW attributes are sorted increasingly!
- S s_a = level::sort_psites_increasing(a);
+ S s_a = data::sort_psites_increasing(a);
mln_fwd_piter(S) p(s_a);
Index: theo/publis/icip2009/regmin_count.cc
--- theo/publis/icip2009/regmin_count.cc (revision 3923)
+++ theo/publis/icip2009/regmin_count.cc (working copy)
@@ -33,7 +33,7 @@
#include <mln/debug/println.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/labeling/regional_minima.hh>
@@ -76,7 +76,7 @@
unsigned regmin_count(const I& f, const N& nbh)
{
typedef p_array<mln_psite(I)> S;
- S s = level::sort_psites_increasing(f);
+ S s = data::sort_psites_increasing(f);
// s maps increasing attributes.
mln_ch_value(I, mln_site(I)) par;
Index: theo/fllt/fllt.hh
--- theo/fllt/fllt.hh (revision 3923)
+++ theo/fllt/fllt.hh (working copy)
@@ -47,8 +47,8 @@
#include <mln/data/fill.hh>
#include <mln/data/paste.hh>
-#include <mln/level/stretch.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/stretch.hh>
+#include <mln/data/compare.hh>
#include <mln/debug/println.hh>
#include <mln/labeling/regional_minima.hh>
#include <mln/labeling/regional_maxima.hh>
@@ -222,7 +222,7 @@
//save is
image2d<value::int_u8> is_out(is.domain());
- level::stretch(cast_image<value::int_u8>(is), is_out);
+ data::stretch(cast_image<value::int_u8>(is), is_out);
io::pgm::save(is_out, is_filename.str());
//io::pgm::save(out, filename.str());
}
Index: theo/fllt/fllt.svg.7.hh
--- theo/fllt/fllt.svg.7.hh (revision 3923)
+++ theo/fllt/fllt.svg.7.hh (working copy)
@@ -50,7 +50,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/data/fill.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/debug/println.hh>
#include <mln/labeling/regional_minima.hh>
#include <mln/labeling/regional_maxima.hh>
Index: theo/fllt/fllt.svg.4.cc
--- theo/fllt/fllt.svg.4.cc (revision 3923)
+++ theo/fllt/fllt.svg.4.cc (working copy)
@@ -40,7 +40,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/data/fill.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/debug/println.hh>
#include <mln/labeling/regional_minima.hh>
#include <mln/accu/bbox.hh>
Index: theo/fllt/fllt.svg.5.cc
--- theo/fllt/fllt.svg.5.cc (revision 3923)
+++ theo/fllt/fllt.svg.5.cc (working copy)
@@ -40,7 +40,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/data/fill.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/debug/println.hh>
#include <mln/labeling/regional_minima.hh>
#include <mln/accu/bbox.hh>
Index: theo/fllt/fllt.svg.6.cc
--- theo/fllt/fllt.svg.6.cc (revision 3923)
+++ theo/fllt/fllt.svg.6.cc (working copy)
@@ -44,7 +44,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/data/fill.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/debug/println.hh>
#include <mln/labeling/regional_minima.hh>
#include <mln/labeling/regional_maxima.hh>
Index: theo/fllt/fllt_test.hh
--- theo/fllt/fllt_test.hh (revision 3923)
+++ theo/fllt/fllt_test.hh (working copy)
@@ -46,7 +46,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/data/fill.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/debug/println.hh>
#include <mln/labeling/regional_minima.hh>
#include <mln/labeling/regional_maxima.hh>
Index: theo/fllt.svg.7.hh
--- theo/fllt.svg.7.hh (revision 3923)
+++ theo/fllt.svg.7.hh (working copy)
@@ -48,7 +48,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/data/fill.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/debug/println.hh>
#include <mln/labeling/regional_minima.hh>
#include <mln/labeling/regional_maxima.hh>
Index: theo/dmap.cc
--- theo/dmap.cc (revision 3923)
+++ theo/dmap.cc (working copy)
@@ -4,7 +4,7 @@
#include <mln/core/alias/w_window2d_int.hh>
#include <mln/debug/println.hh>
#include <mln/data/fill.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/accu/max.hh>
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
@@ -126,6 +126,6 @@
debug::println(d);
// image2d<int_u8> out;
-// level::stretch(d, out);
+// data::stretch(d, out);
// io::pgm::save(out, "out.pgm");
}
Index: theo/Rd/diff.cc
--- theo/Rd/diff.cc (revision 3923)
+++ theo/Rd/diff.cc (working copy)
@@ -1,6 +1,6 @@
#include <oln/core/2d/image2d.hh>
#include <oln/io/load_pgm.hh>
-#include <oln/level/compare.hh>
+#include <oln/data/compare.hh>
void usage(char* argv[])
Index: theo/Rd/utils.hh
--- theo/Rd/utils.hh (revision 3923)
+++ theo/Rd/utils.hh (working copy)
@@ -37,7 +37,7 @@
# include <mln/data/fill_with_value.hh>
# include <mln/data/paste.hh>
-# include <mln/level/compare.hh>
+# include <mln/data/compare.hh>
Index: theo/Rd/diff_pgm.cc
--- theo/Rd/diff_pgm.cc (revision 3923)
+++ theo/Rd/diff_pgm.cc (working copy)
@@ -1,7 +1,7 @@
#include <mln/core/image/image2d.hh>
#include <mln/io/pgm/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/value/int_u8.hh>
Index: theo/tufa_2008/steps.0.cc
--- theo/tufa_2008/steps.0.cc (revision 3923)
+++ theo/tufa_2008/steps.0.cc (working copy)
@@ -33,7 +33,7 @@
#include <mln/debug/println.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/morpho/tree/data.hh>
@@ -78,7 +78,7 @@
mln_concrete(I) filtering(const I& f, const A& a, const N& nbh, mln_value(A) lambda)
{
typedef p_array<mln_psite(I)> S;
- S s = level::sort_psites_increasing(a);
+ S s = data::sort_psites_increasing(a);
// s maps increasing attributes.
@@ -148,7 +148,7 @@
debug::println("ref =", morpho::closing_area(f, c4(), 10));
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
// Children go towards lower levels so leafs are regional minima.
// We get a min-tree so that we can perform morphological closings.
@@ -161,7 +161,7 @@
debug::println("g =", g);
{
- S s = level::sort_psites_decreasing(g);
+ S s = data::sort_psites_decreasing(g);
morpho::tree::data<I,S> t(g, s, c4());
image2d<unsigned> a_g = morpho::tree::compute_attribute_image(attr, t);
debug::println("a(f) =", a);
Index: theo/tufa_2008/steps.1.cc
--- theo/tufa_2008/steps.1.cc (revision 3923)
+++ theo/tufa_2008/steps.1.cc (working copy)
@@ -33,7 +33,7 @@
#include <mln/debug/println.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/morpho/tree/data.hh>
@@ -80,7 +80,7 @@
void run_run(const I& f, const A& a, const N& nbh)
{
typedef p_array<mln_psite(I)> S;
- S s = level::sort_psites_increasing(a);
+ S s = data::sort_psites_increasing(a);
// s maps increasing attributes.
mln_ch_value(I, mln_site(I)) par;
@@ -252,7 +252,7 @@
// debug::println("f =", f);
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
// Children go towards lower levels so leafs are regional minima.
// We get a min-tree so that we can perform morphological closings.
@@ -264,7 +264,7 @@
run_run(f, a, c4());
// {
-// S s = level::sort_psites_decreasing(g);
+// S s = data::sort_psites_decreasing(g);
// morpho::tree::data<I,S> t(g, s, c4());
// image2d<unsigned> a_g = morpho::tree::compute_attribute_image(attr, t);
// debug::println("a(f) =", a);
Index: theo/tufa_2008/steps.2.cc
--- theo/tufa_2008/steps.2.cc (revision 3923)
+++ theo/tufa_2008/steps.2.cc (working copy)
@@ -33,7 +33,7 @@
#include <mln/debug/println.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/morpho/tree/data.hh>
@@ -86,7 +86,7 @@
debug::println("f =", f);
typedef p_array<mln_psite(I)> S;
- S s = level::sort_psites_increasing(a);
+ S s = data::sort_psites_increasing(a);
// s maps increasing attributes.
mln_ch_value(I, mln_site(I)) par;
@@ -227,7 +227,7 @@
usage(argv);
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
// Children go towards lower levels so leafs are regional minima.
// We get a min-tree so that we can perform morphological closings.
Index: theo/tufa_2008/steps.3.cc
--- theo/tufa_2008/steps.3.cc (revision 3923)
+++ theo/tufa_2008/steps.3.cc (working copy)
@@ -33,7 +33,7 @@
#include <mln/debug/println.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/morpho/tree/data.hh>
@@ -81,7 +81,7 @@
void run_run(const I& f, const A& a, const N& nbh)
{
typedef p_array<mln_psite(I)> S;
- S s = level::sort_psites_increasing(a);
+ S s = data::sort_psites_increasing(a);
// s maps increasing attributes.
mln_ch_value(I, mln_site(I)) par;
@@ -172,7 +172,7 @@
io::pgm::load(f, argv[1]);
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
// Children go towards lower levels so leafs are regional minima.
// We get a min-tree so that we can perform morphological closings.
Index: theo/tufa_2008/steps.2b.cc
--- theo/tufa_2008/steps.2b.cc (revision 3923)
+++ theo/tufa_2008/steps.2b.cc (working copy)
@@ -33,7 +33,7 @@
#include <mln/debug/println.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/morpho/tree/data.hh>
@@ -80,7 +80,7 @@
void run_run(const I& f, const A& a, const N& nbh)
{
typedef p_array<mln_psite(I)> S;
- S s = level::sort_psites_increasing(a);
+ S s = data::sort_psites_increasing(a);
// s maps increasing attributes.
mln_ch_value(I, mln_site(I)) par;
@@ -171,7 +171,7 @@
io::pgm::load(f, argv[1]);
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
// Children go towards lower levels so leafs are regional minima.
// We get a min-tree so that we can perform morphological closings.
Index: theo/tufa_2008/filter_n.cc
--- theo/tufa_2008/filter_n.cc (revision 3923)
+++ theo/tufa_2008/filter_n.cc (working copy)
@@ -35,7 +35,7 @@
#include <mln/debug/println.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/morpho/tree/data.hh>
@@ -327,7 +327,7 @@
neighb2d nbh = c4();
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
// Children go towards lower levels so leafs are regional minima.
// We get a min-tree so that we can perform morphological closings.
Index: theo/tufa_2008/wst_f_equal_wst_a.cc
--- theo/tufa_2008/wst_f_equal_wst_a.cc (revision 3923)
+++ theo/tufa_2008/wst_f_equal_wst_a.cc (working copy)
@@ -37,8 +37,8 @@
#include <mln/literal/black.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/sort_psites.hh>
+#include <mln/data/transform.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/morpho/tree/data.hh>
@@ -106,14 +106,14 @@
image2d<unsigned> wst_f = morpho::meyer_wst(f, c4(), n);
mln_assertion(n == nref);
- io::ppm::save(level::transform(wst_f, colorize(n)),
+ io::ppm::save(data::transform(wst_f, colorize(n)),
"wst_f.ppm");
mln_VAR(WST_f, (pw::value(wst_f) == pw::cst(0u)) | f.domain());
io::pbm::save(WST_f, "wst_f.pbm");
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
// Children go towards lower levels so leafs are regional minima.
// We get a min-tree so that we can perform morphological closings.
@@ -129,7 +129,7 @@
image2d<unsigned> wst_a = morpho::meyer_wst(a, c4(), n);
mln_assertion(n == nref);
- io::ppm::save(level::transform(wst_a, colorize(n)),
+ io::ppm::save(data::transform(wst_a, colorize(n)),
"wst_a.ppm");
mln_VAR(WST_a, (pw::value(wst_a) == pw::cst(0u)) | f.domain());
io::pbm::save(WST_a, "wst_a.pbm");
Index: theo/tufa_2008/wst.cc
--- theo/tufa_2008/wst.cc (revision 3923)
+++ theo/tufa_2008/wst.cc (working copy)
@@ -36,7 +36,7 @@
#include <mln/value/int_u8.hh>
#include <mln/data/fill.hh>
-#include <mln/level/replace.hh>
+#include <mln/data/replace.hh>
#include <mln/morpho/meyer_wst.hh>
#include <mln/io/pgm/load.hh>
Index: theo/tufa_2008/experiment.cc
--- theo/tufa_2008/experiment.cc (revision 3923)
+++ theo/tufa_2008/experiment.cc (working copy)
@@ -38,7 +38,7 @@
#include <mln/debug/println.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/morpho/tree/data.hh>
@@ -52,8 +52,8 @@
#include <mln/data/fill.hh>
-#include <mln/level/transform.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/transform.hh>
+#include <mln/data/stretch.hh>
@@ -106,7 +106,7 @@
io::pgm::load(f, argv[1]);
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
// Children go towards lower levels so leafs are regional minima.
// We get a min-tree so that we can perform morphological closings.
@@ -115,12 +115,12 @@
accu::volume<I> attr;
image2d<unsigned> a = morpho::tree::compute_attribute_image(attr, t);
- io::pgm::save(level::stretch(int_u8(), a),
+ io::pgm::save(data::stretch(int_u8(), a),
"a.pgm");
unsigned n;
image2d<unsigned> wst_a = morpho::meyer_wst(a, c4(), n);
- io::ppm::save(level::transform(wst_a, colorize(n)),
+ io::ppm::save(data::transform(wst_a, colorize(n)),
"wst_a.ppm");
std::cout << "n(a) = " << n << std::endl;
@@ -128,11 +128,11 @@
image2d<unsigned> aa = morpho::closing_area(a, c4(), 100);
- io::pgm::save(level::stretch(int_u8(), aa),
+ io::pgm::save(data::stretch(int_u8(), aa),
"aa.pgm");
image2d<unsigned> wst_aa = morpho::meyer_wst(aa, c4(), n);
- io::ppm::save(level::transform(wst_aa, colorize(n)),
+ io::ppm::save(data::transform(wst_aa, colorize(n)),
"wst_aa.ppm");
std::cout << "n(aa) = " << n << std::endl;
}
Index: theo/tufa_2008/n_cmpt.cc
--- theo/tufa_2008/n_cmpt.cc (revision 3923)
+++ theo/tufa_2008/n_cmpt.cc (working copy)
@@ -69,10 +69,10 @@
typedef p_array<mln_psite(I)> S;
typedef mln_ch_value(I, mln_result(A)) Attr;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
morpho::tree::data<I,S> t(f, s, nbh);
Attr attr = morpho::tree::compute_attribute_image(a, t);
- s = level::sort_psites_increasing(attr);
+ s = data::sort_psites_increasing(attr);
debug::println("attr =", attr);
Index: theo/tufa_2008/filter.cc
--- theo/tufa_2008/filter.cc (revision 3923)
+++ theo/tufa_2008/filter.cc (working copy)
@@ -39,7 +39,7 @@
#include <mln/core/site_set/p_array.hh>
#include <mln/core/alias/neighb2d.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/data/fill.hh>
#include <mln/morpho/tree/data.hh>
@@ -66,7 +66,7 @@
mln_concrete(I) filtering(const I& f, const A& a, const N& nbh, mln_value(A) lambda)
{
typedef p_array<mln_psite(I)> S;
- S s = level::sort_psites_increasing(a);
+ S s = data::sort_psites_increasing(a);
// s maps increasing attributes.
@@ -144,7 +144,7 @@
unsigned lambda = std::atoi(argv[2]);
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
// Children go towards lower levels so leafs are regional minima.
// We get a min-tree so that we can perform morphological closings.
Index: theo/tufa_2008/fz_count.cc
--- theo/tufa_2008/fz_count.cc (revision 3923)
+++ theo/tufa_2008/fz_count.cc (working copy)
@@ -33,7 +33,7 @@
#include <mln/debug/println.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/core/alias/neighb2d.hh>
#include <mln/labeling/regional_minima.hh>
@@ -75,7 +75,7 @@
unsigned fz_count(const I& f, const N& nbh)
{
typedef p_array<mln_psite(I)> S;
- S s = level::sort_psites_increasing(f);
+ S s = data::sort_psites_increasing(f);
// s maps increasing attributes.
mln_ch_value(I, mln_site(I)) par;
Index: theo/color/segment.hh
--- theo/color/segment.hh (revision 3923)
+++ theo/color/segment.hh (working copy)
@@ -11,7 +11,7 @@
#include <mln/value/rgb8.hh>
#include <mln/math/diff_abs.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/labeling/regional_minima.hh>
#include <mln/pw/all.hh>
@@ -367,7 +367,7 @@
unsigned n_objects, unsigned less,
bool echo = false)
{
- mln_concrete(I) g_ref = morpho::closing::leveling(f, nbh, A(), lambda);
+ mln_concrete(I) g_ref = morpho::closing::dataing(f, nbh, A(), lambda);
unsigned n_regmins_g_ref;
mln_ch_value(I, unsigned) regmin_g_ref = labeling::regional_minima(g_ref, nbh, n_regmins_g_ref);
@@ -462,7 +462,7 @@
bool echo = false)
{
typedef p_array<mln_psite(F)> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
typedef morpho::tree::data<F,S> tree_t;
tree_t t(f, s, nbh);
@@ -527,7 +527,7 @@
gran_filter(const F& f, const N& nbh, const A& a_)
{
typedef p_array<mln_psite(F)> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
typedef morpho::tree::data<F,S> T;
T t(f, s, nbh);
Index: theo/color/segment_rgb_pixels.cc
--- theo/color/segment_rgb_pixels.cc (revision 3923)
+++ theo/color/segment_rgb_pixels.cc (working copy)
@@ -12,7 +12,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/io/pgm/save.hh>
#include <mln/io/pbm/save.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
#include <mln/morpho/watershed/flooding.hh>
#include <mln/morpho/attribute/card.hh>
@@ -143,7 +143,7 @@
typedef p_array<mln_psite_(F)> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
typedef morpho::tree::data<F,S> tree_t;
tree_t t(f, s, c4());
Index: theo/color/segment_rgb_edges.cc
--- theo/color/segment_rgb_edges.cc (revision 3923)
+++ theo/color/segment_rgb_edges.cc (working copy)
@@ -350,7 +350,7 @@
util::array<rgb8> m;
convert::from_to(m_3f, m);
- io::ppm::save( level::transform(w_all,
+ io::ppm::save( data::transform(w_all,
convert::to< fun::i2v::array<rgb8> >(m) ),
argv[6] );
Index: theo/color/change_attributes.hh
--- theo/color/change_attributes.hh (revision 3923)
+++ theo/color/change_attributes.hh (working copy)
@@ -174,7 +174,7 @@
node_only.t = &t;
typedef p_array<P> S;
- S s = level::sort_psites_increasing(a | node_only);
+ S s = data::sort_psites_increasing(a | node_only);
mln_invariant(geom::nsites(a | t.nodes()) == s.nsites());
mln_fwd_piter(S) p(s);
@@ -242,7 +242,7 @@
node_only.t = &t;
typedef p_array<P> S;
- S s = level::sort_psites_increasing(a | node_only);
+ S s = data::sort_psites_increasing(a | node_only);
mln_invariant(geom::nsites(a | t.nodes()) == s.nsites());
mln_fwd_piter(S) p(s);
Index: theo/color/filter_blen_rgb_edges.cc
--- theo/color/filter_blen_rgb_edges.cc (revision 3923)
+++ theo/color/filter_blen_rgb_edges.cc (working copy)
@@ -279,7 +279,7 @@
typedef p_array<mln_psite_(I)> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
typedef morpho::tree::data<I,S> tree_t;
tree_t t(f, s, e2e());
@@ -364,12 +364,12 @@
m[i] = rgb8(m_3f[i][0], m_3f[i][1], m_3f[i][2]);
- io::ppm::save( level::transform(out_w,
+ io::ppm::save( data::transform(out_w,
convert::to< fun::i2v::array<rgb8> >(m) ),
argv[4] );
-// io::ppm::save( level::transform(w_all,
+// io::ppm::save( data::transform(w_all,
// convert::to< fun::i2v::array<rgb8> >(m) ),
// argv[4] );
Index: theo/color/filter_meandist_rgb_pixels.cc
--- theo/color/filter_meandist_rgb_pixels.cc (revision 3923)
+++ theo/color/filter_meandist_rgb_pixels.cc (working copy)
@@ -12,7 +12,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/io/pgm/save.hh>
#include <mln/io/pbm/save.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
#include <mln/morpho/watershed/flooding.hh>
@@ -185,7 +185,7 @@
typedef p_array<mln_psite_(F)> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
typedef morpho::tree::data<F,S> tree_t;
tree_t t(f, s, c4());
Index: theo/color/segment_gl_pixels.cc
--- theo/color/segment_gl_pixels.cc (revision 3923)
+++ theo/color/segment_gl_pixels.cc (working copy)
@@ -12,7 +12,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
#include <mln/morpho/elementary/gradient.hh>
#include <mln/morpho/meyer_wst.hh>
@@ -110,7 +110,7 @@
L nbasins;
mln_ch_value_(I, L) w = morpho::meyer_wst(g, c4(), nbasins);
- image2d<rgb8> output = level::convert(rgb8(), input);
+ image2d<rgb8> output = data::convert(rgb8(), input);
data::fill((output | (pw::value(w) == 0)).rw(), literal::red);
io::ppm::save(output, argv[6]);
Index: theo/csi/edwin.cc
--- theo/csi/edwin.cc (revision 3923)
+++ theo/csi/edwin.cc (working copy)
@@ -11,7 +11,7 @@
#include <mln/io/pgm/load.hh>
#include <mln/io/pbm/save.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/morpho/elementary/gradient.hh>
#include <mln/morpho/tree/data.hh>
@@ -121,7 +121,7 @@
typedef p_array<point2d> S;
- S s = level::sort_psites_decreasing(f);
+ S s = data::sort_psites_decreasing(f);
typedef morpho::tree::data<I,S> tree_t;
tree_t t(f, s, nbh);
Index: bugs/lut.cc
--- bugs/lut.cc (revision 3923)
+++ bugs/lut.cc (working copy)
@@ -1,5 +1,5 @@
-/// Passing a fun::i2v::array to level::Transform can lead to a segfault.
-/// Through the dispatch of level::transform, a dispatch function detects that
+/// Passing a fun::i2v::array to data::Transform can lead to a segfault.
+/// Through the dispatch of data::transform, a dispatch function detects that
/// we are using int_u8 as values, meaning a low quantification value type.
/// It tries to compute a look-up table (lut) which for each int_u8 value
/// (0-255), maps a new value computed thanks to the function.
@@ -7,7 +7,7 @@
#include <mln/core/image/image2d.hh>
#include <mln/fun/i2v/array.hh>
#include <mln/value/int_u8.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
int main()
{
@@ -19,5 +19,5 @@
fun::i2v::array<bool> f(3, true);
/// Crash, since the lut computes values for 0-255.
- level::transform(ima, f);
+ data::transform(ima, f);
}
Index: lazzara/igr/irm_seg_with_mm_and_rag.mine.cc
--- lazzara/igr/irm_seg_with_mm_and_rag.mine.cc (revision 3923)
+++ lazzara/igr/irm_seg_with_mm_and_rag.mine.cc (working copy)
@@ -24,7 +24,7 @@
#include <mln/value/int_u8.hh>
#include <mln/value/label_16.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/convert/to_window.hh>
#include <mln/convert/to_image.hh>
@@ -33,7 +33,7 @@
#include <mln/labeling/compute.hh>
#include <mln/labeling/background.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
#include <mln/make/image3d.hh>
@@ -42,7 +42,7 @@
#include <mln/morpho/meyer_wst.hh>
#include <mln/accu/mean.hh>
-//#include <mln/level/take.hh>
+//#include <mln/data/take.hh>
#include <mln/util/graph.hh>
@@ -262,7 +262,7 @@
label_16 nbasins;
image2d<label_16> wshed = morpho::meyer_wst(clo, c4(), nbasins);
std::cout << "nbasins = " << nbasins << std::endl;
- io::pgm::save( level::transform(wshed, convert::to_fun(foo)),
+ io::pgm::save( data::transform(wshed, convert::to_fun(foo)),
"tmp_wshed.pgm" );
mln_VAR(mean_values, labeling::compute(accu::meta::mean(), irm, wshed, nbasins));
@@ -272,11 +272,11 @@
if (f(mean_values[i]))
to_keep(i) = i;
- wshed = level::transform(wshed, to_keep);
- io::pgm::save( level::transform(wshed, convert::to_fun(foo)),
+ wshed = data::transform(wshed, to_keep);
+ io::pgm::save( data::transform(wshed, convert::to_fun(foo)),
"tmp_wshed_2.pgm" );
- image2d<bool> wshed_bw = level::transform(wshed, to_bool());
+ image2d<bool> wshed_bw = data::transform(wshed, to_bool());
image2d<bool> main_obj = get_main_object_shape(wshed_bw);
io::pbm::save(main_obj, "tmp_main_obj");
Index: lazzara/igr/igr-biggest-comp.cc
--- lazzara/igr/igr-biggest-comp.cc (revision 3923)
+++ lazzara/igr/igr-biggest-comp.cc (working copy)
@@ -222,12 +222,12 @@
// Load ppm images and apply a threshold.
// I in;
// io::ppm::load(in, argv[1]);
-// image2d<bool> in_bw = level::transform(in, threshold());
+// image2d<bool> in_bw = data::transform(in, threshold());
// J in_obj = get_main_object_shape(in_bw);
//
// I ref;
// io::ppm::load(ref, argv[2]);
-// image2d<bool> ref_bw = level::transform(ref, threshold());
+// image2d<bool> ref_bw = data::transform(ref, threshold());
// J ref_obj = get_main_object_shape(ref_bw);
Index: lazzara/igr/irm/wst_rag_hsl.cc
--- lazzara/igr/irm/wst_rag_hsl.cc (revision 3923)
+++ lazzara/igr/irm/wst_rag_hsl.cc (working copy)
@@ -20,7 +20,7 @@
#include <mln/labeling/mean_values.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/morpho/elementary/dilation.hh>
@@ -234,8 +234,8 @@
K input;
io::ppm::load(input, argv[1]);
- I input_ = level::convert(hsl_f(), input);
- input = level::transform(input_, hsl2rgb());
+ I input_ = data::convert(hsl_f(), input);
+ input = data::transform(input_, hsl2rgb());
J vol;
io::dump::load(vol, argv[2]);
@@ -287,7 +287,7 @@
std::cout << "nbasins2 = " << nbasins2 << std::endl;
}
// debug::println(vol);
- vol2 = level::transform(vol, f);
+ vol2 = data::transform(vol, f);
// debug::println(vol2);
util::graph g2 = make::region_adjacency_graph(vol2, c4(), nbasins2);
Index: lazzara/igr/irm/grad_clo_and_wshd.cc
--- lazzara/igr/irm/grad_clo_and_wshd.cc (revision 3923)
+++ lazzara/igr/irm/grad_clo_and_wshd.cc (working copy)
@@ -15,7 +15,7 @@
#include <mln/value/int_u8.hh>
#include <mln/value/label_16.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/labeling/mean_values.hh>
@@ -71,7 +71,7 @@
image2d<label_16> wshed = morpho::meyer_wst(clo, c4(), nbasins);
std::cout << "nbasins = " << nbasins << std::endl;
- io::pgm::save(level::transform(wshed, fun::v2v::wrap<int_u8>()),
+ io::pgm::save(data::transform(wshed, fun::v2v::wrap<int_u8>()),
"tmp_wshed.pgm");
Index: lazzara/igr/irm/hsl_grad_and_wst.cc
--- lazzara/igr/irm/hsl_grad_and_wst.cc (revision 3923)
+++ lazzara/igr/irm/hsl_grad_and_wst.cc (working copy)
@@ -58,11 +58,11 @@
I input_;
io::ppm::load(input_, argv[1]);
- J input = level::convert(hsl_f(), input_);
- io::ppm::save(level::transform(input, hsl2rgb()), "input-hsl.ppm");
+ J input = data::convert(hsl_f(), input_);
+ io::ppm::save(data::transform(input, hsl2rgb()), "input-hsl.ppm");
{
- I tmp = level::transform(input, hsl2rgb());
+ I tmp = data::transform(input, hsl2rgb());
image2d<int_u8> grad_hue;
initialize(grad_hue, input);
@@ -130,13 +130,13 @@
io::dump::save(wshed, "hsl2rgb_wshed.dump");
std::cout << "nbasins = " << nbasins << std::endl;
- io::pgm::save(level::transform(wshed, fun::v2v::wrap<int_u8>()),
+ io::pgm::save(data::transform(wshed, fun::v2v::wrap<int_u8>()),
"hsl2rgb_wshed.pgm");
- io::ppm::save(labeling::mean_values(level::transform(input, hsl2rgb()), wshed, nbasins),
+ io::ppm::save(labeling::mean_values(data::transform(input, hsl2rgb()), wshed, nbasins),
"hsl2rgb_wshed_mean_colors.ppm");
- I out = level::transform(input, hsl2rgb());
+ I out = data::transform(input, hsl2rgb());
io::ppm::save(out, "hsl2rgb_out.ppm");
}
Index: lazzara/igr/irm/wst_rag.cc
--- lazzara/igr/irm/wst_rag.cc (revision 3923)
+++ lazzara/igr/irm/wst_rag.cc (working copy)
@@ -11,7 +11,7 @@
#include <mln/accu/compute.hh>
#include <mln/core/alias/dpoint2d.hh>
#include <mln/draw/box.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/fun/v2v/id.hh>
#include <mln/core/image/line_graph_elt_neighborhood.hh>
#include <mln/morpho/elementary/dilation.hh>
@@ -92,7 +92,7 @@
convert::from_to(m_3f, m);
m[0] = literal::yellow;
- io::ppm::save(level::transform(w,
+ io::ppm::save(data::transform(w,
convert::to< fun::i2v::array<mln_value(I)> >(m)),
"wst_rag_wshd_color.ppm");
@@ -273,7 +273,7 @@
mln_invariant(f(0) == 0u);
--nbasins2; //nbasins2 does not count the basin with label 0.
std::cout << "nbasins2 = " << nbasins2 << std::endl;
- J wsd2 = level::transform(wsd, f);
+ J wsd2 = data::transform(wsd, f);
/// Reconstruct a graph from the simplified image.
Index: edwin/tree/tree.cc
--- edwin/tree/tree.cc (revision 3923)
+++ edwin/tree/tree.cc (working copy)
@@ -11,7 +11,7 @@
#include <mln/io/pgm/load.hh>
#include <mln/io/pbm/save.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/morpho/tree/data.hh>
#include <mln/morpho/tree/compute_attribute_image.hh>
@@ -72,7 +72,7 @@
Accumulator<A> a_,
double lambda1,
double lambda2)
- : sorted_sites_(level::sort_psites_decreasing(exact(f_))),
+ : sorted_sites_(data::sort_psites_decreasing(exact(f_))),
tree_(exact(f_), sorted_sites_, c4())
{
mln_VAR(a, morpho::tree::compute_attribute_image(a_, tree_));
@@ -109,14 +109,14 @@
//debug::println(img | tree.nodes());
- N nodes = level::sort_psites_increasing(img);
+ N nodes = data::sort_psites_increasing(img);
mln_fwd_piter(N) n(nodes);
mln_fwd_piter(PS) p(pset), p_rm(ps_rm);
old = 0;
// FIXME: hack because we want iterate on nodes and we would
// have wanted to write:
- // N nodes = level::sort_psites_increasing(img | tree.nodes)
+ // N nodes = data::sort_psites_increasing(img | tree.nodes)
//
// but it doesn't work, so we iterate on domain regarding if n is
// a node.
Index: edwin/tree/propagation.cc
--- edwin/tree/propagation.cc (revision 3923)
+++ edwin/tree/propagation.cc (working copy)
@@ -15,7 +15,7 @@
#include <mln/io/pgm/load.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/morpho/tree/data.hh>
#include <../../theo/color/change_attributes.hh>
@@ -58,7 +58,7 @@
typedef p_array< mln_site_(I) > S;
typedef morpho::tree::data<I,S> tree_t;
- S sorted_sites = level::sort_psites_decreasing(input);
+ S sorted_sites = data::sort_psites_decreasing(input);
tree_t tree(input, sorted_sites, c4());
dsp("Input:");
Index: edwin/rush/leaves/test/export.cc
--- edwin/rush/leaves/test/export.cc (revision 3923)
+++ edwin/rush/leaves/test/export.cc (working copy)
@@ -30,7 +30,7 @@
#include <mln/core/alias/neighb2d.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/morpho/tree/data.hh>
#include "../export_leaves.hh"
@@ -51,7 +51,7 @@
4, 4, 4 };
I ima = make::image2d(vals);
- S s = level::sort_psites_decreasing(ima);
+ S s = data::sort_psites_decreasing(ima);
tree_t t(ima, s, c4());
export_leaves_to_file(t, ima);
Index: edwin/rush/leaves/get_leaves.cc
--- edwin/rush/leaves/get_leaves.cc (revision 3923)
+++ edwin/rush/leaves/get_leaves.cc (working copy)
@@ -2,7 +2,7 @@
#include <mln/core/alias/neighb2d.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/morpho/tree/data.hh>
#include <mln/morpho/tree/compute_attribute_image.hh>
@@ -47,7 +47,7 @@
// Tree Creation
typedef p_array<point2d> S;
typedef morpho::tree::data<I,S> tree_t;
- S s = level::sort_psites_decreasing(input);
+ S s = data::sort_psites_decreasing(input);
tree_t t(input, s, c4());
// Attribute pruning.
Index: edwin/rush/granulometry/test.cc
--- edwin/rush/granulometry/test.cc (revision 3923)
+++ edwin/rush/granulometry/test.cc (working copy)
@@ -34,7 +34,7 @@
#include <mln/io/pgm/load.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/morpho/tree/data.hh>
#include <mln/morpho/tree/compute_attribute_image.hh>
#include <mln/morpho/attribute/card.hh>
@@ -66,7 +66,7 @@
typedef p_array<point2d> S;
typedef morpho::tree::data<I,S> tree_t;
- S s = level::sort_psites_decreasing(input);
+ S s = data::sort_psites_decreasing(input);
tree_t tree(input, s, c4());
typedef mln_ch_value_(I, unsigned) A;
Index: edwin/rush/exo2/wst_from_closing.cc
--- edwin/rush/exo2/wst_from_closing.cc (revision 3923)
+++ edwin/rush/exo2/wst_from_closing.cc (working copy)
@@ -33,7 +33,7 @@
#include <mln/value/int_u16.hh>
#include <mln/value/rgb8.hh>
#include <mln/value/label_16.hh>
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
@@ -118,7 +118,7 @@
if (!output_ || output_ == 3)
{
typedef image2d<value::label_16> L;
- L lab = level::convert(value::label_16(),
+ L lab = data::convert(value::label_16(),
morpho::elementary::dilation(wst, c8()));
I_ out = color_labeling_mean(input_, lab, n_basins);
io::ppm::save(out, "mean.pgm");
Index: edwin/rush/exo2/test.cc
--- edwin/rush/exo2/test.cc (revision 3923)
+++ edwin/rush/exo2/test.cc (working copy)
@@ -4,7 +4,7 @@
#include <mln/morpho/tree/data.hh>
#include <mln/morpho/tree/compute_attribute_image.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/debug/println.hh>
#include <mln/convert/all.hh>
@@ -76,7 +76,7 @@
typedef p_array<point1d> S;
typedef morpho::tree::data<I,S> tree_t;
- S s = level::sort_psites_decreasing(input);
+ S s = data::sort_psites_decreasing(input);
tree_t t(input, s, c2());
Index: edwin/rush/exo2/wst_from_tree.cc
--- edwin/rush/exo2/wst_from_tree.cc (revision 3923)
+++ edwin/rush/exo2/wst_from_tree.cc (working copy)
@@ -43,7 +43,7 @@
#include "color_internal_gradient.hh"
/* Labeling */
-#include <mln/level/convert.hh>
+#include <mln/data/convert.hh>
#include "color_labeling_mean.hh"
/* WST */
@@ -52,7 +52,7 @@
#include <mln/morpho/elementary/dilation.hh>
/* Tree computation */
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/morpho/tree/data.hh>
#include <mln/morpho/tree/propagate.hh>
#include <mln/morpho/tree/propagate_if.hh>
@@ -70,7 +70,7 @@
#include <iostream>
#include <string>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/io/pgm/save.hh>
namespace mln
@@ -188,7 +188,7 @@
typedef p_array<point2d> S;
typedef morpho::tree::data<I,S> tree_t;
- S s = level::sort_psites_decreasing(input);
+ S s = data::sort_psites_decreasing(input);
tree_t t(input, s, c4());
@@ -218,7 +218,7 @@
/************************************************/
p_array< mln_psite_(A) > obj_array;
{
- //I output = level::stretch(int_u8(), a); //adapt to 0-255
+ //I output = data::stretch(int_u8(), a); //adapt to 0-255
//io::pgm::save(output, "components.pgm");
obj_array = morpho::tree::get_components(t, a);
@@ -258,7 +258,7 @@
if (!output_ || output_ == 3)
{
typedef image2d<value::label_16> L;
- L lab = level::convert(value::label_16(),
+ L lab = data::convert(value::label_16(),
morpho::elementary::dilation(wst, c8()));
I_ out = color_labeling_mean(input_, lab, n_basins);
io::ppm::save(out, "mean.pgm");
Index: edwin/rush/exo2/color_labeling_mean.hh
--- edwin/rush/exo2/color_labeling_mean.hh (revision 3923)
+++ edwin/rush/exo2/color_labeling_mean.hh (working copy)
@@ -33,7 +33,7 @@
# include <mln/labeling/compute.hh>
# include <mln/accu/mean.hh>
-# include <mln/level/transform.hh>
+# include <mln/data/transform.hh>
# include <mln/value/label_8.hh>
# include <mln/value/int_u16.hh>
@@ -62,7 +62,7 @@
c[l].blue() = m[l][2];
}
- return level::transform(label, c);
+ return data::transform(label, c);
}
} // mln
Index: edwin/tests/sharp.cc
--- edwin/tests/sharp.cc (revision 3923)
+++ edwin/tests/sharp.cc (working copy)
@@ -7,7 +7,7 @@
/* Site set */
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
/* Component trees */
#include <mln/morpho/tree/data.hh>
@@ -32,7 +32,7 @@
#include <mln/pw/all.hh>
/* level */
-//#include <mln/level/stretch.hh>
+//#include <mln/data/stretch.hh>
/* label */
#include <mln/labeling/blobs.hh>
@@ -209,7 +209,7 @@
typedef p_array< mln_site_(I) > S;
typedef morpho::tree::data<I,S> tree_t;
- S sorted_sites = level::sort_psites_decreasing(input);
+ S sorted_sites = data::sort_psites_decreasing(input);
tree_t tree(input, sorted_sites, c4());
@@ -276,7 +276,7 @@
// Note: now we must propagate the representant value to the other components sites.
//a = morpho::tree::propagate_components(a, tree, obj_array, 0);
- //I output = level::stretch(int_u8(), a); //adapt to 0-255
+ //I output = data::stretch(int_u8(), a); //adapt to 0-255
//io::pgm::save(output, "components.pgm");
Index: camille/graph-wst.cc
--- camille/graph-wst.cc (revision 3923)
+++ camille/graph-wst.cc (working copy)
@@ -60,7 +60,7 @@
#include <mln/morpho/line_gradient.hh>
#include <mln/morpho/closing_area_on_vertices.hh>
#include <mln/morpho/meyer_wst.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
#include <mln/value/int_u16.hh>
Index: camille/graph-line-gradient-closing.cc
--- camille/graph-line-gradient-closing.cc (revision 3923)
+++ camille/graph-line-gradient-closing.cc (working copy)
@@ -60,7 +60,7 @@
#include <mln/morpho/line_gradient.hh>
#include <mln/morpho/closing_area_on_vertices.hh>
#include <mln/morpho/meyer_wst.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
#include <mln/value/int_u16.hh>
Index: vigouroux/convert/stretch.hh
--- vigouroux/convert/stretch.hh (revision 3923)
+++ vigouroux/convert/stretch.hh (working copy)
@@ -134,7 +134,7 @@
** \code
** #include <oln/basics2d.hh>
** #include <oln/convert/stretch.hh>
- ** #include <oln/level/cc.hh>
+ ** #include <oln/data/cc.hh>
** #include <ntg/all.hh>
** #include <iostream>
**
@@ -145,7 +145,7 @@
** //Extraction of the connected components:
** unsigned card;
** oln::image2d<ntg::int_u8> cc
- ** = oln::level::frontp_connected_component<ntg::int_u8>(light,
+ ** = oln::data::frontp_connected_component<ntg::int_u8>(light,
** oln::neighb_c8(),
** card);
** oln::io::save(cc, IMG_OUT "oln_convert_stretch_dark.pgm");
Index: vigouroux/yuv/test.cc
--- vigouroux/yuv/test.cc (revision 3923)
+++ vigouroux/yuv/test.cc (working copy)
@@ -9,7 +9,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
int main()
{
@@ -19,10 +19,10 @@
io::ppm::load(lena, "../../../img/lena.ppm");
image2d< value::yuv_<float, float, float> > lena_hsi
- = level::transform(lena,
+ = data::transform(lena,
fun::v2v::f_rgb_to_yuv_f());
- image2d<value::rgb8> lena_rgb = level::transform(lena_hsi,
+ image2d<value::rgb8> lena_rgb = data::transform(lena_hsi,
fun::v2v::f_yuv_to_rgb_3x8);
}
Index: vigouroux/yuv/testfun.cc
--- vigouroux/yuv/testfun.cc (revision 3923)
+++ vigouroux/yuv/testfun.cc (working copy)
@@ -9,7 +9,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include "fun.hh"
@@ -22,9 +22,9 @@
mln::image2d<mln::value::rgb8> lena;
mln::io::ppm::load(lena, "../../../img/lena.ppm");
- mln::image2d<mln::value::yuv_d> lena_yuv = mln::level::transform(lena,
+ mln::image2d<mln::value::yuv_d> lena_yuv = mln::data::transform(lena,
mln::fun::v2v::f_rgb_to_yuv_d());
- mln::image2d<mln::value::rgb8> lena_rgb = mln::level::transform(lena_yuv,
+ mln::image2d<mln::value::rgb8> lena_rgb = mln::data::transform(lena_yuv,
f_yuv_3x8);
}
Index: vigouroux/cmy/test.cc
--- vigouroux/cmy/test.cc (revision 3923)
+++ vigouroux/cmy/test.cc (working copy)
@@ -9,7 +9,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
int main()
{
@@ -19,10 +19,10 @@
io::ppm::load(lena, "../../../img/lena.ppm");
image2d< value::cmy_<float, float, float> > lena_hsi
- = level::transform(lena,
+ = data::transform(lena,
fun::v2v::f_rgb_to_cmy_f());
- image2d<value::rgb8> lena_rgb = level::transform(lena_hsi,
+ image2d<value::rgb8> lena_rgb = data::transform(lena_hsi,
fun::v2v::f_cmy_to_rgb_3x8);
}
Index: vigouroux/cmy/testfun.cc
--- vigouroux/cmy/testfun.cc (revision 3923)
+++ vigouroux/cmy/testfun.cc (working copy)
@@ -9,7 +9,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include "fun.hh"
@@ -22,9 +22,9 @@
mln::image2d<mln::value::rgb8> lena;
mln::io::ppm::load(lena, "../../../img/lena.ppm");
- mln::image2d<mln::value::cmy_d> lena_cmy = mln::level::transform(lena,
+ mln::image2d<mln::value::cmy_d> lena_cmy = mln::data::transform(lena,
mln::fun::v2v::f_rgb_to_cmy_d());
- mln::image2d<mln::value::rgb8> lena_rgb = mln::level::transform(lena_cmy,
+ mln::image2d<mln::value::rgb8> lena_rgb = mln::data::transform(lena_cmy,
f_cmy_3x8);
}
Index: vigouroux/xyz/test.cc
--- vigouroux/xyz/test.cc (revision 3923)
+++ vigouroux/xyz/test.cc (working copy)
@@ -9,7 +9,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
int main()
{
@@ -19,10 +19,10 @@
io::ppm::load(lena, "../../../img/lena.ppm");
image2d< value::xyz_<float, float, float> > lena_hsi
- = level::transform(lena,
+ = data::transform(lena,
fun::v2v::f_rgb_to_xyz_f_t());
-// image2d<value::rgb8> lena_rgb = level::transform(lena_hsi,
+// image2d<value::rgb8> lena_rgb = data::transform(lena_hsi,
// fun::v2v::f_xyz_to_rgb_3x8);
}
Index: vigouroux/xyz/testfun.cc
--- vigouroux/xyz/testfun.cc (revision 3923)
+++ vigouroux/xyz/testfun.cc (working copy)
@@ -9,7 +9,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include "rgb_to_xyz.hh"
#include "get_red.hh"
@@ -23,9 +23,9 @@
mln::image2d<mln::value::rgb8> lena;
mln::io::ppm::load(lena, "../../../img/lena.ppm");
- mln::image2d<mln::value::xyz_f> lena_xyz = mln::level::transform(lena,
+ mln::image2d<mln::value::xyz_f> lena_xyz = mln::data::transform(lena,
mln::fun::v2v::f_rgb_to_xyz_f_t());
- mln::image2d<mln::value::rgb8> lena_rgb = mln::level::transform(lena_xyz,
+ mln::image2d<mln::value::rgb8> lena_rgb = mln::data::transform(lena_xyz,
f_xyz_get_red ());
}
Index: vigouroux/moyenne.cc
--- vigouroux/moyenne.cc (revision 3923)
+++ vigouroux/moyenne.cc (working copy)
@@ -9,7 +9,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
@@ -51,10 +51,10 @@
image2d<value::rgb8> lena;
io::ppm::load(lena, "../../img/lena.ppm");
- image2d<value::hsi_f> lena_hsi = level::transform(lena,
+ image2d<value::hsi_f> lena_hsi = data::transform(lena,
fun::v2v::f_rgb_to_hsi_f);
- image2d<value::rgb8> lena_rgb = level::transform(lena_hsi,
+ image2d<value::rgb8> lena_rgb = data::transform(lena_hsi,
fun::v2v::f_hsi_to_rgb_3x8);
double err = rms(lena, lena_rgb);
Index: vigouroux/lap.cc
--- vigouroux/lap.cc (revision 3923)
+++ vigouroux/lap.cc (working copy)
@@ -16,7 +16,7 @@
#include <mln/value/hsi.hh>
#include <mln/fun/v2v/rgb_to_hsi.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <iostream>
@@ -39,7 +39,7 @@
image2d<value::hsi_f> reshsi(tmp.domain());
gradation2(tmp, reshsi);
- image2d<value::rgb8> resrgb = level::transform(reshsi,
+ image2d<value::rgb8> resrgb = data::transform(reshsi,
fun::v2v::f_hsi_to_rgb_3x8);
Index: vigouroux/yiq/test.cc
--- vigouroux/yiq/test.cc (revision 3923)
+++ vigouroux/yiq/test.cc (working copy)
@@ -9,7 +9,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
int main()
{
@@ -19,10 +19,10 @@
io::ppm::load(lena, "../../../img/lena.ppm");
image2d< value::yiq_<double, double, double> > lena_hsi
- = level::transform(lena,
+ = data::transform(lena,
fun::v2v::f_rgb_to_yiq_d());
- image2d<value::rgb8> lena_rgb = level::transform(lena_hsi,
+ image2d<value::rgb8> lena_rgb = data::transform(lena_hsi,
fun::v2v::f_yiq_to_rgb_3x8);
}
Index: vigouroux/yiq/testfun.cc
--- vigouroux/yiq/testfun.cc (revision 3923)
+++ vigouroux/yiq/testfun.cc (working copy)
@@ -9,7 +9,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include "get_red.hh"
@@ -22,9 +22,9 @@
mln::image2d<mln::value::rgb8> lena;
mln::io::ppm::load(lena, "../../../img/lena.ppm");
- mln::image2d<mln::value::yiq_d> lena_yiq = mln::level::transform(lena,
+ mln::image2d<mln::value::yiq_d> lena_yiq = mln::data::transform(lena,
mln::fun::v2v::f_rgb_to_yiq_d());
- mln::image2d<mln::value::rgb8> lena_rgb = mln::level::transform(lena_yiq,
+ mln::image2d<mln::value::rgb8> lena_rgb = mln::data::transform(lena_yiq,
f_yiq_3x8);
}
Index: vigouroux/load.cc
--- vigouroux/load.cc (revision 3923)
+++ vigouroux/load.cc (working copy)
@@ -9,7 +9,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/core/alias/w_window2d_float.hh>
#include <mln/border/thickness.hh>
Index: vigouroux/conv/test.cc
--- vigouroux/conv/test.cc (revision 3923)
+++ vigouroux/conv/test.cc (working copy)
@@ -10,7 +10,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
int main(void)
@@ -25,9 +25,9 @@
io::ppm::load(lena, "../../../img/lena.ppm");
image2d<value::hsi_f> lena_hsi =
- level::transform(lena, fun::v2v::f_rgb_to_<value::hsi_f> ());
+ data::transform(lena, fun::v2v::f_rgb_to_<value::hsi_f> ());
image2d<value::rgb8> lena_rgb =
- level::transform(lena_hsi, fun::v2v::f_to_rgb_< value::rgb<8> > ());
+ data::transform(lena_hsi, fun::v2v::f_to_rgb_< value::rgb<8> > ());
}
Index: vigouroux/testfun.cc
--- vigouroux/testfun.cc (revision 3923)
+++ vigouroux/testfun.cc (working copy)
@@ -9,7 +9,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/math/round.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include "function.hh"
#include "yuv/my_yuv.hh"
@@ -24,9 +24,9 @@
mln::image2d<mln::value::rgb8> lena;
mln::io::ppm::load(lena, "../../img/lena.ppm");
- mln::image2d<mln::value::yuv_f> lena_hsi = mln::level::transform(lena,
+ mln::image2d<mln::value::yuv_f> lena_hsi = mln::data::transform(lena,
mln::fun::v2v::f_rgb_to_yuv_f());
- mln::image2d<mln::value::rgb8> lena_rgb = mln::level::transform(lena_hsi,
+ mln::image2d<mln::value::rgb8> lena_rgb = mln::data::transform(lena_hsi,
f_get_red_<mln::value::rgb8>());
}
Index: folio/test/histo/compute_histo_rgb_from_ppm.cc
--- folio/test/histo/compute_histo_rgb_from_ppm.cc (revision 3923)
+++ folio/test/histo/compute_histo_rgb_from_ppm.cc (working copy)
@@ -8,7 +8,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include "../../mln/histo/compute_histo_rgb.hh"
Index: folio/test/histo/projected3d.cc
--- folio/test/histo/projected3d.cc (revision 3923)
+++ folio/test/histo/projected3d.cc (working copy)
@@ -7,8 +7,8 @@
#include <mln/core/image/dmorph/image_if.hh>
#include <mln/pw/value.hh>
-#include <mln/level/transform.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/transform.hh>
+#include <mln/data/stretch.hh>
#include <mln/arith/revert.hh>
#include <mln/core/alias/neighb3d.hh>
@@ -80,7 +80,7 @@
std::cout << " => loading " << argv[1] << "..." << std::endl;
image2d<value::rgb8> ima;
io::ppm::load(ima, argv[1]);
-// image2d<rgb6> ima6 = level::transform(ima, rgb8to6());
+// image2d<rgb6> ima6 = data::transform(ima, rgb8to6());
std::cout << " => computing histogram..." << std::endl;
image3d<unsigned> histo = histo::compute_histo_rgb<unsigned>(ima); // 6);
@@ -99,8 +99,8 @@
h );
image2d<float> h_2d = accu::image::to_result(h_2d_a);
- io::pgm::save( level::stretch( int_u8(),
- level::transform( h_2d,
+ io::pgm::save( data::stretch( int_u8(),
+ data::transform( h_2d,
take_log() ) ),
"h_2d.pgm" );
}
Index: folio/test/histo/classify_with_histo_rgb.cc
--- folio/test/histo/classify_with_histo_rgb.cc (revision 3923)
+++ folio/test/histo/classify_with_histo_rgb.cc (working copy)
@@ -24,7 +24,7 @@
#include "../../mln/histo/compute_histo_rgb.hh"
#include "../../mln/histo/classify_with_histo_rgb.hh"
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
namespace mln
{
@@ -60,7 +60,7 @@
std::cout << " => loading " << argv[1] << "..." << std::endl;
image2d<value::rgb8> lena;
io::ppm::load(lena, argv[1]);
- image2d<rgb6> ima = level::transform(lena, rgb8to6());
+ image2d<rgb6> ima = data::transform(lena, rgb8to6());
// let's run !
std::cout << " => computing histogram..." << std::endl;
Index: folio/test/dt/psn.cc
--- folio/test/dt/psn.cc (revision 3923)
+++ folio/test/dt/psn.cc (working copy)
@@ -159,7 +159,7 @@
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
#include <mln/core/image/dmorph/sub_image.hh>
@@ -198,7 +198,7 @@
// image2d<bool> ima = io::pbm::load("../../img/c01.pbm");
// image2d<value::int_u8> out2(out.domain());
-// level::stretch(out, out2);
+// data::stretch(out, out2);
// io::pgm::save(out2, "out.pgm");
}
Index: folio/test/dt/psn_log.cc
--- folio/test/dt/psn_log.cc (revision 3923)
+++ folio/test/dt/psn_log.cc (working copy)
@@ -245,7 +245,7 @@
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
#include <mln/core/image/dmorph/sub_image.hh>
@@ -284,7 +284,7 @@
// image2d<bool> ima = io::pbm::load("../../img/c01.pbm");
// image2d<value::int_u8> out2(out.domain());
-// level::stretch(out, out2);
+// data::stretch(out, out2);
// io::pgm::save(out2, "out.pgm");
}
Index: folio/test/dt/dt_maze.cc
--- folio/test/dt/dt_maze.cc (revision 3923)
+++ folio/test/dt/dt_maze.cc (working copy)
@@ -13,7 +13,7 @@
#include <mln/io/ppm/load.hh>
#include <mln/io/ppm/save.hh>
#include <mln/io/pbm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/data/paste.hh>
#include <mln/value/int_u8.hh>
#include <mln/value/rgb8.hh>
Index: folio/test/dt/chamfer.cc
--- folio/test/dt/chamfer.cc (revision 3923)
+++ folio/test/dt/chamfer.cc (working copy)
@@ -7,7 +7,7 @@
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
#include "../dt/chamfer.hh"
@@ -44,7 +44,7 @@
out = dt::chamfer(ima, chamfer);
image2d<value::int_u8> out2(out.first.domain());
- level::stretch(out.first, out2);
+ data::stretch(out.first, out2);
io::pgm::save(out2, "out.pgm");
Index: folio/test/dt/dt_bench.cc
--- folio/test/dt/dt_bench.cc (revision 3923)
+++ folio/test/dt/dt_bench.cc (working copy)
@@ -12,7 +12,7 @@
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/data/paste.hh>
#include <mln/value/int_u8.hh>
@@ -46,7 +46,7 @@
out = dt::raw_dmap_fast(ima, make::w_window2d(ws), 666666);
image2d<value::int_u8> out2(out.domain());
- level::stretch(out, out2);
+ data::stretch(out, out2);
io::pgm::save(out2, "out.pgm");
}
Index: folio/test/dt/dt.cc
--- folio/test/dt/dt.cc (revision 3923)
+++ folio/test/dt/dt.cc (working copy)
@@ -12,7 +12,7 @@
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/data/paste.hh>
#include <mln/value/int_u8.hh>
Index: folio/test/value/hsv.cc
--- folio/test/value/hsv.cc (revision 3923)
+++ folio/test/value/hsv.cc (working copy)
@@ -2,7 +2,7 @@
#include <mln/io/ppm/save.hh>
#include <mln/debug/println.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/core/image/image2d.hh>
#include "../../mln/fun/v2v/rgb_to_hsv.hh"
#include "../../mln/value/circular.hh"
@@ -23,9 +23,9 @@
image2d<value::rgb8> ima;
io::ppm::load(ima, argv[1]);
- image2d<hsv_16f> hsv = level::transform(ima,
+ image2d<hsv_16f> hsv = data::transform(ima,
fun::v2v::f_rgb_to_hsv_16f);
- ima = level::transform(hsv,
+ ima = data::transform(hsv,
fun::v2v::f_hsv_to_rgb_8f);
std::cout << " => saving " << argv[2] << "..." << std::endl;
Index: folio/mln/dt/dt_old/psn.cc
--- folio/mln/dt/dt_old/psn.cc (revision 3923)
+++ folio/mln/dt/dt_old/psn.cc (working copy)
@@ -159,7 +159,7 @@
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
#include <mln/core/image/dmorph/sub_image.hh>
@@ -198,7 +198,7 @@
// image2d<bool> ima = io::pbm::load("../../img/c01.pbm");
// image2d<value::int_u8> out2(out.domain());
-// level::stretch(out, out2);
+// data::stretch(out, out2);
// io::pgm::save(out2, "out.pgm");
}
Index: folio/mln/dt/dt_old/psn_log.cc
--- folio/mln/dt/dt_old/psn_log.cc (revision 3923)
+++ folio/mln/dt/dt_old/psn_log.cc (working copy)
@@ -245,7 +245,7 @@
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
#include <mln/core/image/dmorph/sub_image.hh>
@@ -284,7 +284,7 @@
// image2d<bool> ima = io::pbm::load("../../img/c01.pbm");
// image2d<value::int_u8> out2(out.domain());
-// level::stretch(out, out2);
+// data::stretch(out, out2);
// io::pgm::save(out2, "out.pgm");
}
Index: folio/mln/dt/dt_old/distance_front.cc
--- folio/mln/dt/dt_old/distance_front.cc (revision 3923)
+++ folio/mln/dt/dt_old/distance_front.cc (working copy)
@@ -38,7 +38,7 @@
#include <mln/data/fill.hh>
#include <mln/debug/println.hh>
#include <mln/opt/at.hh>
-#include <mln/level/compare.hh>
+#include <mln/data/compare.hh>
#include <mln/transform/internal/distance_functor.hh>
#include "distance_front_new.hh"
Index: folio/mln/dt/dt_old/chamfer.cc
--- folio/mln/dt/dt_old/chamfer.cc (revision 3923)
+++ folio/mln/dt/dt_old/chamfer.cc (working copy)
@@ -163,7 +163,7 @@
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
int main()
@@ -198,7 +198,7 @@
out = dt::chamfer(ima, chamfer);
image2d<value::int_u8> out2(out.first.domain());
- level::stretch(out.first, out2);
+ data::stretch(out.first, out2);
io::pgm::save(out2, "out.pgm");
Index: folio/mln/dt/dt_old/dt.cc
--- folio/mln/dt/dt_old/dt.cc (revision 3923)
+++ folio/mln/dt/dt_old/dt.cc (working copy)
@@ -12,7 +12,7 @@
#include <mln/io/pbm/load.hh>
#include <mln/io/pgm/save.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/value/int_u8.hh>
#include <mln/core/image/dmorph/sub_image.hh>
@@ -53,7 +53,7 @@
// image2d<bool> ima = io::pbm::load("../../img/c01.pbm");
// image2d<value::int_u8> out2(out.domain());
-// level::stretch(out, out2);
+// data::stretch(out, out2);
// io::pgm::save(out2, "out.pgm");
}
Index: beguin/irm_g.cc
--- beguin/irm_g.cc (revision 3923)
+++ beguin/irm_g.cc (working copy)
@@ -14,7 +14,7 @@
#include <mln/io/pgm/save.hh>
#include <mln/value/int_u8.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/convert/to_window.hh>
#include <mln/convert/to_image.hh>
@@ -25,7 +25,7 @@
#include <mln/morpho/meyer_wst.hh>
#include <mln/accu/mean.hh>
-#include <mln/level/take.hh>
+#include <mln/data/take.hh>
#include <mln/util/graph.hh>
@@ -56,7 +56,7 @@
// if (lbl(p) == 82)
// m.take(irm(p));
-// level::take(irm | (pw::value(lbl) == pw::cst(82)), m);
+// data::take(irm | (pw::value(lbl) == pw::cst(82)), m);
// std::cout << "reg 82 has mean = " << m << std::endl;
}
@@ -175,7 +175,7 @@
unsigned nbasins;
image2d<unsigned> wshed = morpho::meyer_wst(clo, c4(), nbasins);
std::cout << "nbasins = " << nbasins << std::endl;
- io::pgm::save( level::transform(wshed, convert::to_fun(foo)),
+ io::pgm::save( data::transform(wshed, convert::to_fun(foo)),
"tmp_wshed.pgm" );
// doit(irm, wshed, nbasins);
Index: beguin/segm_to_pregraph.hh
--- beguin/segm_to_pregraph.hh (revision 3923)
+++ beguin/segm_to_pregraph.hh (working copy)
@@ -59,7 +59,7 @@
}
}
//io::pgm::save(retour, "tmp_pregraphe.pgm");
- io::pgm::save( level::transform(retour, convert::to_fun(foo)),
+ io::pgm::save( data::transform(retour, convert::to_fun(foo)),
"tmp_pregraph.pgm" );
//return retour;
}
Index: beguin/irm.cc
--- beguin/irm.cc (revision 3923)
+++ beguin/irm.cc (working copy)
@@ -23,7 +23,7 @@
#include <mln/value/rgb8.hh>
#include <mln/literal/colors.hh>
-#include <mln/level/transform.hh>
+#include <mln/data/transform.hh>
#include <mln/convert/to_window.hh>
#include <mln/convert/to_image.hh>
@@ -34,7 +34,7 @@
#include <mln/morpho/meyer_wst.hh>
#include <mln/accu/mean.hh>
-#include <mln/level/take.hh>
+#include <mln/data/take.hh>
#include <mln/util/graph.hh>
@@ -76,7 +76,7 @@
}
}
- io::pgm::save(level::transform(carte, convert::to_fun(foo)),
+ io::pgm::save(data::transform(carte, convert::to_fun(foo)),
"tmp_region_10.pgm");
}
@@ -94,7 +94,7 @@
// if (lbl(p) == 82)
// m.take(irm(p));
-// level::take(irm | (pw::value(lbl) == pw::cst(82)), m);
+// data::take(irm | (pw::value(lbl) == pw::cst(82)), m);
// std::cout << "reg 82 has mean = " << m << std::endl;
// }
@@ -177,7 +177,7 @@
// for (unsigned i = 0; i <= nlabels; ++i)
// {
// accu::mean_<unsigned> m;
-// level::take(irm | (pw::value(lbl) == pw::cst(i)), m);
+// data::take(irm | (pw::value(lbl) == pw::cst(i)), m);
// g.add_vertex(m.to_result());
// }
// // Edges.
@@ -246,7 +246,7 @@
for (unsigned i = 0; i <= nlabels; ++i)
{
accu::mean_<mln_value(J)> m;
- level::take(input | (pw::value(label) == pw::cst(i)), m);
+ data::take(input | (pw::value(label) == pw::cst(i)), m);
g.add_vertex(m);
}
// Edges.
@@ -478,7 +478,7 @@
unsigned nbasins;
image2d<unsigned> wshed = morpho::meyer_wst(clo, c4(), nbasins);
std::cout << "nbasins = " << nbasins << std::endl;
- io::pgm::save( level::transform(wshed, convert::to_fun(foo)),
+ io::pgm::save( data::transform(wshed, convert::to_fun(foo)),
"tmp_wshed.pgm" );
//typedef fusion_graph<unsigned int, void> _fg;
Index: laurent/ismm2009.cc
--- laurent/ismm2009.cc (revision 3923)
+++ laurent/ismm2009.cc (working copy)
@@ -16,7 +16,7 @@
# include <mln/core/site_set/p_queue.hh>
# include <mln/core/site_set/p_priority.hh>
-#include <mln/level/stretch.hh>
+#include <mln/data/stretch.hh>
#include <mln/labeling/compute.hh>
#include <mln/accu/count.hh>
@@ -1099,7 +1099,7 @@
image2d<A> output(f_.domain());
data::fill(output, 0);
data::paste(aa_line, output);
- io::pgm::save(level::stretch(int_u8(), output),
+ io::pgm::save(data::stretch(int_u8(), output),
argv[3]);
// image2d<int_u8> output(f_.domain());
Index: laurent/playing_with_attributes.cc
--- laurent/playing_with_attributes.cc (revision 3923)
+++ laurent/playing_with_attributes.cc (working copy)
@@ -14,7 +14,7 @@
#include <mln/labeling/regional_minima.hh>
#include <mln/core/site_set/p_array.hh>
-#include <mln/level/sort_psites.hh>
+#include <mln/data/sort_psites.hh>
#include <mln/geom/nsites.hh>
#include <mln/accu/count.hh>
@@ -127,7 +127,7 @@
node_only.t = &t;
typedef p_array<P> S;
- S s = level::sort_psites_increasing(a | node_only);
+ S s = data::sort_psites_increasing(a | node_only);
mln_invariant(geom::nsites(a | t.nodes()) == s.nsites());
@@ -280,7 +280,7 @@
node_only.t = &t;
typedef p_array<P> S;
- S s = level::sort_psites_increasing(a | node_only);
+ S s = data::sort_psites_increasing(a | node_only);
mln_invariant(geom::nsites(a | t.nodes()) == s.nsites());
mln_fwd_piter(S) p(s);
@@ -320,7 +320,7 @@
{
typedef p_array<mln_site(I)> S;
- S s = level::sort_psites_decreasing(g);
+ S s = data::sort_psites_decreasing(g);
typedef morpho::tree::data<I,S> tree_t;
tree_t t(g, s, nbh);
Index: delmon/minsurf/main.cc
--- delmon/minsurf/main.cc (revision 3923)
+++ delmon/minsurf/main.cc (working copy)
@@ -160,12 +160,12 @@
io::pgm::load (in, file_in);
image2d<float> g;
- g = level::transform(morpho::gradient(in, win_c4p()), g_functor(0));
+ g = data::transform(morpho::gradient(in, win_c4p()), g_functor(0));
image2d<value::int_u8> fseeds;
io::pgm::load (fseeds, file_seeds);
- image2d<bool> seeds = level::transform(in, fseeds, seeds_functor());
+ image2d<bool> seeds = data::transform(in, fseeds, seeds_functor());
//image2d<point2d> closest = transform::closest_point_geodesic(seeds, c4(),
// value:: int_u8(std::max(in.nrows(),
// in.ncols())));
1
0
* tests/tools/pretty_check.sh: make the C++ compiler depend on
autotools variables.
Introduce TEST_CXX to force the use of a specific compiler.
---
milena/ChangeLog | 8 ++++++++
milena/tests/tools/pretty_check.sh | 11 +++++++++--
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index aeba29c..538f285 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,13 @@
2009-05-29 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+ Improve pretty check.
+
+ * tests/tools/pretty_check.sh: make the C++ compiler depend on
+ autotools variables.
+ Introduce TEST_CXX to force the use of a specific compiler.
+
+2009-05-29 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+
* tests/img/tiny.png: add a test image.
2009-05-29 Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
diff --git a/milena/tests/tools/pretty_check.sh b/milena/tests/tools/pretty_check.sh
index d73820b..2bb6044 100755
--- a/milena/tests/tools/pretty_check.sh
+++ b/milena/tests/tools/pretty_check.sh
@@ -40,6 +40,10 @@
# - tests.html, the formated test suite results.
#
#
+# Useful Global variables to know:
+# - TEST_DIR Run the tests only in this directory.
+# - TEST_CXX Use a specific compiler.
+#
#
#
# _WARNING_: be aware of the fact this script run a make clean in the
@@ -66,6 +70,9 @@ if [ -z "$base_make_path" ]; then
fi
fi
+if [ -z "$TEST_CXX" ]; then
+ TEST_CXX="$CXX"
+fi
gcc_wrapper="$PWD/$output_directory/gcc-wrapper.sh"
@@ -320,7 +327,7 @@ done
name=\`basename \$file .o\`
# Compile and log the compilation output.
-g++ 2>\$name.comp.log \$@
+$TEST_CXX 2>\$name.comp.log \$@
EOF
chmod +x "$gcc_wrapper"
@@ -399,7 +406,7 @@ main()
# Cleanup temporary files.
cleanup_tmp_files
- cleanup_gcc_wrapper
+# cleanup_gcc_wrapper
}
main
--
1.5.6.5
1
0
* Makefile.am: change box_piter.i to box_piter.ixx.
---
swilena/ChangeLog | 6 ++++++
swilena/Makefile.am | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/swilena/ChangeLog b/swilena/ChangeLog
index ee39aa4..1de5c61 100644
--- a/swilena/ChangeLog
+++ b/swilena/ChangeLog
@@ -1,3 +1,9 @@
+2009-05-29 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+
+ Fix swilena distributed file list.
+
+ * Makefile.am: change box_piter.i to box_piter.ixx.
+
2009-05-27 Roland Levillain <roland(a)lrde.epita.fr>
Update dates in Swilena's copyright headers.
diff --git a/swilena/Makefile.am b/swilena/Makefile.am
index 2e08041..b0dfffb 100644
--- a/swilena/Makefile.am
+++ b/swilena/Makefile.am
@@ -5,7 +5,7 @@ SUBDIRS = python
# Meta-wrappers (templates), not generating a module, but factoring
# common parts.
meta_wrappers = \
- box_piter.i ch_value.ixx concat.ixx concrete.ixx fill.ixx \
+ box_piter.ixx ch_value.ixx concat.ixx concrete.ixx fill.ixx \
image2d.ixx intp.ixx int_u.ixx morpho.ixx pgm.ixx println.ixx \
python-utils.ixx
--
1.5.6.5
1
0
---
milena/ChangeLog | 4 ++++
milena/tests/img/tiny.png | Bin 0 -> 850 bytes
2 files changed, 4 insertions(+), 0 deletions(-)
create mode 100644 milena/tests/img/tiny.png
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 1a8d899..aeba29c 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,3 +1,7 @@
+2009-05-29 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+
+ * tests/img/tiny.png: add a test image.
+
2009-05-29 Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
Fix many warnings and errors in test files.
diff --git a/milena/tests/img/tiny.png b/milena/tests/img/tiny.png
new file mode 100644
index 0000000000000000000000000000000000000000..f578c7d8429831c5674c3c5d5b18dd03d2b60fff
GIT binary patch
literal 850
zcmV-Y1FigtP)<h;3K|Lk000e1NJLTq000mG000mO0ssI2kdbIM00009a7bBm0000;
z0000;07l7cJ^%m!33hNnX8-^I5C8xG5CB}pt-}BS0<}p*K~yNu1;N{H8$}oZ;Q9X<
zPj<cQU1xntaZ~5e64VORB7~57fw({w7nKmF$KWX{-i4dqlnVqZ2%)BGrB=|&sTC46
z)N$&>@p(5phn<;zAH2Euqc!H)-*1yDizA-`SVtTXYn{+8sE0`%ozG{2%zNj1{UxF+
zpwPC^U>s4#SXxA@ZsUqu320&ULK%g{C~K}qFZ;_Uy(u2P9075nAgXXmo0+r)((+b2
z`S#1awMMKx>!%>?tB0?j?@!z737(Fmb<9~u5QQO}GsY<6E0mTtf4D=cVecfBovXj>
z4#Ti~_p2RNE)mM11lEg~%?t(f<G{^RZLIZ!)!Vmjf5A&pWtRW`^_`ud%os&P2G$XW
zkhIIWpz}d`e4wRMAAi2#zgJ(LO#Z#Ud$|>FT}zBJNB{uPI+C4T&}w`>wGVdR?mj)J
zZ8VwB2T%Un`{Tu<husf9S_2OqAXCN>q{vD>XGi;s-@0io^*7($sFAFidp4lIc86Zs
z-`uX|qR`T@i(Dgx6||>b^8AQsr0?(eu~Daoi#oW+fAva?uD2r!R!K_(jwdti9MN8*
zJE<+^<62q8AxoC&t?PAgWcyNuf!W%ORY7<Kwm+#MV+g>qT;*BTywqIZZXCSmyDXE#
zu~y=r|7RuY+U-ymw$TYNs9{<Vhd4Lj7`@WD+}k_Ogzg@XjnL^-_4?z`qu{LwM|e^r
zg<x2%7;VReF*-dHE##Hl<|73XvHU^pGjj9da4;EW%S<|v{ruA-q>Tib9ZweN?0j){
z9yS{hht4YZKzTC1`~9b_Yb_p@c5c=OPhSVf5RjO{FaRY*F4EDPK_|va#Y1PzbRlQU
z%^Mp>2P2=${l~|X++xy<q$NU|FkZDvP?=qA@J0y0C{a=mN6}it3H9pF{ve|ZW!?b?
zO@D)P{*xI1001s@MObuWZ*6U5Zgc=3LsCUSR8LYmAV*0}P#{oFO&~^TY;<LEAXa5^
cb7^mGATcg63OMEBmjD0&07*qoM6N<$f_l$|#Q*>R
literal 0
HcmV?d00001
--
1.5.6.5
1
0
https://svn.lrde.epita.fr/svn/oln/trunk/milena
Index: ChangeLog
from Thierry Geraud <thierry.geraud(a)lrde.epita.fr>
Fix many warnings and errors in test files.
* mln/core/image/imorph/labeled_image.hh: Fix doc.
* mln/accu/all.hh
(count_adjacent_vertices): Use de-activation notation.
(tuple): De-activate.
* mln/value/ops.hh
(operator==): New overloads for a couple of scalars, resp.
int and unsigned; fix warnings.
(operator): Fix missing declarations.
* mln/value/scalar.hh: Upgrade doc style.
* mln/value/int_s.hh: Fix warnings.
* mln/value/internal/gray_.hh: Fix warning.
* mln/value/internal/gray_f.hh: Fix warnings.
Fix ending guard.
* mln/set/compute_with_weights.hh: Fix warnings.
* mln/util/adjacency_matrix.hh: Fix warnings.
* tests/arith/times_full.cc: Fix missing includes; layout.
* tests/arith/plus_full.cc: Fix missing includes; layout.
* tests/arith/revert_full.cc: Fix missing include.
* tests/data/paste.cc (include): Fix typo.
* tests/accu/all_accus.cc: Upgrade doc style.
* tests/accu/count.cc: Fix warnings.
* tests/value/rgb_full.cc: Upgrade doc style.
* tests/value/int_u8.cc: Fix warnings.
* tests/value/float01.cc: Remove useless dependencies.
Revamp.
Fix warnings.
* tests/value/graylevel_f.cc,
* tests/value/graylevel_full.cc,
* tests/value/graylevel_f_full.cc: Fix ambiguities with g++-4.2.
Upgrade doc style.
* tests/value/graylevel.cc: Upgrade doc style.
* tests/convert/to_hsl.cc: De-activate code since it relies
on de-activated code.
* tests/morpho/artificial_line_graph_image_wst.cc: Fix typo.
* tests/morpho/lena_line_graph_image_wst1.cc: Fix warning.
mln/accu/all.hh | 4 -
mln/core/image/imorph/labeled_image.hh | 13 +---
mln/set/compute_with_weights.hh | 6 +-
mln/util/adjacency_matrix.hh | 18 +++---
mln/value/int_s.hh | 8 +-
mln/value/internal/gray_.hh | 4 -
mln/value/internal/gray_f.hh | 10 +--
mln/value/ops.hh | 50 ++++++++++++++++++
mln/value/scalar.hh | 10 +--
tests/accu/all_accus.cc | 6 +-
tests/accu/count.cc | 7 +-
tests/arith/plus_full.cc | 13 ----
tests/arith/revert_full.cc | 1
tests/arith/times_full.cc | 11 ----
tests/convert/to_hsl.cc | 12 ++--
tests/morpho/artificial_line_graph_image_wst.cc | 2
tests/morpho/lena_line_graph_image_wst1.cc | 2
tests/value/float01.cc | 66 +++++-------------------
tests/value/graylevel.cc | 13 ++--
tests/value/graylevel_f.cc | 11 +---
tests/value/graylevel_f_full.cc | 22 ++++----
tests/value/graylevel_full.cc | 15 ++---
tests/value/int_u8.cc | 20 +++----
tests/value/rgb_full.cc | 10 +--
24 files changed, 165 insertions(+), 169 deletions(-)
Index: mln/core/image/imorph/labeled_image.hh
--- mln/core/image/imorph/labeled_image.hh (revision 3919)
+++ mln/core/image/imorph/labeled_image.hh (working copy)
@@ -112,17 +112,12 @@
/// Morpher providing an improved interface for labeled image.
///
/// \tparam I The label image type.
- /// \tparam A An accumulator type.
///
- /// This image type allows to pre-compute components attributes. These
- /// attributes can be set through the template parameter \p A. This
- /// accumulator type can be a simple accumulator, a pair of accumulators or
- /// a tuple.
- ///
- /// This image type guaranties that the labeling is always contiguous.
- ///
- /// \sa accu::pair, accu::tuple, mln::accu
+ /// This image type allows to access every site set at a given
+ /// label.
///
+ /// This image type guaranties that labels are contiguous (from 1 to
+ /// n).
///
/// \ingroup modimageidmorpher
//
Index: mln/accu/all.hh
--- mln/accu/all.hh (revision 3919)
+++ mln/accu/all.hh (working copy)
@@ -60,7 +60,7 @@
# include <mln/accu/count.hh>
# include <mln/accu/count_labels.hh>
# include <mln/accu/center.hh>
-//# include <mln/accu/count_adjacent_vertices.hh>
+// << # include <mln/accu/count_adjacent_vertices.hh> >>
# include <mln/accu/height.hh>
# include <mln/accu/histo.hh>
# include <mln/accu/label_used.hh>
@@ -81,7 +81,7 @@
# include <mln/accu/rank.hh>
# include <mln/accu/rms.hh>
# include <mln/accu/sum.hh>
-# include <mln/accu/tuple.hh>
+// << # include <mln/accu/tuple.hh> >>
# include <mln/accu/volume.hh>
// Routines.
Index: mln/value/ops.hh
--- mln/value/ops.hh (revision 3919)
+++ mln/value/ops.hh (working copy)
@@ -210,6 +210,42 @@
operator % (const value::scalar_<Sl>& lhs, const value::scalar_<Sr>& rhs);
+ // Operator ==.
+
+ template <typename Sl, typename Sr>
+ mln_trait_op_eq(Sl, Sr)
+ operator == (const value::scalar_<Sl>& lhs, const value::scalar_<Sr>& rhs);
+
+ bool
+ operator == (const value::scalar_<int>& lhs, const value::scalar_<unsigned>& rhs);
+
+ bool
+ operator == (const value::scalar_<unsigned>& lhs, const value::scalar_<int>& rhs);
+
+ template <typename O, typename L>
+ mln_trait_op_eq(O, O)
+ operator==(const value::scalar_<O>& lhs, const Literal<L>& rhs);
+
+ template <typename L, typename O>
+ mln_trait_op_eq(O, O)
+ operator==(const Literal<L>& lhs, const value::scalar_<O>& rhs);
+
+
+ // Operator <.
+
+ template <typename Sl, typename Sr>
+ mln_trait_op_less(Sl, Sr)
+ operator < (const value::scalar_<Sl>& lhs, const value::scalar_<Sr>& rhs);
+
+ template <typename O, typename L>
+ mln_trait_op_less(O, O)
+ operator < (const value::scalar_<O>& lhs, const Literal<L>& rhs);
+
+ template <typename L, typename O>
+ mln_trait_op_less(O, O)
+ operator < (const Literal<L>& lhs, const value::scalar_<O>& rhs);
+
+
# ifndef MLN_INCLUDE_ONLY
@@ -338,6 +374,20 @@
return value::equiv(lhs) == value::equiv(rhs);
}
+ inline
+ bool
+ operator == (const value::scalar_<int>& lhs, const value::scalar_<unsigned>& rhs)
+ {
+ return lhs.to_equiv() == int(rhs.to_equiv());
+ }
+
+ inline
+ bool
+ operator == (const value::scalar_<unsigned>& lhs, const value::scalar_<int>& rhs)
+ {
+ return int(lhs.to_equiv()) == rhs.to_equiv();
+ }
+
template <typename O, typename L>
inline
mln_trait_op_eq(O, O)
Index: mln/value/scalar.hh
--- mln/value/scalar.hh (revision 3919)
+++ mln/value/scalar.hh (working copy)
@@ -1,4 +1,5 @@
-// Copyright (C) 2006, 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2006, 2007, 2009 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -28,10 +29,9 @@
#ifndef MLN_VALUE_SCALAR_HH
# define MLN_VALUE_SCALAR_HH
-/*! \file mln/value/scalar.hh
- *
- * \brief Definition of the basic mln::value::scalar_ class.
- */
+/// \file mln/value/scalar.hh
+///
+/// \brief Definition of the basic mln::value::scalar_ class.
# include <mln/value/concept/scalar.hh>
# include <mln/metal/is_a.hh>
Index: mln/value/int_s.hh
--- mln/value/int_s.hh (revision 3919)
+++ mln/value/int_s.hh (working copy)
@@ -1,5 +1,5 @@
-// Copyright (C) 2007, 2008, 2009 EPITA Research and Development Laboratory
-// (LRDE)
+// Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -193,7 +193,7 @@
inline
int_s<n>::int_s(int i)
{
- static const int max = metal::math::pow_int<2, n-1>::value - 1;
+ static const int max = int(metal::math::pow_int<2, n-1>::value) - 1;
static const int min = - max;
mln_precondition(i >= min);
mln_precondition(i <= max);
@@ -205,7 +205,7 @@
int_s<n>&
int_s<n>::operator=(int i)
{
- static const int max = metal::math::pow_int<2, n-1>::value - 1;
+ static const int max = int(metal::math::pow_int<2, n-1>::value) - 1;
static const int min = - max;
mln_precondition(i >= min);
mln_precondition(i <= max);
Index: mln/value/internal/gray_.hh
--- mln/value/internal/gray_.hh (revision 3919)
+++ mln/value/internal/gray_.hh (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006, 2007, 2008 EPITA Research and Development
+// Copyright (C) 2006, 2007, 2008, 2009 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
@@ -682,7 +682,7 @@
mln_trait_op_div(graylevel<n>, scalar_<S>)
operator/(const graylevel<n>& lhs, const scalar_<S>& rhs)
{
- mln_precondition(rhs.to_equiv() != 0);
+ mln_precondition(rhs.to_equiv() != S(0));
typedef mln_trait_op_div(graylevel<n>, scalar_<S>) ret;
return internal::helper_gray__op_<ret>::div(lhs, rhs);
}
Index: mln/value/internal/gray_f.hh
--- mln/value/internal/gray_f.hh (revision 3919)
+++ mln/value/internal/gray_f.hh (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2006, 2007, 2008 EPITA Research and Development
+// Copyright (C) 2006, 2007, 2008, 2009 EPITA Research and Development
// Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
@@ -474,7 +474,7 @@
mln_trait_op_times(graylevel_f, S)
operator*(const graylevel_f& lhs, const scalar_<S>& rhs)
{
- return lhs.value() * rhs;
+ return lhs.value() * rhs.to_equiv();
}
// Op / scalar
@@ -483,12 +483,12 @@
mln_trait_op_div(graylevel_f, S)
operator/(const graylevel_f& lhs, const scalar_<S>& rhs)
{
- mln_precondition(rhs.to_equiv() != 0);
- return lhs.value() / rhs;
+ mln_precondition(rhs.to_equiv() != S(0));
+ return lhs.value() / rhs.to_equiv();
}
} // end of namespace mln::value
} // end of namespace mln
-#endif // ! MLN_VALUE_GRAY_F_HH
+#endif // ! MLN_VALUE_INTERNAL_GRAY_F_HH
Index: mln/set/compute_with_weights.hh
--- mln/set/compute_with_weights.hh (revision 3919)
+++ mln/set/compute_with_weights.hh (working copy)
@@ -102,9 +102,9 @@
mln_precondition(label.is_valid());
mln_precondition(w.domain() <= label.domain());
- (void) a_;
- (void) w_;
- (void) label_;
+ (void) a;
+ (void) w;
+ (void) label;
}
} // end of namespace mln::internal
Index: mln/util/adjacency_matrix.hh
--- mln/util/adjacency_matrix.hh (revision 3919)
+++ mln/util/adjacency_matrix.hh (working copy)
@@ -30,11 +30,13 @@
/// \file mln/util/adjacency_matrix.hh
///
-/// A class of adjacency matrix.
+/// \brief A class of adjacency matrix.
///
-/// FIXME: the underlying data structure is chosen according
+/// \todo the underlying data structure is chosen according
/// to the value type quantification however we may like to make it
/// depend on the number of elements.
+///
+/// \todo Have theo re-read this file.
# include <mln/core/image/image2d.hh>
# include <mln/util/set.hh>
@@ -260,8 +262,8 @@
adjacency_matrix_impl_selector<V, metal::bool_<false> >
::add(const V& e1, const V& e2)
{
- mln_precondition(e1 < nelements_);
- mln_precondition(e2 < nelements_);
+ mln_precondition(e1 < int(nelements_));
+ mln_precondition(e2 < int(nelements_));
adj_.insert(make::ord_pair(e1, e2));
}
@@ -270,8 +272,8 @@
adjacency_matrix_impl_selector<V, metal::bool_<false> >
::remove(const V& e1, const V& e2)
{
- mln_precondition(e1 < nelements_);
- mln_precondition(e2 < nelements_);
+ mln_precondition(e1 < int(nelements_));
+ mln_precondition(e2 < int(nelements_));
mln_precondition(adj_.has(make::ord_pair(e1, e2)));
adj_.remove(make::ord_pair(e1, e2));
}
@@ -288,8 +290,8 @@
adjacency_matrix_impl_selector<V, metal::bool_<false> >
::are_adjacent(const V& e1, const V& e2) const
{
- mln_precondition(e1 < nelements_);
- mln_precondition(e2 < nelements_);
+ mln_precondition(e1 < int(nelements_));
+ mln_precondition(e2 < int(nelements_));
return adj_.has(make::ord_pair(e1, e2));
}
Index: tests/arith/times_full.cc
--- tests/arith/times_full.cc (revision 3919)
+++ tests/arith/times_full.cc (working copy)
@@ -30,9 +30,6 @@
///
/// Tests on mln::arith::times.
-
-
-
#include <mln/core/image/image1d.hh>
#include <mln/core/image/image2d.hh>
#include <mln/core/image/image3d.hh>
@@ -45,18 +42,14 @@
#include <mln/value/int_s8.hh>
#include <mln/value/int_s16.hh>
-
-
+#include <mln/value/int_u8.hh>
+#include <mln/value/int_u16.hh>
#include <mln/debug/iota.hh>
#include <mln/arith/times.hh>
-
-
-
-
struct f_box1d_t : mln::Function_p2b< f_box1d_t >
{
f_box1d_t(const mln::box1d& b)
Index: tests/arith/plus_full.cc
--- tests/arith/plus_full.cc (revision 3919)
+++ tests/arith/plus_full.cc (working copy)
@@ -26,14 +26,10 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-
/// \file tests/arith/plus_full.cc
///
/// Tests on mln::arith::plus.
-
-
-
#include <mln/core/image/image1d.hh>
#include <mln/core/image/image2d.hh>
#include <mln/core/image/image3d.hh>
@@ -41,23 +37,18 @@
#include <mln/core/image/dmorph/image_if.hh>
#include <mln/fun/p2b/chess.hh>
-
#include <mln/literal/origin.hh>
+#include <mln/value/int_u8.hh>
#include <mln/value/int_s8.hh>
+#include <mln/value/int_u16.hh>
#include <mln/value/int_s16.hh>
-
-
#include <mln/debug/iota.hh>
#include <mln/arith/plus.hh>
-
-
-
-
struct f_box1d_t : mln::Function_p2b< f_box1d_t >
{
f_box1d_t(const mln::box1d& b)
Index: tests/arith/revert_full.cc
--- tests/arith/revert_full.cc (revision 3919)
+++ tests/arith/revert_full.cc (working copy)
@@ -40,6 +40,7 @@
#include <mln/fun/p2b/chess.hh>
#include <mln/literal/origin.hh>
+#include <mln/value/int_u8.hh>
#include <mln/value/int_s8.hh>
#include <mln/value/int_s16.hh>
Index: tests/accu/all_accus.cc
--- tests/accu/all_accus.cc (revision 3919)
+++ tests/accu/all_accus.cc (working copy)
@@ -1,4 +1,5 @@
-// Copyright (C) 2007, 2008 EPITA Research and Development Laboratory
+// Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+// Laboratory
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -26,7 +27,8 @@
// Public License.
/// \file tests/accu/all_accus.cc
-/// \brief Tests on all_accus files in mln/accu.
+///
+/// \brief Tests on all_accus files in mln/accu/.
#include <mln/accu/all.hh>
#include <mln/core/alias/point2d.hh>
Index: tests/accu/count.cc
--- tests/accu/count.cc (revision 3919)
+++ tests/accu/count.cc (working copy)
@@ -1,4 +1,5 @@
// Copyright (C) 2007, 2009 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -57,11 +58,11 @@
{
accu::count<int> a, a_;
a.take_as_init(1);
- mln_assertion(a == 1);
+ mln_assertion(a == 1u);
a.take(2);
- mln_assertion(a == 2);
+ mln_assertion(a == 2u);
a_.take_as_init(a);
- mln_assertion(a_ == 2);
+ mln_assertion(a_ == 2u);
}
}
Index: tests/value/rgb_full.cc
--- tests/value/rgb_full.cc (revision 3919)
+++ tests/value/rgb_full.cc (working copy)
@@ -1,4 +1,5 @@
-// Copyright (C) 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2007, 2009 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -25,10 +26,9 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/value/rgb_full.cc
- *
- * \brief Tests on mln::value::rgb.
- */
+/// \file tests/value/rgb_full.cc
+///
+/// \brief Tests on mln::value::rgb.
#include <mln/value/rgb.hh>
#include <mln/value/rgb8.hh>
Index: tests/value/graylevel_f.cc
--- tests/value/graylevel_f.cc (revision 3919)
+++ tests/value/graylevel_f.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2007, 2009 EPITA Research and Development Laboratory
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -25,10 +25,9 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/value/graylevel_f.cc
- *
- * \brief Tests on mln::value::graylevel_f.
- */
+/// \file tests/value/graylevel_f.cc
+///
+/// \brief Tests on mln::value::graylevel_f.
#include <mln/value/graylevel.hh>
#include <mln/value/glf.hh>
@@ -55,7 +54,7 @@
mln_assertion(b == a);
a *= 2;
- mln_assertion(a == white);
+ mln_assertion(a == glf(white));
mln_assertion(a.to_enc() == 1.f);
}
}
Index: tests/value/float01.cc
--- tests/value/float01.cc (revision 3919)
+++ tests/value/float01.cc (working copy)
@@ -1,5 +1,5 @@
-// Copyright (C) 2007, 2008 EPITA Research and Development Laboratory
-// (LRDE)
+// Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -32,26 +32,16 @@
#include <iostream>
-#include <mln/core/image/image2d.hh>
-#include <mln/debug/iota.hh>
-#include <mln/debug/println.hh>
-
+#include <mln/core/concept/function.hh>
#include <mln/value/float01_8.hh>
#include <mln/value/float01_16.hh>
#include <mln/value/int_u8.hh>
-#include <mln/level/transform.hh>
-#include <mln/io/pgm/load.hh>
-#include <mln/io/pgm/save.hh>
-#include <mln/win/rectangle2d.hh>
-#include <mln/level/median.hh>
-#include <mln/level/compare.hh>
+namespace mln
+{
-
-using namespace mln;
-using namespace mln::value;
-using mln::value::int_u8;
+ using namespace value;
float fi(int) { return 0.5f; }
int ii(int) { return 1; }
@@ -60,7 +50,7 @@
int id(double) { return 1; }
-struct tofloat01 : mln::Function_v2v<tofloat01>
+ struct tofloat01 : Function_v2v<tofloat01>
{
typedef float01_<12> result;
@@ -72,7 +62,7 @@
}
};
-struct to8bits : mln::Function_v2v<to8bits>
+ struct to8bits : Function_v2v<to8bits>
{
typedef int_u8 result;
@@ -85,15 +75,17 @@
}
};
+} // mln
+
+
int main()
{
- win::rectangle2d rect(51, 51);
- border::thickness = 52;
+ using namespace mln;
- float01_8 a(0.5);
- float01_16 b(0.5);
+ value::float01_8 a(0.5);
+ value::float01_16 b(0.5);
- assert(approx_equal(b,a));
+ mln_assertion(approx_equal(b,a));
std::cout << b << std::endl;
b = b + 0.2f;
@@ -123,32 +115,4 @@
std::cout << b << std::endl;
b = 1;
std::cout << b << std::endl;
-
- {
- typedef value::float01_<12> float01_12;
-
- std::cout << "convert" << std::endl;
- image2d<int_u8>
- lena = io::pgm::load<int_u8>("../img/lena.pgm"),
- ref(lena.domain());
-
- image2d<float01_12> out(lena.domain());
- image2d<float01_12> tmp(lena.domain());
-
- tmp = level::transform(lena, tofloat01());
-
- level::median(tmp, rect, out);
- level::median(lena, rect, ref);
-
-
- lena = level::transform(out, to8bits());
-
- io::pgm::save(lena, "out.pgm");
- io::pgm::save(ref, "ref.pgm");
- mln_assertion(lena == ref);
- // FIXME: Dead code.
- //debug::println(out);
- }
-
-
}
Index: tests/value/int_u8.cc
--- tests/value/int_u8.cc (revision 3919)
+++ tests/value/int_u8.cc (working copy)
@@ -1,4 +1,5 @@
-// Copyright (C) 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2007, 2009 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -25,10 +26,9 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/value/int_u8.cc
- *
- * \brief Tests on mln::value::int_u8.
- */
+/// \file tests/value/int_u8.cc
+///
+/// \brief Tests on mln::value::int_u8.
#include <mln/value/int_u8.hh>
#include <tests/value/macros.hh>
@@ -49,18 +49,18 @@
// Assignment.
{
i = 51;
- // FIXME: Triggers a warning about signed vs unsigned comparison.
- sym_compare_assert(i, ==, 51);
+ mln_assertion(i == 51u);
+ mln_assertion(-i == -51);
i = 51u;
- sym_compare_assert(i, ==, 51);
+ mln_assertion(i == 51u);
signed char c = 51;
i = c;
- sym_compare_assert(i, ==, 51);
+ mln_assertion(i == 51u);
j = i;
- sym_compare_assert(j, ==, 51);
+ mln_assertion(j == 51u);
i = 3;
sym_compare_assert(3.0f, ==, i);
Index: tests/value/graylevel_full.cc
--- tests/value/graylevel_full.cc (revision 3919)
+++ tests/value/graylevel_full.cc (working copy)
@@ -1,4 +1,5 @@
-// Copyright (C) 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2007, 2009 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -25,12 +26,10 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/value/graylevel_full.cc
- *
- * \brief Tests on mln::value::graylevel. Tests operations between
- * graylevel of different encodings.
- *
- */
+/// \file tests/value/graylevel_full.cc
+///
+/// \brief Tests on mln::value::graylevel. Tests operations between
+/// graylevel of different encodings.
#include <mln/value/gl8.hh>
#include <mln/value/gl16.hh>
@@ -71,7 +70,7 @@
gl8 e = white;
- mln_assertion(e == white);
+ mln_assertion(e == gl8(white));
gl8 f = 12;
gl8 g = f;
Index: tests/value/graylevel_f_full.cc
--- tests/value/graylevel_f_full.cc (revision 3919)
+++ tests/value/graylevel_f_full.cc (working copy)
@@ -1,4 +1,5 @@
-// Copyright (C) 2006, 2007 EPITA Research and Development Laboratory
+// Copyright (C) 2006, 2007, 2009 EPITA Research and Development
+// Laboratory
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -25,10 +26,9 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/value/graylevel_f_full.cc
- *
- * \brief Full tests on mln::value::graylevel_f.
- */
+/// \file tests/value/graylevel_f_full.cc
+///
+/// \brief Full tests on mln::value::graylevel_f.
#include <mln/value/graylevel.hh>
#include <mln/value/glf.hh>
@@ -77,24 +77,24 @@
// Literals
{
glf a(white);
- mln_assertion(a == white);
+ mln_assertion(a == glf(white));
mln_assertion(a.value() == 1.f);
glf d = white;
- mln_assertion(d == white);
+ mln_assertion(d == glf(white));
mln_assertion(d.value() == 1.f);
glf b(black);
- mln_assertion(b == black);
+ mln_assertion(b == glf(black));
mln_assertion(b.value() == 0.f);
glf e = black;
- mln_assertion(e == black);
+ mln_assertion(e == glf(black));
mln_assertion(e.value() == 0.f);
glf c(medium_gray);
- mln_assertion(c == medium_gray);
+ mln_assertion(c == glf(medium_gray));
mln_assertion(c.value() == 0.5f);
glf f = medium_gray;
- mln_assertion(f == medium_gray);
+ mln_assertion(f == glf(medium_gray));
mln_assertion(f.value() == 0.5f);
}
Index: tests/value/graylevel.cc
--- tests/value/graylevel.cc (revision 3919)
+++ tests/value/graylevel.cc (working copy)
@@ -1,4 +1,5 @@
-// Copyright (C) 2007, 2008 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2007, 2008, 2009 EPITA Research and Development
+// Laboratory (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -25,12 +26,10 @@
// reasons why the executable file might be covered by the GNU General
// Public License.
-/*! \file tests/value/graylevel.cc
- *
- * \brief Tests on mln::value::graylevel. Tests operations between
- * graylevel of different encodings.
- *
- */
+/// \file tests/value/graylevel.cc
+///
+/// \brief Tests on mln::value::graylevel. Tests operations between
+/// graylevel of different encodings.
#include <mln/value/gl8.hh>
#include <mln/value/gl16.hh>
Index: tests/convert/to_hsl.cc
--- tests/convert/to_hsl.cc (revision 3919)
+++ tests/convert/to_hsl.cc (working copy)
@@ -40,12 +40,12 @@
{
using namespace mln;
- value::rgb8 c1(3,3,3);
- value::hsl_f c2 = convert::to<value::hsl_f>(c1);
-// mln_assertion(c2 == hsl_f(0,0,3)); //FIXME: wrong result.
+// value::rgb8 c1(3,3,3);
+// value::hsl_f c2 = convert::to<value::hsl_f>(c1);
+// // mln_assertion(c2 == hsl_f(0,0,3)); //FIXME: wrong result.
- value::hsl_f c3(3,3,3);
- c1 = convert::to<value::rgb8>(c3);
-// mln_assertion(c1 == rgb8(2,4,0)); //FIXME: wrong result.
+// value::hsl_f c3(3,3,3);
+// c1 = convert::to<value::rgb8>(c3);
+// // mln_assertion(c1 == rgb8(2,4,0)); //FIXME: wrong result.
}
Index: tests/morpho/artificial_line_graph_image_wst.cc
--- tests/morpho/artificial_line_graph_image_wst.cc (revision 3919)
+++ tests/morpho/artificial_line_graph_image_wst.cc (working copy)
@@ -108,7 +108,7 @@
? mln_min(input_val_t)
: mln_max(input_val_t);
mln_assertion((nrows * ncols) == 10000);
- mln_assertion((2 * nrows * ncols - (rows + ncols)) == 19800);
+ mln_assertion((2 * nrows * ncols - (nrows + ncols)) == 19800);
/*----------------.
| Line gradient. |
Index: tests/morpho/lena_line_graph_image_wst1.cc
--- tests/morpho/lena_line_graph_image_wst1.cc (revision 3919)
+++ tests/morpho/lena_line_graph_image_wst1.cc (working copy)
@@ -158,7 +158,7 @@
int_u8 nbasins;
typedef edge_image<util::site_pair<point2d>,int_u8,util::graph> wshed_t;
wshed_t wshed = morpho::meyer_wst(lg_ima, nbh, nbasins);
- mln_assertion(nbasins == 5);
+ mln_assertion(nbasins == 5u);
/*---------.
| Output. |
1
0
* mln/value/label.hh: do not use literal::zero.
* mln/world/binary_2d/subsample.hh: revamp and add MLN_INCLUDE_ONLY
guards.
* tests/data/paste.cc: fix invalid path to include file.
---
milena/ChangeLog | 11 +++++++++
milena/mln/value/label.hh | 2 +-
milena/mln/world/binary_2d/subsample.hh | 37 +++++++++++++++++++++++++++++-
milena/tests/data/paste.cc | 2 +-
4 files changed, 48 insertions(+), 4 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index c3d3344..bb6ae9f 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,16 @@
2009-05-28 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+ Fix tests.
+
+ * mln/value/label.hh: do not use literal::zero.
+
+ * mln/world/binary_2d/subsample.hh: revamp and add MLN_INCLUDE_ONLY
+ guards.
+
+ * tests/data/paste.cc: fix invalid path to include file.
+
+2009-05-28 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+
Set few tests as XFAIL tests.
* tests/convert/Makefile.am,
diff --git a/milena/mln/value/label.hh b/milena/mln/value/label.hh
index dd61b33..8f874f9 100644
--- a/milena/mln/value/label.hh
+++ b/milena/mln/value/label.hh
@@ -223,7 +223,7 @@ namespace mln
void
from_to_(const value::label<n>& from, bool& to_)
{
- to_ = (from != literal::zero);
+ to_ = (from != 0u);
}
} // end of namespace mln::convert::over_load
diff --git a/milena/mln/world/binary_2d/subsample.hh b/milena/mln/world/binary_2d/subsample.hh
index 78bdbbd..7c6b19c 100644
--- a/milena/mln/world/binary_2d/subsample.hh
+++ b/milena/mln/world/binary_2d/subsample.hh
@@ -30,7 +30,10 @@
/// \file mln/world/binary_2d/subsample.hh
///
-/// FIXME: insert comment.
+/// Subsample a Boolean image.
+///
+/// FIXME: not enough generic. Does not work on image having
+/// the top left corner different from (0,0).
# include <mln/core/image/image2d.hh>
# include <mln/core/alias/dpoint2d.hh>
@@ -45,10 +48,37 @@ namespace mln
namespace binary_2d
{
- image2d<value::int_u8> subsample(image2d<bool>& input, unsigned n)
+ /// Subsample a Boolean image.
+ ///
+ /// \param[in] input A binary image.
+ /// \param[in] n Linear subsampling coefficient.
+ ///
+ /// \return A gray level image.
+ //
+ image2d<value::int_u8>
+ subsample(image2d<bool>& input, unsigned n);
+
+
+# ifndef MLN_INCLUDE_ONLY
+
+ image2d<value::int_u8>
+ subsample(image2d<bool>& input, unsigned n)
{
+ trace::entering("world::binary_2d::subsample");
+
+ mln_precondition(input.is_valid());
+
using value::int_u8;
+ if (n == 0)
+ {
+ image2d<value::int_u8>
+ output = level::convert(int_u8(), input);
+
+ trace::exiting("world::binary_2d::subsample");
+ return output;
+ }
+
const bool** ptr = new const bool*[n];
const unsigned nrows = input.nrows() / n;
const unsigned ncols = input.ncols() / n;
@@ -86,9 +116,12 @@ namespace mln
}
}
+ trace::exiting("world::binary_2d::subsample");
return output;
}
+# endif // ! MLN_INCLUDE_ONLY
+
} // end of namespace mln::world::binary_2d
} // end of namspace mln::world
diff --git a/milena/tests/data/paste.cc b/milena/tests/data/paste.cc
index 54387fd..07d88fc 100644
--- a/milena/tests/data/paste.cc
+++ b/milena/tests/data/paste.cc
@@ -35,7 +35,7 @@
#include <mln/core/image/image3d.hh>
#include <mln/pw/image.hh>
#include <mln/core/image/flat_image.hh>
-#include <mln/core/image/vmorphcast_image.hh>
+#include <mln/core/image/vmorph/cast_image.hh>
#include <mln/core/image/dmorph/image_if.hh>
#include <mln/core/image/dmorph/sub_image.hh>
#include <mln/core/image/dmorph/extension_val.hh>
--
1.5.6.5
1
0
* tests/convert/Makefile.am,
* tests/fun/v2v/Makefile.am,
* tests/io/magick/Makefile.am: set three tests as xfail tests.
---
milena/ChangeLog | 8 ++++++++
milena/tests/convert/Makefile.am | 2 ++
milena/tests/fun/v2v/Makefile.am | 2 ++
milena/tests/io/magick/Makefile.am | 2 ++
4 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 3341339..c3d3344 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,13 @@
2009-05-28 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+ Set few tests as XFAIL tests.
+
+ * tests/convert/Makefile.am,
+ * tests/fun/v2v/Makefile.am,
+ * tests/io/magick/Makefile.am: set three tests as xfail tests.
+
+2009-05-28 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+
Do not use essential/2d.hh in doc samples anymore.
* doc/examples/accu-right-instanciation.cc,
diff --git a/milena/tests/convert/Makefile.am b/milena/tests/convert/Makefile.am
index ffab9fa..f673462 100644
--- a/milena/tests/convert/Makefile.am
+++ b/milena/tests/convert/Makefile.am
@@ -21,3 +21,5 @@ to_rgb_SOURCES = to_rgb.cc
to_window_SOURCES = to_window.cc
TESTS = $(check_PROGRAMS)
+
+XFAIL_TESTS = to_hsl
diff --git a/milena/tests/fun/v2v/Makefile.am b/milena/tests/fun/v2v/Makefile.am
index a01be1c..564bec4 100644
--- a/milena/tests/fun/v2v/Makefile.am
+++ b/milena/tests/fun/v2v/Makefile.am
@@ -16,3 +16,5 @@ hsl_to_rgb_SOURCES = hsl_to_rgb.cc
wrap_SOURCES = wrap.cc
TESTS = $(check_PROGRAMS)
+
+XFAIL_TESTS = hsl_to_rgb
diff --git a/milena/tests/io/magick/Makefile.am b/milena/tests/io/magick/Makefile.am
index 20fe5ef..c636677 100644
--- a/milena/tests/io/magick/Makefile.am
+++ b/milena/tests/io/magick/Makefile.am
@@ -14,3 +14,5 @@ load_SOURCES = load.cc
save_SOURCES = save.cc
TESTS = $(check_PROGRAMS)
+
+XFAIL_TESTS = save
--
1.5.6.5
1
0
* doc/examples/accu-right-instanciation.cc,
* doc/examples/borderthickness.cc,
* doc/examples/box2d-bbox.cc,
* doc/examples/domain-display.cc,
* doc/examples/dpoint-1.cc,
* doc/examples/estim-sites.cc,
* doc/examples/extend.cc,
* doc/examples/extension-ignore.cc,
* doc/examples/fill-call-1.cc,
* doc/examples/fill-part-image.cc,
* doc/examples/fill-subdomain-shorter.cc,
* doc/examples/fill-subdomain.cc,
* doc/examples/fill-subimage-cfun.cc,
* doc/examples/fill.cc,
* doc/examples/forall-piter.cc,
* doc/examples/fun-p2v-1.cc,
* doc/examples/graph-data.cc,
* doc/examples/graph-iter.cc,
* doc/examples/ima-has.cc,
* doc/examples/ima-load.cc,
* doc/examples/ima-save.cc,
* doc/examples/ima-size.cc,
* doc/examples/ima2d-1.cc,
* doc/examples/ima2d-2.cc,
* doc/examples/ima2d-4.cc,
* doc/examples/ima2d-5.cc,
* doc/examples/ima2d-6-clone.cc,
* doc/examples/ima2d-7.cc,
* doc/examples/ima2d-rot.cc,
* doc/examples/labeling-compute.cc,
* doc/examples/logical-not.cc,
* doc/examples/mln_var.cc,
* doc/examples/parray-append.cc,
* doc/examples/parray-bbox.cc,
* doc/examples/paste-call-1.cc,
* doc/examples/paste.cc,
* doc/examples/point-1.cc,
* doc/examples/predicate-1.cc,
* doc/examples/tuto2_first_image.cc,
* doc/examples/tuto3/first_routine.cc,
* doc/examples/tuto3_rw_image.cc,
* doc/examples/tuto4_genericity_and_algorithms.cc,
* doc/examples/win-create-1.cc,
* doc/examples/win-create-2.cc: replace essential/2d.hh by the proper
includes.
---
milena/ChangeLog | 50 ++++++++++++++++++++
milena/doc/examples/accu-right-instanciation.cc | 9 +++-
milena/doc/examples/borderthickness.cc | 7 ++-
milena/doc/examples/box2d-bbox.cc | 2 +-
milena/doc/examples/domain-display.cc | 2 +-
milena/doc/examples/dpoint-1.cc | 3 +-
milena/doc/examples/estim-sites.cc | 3 +-
milena/doc/examples/extend.cc | 13 +++++-
milena/doc/examples/extension-ignore.cc | 3 +-
milena/doc/examples/fill-call-1.cc | 5 ++-
milena/doc/examples/fill-part-image.cc | 14 +++++-
milena/doc/examples/fill-subdomain-shorter.cc | 18 +++++++-
milena/doc/examples/fill-subdomain.cc | 20 +++++++-
milena/doc/examples/fill-subimage-cfun.cc | 13 +++++-
milena/doc/examples/fill.cc | 8 +++-
milena/doc/examples/forall-piter.cc | 3 +-
milena/doc/examples/fun-p2v-1.cc | 2 +-
milena/doc/examples/graph-data.cc | 11 ++++-
milena/doc/examples/graph-iter.cc | 5 ++-
milena/doc/examples/ima-has.cc | 2 +-
milena/doc/examples/ima-load.cc | 3 +-
milena/doc/examples/ima-save.cc | 4 +-
milena/doc/examples/ima-size.cc | 3 +-
milena/doc/examples/ima2d-1.cc | 2 +-
milena/doc/examples/ima2d-2.cc | 3 +-
milena/doc/examples/ima2d-4.cc | 2 +-
milena/doc/examples/ima2d-5.cc | 2 +-
milena/doc/examples/ima2d-6-clone.cc | 3 +-
milena/doc/examples/ima2d-7.cc | 4 +-
milena/doc/examples/ima2d-rot.cc | 21 ++++++++-
milena/doc/examples/labeling-compute.cc | 17 ++++++-
milena/doc/examples/logical-not.cc | 7 ++-
milena/doc/examples/mln_var.cc | 4 +-
milena/doc/examples/parray-append.cc | 3 +-
milena/doc/examples/parray-bbox.cc | 5 ++-
milena/doc/examples/paste-call-1.cc | 10 ++++-
milena/doc/examples/paste.cc | 2 +-
milena/doc/examples/point-1.cc | 4 +-
milena/doc/examples/predicate-1.cc | 2 +-
milena/doc/examples/tuto2_first_image.cc | 5 ++-
milena/doc/examples/tuto3/first_routine.cc | 25 +++++++++-
milena/doc/examples/tuto3_rw_image.cc | 10 ++++-
.../examples/tuto4_genericity_and_algorithms.cc | 34 +++++++++++++-
milena/doc/examples/win-create-1.cc | 2 +-
milena/doc/examples/win-create-2.cc | 4 +-
45 files changed, 327 insertions(+), 47 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 33aa88c..3341339 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,5 +1,55 @@
2009-05-28 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+ Do not use essential/2d.hh in doc samples anymore.
+
+ * doc/examples/accu-right-instanciation.cc,
+ * doc/examples/borderthickness.cc,
+ * doc/examples/box2d-bbox.cc,
+ * doc/examples/domain-display.cc,
+ * doc/examples/dpoint-1.cc,
+ * doc/examples/estim-sites.cc,
+ * doc/examples/extend.cc,
+ * doc/examples/extension-ignore.cc,
+ * doc/examples/fill-call-1.cc,
+ * doc/examples/fill-part-image.cc,
+ * doc/examples/fill-subdomain-shorter.cc,
+ * doc/examples/fill-subdomain.cc,
+ * doc/examples/fill-subimage-cfun.cc,
+ * doc/examples/fill.cc,
+ * doc/examples/forall-piter.cc,
+ * doc/examples/fun-p2v-1.cc,
+ * doc/examples/graph-data.cc,
+ * doc/examples/graph-iter.cc,
+ * doc/examples/ima-has.cc,
+ * doc/examples/ima-load.cc,
+ * doc/examples/ima-save.cc,
+ * doc/examples/ima-size.cc,
+ * doc/examples/ima2d-1.cc,
+ * doc/examples/ima2d-2.cc,
+ * doc/examples/ima2d-4.cc,
+ * doc/examples/ima2d-5.cc,
+ * doc/examples/ima2d-6-clone.cc,
+ * doc/examples/ima2d-7.cc,
+ * doc/examples/ima2d-rot.cc,
+ * doc/examples/labeling-compute.cc,
+ * doc/examples/logical-not.cc,
+ * doc/examples/mln_var.cc,
+ * doc/examples/parray-append.cc,
+ * doc/examples/parray-bbox.cc,
+ * doc/examples/paste-call-1.cc,
+ * doc/examples/paste.cc,
+ * doc/examples/point-1.cc,
+ * doc/examples/predicate-1.cc,
+ * doc/examples/tuto2_first_image.cc,
+ * doc/examples/tuto3/first_routine.cc,
+ * doc/examples/tuto3_rw_image.cc,
+ * doc/examples/tuto4_genericity_and_algorithms.cc,
+ * doc/examples/win-create-1.cc,
+ * doc/examples/win-create-2.cc: replace essential/2d.hh by the proper
+ includes.
+
+2009-05-28 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+
Improve global_vars test.
* tests/global_vars1.cc,
diff --git a/milena/doc/examples/accu-right-instanciation.cc b/milena/doc/examples/accu-right-instanciation.cc
index 4e1d180..01bded3 100644
--- a/milena/doc/examples/accu-right-instanciation.cc
+++ b/milena/doc/examples/accu-right-instanciation.cc
@@ -1,4 +1,11 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+
+#include <mln/value/int_u8.hh>
+
+#include <mln/level/compute.hh>
+
+#include <mln/accu/max.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/borderthickness.cc b/milena/doc/examples/borderthickness.cc
index ce02abe..fc571a2 100644
--- a/milena/doc/examples/borderthickness.cc
+++ b/milena/doc/examples/borderthickness.cc
@@ -1,4 +1,9 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/border/fill.hh>
+#include <mln/make/image.hh>
+#include <mln/debug/println_with_border.hh>
+#include <mln/border/thickness.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/box2d-bbox.cc b/milena/doc/examples/box2d-bbox.cc
index b4bb22a..7707514 100644
--- a/milena/doc/examples/box2d-bbox.cc
+++ b/milena/doc/examples/box2d-bbox.cc
@@ -1,4 +1,4 @@
-#include<mln/essential/2d.hh>
+#include <mln/core/alias/box2d.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/domain-display.cc b/milena/doc/examples/domain-display.cc
index d11101f..d3845f2 100644
--- a/milena/doc/examples/domain-display.cc
+++ b/milena/doc/examples/domain-display.cc
@@ -1,4 +1,4 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/dpoint-1.cc b/milena/doc/examples/dpoint-1.cc
index 5ad29e6..a2b0146 100644
--- a/milena/doc/examples/dpoint-1.cc
+++ b/milena/doc/examples/dpoint-1.cc
@@ -1,4 +1,5 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/alias/dpoint2d.hh>
+#include <mln/core/alias/point2d.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/estim-sites.cc b/milena/doc/examples/estim-sites.cc
index 5678750..deed867 100644
--- a/milena/doc/examples/estim-sites.cc
+++ b/milena/doc/examples/estim-sites.cc
@@ -1,4 +1,5 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/geom/nsites.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/extend.cc b/milena/doc/examples/extend.cc
index 3448ddc..953afc0 100644
--- a/milena/doc/examples/extend.cc
+++ b/milena/doc/examples/extend.cc
@@ -1,6 +1,17 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/dmorph/extended.hh>
+#include <mln/core/image/dmorph/image_if.hh>
+#include <mln/core/routine/extend.hh>
+#include <mln/core/var.hh>
+
+#include <mln/level/transform.hh>
+
#include <mln/fun/p2b/big_chess.hh>
+
+#include <mln/value/rgb8.hh>
+#include <mln/literal/colors.hh>
+
#include <tests/data.hh>
+
#include <doc/tools/sample_utils.hh>
namespace mln
diff --git a/milena/doc/examples/extension-ignore.cc b/milena/doc/examples/extension-ignore.cc
index f3a0f4d..b5e88e7 100644
--- a/milena/doc/examples/extension-ignore.cc
+++ b/milena/doc/examples/extension-ignore.cc
@@ -1,4 +1,5 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/value/int_u8.hh>
template <typename I>
void my_routine(const mln::Image<I>&)
diff --git a/milena/doc/examples/fill-call-1.cc b/milena/doc/examples/fill-call-1.cc
index 1afba03..0a30c85 100644
--- a/milena/doc/examples/fill-call-1.cc
+++ b/milena/doc/examples/fill-call-1.cc
@@ -1,4 +1,7 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/image/dmorph/image_if.hh>
+#include <mln/data/fill.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/fill-part-image.cc b/milena/doc/examples/fill-part-image.cc
index e3ad3a2..4e9dbf5 100644
--- a/milena/doc/examples/fill-part-image.cc
+++ b/milena/doc/examples/fill-part-image.cc
@@ -1,4 +1,16 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/var.hh>
+#include <mln/core/site_set/p_array.hh>
+
+#include <mln/value/int_u8.hh>
+#include <mln/value/label_8.hh>
+
+#include <mln/make/image.hh>
+
+#include <mln/data/fill.hh>
+
+#include <mln/debug/println.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/fill-subdomain-shorter.cc b/milena/doc/examples/fill-subdomain-shorter.cc
index fc4d725..461195d 100644
--- a/milena/doc/examples/fill-subdomain-shorter.cc
+++ b/milena/doc/examples/fill-subdomain-shorter.cc
@@ -1,4 +1,20 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/image/dmorph/image_if.hh>
+#include <mln/core/var.hh>
+#include <mln/core/alias/neighb2d.hh>
+
+#include <mln/labeling/blobs.hh>
+
+#include <mln/make/image.hh>
+
+#include <mln/value/rgb8.hh>
+#include <mln/value/label_8.hh>
+#include <mln/literal/colors.hh>
+
+#include <mln/pw/all.hh>
+
+#include <mln/data/fill.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/fill-subdomain.cc b/milena/doc/examples/fill-subdomain.cc
index be94209..d1cfa94 100644
--- a/milena/doc/examples/fill-subdomain.cc
+++ b/milena/doc/examples/fill-subdomain.cc
@@ -1,5 +1,23 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/image/dmorph/image_if.hh>
+#include <mln/core/var.hh>
+#include <mln/core/alias/neighb2d.hh>
+
+#include <mln/make/image.hh>
+
+#include <mln/value/rgb8.hh>
+#include <mln/value/label_8.hh>
+#include <mln/literal/colors.hh>
+
+#include <mln/pw/all.hh>
+
+#include <mln/labeling/blobs.hh>
+#include <mln/labeling/colorize.hh>
+
+#include <mln/data/fill.hh>
+
#include <doc/tools/sample_utils.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/fill-subimage-cfun.cc b/milena/doc/examples/fill-subimage-cfun.cc
index 06d2e0d..14fa3bb 100644
--- a/milena/doc/examples/fill-subimage-cfun.cc
+++ b/milena/doc/examples/fill-subimage-cfun.cc
@@ -1,4 +1,15 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/image/dmorph/image_if.hh>
+#include <mln/core/var.hh>
+
+#include <mln/make/image.hh>
+
+#include <mln/value/rgb8.hh>
+#include <mln/value/label_8.hh>
+#include <mln/literal/colors.hh>
+
+#include <mln/data/fill.hh>
+
#include <doc/tools/sample_utils.hh>
// \{
bool row_oddity(mln::point2d p)
diff --git a/milena/doc/examples/fill.cc b/milena/doc/examples/fill.cc
index c4184b4..c05f984 100644
--- a/milena/doc/examples/fill.cc
+++ b/milena/doc/examples/fill.cc
@@ -1,4 +1,10 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/image/dmorph/image_if.hh>
+
+#include <mln/value/rgb8.hh>
+#include <mln/io/ppm/load.hh>
+#include <mln/literal/colors.hh>
+
#include <tests/data.hh>
#include <doc/tools/sample_utils.hh>
diff --git a/milena/doc/examples/forall-piter.cc b/milena/doc/examples/forall-piter.cc
index 60011f9..9deb41e 100644
--- a/milena/doc/examples/forall-piter.cc
+++ b/milena/doc/examples/forall-piter.cc
@@ -1,4 +1,5 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/alias/box2d.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/fun-p2v-1.cc b/milena/doc/examples/fun-p2v-1.cc
index 6a5725d..531930c 100644
--- a/milena/doc/examples/fun-p2v-1.cc
+++ b/milena/doc/examples/fun-p2v-1.cc
@@ -1,4 +1,4 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/alias/point2d.hh>
// \{
unsigned my_values(const mln::point2d& p)
{
diff --git a/milena/doc/examples/graph-data.cc b/milena/doc/examples/graph-data.cc
index 04cccf0..30e9ebf 100644
--- a/milena/doc/examples/graph-data.cc
+++ b/milena/doc/examples/graph-data.cc
@@ -1,5 +1,14 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/site_set/p_vertices.hh>
+#include <mln/core/alias/point2d.hh>
+#include <mln/core/concept/function.hh>
+#include <mln/core/var.hh>
+
+#include <mln/fun/i2v/array.hh>
#include <mln/util/graph.hh>
+#include <mln/pw/all.hh>
+
+#include <vector>
+
// \{
template <typename S>
diff --git a/milena/doc/examples/graph-iter.cc b/milena/doc/examples/graph-iter.cc
index 613283a..338ae2f 100644
--- a/milena/doc/examples/graph-iter.cc
+++ b/milena/doc/examples/graph-iter.cc
@@ -1,5 +1,8 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/concept/function.hh>
#include <mln/util/graph.hh>
+
+#include <vector>
+
#include <doc/tools/sample_utils.hh>
struct viota_t : public mln::Function_p2v< viota_t >
diff --git a/milena/doc/examples/ima-has.cc b/milena/doc/examples/ima-has.cc
index bf4332d..4882a14 100644
--- a/milena/doc/examples/ima-has.cc
+++ b/milena/doc/examples/ima-has.cc
@@ -1,4 +1,4 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/ima-load.cc b/milena/doc/examples/ima-load.cc
index 9f697fd..321ba9c 100644
--- a/milena/doc/examples/ima-load.cc
+++ b/milena/doc/examples/ima-load.cc
@@ -1,4 +1,5 @@
-# include <mln/core/io/pbm/load.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/io/pbm/load.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/ima-save.cc b/milena/doc/examples/ima-save.cc
index d802555..c9cb0aa 100644
--- a/milena/doc/examples/ima-save.cc
+++ b/milena/doc/examples/ima-save.cc
@@ -1,4 +1,6 @@
-# include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/io/pbm/save.hh>
+#include <mln/make/image.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/ima-size.cc b/milena/doc/examples/ima-size.cc
index 8e67fac..2c89f93 100644
--- a/milena/doc/examples/ima-size.cc
+++ b/milena/doc/examples/ima-size.cc
@@ -1,4 +1,5 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/make/box2d.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/ima2d-1.cc b/milena/doc/examples/ima2d-1.cc
index 358dd3f..06f8a5e 100644
--- a/milena/doc/examples/ima2d-1.cc
+++ b/milena/doc/examples/ima2d-1.cc
@@ -1,4 +1,4 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/ima2d-2.cc b/milena/doc/examples/ima2d-2.cc
index e9b5e79..0a503b1 100644
--- a/milena/doc/examples/ima2d-2.cc
+++ b/milena/doc/examples/ima2d-2.cc
@@ -1,4 +1,5 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/value/int_u8.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/ima2d-4.cc b/milena/doc/examples/ima2d-4.cc
index 6eee770..201ae63 100644
--- a/milena/doc/examples/ima2d-4.cc
+++ b/milena/doc/examples/ima2d-4.cc
@@ -1,4 +1,4 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/ima2d-5.cc b/milena/doc/examples/ima2d-5.cc
index d4023af..c0f01e3 100644
--- a/milena/doc/examples/ima2d-5.cc
+++ b/milena/doc/examples/ima2d-5.cc
@@ -1,4 +1,4 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/ima2d-6-clone.cc b/milena/doc/examples/ima2d-6-clone.cc
index bcc7fa2..6ec3c4b 100644
--- a/milena/doc/examples/ima2d-6-clone.cc
+++ b/milena/doc/examples/ima2d-6-clone.cc
@@ -1,4 +1,5 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/routine/duplicate.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/ima2d-7.cc b/milena/doc/examples/ima2d-7.cc
index 3f4cd35..ccb6294 100644
--- a/milena/doc/examples/ima2d-7.cc
+++ b/milena/doc/examples/ima2d-7.cc
@@ -1,4 +1,6 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/value/int_u8.hh>
+#include <mln/data/fill.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/ima2d-rot.cc b/milena/doc/examples/ima2d-rot.cc
index 515f325..18e3663 100644
--- a/milena/doc/examples/ima2d-rot.cc
+++ b/milena/doc/examples/ima2d-rot.cc
@@ -1,5 +1,24 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/image/dmorph/extended.hh>
+#include <mln/core/var.hh>
+#include <mln/core/routine/extend.hh>
+
+#include <mln/value/rgb8.hh>
+
+#include <mln/border/fill.hh>
+
+#include <mln/literal/colors.hh>
+
+#include <mln/data/fill.hh>
+
+#include <mln/draw/box.hh>
+
+#include <mln/fun/x2x/rotation.hh>
+
+#include <mln/algebra/vec.hh>
+
#include <doc/tools/sample_utils.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/labeling-compute.cc b/milena/doc/examples/labeling-compute.cc
index 1a340d4..feb7c5c 100644
--- a/milena/doc/examples/labeling-compute.cc
+++ b/milena/doc/examples/labeling-compute.cc
@@ -1,5 +1,20 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/alias/neighb2d.hh>
+
+#include <mln/make/image.hh>
+
+#include <mln/labeling/blobs.hh>
+#include <mln/labeling/colorize.hh>
+#include <mln/labeling/compute.hh>
+
+#include <mln/util/array.hh>
+
+#include <mln/accu/bbox.hh>
+
+#include <mln/value/label_8.hh>
+
#include <doc/tools/sample_utils.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/logical-not.cc b/milena/doc/examples/logical-not.cc
index ac718b8..16cb0b4 100644
--- a/milena/doc/examples/logical-not.cc
+++ b/milena/doc/examples/logical-not.cc
@@ -1,4 +1,9 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+
+#include <mln/make/image.hh>
+
+#include <mln/logical/not.hh>
+
#include <doc/tools/sample_utils.hh>
int main()
{
diff --git a/milena/doc/examples/mln_var.cc b/milena/doc/examples/mln_var.cc
index ad3a59c..a0962f8 100644
--- a/milena/doc/examples/mln_var.cc
+++ b/milena/doc/examples/mln_var.cc
@@ -1,4 +1,6 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/image/dmorph/image_if.hh>
+#include <mln/core/concept/function.hh>
#include <mln/pw/all.hh>
#include <mln/core/var.hh>
diff --git a/milena/doc/examples/parray-append.cc b/milena/doc/examples/parray-append.cc
index 3bd7cdb..7220cb8 100644
--- a/milena/doc/examples/parray-append.cc
+++ b/milena/doc/examples/parray-append.cc
@@ -1,4 +1,5 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/site_set/p_array.hh>
+#include <mln/core/alias/point2d.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/parray-bbox.cc b/milena/doc/examples/parray-bbox.cc
index e5d880f..0485b5f 100644
--- a/milena/doc/examples/parray-bbox.cc
+++ b/milena/doc/examples/parray-bbox.cc
@@ -1,4 +1,7 @@
-#include<mln/essential/2d.hh>
+#include <mln/core/alias/point2d.hh>
+#include <mln/core/alias/box2d.hh>
+#include <mln/geom/bbox.hh>
+#include <mln/core/site_set/p_array.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/paste-call-1.cc b/milena/doc/examples/paste-call-1.cc
index 01a8bc5..fe455e5 100644
--- a/milena/doc/examples/paste-call-1.cc
+++ b/milena/doc/examples/paste-call-1.cc
@@ -1,4 +1,12 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+
+#include <mln/make/box2d.hh>
+
+#include <mln/data/fill.hh>
+#include <mln/data/paste.hh>
+
+#include <mln/debug/println.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/paste.cc b/milena/doc/examples/paste.cc
index 65c5eb1..92663cf 100644
--- a/milena/doc/examples/paste.cc
+++ b/milena/doc/examples/paste.cc
@@ -1,4 +1,4 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
// \{
template <typename I, typename J>
diff --git a/milena/doc/examples/point-1.cc b/milena/doc/examples/point-1.cc
index e190b4c..735620c 100644
--- a/milena/doc/examples/point-1.cc
+++ b/milena/doc/examples/point-1.cc
@@ -1,4 +1,6 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/make/box2d.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/predicate-1.cc b/milena/doc/examples/predicate-1.cc
index 6d99dfc..d2e5d5c 100644
--- a/milena/doc/examples/predicate-1.cc
+++ b/milena/doc/examples/predicate-1.cc
@@ -1,4 +1,4 @@
-# include <mln/essential/2d.hh>
+#include <mln/core/alias/point2d.hh>
// \{
//function_p2b
diff --git a/milena/doc/examples/tuto2_first_image.cc b/milena/doc/examples/tuto2_first_image.cc
index 0e3a6a6..7515a8e 100644
--- a/milena/doc/examples/tuto2_first_image.cc
+++ b/milena/doc/examples/tuto2_first_image.cc
@@ -1,4 +1,7 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/make/image.hh>
+#include <mln/debug/println.hh>
+
#include <doc/tools/sample_utils.hh>
int main()
{
diff --git a/milena/doc/examples/tuto3/first_routine.cc b/milena/doc/examples/tuto3/first_routine.cc
index 5ed5919..2426a0f 100644
--- a/milena/doc/examples/tuto3/first_routine.cc
+++ b/milena/doc/examples/tuto3/first_routine.cc
@@ -1,6 +1,25 @@
/// \file doc/examples/tuto3/first_routine.cc
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/image/dmorph/image_if.hh>
+#include <mln/core/alias/neighb2d.hh>
+
+#include <mln/data/fill.hh>
+
+#include <mln/labeling/blobs.hh>
+#include <mln/labeling/compute.hh>
+#include <mln/labeling/blobs.hh>
+
+#include <mln/level/compare.hh>
+
+#include <mln/util/array.hh>
+
+#include <mln/value/label_8.hh>
+
+#include <mln/accu/count.hh>
+
+#include <mln/pw/all.hh>
+
#include <tests/data.hh>
#include <doc/tools/sample_utils.hh>
@@ -32,7 +51,7 @@ namespace mln
for (unsigned i = 1; i <= nlabels; ++i)
if (count[i] < 10u)
- data::fill((output | pw::value(lbl) == pw::cst(i)).rw(), literal::zero);
+ data::fill((output | (pw::value(lbl) == pw::cst(i))).rw(), literal::zero);
trace::exiting("my_algorithm");
return output;
@@ -81,7 +100,7 @@ namespace sandbox
// \{
for (unsigned i = 1; i <= nlabels; ++i)
if (count[i] < 10u)
- data::fill((output | pw::value(lbl) == pw::cst(i)).rw(), literal::zero);
+ data::fill((output | (pw::value(lbl) == pw::cst(i))).rw(), literal::zero);
// \}
// \{
diff --git a/milena/doc/examples/tuto3_rw_image.cc b/milena/doc/examples/tuto3_rw_image.cc
index a130da8..7bc10d8 100644
--- a/milena/doc/examples/tuto3_rw_image.cc
+++ b/milena/doc/examples/tuto3_rw_image.cc
@@ -1,6 +1,14 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/value/rgb8.hh>
+#include <mln/data/fill.hh>
+#include <mln/data/paste.hh>
+#include <mln/core/routine/duplicate.hh>
+#include <mln/literal/colors.hh>
+#include <mln/opt/at.hh>
+
#include <tests/data.hh>
#include <doc/tools/sample_utils.hh>
+
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/tuto4_genericity_and_algorithms.cc b/milena/doc/examples/tuto4_genericity_and_algorithms.cc
index cb091bb..9074c06 100644
--- a/milena/doc/examples/tuto4_genericity_and_algorithms.cc
+++ b/milena/doc/examples/tuto4_genericity_and_algorithms.cc
@@ -1,6 +1,36 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/image/image2d.hh>
+#include <mln/core/image/dmorph/image_if.hh>
+#include <mln/core/routine/duplicate.hh>
+#include <mln/core/site_set/p_array.hh>
+#include <mln/core/var.hh>
+#include <mln/core/alias/neighb2d.hh>
+
+#include <mln/fun/p2b/chess.hh>
+
+#include <mln/extract/green.hh>
+
+#include <mln/accu/max.hh>
+
+#include <mln/geom/all.hh>
+
+#include <mln/value/rgb8.hh>
+#include <mln/value/label_8.hh>
+
+#include <mln/opt/at.hh>
+
+#include <mln/data/fill.hh>
+
+#include <mln/pw/all.hh>
+
#include <mln/binarization/threshold.hh>
+
#include <mln/labeling/colorize.hh>
+#include <mln/labeling/blobs.hh>
+
+#include <mln/literal/colors.hh>
+#include <mln/literal/max.hh>
+
+
#include <tests/data.hh>
#include <doc/tools/sample_utils.hh>
@@ -8,7 +38,7 @@ struct keep_specific_colors : public mln::Function_v2b<keep_specific_colors>
{
bool operator()(const mln::value::rgb8& v) const
{
- return v.green() < 200 && v.blue() > 100;
+ return v.green() < 200u && v.blue() > 100u;
}
};
diff --git a/milena/doc/examples/win-create-1.cc b/milena/doc/examples/win-create-1.cc
index b6d6e89..36d9d7a 100644
--- a/milena/doc/examples/win-create-1.cc
+++ b/milena/doc/examples/win-create-1.cc
@@ -1,4 +1,4 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/alias/window2d.hh>
int main()
{
using namespace mln;
diff --git a/milena/doc/examples/win-create-2.cc b/milena/doc/examples/win-create-2.cc
index 193f729..13aa7ea 100644
--- a/milena/doc/examples/win-create-2.cc
+++ b/milena/doc/examples/win-create-2.cc
@@ -1,4 +1,6 @@
-#include <mln/essential/2d.hh>
+#include <mln/core/alias/window2d.hh>
+#include <mln/convert/to.hh>
+
int main()
{
using namespace mln;
--
1.5.6.5
1
0
* tests/global_vars1.cc,
* tests/global_vars2.cc: check potential global symbols duplications.
---
milena/ChangeLog | 7 +++
milena/tests/global_vars1.cc | 88 +++++++++---------------------------------
milena/tests/global_vars2.cc | 79 +++++---------------------------------
3 files changed, 36 insertions(+), 138 deletions(-)
diff --git a/milena/ChangeLog b/milena/ChangeLog
index 660fcb1..33aa88c 100644
--- a/milena/ChangeLog
+++ b/milena/ChangeLog
@@ -1,4 +1,11 @@
2009-05-28 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
+
+ Improve global_vars test.
+
+ * tests/global_vars1.cc,
+ * tests/global_vars2.cc: check potential global symbols duplications.
+
+2009-05-28 Guillaume Lazzara <lazzara(a)lrde.epita.fr>
Add a pretty_check target for tests.
diff --git a/milena/tests/global_vars1.cc b/milena/tests/global_vars1.cc
index c36f76f..8495acd 100644
--- a/milena/tests/global_vars1.cc
+++ b/milena/tests/global_vars1.cc
@@ -1,4 +1,5 @@
-// Copyright (C) 2008 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -29,77 +30,26 @@
///
/// Tests proper global variable declarations
-#include <mln/util/all.hh>
-#include <mln/fun/p2v/all.hh>
-#include <mln/fun/x2x/all.hh>
-#include <mln/fun/v2v/all.hh>
-#include <mln/fun/i2v/all.hh>
-#include <mln/fun/all.hh>
-#include <mln/fun/x2v/all.hh>
-#include <mln/fun/p2b/all.hh>
-#include <mln/extension/all.hh>
-#include <mln/histo/all.hh>
-#include <mln/trait/op/all.hh>
-#include <mln/trait/all.hh>
-#include <mln/trait/value/all.hh>
-#include <mln/win/all.hh>
-#include <mln/core/routine/all.hh>
-#include <mln/core/trait/all.hh>
-#include <mln/core/def/all.hh>
-#include <mln/core/internal/check/image_all.hh>
-#include <mln/core/image/all.hh>
-#include <mln/core/site_set/all.hh>
-#include <mln/io/pbm/all.hh>
-#include <mln/io/pfm/all.hh>
-#include <mln/io/pgm/all.hh>
-#include <mln/io/all.hh>
-#include <mln/io/fits/all.hh>
-#include <mln/io/pnm/all.hh>
-#include <mln/io/ppm/all.hh>
-#include <mln/make/all.hh>
-#include <mln/canvas/morpho/all.hh>
-#include <mln/canvas/all.hh>
-#include <mln/canvas/browsing/all.hh>
-#include <mln/estim/all.hh>
-#include <mln/arith/all.hh>
-#include <mln/display/all.hh>
-#include <mln/test/all.hh>
-#include <mln/border/all.hh>
-#include <mln/trace/all.hh>
-#include <mln/debug/all.hh>
-#include <mln/morpho/elementary/all.hh>
-#include <mln/morpho/all.hh>
-#include <mln/accu/all.hh>
-#include <mln/pw/all.hh>
-#include <mln/linear/all.hh>
-#include <mln/metal/all.hh>
-#include <mln/metal/math/all.hh>
-#include <mln/set/all.hh>
-#include <mln/convert/impl/all.hh>
-#include <mln/convert/all.hh>
-#include <mln/geom/all.hh>
-#include <mln/literal/all.hh>
-#include <mln/level/approx/all.hh>
-#include <mln/level/all.hh>
-#include <mln/level/naive/all.hh>
-#include <mln/math/all.hh>
-#include <mln/norm/all.hh>
-#include <mln/logical/all.hh>
-#include <mln/draw/all.hh>
-#include <mln/value/builtin/all.hh>
-#include <mln/value/all.hh>
-#include <mln/value/internal/all.hh>
-#include <mln/value/concept/all.hh>
-#include <mln/tag/all.hh>
-#include <mln/labeling/all.hh>
-
-#include <mln/essential/1d.hh>
-#include <mln/essential/2d.hh>
-#include <mln/essential/3d.hh>
+#include <mln/all.hh>
int f1();
+int f2();
int main ()
{
- f1();
+ {
+ int b1 = 10;
+
+ mln::border::thickness = b1;
+ int b2 = f1();
+
+ mln_assertion(b1 == b2);
+ }
+
+ {
+ mln::border::thickness = 4;
+ f2();
+
+ mln_assertion(mln::border::thickness == 2);
+ }
}
diff --git a/milena/tests/global_vars2.cc b/milena/tests/global_vars2.cc
index b9d94eb..5071788 100644
--- a/milena/tests/global_vars2.cc
+++ b/milena/tests/global_vars2.cc
@@ -1,4 +1,5 @@
-// Copyright (C) 2008 EPITA Research and Development Laboratory (LRDE)
+// Copyright (C) 2008, 2009 EPITA Research and Development Laboratory
+// (LRDE)
//
// This file is part of the Olena Library. This library is free
// software; you can redistribute it and/or modify it under the terms
@@ -31,75 +32,15 @@
# define MLN_INCLUDE_ONLY
-#include <mln/util/all.hh>
-#include <mln/fun/p2v/all.hh>
-#include <mln/fun/x2x/all.hh>
-#include <mln/fun/v2v/all.hh>
-#include <mln/fun/i2v/all.hh>
-#include <mln/fun/all.hh>
-#include <mln/fun/x2v/all.hh>
-#include <mln/fun/p2b/all.hh>
-#include <mln/extension/all.hh>
-#include <mln/histo/all.hh>
-#include <mln/trait/op/all.hh>
-#include <mln/trait/all.hh>
-#include <mln/trait/value/all.hh>
-#include <mln/win/all.hh>
-#include <mln/core/routine/all.hh>
-#include <mln/core/trait/all.hh>
-#include <mln/core/def/all.hh>
-#include <mln/core/internal/check/image_all.hh>
-#include <mln/core/image/all.hh>
-#include <mln/core/site_set/all.hh>
-#include <mln/io/pbm/all.hh>
-#include <mln/io/pfm/all.hh>
-#include <mln/io/pgm/all.hh>
-#include <mln/io/all.hh>
-#include <mln/io/fits/all.hh>
-#include <mln/io/pnm/all.hh>
-#include <mln/io/ppm/all.hh>
-#include <mln/make/all.hh>
-#include <mln/canvas/morpho/all.hh>
-#include <mln/canvas/all.hh>
-#include <mln/canvas/browsing/all.hh>
-#include <mln/estim/all.hh>
-#include <mln/arith/all.hh>
-#include <mln/display/all.hh>
-#include <mln/test/all.hh>
-#include <mln/border/all.hh>
-#include <mln/trace/all.hh>
-#include <mln/debug/all.hh>
-#include <mln/morpho/elementary/all.hh>
-#include <mln/morpho/all.hh>
-#include <mln/accu/all.hh>
-#include <mln/pw/all.hh>
-#include <mln/linear/all.hh>
-#include <mln/metal/all.hh>
-#include <mln/metal/math/all.hh>
-#include <mln/set/all.hh>
-#include <mln/convert/impl/all.hh>
-#include <mln/convert/all.hh>
-#include <mln/geom/all.hh>
-#include <mln/literal/all.hh>
-#include <mln/level/approx/all.hh>
-#include <mln/level/all.hh>
-#include <mln/level/naive/all.hh>
-#include <mln/math/all.hh>
-#include <mln/norm/all.hh>
-#include <mln/logical/all.hh>
-#include <mln/draw/all.hh>
-#include <mln/value/builtin/all.hh>
-#include <mln/value/all.hh>
-#include <mln/value/internal/all.hh>
-#include <mln/value/concept/all.hh>
-#include <mln/tag/all.hh>
-#include <mln/labeling/all.hh>
-
-#include <mln/essential/1d.hh>
-#include <mln/essential/2d.hh>
-#include <mln/essential/3d.hh>
+#include <mln/all.hh>
int f1 ()
{
- return 0;
+ return mln::border::thickness;
+}
+
+
+void f2 ()
+{
+ mln::border::thickness = 2;
}
--
1.5.6.5
1
0