1. 20 Nov, 2007 4 commits
    • Guillaume Duhamel's avatar
      Remove border_* subdirectories. · b433b7c5
      Guillaume Duhamel authored
      	* tests/border_duplicate/test_border_duplicate_image1d_1.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image1d_2.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image1d_3.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image1d_4.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image1d_5.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image2d_1.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image2d_2.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image2d_3.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image2d_4.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image3d_1.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image3d_2.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image3d_3.cc: Remove.
      	* tests/border_duplicate/test_border_duplicate_image3d_4.cc: Remove.
      	* tests/border_duplicate: Remove.
      	* tests/border_fill/test_border_fill_image1d_1.cc: Remove.
      	* tests/border_fill/test_border_fill_image1d_2.cc: Remove.
      	* tests/border_fill/test_border_fill_image1d_3.cc: Remove.
      	* tests/border_fill/test_border_fill_image1d_4.cc: Remove.
      	* tests/border_fill/test_border_fill_image1d_5.cc: Remove.
      	* tests/border_fill/test_border_fill_image2d_1.cc: Remove.
      	* tests/border_fill/test_border_fill_image2d_2.cc: Remove.
      	* tests/border_fill/test_border_fill_image2d_3.cc: Remove.
      	* tests/border_fill/test_border_fill_image2d_4.cc: Remove.
      	* tests/border_fill/test_border_fill_image3d_1.cc: Remove.
      	* tests/border_fill/test_border_fill_image3d_2.cc: Remove.
      	* tests/border_fill/test_border_fill_image3d_3.cc: Remove.
      	* tests/border_fill/test_border_fill_image3d_4.cc: Remove.
      	* tests/border_fill: Remove.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1503 4aad255d-cdde-0310-9447-f3009e2ae8c0
      b433b7c5
    • Guillaume Duhamel's avatar
      Add Makefile.am in border. · 98fa42b0
      Guillaume Duhamel authored
      
      	* Makefile.am: New.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1502 4aad255d-cdde-0310-9447-f3009e2ae8c0
      98fa42b0
    • Guillaume Duhamel's avatar
      Add subdirectory draw in tests and fix tests/level. · c0cbe5ac
      Guillaume Duhamel authored
      
      	* mln/display/all.hh: Add save_and_show.hh.
      
      	* tests/Makefile.am: Update for display.
      	* tests/display: New subdirectory tests.
      	* tests/display/Makefile.am: New Makefile.am for draw.
      
      
      	* tests/show.cc: Remove ...
      	* tests/display/show.cc: ... and replace here.
      
      	* tests/color_pretty.cc: Remove ...
      	* tests/display/color_pretty.cc: ... and replace here.
      
      	* tests/save_and_show.cc: Remove ...
      	* tests/display/save_and_show.cc:  ... and replace here.
      
      
      	* tests/level/apply.cc,
      	* tests/level/saturate.cc: Fix warning.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1501 4aad255d-cdde-0310-9447-f3009e2ae8c0
      c0cbe5ac
    • Guillaume Duhamel's avatar
      Review draw, create tests subdirectory and fix bug in level. · 100a56d1
      Guillaume Duhamel authored
      
      	Draw.
      	* mln/draw/line.hh
      	* mln/draw/mesh.hh: Fix doc and typo.
      
      	Tests.
      	* tests/Makefile.am: Update for draw.
      	* tests/draw: New subdirectory for draw tests.
      	* tests/draw/Makefile.am: New Makefile.am for draw.
      	* tests/line2d.cc: Remove ... .
      	* tests/draw/line.cc: and replace here and update test.
      	* tests/mesh_image.cc: Remove ... .
      	* tests/draw/mesh.cc: ... and replace here and update test.
      
      	Fix level bug.
      	* mln/level/fill.hh: Fix specialization bug.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1500 4aad255d-cdde-0310-9447-f3009e2ae8c0
      100a56d1
  2. 19 Nov, 2007 3 commits
    • Guillaume Duhamel's avatar
      Review logical subdirectory and add tests. · 6c39d2c0
      Guillaume Duhamel authored
      
      	Update
      	* mln/logical/and.hh,
      	* mln/logical/and_not.hh,
      	* mln/logical/not.hh,
      	* mln/logical/or.hh: Add tracing, generic namespace, remove
      	specializations and check typo.
      
      	* mln/logical/and.spe.hh,
      	* mln/logical/and_not.spe.hh,
      	* mln/logical/not.spe.hh,
      	* mln/logical/or.spe.hh: New specializations for logical.
      
      	Tests
      	* tests/Makefile.am: Add logical subdirectory.
      	* tests/logical: New subdirectory for logical checking.
      	* tests/logical/Makefile.am: Add test to check.
      	* tests/logical/and.cc,
      	* tests/logical/and_not.cc,
      	* tests/logical/not.cc,
      	* tests/logical/or.cc: New tests for logical.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1499 4aad255d-cdde-0310-9447-f3009e2ae8c0
      6c39d2c0
    • Guillaume Duhamel's avatar
      Review arith subdirectory and add tests. · b75ead70
      Guillaume Duhamel authored
      
      	* mln/arith/min.hh,
      	* mln/arith/revert.hh,
      	* mln/arith/times.hh: Add tracing, and remove specializations.
      
      	* mln/arith/min.spe.hh,
      	* mln/arith/revert.spe.hh,
      	* mln/arith/times.spe.hh: New specializations file for arith
      	algorithms.
      
      	* tests/Makefile.am,
      	* tests/arith/Makefile.am: New Makefile for checking tests.
      
      
      	* tests/arith: New subdirectory for arith tests.
      
      	* tests/arith_plus.cc: Remove ...
      	* tests/arith/plus.cc: ... and replace here.
      
      	* tests/arith/minus.cc,
      	* tests/arith/revert.cc,
      	* tests/arith/times.cc: New tests for arith.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1498 4aad255d-cdde-0310-9447-f3009e2ae8c0
      b75ead70
    • Guillaume Duhamel's avatar
      Update level tree test. · efa4d420
      Guillaume Duhamel authored
      	* tests/border/adjust.cc: New file to test adjsut.
      	* tests/border/find.cc: New.
      
      	Update
      	* tests/border/get.cc,
      	* tests/border/resize.cc: Update these tests.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1497 4aad255d-cdde-0310-9447-f3009e2ae8c0
      efa4d420
  3. 16 Nov, 2007 7 commits
    • Guillaume Duhamel's avatar
      Add border subdirectory in test and add/update test. · 905f8bff
      Guillaume Duhamel authored
      
      	* tests/border: New subdirectory for border test.
      	* tests/Makefile.am: Add border subdirectory.
      
      	* tests/border/duplicate.cc: New test for duplicate.
      	* tests/border/fill.cc: New test for duplicate.
      	* tests/border_get.cc: Remove ...
      	* tests/border/get.cc: ... and replace here.
      	* tests/border/resize.cc: Move test for resize.
      
      	* tests/level/median_dir.cc,
      	* tests/level/median_fast.cc,
      	* tests/level/median_hline2d.cc: Fix path for image.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1496 4aad255d-cdde-0310-9447-f3009e2ae8c0
      905f8bff
    • Simon Nivault's avatar
      Review the mln/canvas/browsing directory. · 576b4958
      Simon Nivault authored
      	* mln/canvas/browsing/dir_ricard51.hh: Rename as...
      	* mln/canvas/browsing/dir_struct_elt_incr_update.hh: ...this, Document.
      	* mln/canvas/browsing/directional.hh: Document.
      	* mln/canvas/browsing/fwd.hh: Document.
      	* mln/canvas/browsing/snake_fwd.hh: Document.
      	* tests/canvas/browsing/dir_struct_elt_incr_update.cc: New.
      	* tests/canvas/browsing/directional.cc: New.
      	* tests/canvas/browsing/fwd.cc: New.
      	* tests/canvas/browsing/snake_fwd.cc: New.
      	* tests/canvas/browsing: New.
      	* tests/canvas: New.
      	* tests/canvas_browsing_fwd.cc: Remove.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1495 4aad255d-cdde-0310-9447-f3009e2ae8c0
      576b4958
    • Guillaume Duhamel's avatar
      Add tracing for level algorithm and split specialization of level::transform. · 088cb6bf
      Guillaume Duhamel authored
      
      	* mln/level/compute.hh,
      	* mln/level/fill.hh,
      	* mln/level/median.hh,
      	* mln/level/paste.hh,
      	* mln/level/saturate.hh,
      	* mln/level/stretch.hh,
      	* mln/level/to_enc.hh,
      	* mln/level/was.median.hh: Add tracing for algorithm.
      
      	* mln/level/transform.hh: Remove specialization.
      	* mln/level/transform.spe.hh: New file for specialization for
      	transform.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1494 4aad255d-cdde-0310-9447-f3009e2ae8c0
      088cb6bf
    • Guillaume Duhamel's avatar
      Fix Makefile for level test. · 39115fe6
      Guillaume Duhamel authored
      	* tests/Makefile.am: Add subdir level.
      	* tests/level/Makefile.am: Remove one test.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1493 4aad255d-cdde-0310-9447-f3009e2ae8c0
      39115fe6
    • Guillaume Duhamel's avatar
      Add Makefile.am for level test. · 7924ba8a
      Guillaume Duhamel authored
      
      	* tests/level/Makefile.am: New Makefile for level test.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1492 4aad255d-cdde-0310-9447-f3009e2ae8c0
      7924ba8a
    • Guillaume Duhamel's avatar
      Add simple tests for level. · f86f3095
      Guillaume Duhamel authored
      	* tests/level/compare.cc,
      	* tests/level/compute.cc,
      	* tests/level/saturate.cc,
      	* tests/level/sort_points.cc,
      	* tests/level/stretch.cc: New test for level.
      
      	* tests/level/median.cc,
      	* tests/level/paste.cc,
      	* tests/level/transform.cc: Upadate test.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1491 4aad255d-cdde-0310-9447-f3009e2ae8c0
      f86f3095
    • Matthieu Garrigues's avatar
      Review the mln/geom directory. · 30a04302
      Matthieu Garrigues authored
      
      	* mln/geom/seeds2tiling.hh: Clean dead code, update doc. Fixme for
                guillaume : Review the documentation.
      	* mln/geom/seeds2tiling_with_chamfer.hh: likewise.
      
      	Add unit tests.
      
      	* tests/geom/bbox.cc: New.
      	* tests/geom/max_col.cc: New.
      	* tests/geom/max_ind.cc: New.
      	* tests/geom/max_row.cc: New.
      	* tests/geom/max_sli.cc: New.
      	* tests/geom/min_col.cc: New.
      	* tests/geom/min_ind.cc: New.
      	* tests/geom/min_row.cc: New.
      	* tests/geom/min_sli.cc: New.
      	* tests/geom/ncols.cc: New.
      	* tests/geom/ninds.cc: New.
      	* tests/geom/nrows.cc: New.
      	* tests/geom/nslis.cc: New.
      	* tests/geom/pmin_pmax.cc: New.
      	* tests/geom/shift.cc: New.
      	* tests/geom/sym.cc: New.
      	* tests/geom: New.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1490 4aad255d-cdde-0310-9447-f3009e2ae8c0
      30a04302
  4. 15 Nov, 2007 9 commits
    • Guillaume Duhamel's avatar
      Update level and add specialization for algorithm. · d052bab5
      Guillaume Duhamel authored
      
      	* mln/level/assign.hh,
      	* mln/level/fill.hh,
      	* mln/level/take.hh,
      	* mln/level/apply.hh: Remove specialization stuff and add
      	generic namespace.
      
      	Specialization files
      	* mln/level/assign.spe.hh,
      	* mln/level/fill.spe.hh,
      	* mln/level/take.spe.hh,
      	* mln/level/apply.spe.hh: New file for specialization.
      
      	Update
      	* mln/level/abs.hh,
      	* mln/level/all.hh,
      	* mln/level/compare.hh,
      	* mln/level/sort_points.hh: Update.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1489 4aad255d-cdde-0310-9447-f3009e2ae8c0
      d052bab5
    • Guillaume Duhamel's avatar
      Update tests/level. · 06948d30
      Guillaume Duhamel authored
      
      	* tests/level/fill.cc: Update.
      	* tests/level/take.cc: New simple test for level:take.
      
      	* tests/level/approx_median.cc: Rename this file into ...
      	* tests/level/approx/median.cc: ... this.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1488 4aad255d-cdde-0310-9447-f3009e2ae8c0
      06948d30
    • Matthieu Garrigues's avatar
      Review the debug namespace. · 8224374e
      Matthieu Garrigues authored
      
      	* mln/debug/format.hh: Fix style.
      	* mln/debug/iota.hh: Move spezialisations to iota.spe.hh.
      	* mln/debug/iota.spe.hh: New, specializations of iota.
      
      	* mln/debug/println.hh: Move spezialisations to println.spe.hh.
      	* mln/debug/println.spe.hh: New, specializations of println.
      	* mln/debug/println_with_border.hh: Move spezialisations to
                println_with_border.spe.hh.
      	* mln/debug/println_with_border.spe.hh: New, specializations of
                println.
      
      	* tests/debug_iota.cc: New, add a test for iota.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1487 4aad255d-cdde-0310-9447-f3009e2ae8c0
      8224374e
    • Simon Nivault's avatar
      Fix the guard oh all headers. · 2643ae30
      Simon Nivault authored
      
      	* mln/canvas/browsing/dir_ricard51.hh,
      	* mln/canvas/browsing/directional.hh,
      	* mln/convert/to_p_array.hh,
      	* mln/convert/to_p_set.hh,
      	* mln/core/concept/generalized_pixel.hh,
      	* mln/core/concept/point_iterator.hh,
      	* mln/core/concept/value_iterator.hh,
      	* mln/core/image1d.hh,
      	* mln/core/image2d.hh,
      	* mln/core/image3d.hh,
      	* mln/core/internal/image_if_base.hh,
      	* mln/core/mesh_p.hh,
      	* mln/core/mesh_psite.hh,
      	* mln/core/p_array.hh,
      	* mln/core/p_array_piter.hh,
      	* mln/core/p_priority_queue_fast.hh,
      	* mln/core/p_queue.hh,
      	* mln/core/p_queue_fast.hh,
      	* mln/core/p_set.hh,
      	* mln/core/pixter1d.hh,
      	* mln/core/pixter2d.hh,
      	* mln/core/pixter3d.hh,
      	* mln/core/trait/op_mult.hh,
      	* mln/fun/i2v/all_to.hh,
      	* mln/level/memcpy_.hh,
      	* mln/level/memset_.hh,
      	* mln/metal/converts_to.hh,
      	* mln/metal/goes_to.hh,
      	* mln/metal/if.hh,
      	* mln/metal/is.hh,
      	* mln/metal/is_a.hh,
      	* mln/metal/is_not.hh,
      	* mln/metal/none.hh,
      	* mln/win/backdiag2d.hh,
      	* mln/win/cube3d.hh,
      	* mln/win/diag2d.hh,
      	* mln/win/disk2d.hh,
      	* mln/win/hline2d.hh,
      	* mln/win/line.hh,
      	* mln/win/octagon2d.hh,
      	* mln/win/rectangle2d.hh,
      	* mln/win/segment1d.hh,
      	* mln/win/vline2d.hh: Fix.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1486 4aad255d-cdde-0310-9447-f3009e2ae8c0
      2643ae30
    • Guillaume Duhamel's avatar
      Move level test in level tests repertory. · 6a793b1a
      Guillaume Duhamel authored
      
      	* tests/level/abs.cc: New.
      	* tests/level/apply.cc: New.
      	* tests/level/approx: New.
      	* tests/level/approx_median.cc: New.
      	* tests/level/assign.cc: New.
      	* tests/level/fill.cc: New.
      	* tests/level/median.cc: New.
      	* tests/level/median_dir.cc: New.
      	* tests/level/median_fast.cc: New.
      	* tests/level/median_hline2d.cc: New.
      	* tests/level/memcpy_.cc: New.
      	* tests/level/memset_.cc: New.
      	* tests/level/naive/median.cc: New.
      	* tests/level/naive: New.
      	* tests/level/paste.cc: New.
      	* tests/level/transform.cc: New.
      	* tests/level: New.
      	* tests/level_approx_median.cc: Remove.
      	* tests/level_assign.cc: Remove.
      	* tests/level_fill.cc: Remove.
      	* tests/level_median.cc: Remove.
      	* tests/level_median_dir.cc: Remove.
      	* tests/level_median_fast.cc: Remove.
      	* tests/level_median_hline2d.cc: Remove.
      	* tests/level_memcpy_.cc: Remove.
      	* tests/level_memset_.cc: Remove.
      	* tests/level_naive_median.cc: Remove.
      	* tests/level_paste.cc: Remove.
      	* tests/level_transform.cc: Remove.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1485 4aad255d-cdde-0310-9447-f3009e2ae8c0
      6a793b1a
    • Matthieu Garrigues's avatar
      Review the mln/literal directory. · 5b4f1257
      Matthieu Garrigues authored
      
      	* mln/literal/black.hh,
      	* mln/literal/colors.hh,
      	* mln/literal/grays.hh,
      	* mln/literal/one.hh,
      	* mln/literal/origin.hh,
      	* mln/literal/white.hh,
      	* tests/literal/black.cc: Use extern const ref, not static. Move
                impl. within MLN_INCLUDE_ONLY.
      
      	Move/add some unit tests.
      
      	* tests/literal/literal_medium_gray.cc: Rename as...
      	* tests/literal/medium_gray.cc: ...this.
      	* tests/literal/literal_zero.cc: Rename as...
      	* tests/literal/zero.cc: ...this.
      	* tests/literal/one.cc: New.
      	* tests/literal/white.cc: New.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1484 4aad255d-cdde-0310-9447-f3009e2ae8c0
      5b4f1257
    • Matthieu Garrigues's avatar
      Move literals tests into tests/literal directory. · 89bf2317
      Matthieu Garrigues authored
      
      	* tests/literal: New.
      	* tests/literal_medium_gray.cc: Rename as...
      	* tests/literal/literal_medium_gray.cc: ...this.
      	* tests/literal_zero.cc: Rename as...
      	* tests/literal/literal_zero.cc: ...this.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1483 4aad255d-cdde-0310-9447-f3009e2ae8c0
      89bf2317
    • Matthieu Garrigues's avatar
      Fix a bug in io::pbm::save. · b96e194c
      Matthieu Garrigues authored
      
      	* mln/io/pbm/save.hh: Fix a shift of 1 pixel in the image
      	saved.
      	* tests/io_pbm.cc: Update the test to ouput more pbm images.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1482 4aad255d-cdde-0310-9447-f3009e2ae8c0
      b96e194c
    • Thierry Geraud's avatar
      Fix the initialization of mln::literal::zero. · f215843f
      Thierry Geraud authored
      	* mln/literal/zero.hh (mln::literal::zero): s/static/extern const/.
      	Use a reference.
      	Move implementation within MLN_INCLUDE_ONLY.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1481 4aad255d-cdde-0310-9447-f3009e2ae8c0
      f215843f
  5. 14 Nov, 2007 1 commit
    • Thierry Geraud's avatar
      Change value index type is now 'unsigned'; several fixes. · 31c43fbd
      Thierry Geraud authored
      	Use "out foo(in)" instead of "void foo(in, out)".
      
      	* mln/labeling/level.hh: Do it.
      	* mln/labeling/foreground.hh: Do it.
      	* mln/labeling/background.hh: Do it.
      	* tests/labeling_algo.cc: Update.
      	* tests/labeling_level_fast.cc: Update.
      	* tests/labeling_foreground.cc: Update.
      	* tests/labeling_estimate.cc: Update.
      	* tests/clock_test.cc: Update.
      	* tests/seed2tiling.cc: Update.
      
      	Add another labeling algorithm for comparison purpose.
      	
      	* mln/labeling/blobs.hh: New.
      	* tests/labeling_blobs.cc: New.
      
      	Change value index type from std::size_t to unsigned.
      	
      	* mln/core/concept/value_set.hh: Do it.
      	* mln/core/concept/doc/value_set.hh: Update.
      	* mln/core/image2d.hh: Layout.
      	* mln/accu/histo.hh: Update.
      	* mln/value/other.hh: Update.
      	* mln/value/lut_vec.hh: Update.
      	* mln/value/float01_.hh: Update.
      	* mln/value/internal/iterable_set.hh: Update.
      	* mln/value/label.hh: Update.
      	* mln/convert/to_image.hh: Update.
      
      	Misc.
      	
      	* tests/util_ordpair.cc: New.
      	* tests/core_p_set.cc: Layout.
      	* tests/convert_to_p_vec.cc: Remove; now obsolete
      	cause replaced by tests/convert_to_p_array.cc.
      	* tests/value_bool.cc: New.
      	* mln/core/cast_image.hh (trait): New specialization.
      	* mln/value/props.hh (value_at_index, index_of_value):
      	Update.
      	Explicitly compute with int/unsigned.
      	* mln/value/float01.hh: Fix missing includes.
      	* mln/convert/to_p_set.hh: Layout.
      	* mln/io/pnm/save.hh: Fix missing std::.
      	* mln/io/pnm/load.hh: Likewise.
      	* mln/io/pbm/load.hh: Fix.
      	* mln/util/tree_fast_to_image.hh (q): Rename as...
      	(l): ...this.
      	* mln/util/ordpair.hh: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1480 4aad255d-cdde-0310-9447-f3009e2ae8c0
      31c43fbd
  6. 13 Nov, 2007 10 commits
  7. 12 Nov, 2007 6 commits