1. 26 Jul, 2007 2 commits
    • Thierry Geraud's avatar
      Add stack and transpose morphers. · 4a1c591a
      Thierry Geraud authored
      	* tests/t_image.cc: New.
      	* tests/stack.cc: New.
      	* tests/approx_median.cc: New.
      	* mln/core/t_image.hh: New.
      	* mln/value/stack.hh: New.
      	* tests/median.cc: Update.
      	* tests/README: Update.
      	* mln/core/internal/image_base.hh
      	(morpher_lvalue_): New.
      	* mln/core/internal/image_adaptor.hh: Use morpher_lvalue_.
      	(image_adaptor_): Change Image<I> into I.
      	* mln/core/safe.hh: Update.
      	* mln/core/image2d_b.hh: Remove dead code.
      	* mln/metal/vec.hh: Split decls and defs.
      	(operator<<): New.
      	* mln/level/median.hh (hline2d): Update.
      	(vline2d): New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1042 4aad255d-cdde-0310-9447-f3009e2ae8c0
      4a1c591a
    • Thierry Geraud's avatar
      Various clean-ups + add line2d. · 9705761c
      Thierry Geraud authored
      	Clean-up functions.
      
      	* mln/fun/i2v,
      	* mln/fun/p2b,
      	* mln/fun/p2v,
      	* mln/fun/v2v: New directories.
      	* mln/fun/chess.hh: Rename as...
      	* mln/fun/p2b/chess.hh: New.
      	* mln/fun/to_enc.hh: Rename as...
      	* mln/fun/v2v/enc.hh: ...this.
      	(to_enc): Rename as...
      	(enc): ...this.
      	* mln/fun/all.hh: Rename as...
      	* mln/fun/i2v/all.hh: ...this.
      	* mln/core/point.hh,
      	* mln/core/window.hh,
      	* mln/core/dpoint.hh,
      	* mln/core/image2d_b.hh,
      	* mln/level/to_enc.hh: Update.
      
      	Clean-up windows.
      	
      	* mln/core/win: New directory.
      	* mln/core/hline2d.hh: Rename as...
      	* mln/core/win/hline2d.hh: ...this.
      	* mln/core/rectangle2d.hh: Rename as...
      	* mln/core/win/rectangle2d.hh: ...this.
      	* mln/core/vline2d.hh: Rename as...
      	* mln/core/win/vline2d.hh: ...this.
      	* tests/median.cc,
      	* tests/fast_median.cc,
      	* tests/main.cc,
      	* tests/to_image.cc,
      	* tests/psubset.cc,
      	* tests/fimage.cc,
      	* tests/rectangle2d.cc,
      	* tests/cast_image.cc,
      	* tests/subimage.cc,
      	* tests/hmedian.cc,
      	* tests/erosion.cc,
      	* tests/naive_median.cc,
      	* mln/core/box2d.hh,
      	* mln/morpho/erosion.hh,
      	* mln/level/was.median.hh,
      	* mln/level/median.hh,
      	* mln/level/approx/median.hh: Update.
      
      	Clean-up metal.
      	
      	* mlc/equal.hh: Rename as...
      	* mln/metal/equal.hh: ...this.
      	* mlc/same_coord.hh: Rename as...
      	* mln/metal/same_coord.hh: ...this.
      	* mlc/same_point.hh: Rename as...
      	* mln/metal/same_point.hh: ...this.
      	* mlc: Remove.
      	* mln/core/concept/generalized_point.hh: Update.
      
      	Light changes.
      	
      	* TODO: Update.
      	* mln/core/dpoints_piter.hh
      	(dpoints_bkd_piter): New; fake.
      	* mln/core/fimage.hh: Add doc.
      	* mln/core/pvec.hh
      	(pvec_fwd_piter_, pvec_bkd_piter_): Move to...
      	* mln/core/pvec_piter.hh: ...this new file.
      	* mln/core/internal/fixme.hh: Add empty body.
      
      	New stuff.
      	
      	* tests/line2d.cc: New.
      	* mln/pw/all.hh: New.
      	* mln/core/line2d.hh: New.
      	* mln/math: New.
      	* mln/math/min.hh: New.
      	* mln/math/abs.hh: New.
      	* mln/math/max.hh: New.
      	* mln/math/all.hh: New.
      	* mln/math/sign.hh: New.
      	* mln/draw: New.
      	* mln/draw/line.hh: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1040 4aad255d-cdde-0310-9447-f3009e2ae8c0
      9705761c
  2. 24 Jul, 2007 1 commit
    • Thierry Geraud's avatar
      Make value::set works for any type. · 8b9996bc
      Thierry Geraud authored
      	* mln/value/set.hh: Rename as...
      	* mln/value/internal/iterable_set.hh: ...this.
      	(the): Remove.
      	(E): New.
      	* mln/value/set.hh: New.
      
      	* tests/vset.cc,
      	* tests/histo.cc,
      	* TODO,
      	* mln/core/macros.hh,
      	* mln/core/trait/is_lowq.hh,
      	* mln/core/fimage.hh,
      	* mln/core/image2d_b.hh,
      	* mln/level/naive/median.hh,
      	* mln/level/was.median.hh,
      	* mln/level/fast_median.hh,
      	* mln/level/transform.hh,
      	* mln/level/median.hh,
      	* mln/accu/histo.hh,
      	* mln/accu/median.hh,
      	* mln/accu/median_alt.hh,
      	* mln/value/props.hh,
      	* mln/value/cast.hh,
      	* mln/value/int_u.hh: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1036 4aad255d-cdde-0310-9447-f3009e2ae8c0
      8b9996bc
  3. 20 Jul, 2007 1 commit
    • Thierry Geraud's avatar
      Clean-up and update pixel related material. · c5e09221
      Thierry Geraud authored
      	* tests/README: New.
      	* mln/core/trait: New.
      	* mln/core/trait/pixter.hh: New.
      	* mln/core/internal/pixel_impl.hh: New.
      	* mln/core/internal/fixme.hh: New.
      	* mln/core/concept/fast_image.hh: New.
      	* mln/core/concept/doc/fast_iterator.hh: Rename as...
      	* mln/core/concept/doc/pixel_iterator.hh: ...this new file.
      	Update.
      	* mln/core/concept/doc/fast_image.hh: New.
      	* mln/core/concept/doc/genpixel.hh: New.
      	* mln/core/tags.hh: New.
      	* mln/metal: New.
      	* mln/metal/none.hh: New.
      	* mln/core/internal/lineary_pixel_iterator_base.hh: Remove.
      
      	* mln/core/dpoints_piter.hh,
      	* mln/core/box_piter.hh,
      	* mln/core/internal/image_base.hh,
      	* mln/core/internal/piter_adaptor.hh,
      	* mln/core/concept/genpoint.hh,
      	* mln/core/concept/psite.hh,
      	* mln/core/concept/point.hh,
      	* mln/core/concept/doc/genpoint.hh (pointer): Rename as...
      	(pointer_): ...this.
      	
      	* tests/window2d.cc: Cosmetic change.
      	* TODO: Update.
      	* mln/core/macros.hh (mln_ima): Remove.
      	(*ixter): Update.
      	(mln_piter, mln_qiter, mln_niter): Update.
      	* mln/core/psubset.hh (bkd_piter): Use fixme.
      	(npoints): Update.
      	* mln/core/box.hh (piter): Remove.
      	* mln/core/rectangle2d.hh (bkd_piter): Use fixme.
      	* mln/core/pixter2d_b.hh: Clean-up and update.
      	* mln/core/window.hh (bkd_piter): Use fixme.
      	* mln/core/dpoints_pixter.hh: Clean-up and update.
      	* mln/core/internal/pixel_iterator_base.hh: Clean-up and update.
      	* mln/core/internal/box_impl.hh: Touch doc.
      	* mln/core/internal/image_base.hh (dpoint, coord): New.
      	(pointer): Update.
      	* mln/core/pixel.hh: Clean-up and update.
      	* mln/core/hline2d.hh (bkd_piter): Use fixme.
      	* mln/core/concept/image.hh (piter): Remove.
      	(dpoint, coord): New.
      	* mln/core/concept/pixel_iterator.hh: Update.
      	* mln/core/concept/point_set.hh (piter): Remove.
      	* mln/core/concept/object.hh: New include.
      	* mln/core/concept/doc/image.hh: Update.
      	* mln/core/concept/doc/point_set.hh: Update.
      	* mln/core/concept/genpixel.hh: Clean-up and update.
      	* mln/core/vline2d.hh (bkd_piter): Use fixme.
      	* mln/core/image2d_b.hh: Clean-up and update.
      	(buffer): New.
      	(offset, point_at_offset): Fix.
      	* mln/level/fast_median.hh: Update.
      	* mln/level/median.hh: Prefer mln_coord to int.
      	* mln/canvas/sbrowsing.hh: Update doc.
      	* tests/fast_median.cc,
      	* tests/pixter_point2d.cc,
      	* tests/pixter_dpoint2d.cc,
      	* tests/pixel.cc: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1025 4aad255d-cdde-0310-9447-f3009e2ae8c0
      c5e09221
  4. 17 Jul, 2007 1 commit
    • Thierry Geraud's avatar
      New 2D window types in mln. · 56c80ae1
      Thierry Geraud authored
      	* tests/median.cc: Clean up.
      	* tests/hmedian.cc: New.
      	* tests/erosion.cc: Clean up.
      	* tests/rectangle2d.cc: Update.
      	* mln/core/hline2d.hh: New.
      	* mln/core/rectangle2d.hh
      	(half_width_, half_height_): Change to...
      	(width_, height_): ...these.
      	Update.
      	* mln/core/vline2d.hh: New.
      	* mln/morpho/erosion.hh (erosion_wrt_win): New overload.
      	* mln/level/was.median.hh: New.
      	* mln/level/approx: New.
      	* mln/level/approx/median.hh: New.
      	* mln/level/median.hh (median_as_procedure): Move into...
      	* mln/level/was.hmedian.hh: ...this new file.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1021 4aad255d-cdde-0310-9447-f3009e2ae8c0
      56c80ae1
  5. 13 Jul, 2007 1 commit
  6. 12 Jul, 2007 1 commit
    • Thierry Geraud's avatar
      Add naive median to milena + fix problems with g++-2.95. · 1f478867
      Thierry Geraud authored
      	* tests/window2d.cc: .
      	* tests/median.cc: .
      	* tests/box2d.cc: .
      	* tests/naive_median.cc: New.
      	* tests/histo.cc: .
      	* tests/rectangle2d.cc: New.
      	* mln/convert/to_dpoint.hh: Fix missing include.
      	* mln/level/naive: New.
      	* mln/level/naive/median.hh: New.
      	* mln/level/median.hh: Update.
      	* mln/io/save_pgm.hh,
      	* mln/io/load_pgm.hh: Conform with g++-2.95.
      	* mln/core/dpoint2d.hh (up, down, left, right): New.
      	* mln/core/box.hh: Add impl inheritance.
      	* mln/core/rectangle2d.hh: Fake typedef; add FIXME.
      	(sym_): New.
      	* mln/core/concept/window.hh (operator-): New.
      	* mln/core/concept/doc/window.hh: Update.
      	* mln/core/window.hh (sym_): New.
      	(operators): Help g++-2.95.
      	* mln/core/image2d_b.hh: Add impl inheritance.
      	(init_with, bbox): New.
      	(nrows, ncols): Remove; now inherited.
      	* mln/core/internal/coord_impl.hh: Fix missing include.
      	* mln/core/internal/box_impl.hh: New.
      	* mln/core/internal/set_of.hh: Turn to lazy.
      	(operator==): New.
      	* mln/accu/median.hh: Conform with g++-2.95.
      	* mln/value/viter.hh: Help g++-2.95.
      	* mln/value/set.hh: Cosmetics.
      	* mln/value/int_u.hh: Help g++-2.95.
      	* mln/value/internal/value_like.hh (to_equiv): New.
      	* mln/border/thickness.hh: Remove const.
      	* img: New.
      	* img/lena.pgm: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1006 4aad255d-cdde-0310-9447-f3009e2ae8c0
      1f478867
  7. 11 Jul, 2007 1 commit
    • Thierry Geraud's avatar
      Better milena median. · 9fe6c1fc
      Thierry Geraud authored
      	* tests/median.cc: Update.
      	* mln/convert/to_dpoint.hh: New.
      	* mln/debug/println.hh (println): Add endl.
      	* mln/level/median.hh: New.
      	* mln/io/save_pgm.hh: New.
      	* mln/io/load_pgm.hh: New.
      	* mln/core/box.hh (len): New.
      	* mln/core/concept/box.hh: Likewise.
      	* mln/core/point.hh (zero): New.
      	* mln/core/dpoint.hh: Likewise.
      	* mln/core/concept/window.hh (dpoint, point): New.
      	* mln/core/window.hh,
      	* mln/core/rectangle2d.hh: Update.
      	* mln/core/concept/genpoint.hh: Remove dead line.
      	* mln/core/concept/dpoint.hh (operator+): New.
      	* mln/core/image2d_b.hh: .
      	* mln/core/internal/force_exact.hh: Avoid obj creation.
      	* mln/accu: New.
      	* mln/value/histo.hh: Rename as...
      	* mln/value/median.hh: ...this.
      	* mln/accu/histo.hh: Rename as...
      	* mln/accu/median.hh: ...this.
      	* mln/accu/median_alt.hh: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1005 4aad255d-cdde-0310-9447-f3009e2ae8c0
      9fe6c1fc