1. 24 Sep, 2007 1 commit
    • Thierry Geraud's avatar
      introduce meta accumulators and better accumulators. · 48a4a5ff
      Thierry Geraud authored
      	New material for accumulators.
      	
      	* tests/accu_nil.cc: New.
      	* tests/labeling_estimate.cc: New.
      	* tests/accu_min.cc: New.
      	* tests/accu_all.cc: New.
      	* mln/accu/nil.hh: New.
      	* mln/accu/take.hh: New.
      	* mln/accu/pair.hh: New.
      	* mln/accu/p.hh: New.
      	* mln/accu/v.hh: New.
      	* mln/accu/all.hh: New.
      	* mln/accu/compute.hh: New.
      	* mln/make/pix.hh: New.
      	* mln/labeling/estimate.hh: New.
      	* mln/util/ignore.hh: New.
      	* mln/util/eat.hh: New.
      
      	Renaming to disambiguate.
      	
      	* mln/core/concept/accumulator.hh
      	(value, to_value): Rename as...
      	(result, to_result): ...these.
      
      	Introduce meta accumulators.
      	
      	* mln/core/concept/meta_accumulator.hh: New.
      	* mln/accu/min.hh,
      	* mln/accu/max.hh,
      	* mln/accu/min_max.hh,
      	* mln/accu/count.hh,
      	* mln/accu/sum.hh,
      	* mln/accu/mean.hh (<name>): Rename accumulators as...
      	(<name_>): ...these.
      	(<name>): New meta accumulators.
      
      	Propagate updates.
      	
      	* mln/accu/bbox.hh,
      	* mln/accu/histo.hh,
      	* mln/accu/max_h.hh,
      	* mln/accu/median_alt.hh,
      	* mln/accu/median.hh,
      	* mln/accu/min_h.hh,
      	* mln/estim/sum.hh,
      	* mln/estim/min_max.hh,
      	* mln/estim/mean.hh,
      	* mln/core/internal/run_pset.hh,
      	* mln/core/queue_p.hh,
      	* mln/core/vec_p.hh,
      	* mln/core/set_p.hh,
      	* mln/morpho/opening_attribute.hh,
      	* mln/morpho/opening_area.hh,
      	* mln/morpho/erosion_fast.hh,
      	* mln/morpho/dilation.hh,
      	* mln/morpho/erosion.hh,
      	* mln/morpho/dilation_fast.hh,
      	* mln/level/take.hh,
      	* mln/level/median.hh,
      	* mln/level/naive/median.hh,
      	* mln/level/fast_median.hh,
      	* mln/level/compute.hh,
      	* mln/canvas/morpho/algebraic_union_find.hh: Update.
      
      	Misc.
      	
      	* tests/core_clone.cc: Augment.
      	* mln/geom/bbox.hh (bbox): New overload for Box.
      	* mln/core/image_if.hh: Add FIXMEs.
      	(operator |): New overloads.
      	* mln/core/image2d_b.hh: Remove dead code.
      	* mln/util/pix.hh (p_of): New.
      	Clean interface.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1157 4aad255d-cdde-0310-9447-f3009e2ae8c0
      48a4a5ff
  2. 07 Sep, 2007 1 commit
    • Thierry Geraud's avatar
      Add area opening over its new canvas. · fd2422c2
      Thierry Geraud authored
      	* tests/morpho_opening_area.cc: New.
      	* mln/core/concept/accumulator.hh (take_as_init): New.
      	* mln/morpho/opening_attribute.hh: New.
      	* mln/morpho/opening_area.hh: New.
      	* mln/morpho/includes.hh: Add neighborhood.hh.
      	* mln/canvas/morpho: New.
      	* mln/canvas/morpho/algebraic_union_find.hh: New.
      	* mln/accu/count.hh (result): New.
      	* mln/util: New.
      	* mln/util/pix.hh: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1088 4aad255d-cdde-0310-9447-f3009e2ae8c0
      fd2422c2
  3. 27 Aug, 2007 2 commits
    • Thierry Geraud's avatar
      Update accus and add LoG filter. · 38469bb4
      Thierry Geraud authored
      	* mln/core/concept/accumulator.hh (merge): New.
      	* mln/core/concept/doc/accumulator.hh
      	(take): New; overload.
      	* mln/accu/bbox.hh,
      	* mln/accu/count.hh,
      	* mln/accu/histo.hh,
      	* mln/accu/max.hh,
      	* mln/accu/mean.hh,
      	* mln/accu/min.hh,
      	* mln/accu/sum.hh (operator+=): Rename as...
      	(take): ...this.
      	(conversion): Remove operator; too risky.
      	Update.
      	* mln/estim/mean.hh: Update.
      	* mln/level/fast_median.hh: Update.
      	* mln/level/median.hh: Update.
      	* mln/level/naive/median.hh: Update.
      	* mln/morpho/erosion.hh: Update.
      
      	* mln/border/duplicate.hh,
      	* mln/border/fill.hh,
      	* mln/border/mirror.hh,
      	* mln/border/resize.hh: Add fixme.
      	
      	* mln/io/load_pgm,
      	* mln/io/save_pgm: Fix for g++-2.95.
      	* mln/linear/convolve.hh: Use border.
      	* tests/convolve.cc: Update.
      	
      	* mln/accu/min_max.hh: New.
      	* mln/estim/min_max.hh: New.
      	* mln/fun/v2v/linear.hh: New.
      	* mln/level/stretch.hh: New.
      	* mln/linear/log.hh: New.
      	* mln/value/props.hh (epsilon): New.
      	* tests/linear_log.cc: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1051 4aad255d-cdde-0310-9447-f3009e2ae8c0
      38469bb4
    • Thierry Geraud's avatar
      Renaming. · d7cfbdbf
      Thierry Geraud authored
      	* mln/core/fimage.hh,
      	* tests/fimage.cc: Rename as...
      	* mln/pw/image.hh,
      	* tests/pw_image.cc: ...these.
      	* mln/pw/all.hh,
      	* mln/draw/line.hh,
      	* tests/line2d.cc: Update.
      	
      	* mln/core/pqueue.hh,
      	* mln/core/pvec.hh,
      	* mln/core/pvec_piter.hh,
      	* mln/core/pset.hh,
      	* tests/pqueue.cc,
      	* tests/pset.cc: Rename as...
      	* mln/core/queue_p.hh,
      	* mln/core/vec_p.hh,
      	* mln/core/vec_p_piter.hh,
      	* mln/core/set_p.hh,
      	* tests/queue_p.cc,
      	* tests/set_p.cc: ...these.
      	* mln/core/line2d.hh: Update.
      	
      	* mln/core/psubset.hh,
      	* mln/core/psubset_piter.hh,
      	* mln/core/subimage.hh,
      	* tests/psubset.cc,
      	* tests/subimage.cc: Rename as...
      	* mln/core/pset_if.hh,
      	* mln/core/pset_if_piter.hh,
      	* mln/core/image_if.hh,
      	* tests/pset_if.cc,
      	* tests/image_if.cc: ...these.
      	* tests/to_image.cc: Update.
      
      	* mln/accu/counter.hh: Rename as...
      	* mln/accu/count.hh: ...this.
      	* mln/accu/count.hh,
      	* mln/accu/mean.hh,
      	* mln/accu/sum.hh (operator+=): New.
      	* mln/value/props.hh (mln_sum, sum): New.
      	* mln/accu/mean.hh,
      	* mln/accu/sum.hh,
      	* mln/value/int_u.hh,
      	* mln/value/int_s.hh: Update.
      	* mln/level/apply.hh: Move accumulator version into...
      	* mln/level/take.hh: ...this new file.
      	* mln/level/run.hh: New.
      	* mln/estim/mean.hh: Update.
      	
      	* mln/core/internal/set_of.hh (operator==): Remove;
      	too error-prone.
      	* mln/core/concept/window.hh (operator==): New.
      	* tests/rectangle2d.cc: Fix.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1048 4aad255d-cdde-0310-9447-f3009e2ae8c0
      d7cfbdbf
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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