1. 17 Jul, 2007 1 commit
    • Thierry Geraud's avatar
      Introduce accumulators and point-wise operations in mln. · b5211ced
      Thierry Geraud authored
      	* tests/pw_value.cc: New.
      	* mln/estim/mean.hh: New.
      	* mln/fun/chess.hh (result): New.
      	* mln/fun/ops.hh: New.
      	* mln/fun/val.hh: New.
      	* mln/fun/pw_value.hh: New.
      	* mln/fun/var.hh: New.
      	* mln/core/concept/doc/accumulator.hh: New.
      	* mln/core/concept/accumulator.hh: New.
      	* mln/core/concept/function.hh (Function_i2v): New.
      	* mln/core/macros.hh (mln_result): New.
      	* mln/arith: New.
      	* mln/arith/plus.hh: New.
      	* mln/level/apply.hh: New.
      	* mln/level/transform.hh: New.
      	* mln/accu/counter.hh: New.
      	* mln/accu/mean.hh: New.
      	* mln/value/kind.hh: New.
      	* mln/value/props.hh (mln_kind, kind): New.
      
      	* mln/estim/count.hh: Remove; useless.
      	* mln/fun/all.hh (all): Change inheritance.
      	* mln/core/point.hh (point_): Strenghten sigs.
      	* mln/core/dpoint.hh (dpoint_): Likewise.
      	* mln/accu/histo.hh: Add inheritance.
      	* mln/accu/median.hh: Likewise.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1015 4aad255d-cdde-0310-9447-f3009e2ae8c0
      b5211ced
  2. 13 Jul, 2007 1 commit
    • Thierry Geraud's avatar
      Add subset notion in milena. · 8537be0a
      Thierry Geraud authored
      	Add materials.
      
      	* mln/convert/to_image.hh: New.
      	* mln/convert/to_window.hh: New.
      	* mln/estim: New.
      	* mln/estim/count.hh: New.
      	* mln/debug/format.hh: New.
      	* mln/geom: New.
      	* mln/geom/pmin_pmax.hh: New.
      	* mln/geom/bbox.hh: New.
      	* mln/core/psubset.hh: New.
      	* mln/core/psubset_piter.hh: New.
      	* mln/core/concept/function.hh: New.
      	* mln/core/internal/piter_adaptor.hh: New.
      	* mln/fun/chess.hh: New.
      
      	Add some tests.
      	
      	* tests/safe_image.cc: New.
      	* tests/to_image.cc: New.
      	* tests/psubset.cc: New.
      	* tests/println.cc: New.
      	
      	Several improvements.
      	
      	* mln/debug/println.hh: Use debug::format.
      	* mln/core/box.hh (len): Move...
      	* mln/core/concept/box.hh: ...here.
      	* mln/core/point.hh (zero): Turn into var.
      	(point_): Bound ctor arg f.
      	* mln/core/dpoint.hh: Likewise.
      	* mln/core/neighb.hh (dpoint): New typedef.
      	* mln/core/concept/image.hh: Remove obsolete commentary.
      	* mln/core/concept/iterator.hh
      	(for_all_remaining): New macro.
      	* mln/core/concept/point_set.hh (operator<<): New.
      	* mln/core/concept/neighborhood.hh
      	(dpoint): Make it appear in commentary.
      	* mln/core/concept/doc/neighborhood.hh (dpoint): New.
      	* mln/core/concept/doc/box.hh: Cosmetics.
      	* mln/core/window.hh (b_): New attribute.
      	Update.
      	* mln/core/image2d_b.hh (bbox): Remove; redundant.
      	(at): New couple of methods.
      	Update.
      	* mln/core/internal/image_adaptor.hh: Fix.
      	* mln/core/internal/image_base.hh: Add preconditions.
      	* mln/core/internal/set_of.hh: Add a todo entry.
      	* mln/core/safe_image.hh: Help g++-2.95.
      	* mln/fun/all.hh: Add inheritance.
      	
      	Change mk_<object> into make::<object>.
      	
      	* mln/make: New directory.
      	* mln/core/dpoint2d.hh (mk_dpoint2d): Move to...
      	* mln/make/dpoint2d.hh: this new file.
      	(mk_dpoint2d): Rename as...
      	(dpoint2d): ...this.
      	* mln/core/window2d.hh (mk_window2d): Move to...
      	* mln/make/window2d.hh: this new file.
      	(mk_window2d): Rename as...
      	(window2d): ...this.
      	* mln/core/box2d.hh (mk_box2d): Move to...
      	* mln/make/box2d.hh: this new file.
      	(mk_box2d): Rename as...
      	(box2d): ...this.
      	* mln/core/point2d.hh (mk_point2d): Move to...
      	* mln/make/point2d.hh: this new file.
      	(mk_point2d): Rename as...
      	(point2d): ...this.
      	* tests/window2d.cc,
      	* tests/pixter_dpoint2d.cc,
      	* tests/box2d.cc,
      	* tests/point2d.cc,
      	* tests/dpoint2d.cc,
      	* tests/main.cc,
      	* mln/core/neighb2d.hh,
      	* mln/debug/println.hh,
      	* mln/core/rectangle2d.hh,
      	* mln/core/pixter2d_b.hh,
      	* mln/io/save_pgm.hh,
      	* mln/io/load_pgm.hh: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1010 4aad255d-cdde-0310-9447-f3009e2ae8c0
      8537be0a
  3. 06 Jul, 2007 1 commit
    • Thierry Geraud's avatar
      Make milena work correctly with g++-2.95. · 5694516b
      Thierry Geraud authored
      	* mln/core/exact.hh (force_exact): Move in...
      	* mln/core/internal/force_exact.hh: ...this new file.
      	(force_exact_): Now a method and g++-2.95 compatible.
      	* mln/core/concept/genpoint.hh: Update.
      	* mln/core/dpoints_piter.hh: Update.
      	* mln/core/internal/coord_impl.hh: Update.
      
      	* tests/window2d.cc: New.
      	* tests/box2d.cc: New.
      	* tests/point2d.cc: New.
      	* tests/dpoint2d.cc: New.
      	* mln/fun: New.
      	* mln/fun/all.hh: New.
      	* mln/core/window.hh (is_centered): Update.
      
      	* doc/Doxyfile.in (PREDEFINED): Add extra macros.
      	* mln/core/point.hh (point_): Change arg from val to fun.
      	* mln/core/dpoint.hh (dpoint_): Change arg from val to fun.
      	* mln/core/image2d.hh: Add explicit typedefs.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1001 4aad255d-cdde-0310-9447-f3009e2ae8c0
      5694516b
  4. 05 Jul, 2007 1 commit
    • Thierry Geraud's avatar
      Add copyright to milena files. · 9ec5f65e
      Thierry Geraud authored
      	* tests/main.cc,
      	* mln/morpho/Rd.hh,
      	* mln/morpho/erosion.hh,
      	* mln/debug/println.hh,
      	* mln/level/fill.hh,
      	* mln/level/compare.hh,
      	* mln/level/paste.hh,
      	* mln/core/neighb2d.hh,
      	* mln/core/dpoint2d.hh,
      	* mln/core/dpoints_piter.hh,
      	* mln/core/macros.hh,
      	* mln/core/box.hh,
      	* mln/core/point.hh,
      	* mln/core/rectangle2d.hh,
      	* mln/core/box_piter.hh,
      	* mln/core/neighb.hh,
      	* mln/core/concept/image.hh,
      	* mln/core/concept/piter.hh,
      	* mln/core/concept/genpoint.hh,
      	* mln/core/concept/point_set.hh,
      	* mln/core/concept/psite.hh,
      	* mln/core/concept/object.hh,
      	* mln/core/concept/doc/image.hh,
      	* mln/core/concept/doc/genpoint.hh,
      	* mln/core/concept/doc/piter.hh,
      	* mln/core/concept/doc/point_set.hh,
      	* mln/core/concept/doc/object.hh,
      	* mln/core/concept/doc/neighborhood.hh,
      	* mln/core/concept/doc/window.hh,
      	* mln/core/concept/doc/box.hh,
      	* mln/core/concept/doc/iterator.hh,
      	* mln/core/concept/doc/dpoint.hh,
      	* mln/core/concept/neighborhood.hh,
      	* mln/core/concept/window.hh,
      	* mln/core/concept/box.hh,
      	* mln/core/concept/point.hh,
      	* mln/core/concept/iterator.hh,
      	* mln/core/concept/dpoint.hh,
      	* mln/core/window2d.hh,
      	* mln/core/dpoint.hh,
      	* mln/core/ops.hh,
      	* mln/core/exact.hh,
      	* mln/core/window.hh,
      	* mln/core/image2d.hh,
      	* mln/core/vec.hh,
      	* mln/core/contract.hh,
      	* mln/core/internal/coord_impl.hh,
      	* mln/core/internal/image_adaptor.hh,
      	* mln/core/internal/image_base.hh,
      	* mln/core/internal/set_of.hh,
      	* mln/core/box2d.hh,
      	* mln/core/point2d.hh,
      	* mln/core/safe_image.hh,
      	* mln/value/props.hh,
      	* mlc/equal.hh,
      	* mlc/same_coord.hh,
      	* mlc/same_point.hh,
      	* sandbox/cxxcompilation/test.cc: Add copyright.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@998 4aad255d-cdde-0310-9447-f3009e2ae8c0
      9ec5f65e
  5. 03 Jul, 2007 1 commit
    • Thierry Geraud's avatar
      Add some documentation. · 5bd6f093
      Thierry Geraud authored
      	* doc/Doxyfile.in: Try to properly handle some macros.
      	* mln/core/macros.hh,
      	* mln/core/concept/genpoint.hh,
      	* mln/core/concept/point_set.hh,
      	* mln/core/concept/psite.hh,
      	* mln/core/concept/object.hh,
      	* mln/core/concept/window.hh,
      	* mln/core/concept/box.hh,
      	* mln/core/concept/point.hh,
      	* mlc/equal.hh,
      	* mlc/same_point.hh,
      	* mln/core/concept/iterator.hh: Add some documentation.
      	* mln/core/concept/doc/image.hh: New.
      	* mln/core/concept/doc/genpoint.hh: Update.
      	* mln/core/concept/doc/piter.hh: New.
      	* mln/core/concept/doc/point_set.hh: New.
      	* mln/core/concept/doc/object.hh: New.
      	* mln/core/concept/doc/neighborhood.hh: New.
      	* mln/core/concept/doc/window.hh: New.
      	* mln/core/concept/doc/box.hh: New.
      	* mln/core/concept/doc/iterator.hh: New.
      	* mln/core/concept/doc/dpoint.hh: New.
      	* mln/core/contract.hh: New.
      	* mlc/same_coord.hh: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@993 4aad255d-cdde-0310-9447-f3009e2ae8c0
      5bd6f093
  6. 02 Jul, 2007 1 commit
    • Thierry Geraud's avatar
      Start milena documentation. · a4fc9eaa
      Thierry Geraud authored
      	* core/macros.hh,
      	* core/concept/genpoint.hh,
      	* core/concept/psite.hh,
      	* core/concept/object.hh,
      	* core/concept/point.hh,
      	* core/ops.hh,
      	* core/exact.hh: Add some documentation.
      	* core/concept/doc: New.
      	* core/concept/doc/genpoint.hh: New.
      	* mlc/equal.hh: Remove include.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@991 4aad255d-cdde-0310-9447-f3009e2ae8c0
      a4fc9eaa
  7. 28 Jun, 2007 1 commit
    • Thierry Geraud's avatar
      Introducing mini-olena (milena). · 826ea0ea
      Thierry Geraud authored
      	* milena: New.
      	* milena/test: New.
      	* milena/test/main.cc: New.
      	* milena/convert: New.
      	* milena/morpho: New.
      	* milena/debug: New.
      	* milena/debug/println.hh: New.
      	* milena/level: New.
      	* milena/level/fill.hh: New.
      	* milena/core: New.
      	* milena/core/dpoint2d.hh: New.
      	* milena/core/window2d.cc: New.
      	* milena/core/macros.hh: New.
      	* milena/core/dpoints_qiter.hh: New.
      	* milena/core/window2d_qiter.cc: New.
      	* milena/core/box.hh: New.
      	* milena/core/point.hh: New.
      	* milena/core/rectangle2d.hh: New.
      	* milena/core/box_piter.hh: New.
      	* milena/core/dpoint.hh: New.
      	* milena/core/concept: New.
      	* milena/core/concept/image.hh: New.
      	* milena/core/concept/genpoint.hh: New.
      	* milena/core/concept/piter.hh: New.
      	* milena/core/concept/point_set.hh: New.
      	* milena/core/concept/psite.hh: New.
      	* milena/core/concept/object.hh: New.
      	* milena/core/concept/window.hh: New.
      	* milena/core/concept/box.hh: New.
      	* milena/core/concept/iterator.hh: New.
      	* milena/core/concept/point.hh: New.
      	* milena/core/concept/dpoint.hh: New.
      	* milena/core/window2d.hh: New.
      	* milena/core/ops.hh: New.
      	* milena/core/exact.hh: New.
      	* milena/core/window.hh: New.
      	* milena/core/image2d.hh: New.
      	* milena/core/vec.hh: New.
      	* milena/core/internal: New.
      	* milena/core/internal/coord_impl.hh: New.
      	* milena/core/internal/image_adaptor.hh: New.
      	* milena/core/internal/image_base.hh: New.
      	* milena/core/internal/set_of.hh: New.
      	* milena/core/box2d.hh: New.
      	* milena/core/point2d.hh: New.
      	* milena/core/safe_image.hh: New.
      	* milena/mlc: New.
      	* milena/mlc/equal.hh: New.
      	* milena/mlc/same_point.hh: New.
      	* milena/value: New.
      	* milena/README: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@983 4aad255d-cdde-0310-9447-f3009e2ae8c0
      826ea0ea