https://svn.lrde.epita.fr/svn/oln/trunk/milena
Index: ChangeLog
from Ugo Jardonnet <jardonnet(a)lrde.epita.fr>
Add the ability to plot a point (small cross).
* mln/draw/plot.hh: New. Plot a point.
* mln/draw/all.hh: Update. Add plot.hh.
all.hh | 1
plot.hh | 94
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 95 insertions(+)
Index: mln/draw/plot.hh
--- mln/draw/plot.hh (revision 0)
+++ mln/draw/plot.hh (revision 0)
@@ -0,0 +1,94 @@
+// Copyright (C) 2007 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
+// of the GNU General Public License version 2 as published by the
+// Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this library; see the file COPYING. If not, write to
+// the Free Software Foundation, 51 Franklin Street, Fifth Floor,
+// Boston, MA 02111-1307, USA.
+//
+// As a special exception, you may use this file as part of a free
+// software library without restriction. Specifically, if other files
+// instantiate templates or use macros or inplot functions from this
+// file, or you compile this file and link it with other files to
+// produce an executable, this file does not by itself cause the
+// resulting executable to be covered by the GNU General Public
+// License. This exception does not however invalidate any other
+// reasons why the executable file might be covered by the GNU General
+// Public License.
+
+#ifndef MLN_DRAW_PLOT_HH
+# define MLN_DRAW_PLOT_HH
+
+/*! \file mln/draw/plot.hh
+ *
+ * \brief Plot a point (small cross) in an image.
+ */
+
+# include <mln/core/concept/image.hh>
+# include <mln/core/line2d.hh>
+# include <mln/level/paste.hh>
+# include <mln/pw/image.hh>
+# include <mln/pw/cst.hh>
+
+
+namespace mln
+{
+
+ namespace draw
+ {
+
+ /*! Plot a point at level \p v in image \p ima between the points
+ * \p beg and \p end.
+ *
+ * \param[in,out] ima The image to be drawn.
+ * \param[in] p The point to be plotted.
+ * \param[in] v The value to assign to all drawn pixels.
+ *
+ * \pre \p ima has to be initialized.
+ * \pre \p ima has \p p.
+ *
+ */
+ template <typename I>
+ void plot(Image<I>& ima,
+ const mln_point(I)& p,
+ const mln_value(I)& v);
+
+
+# ifndef MLN_INCLUDE_ONLY
+
+ template <typename I>
+ inline
+ void plot(Image<I>& ima,
+ const mln_point(I)& p,
+ const mln_value(I)& v)
+ {
+ mln_precondition(exact(ima).has_data());
+ mln_precondition(exact(ima).has(p));
+
+ for (unsigned i = 0; i < I::point::dim; i++)
+ {
+ mln_point(I) beg = p, end = p;
+ beg[i] = beg[i] - 1;
+ end[i] = end[i] + 1;
+ level::paste(pw::cst(v) | line2d(beg, end),
+ ima);
+ }
+ }
+
+# endif // ! MLN_INCLUDE_ONLY
+
+ } // end of namespace mln::draw
+
+} // end of namespace mln
+
+
+#endif // ! MLN_DRAW_PLOT_HH
Index: mln/draw/all.hh
--- mln/draw/all.hh (revision 2032)
+++ mln/draw/all.hh (working copy)
@@ -46,5 +46,6 @@
# include <mln/draw/graph.hh>
# include <mln/draw/label.hh>
# include <mln/draw/line.hh>
+# include <mln/draw/plot.hh>
#endif // ! MLN_DRAW_ALL_HH
#127: Generalize the definition of the Sobel gradient
-------------------------+--------------------------------------------------
Reporter: levill_r | Owner: Olena Team
Type: enhancement | Status: new
Priority: trivial | Milestone:
Component: Milena | Version: 1.0
Keywords: |
-------------------------+--------------------------------------------------
For the moment (rev. 1656), the Sobel gradient only works on 2-D images.
We could generalize its definition to n-D (regular) images. For instance,
a 3-D version is mentioned in
http://www.aravind.ca/cs788h_Final_Project/gradient_estimators.htm.
--
Ticket URL: <https://trac.lrde.org/olena/ticket/127>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient C++ image library.
#15: Set up a build farm framework, or adjust Olena 0.11's one
-----------------------+----------------------------------------------------
Reporter: levill_r | Owner: levill_r
Type: task | Status: closed
Priority: minor | Milestone:
Component: Olena | Version: 1.0
Resolution: fixed | Keywords: test suite framework uttk cppunit 0.10
-----------------------+----------------------------------------------------
Changes (by levill_r):
* status: new => closed
* resolution: => fixed
Comment:
Done: a !BuildBot has been set up for Olena
(https://buildfarm.lrde.org/buildfarm/oln/).
--
Ticket URL: <https://trac.lrde.org/olena/ticket/15#comment:2>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient C++ image processing library.
#80: Olena 1.0 User Documentation
-----------------------+----------------------------------------------------
Reporter: levill_r | Owner: Olena Team
Type: task | Status: new
Priority: major | Milestone: Olena 1.0
Component: Milena | Version: 1.0
Resolution: | Keywords: vaucanson doc
-----------------------+----------------------------------------------------
Old description:
> How to make a nice '''user''' documentation for Olena 1.0, using Doxygen?
> or LaTeX? or anything else?
>
> This documentation shall be
> * readable,
> * with no description of the internals (either `namespace internal` or
> places tagged as such).
>
> Ask the Vaucanson Team for some hints and/or pointers.
New description:
How to make a nice '''user''' documentation for Olena 1.0, using Doxygen?
or use a new tool, like [http://www.doxys.dk/ Doxys] ? or LaTeX? or
anything else?
This documentation shall be
* readable,
* with no description of the internals (either `namespace internal` or
places tagged as such).
Ask the Vaucanson Team for some hints and/or pointers.
Comment (by levill_r):
Merge with #20.
--
Ticket URL: <https://trac.lrde.org/olena/ticket/80#comment:5>
Olena <http://olena.lrde.epita.fr>
Olena, a generic and efficient C++ image processing library.