1. 15 Mar, 2009 1 commit
    • Thierry Geraud's avatar
      Add routines to deal with images of accumulators. · 16705db8
      Thierry Geraud authored
      	* mln/accu/image: New directory.
      	* mln/accu/image/init.hh: New.
      	* mln/accu/image/take.hh: New.
      	* mln/accu/image/set_value.hh: New.
      	* mln/accu/image/all.hh: New.
      	* mln/accu/image/take_as_init.hh: New.
      	* mln/accu/image/to_result.hh: New.
      	* mln/accu/all.hh: Update.
      	* tests/accu/image: New.
      	* tests/accu/image/to_result.cc: New.
      	* tests/accu/image/init.cc: New.
      	* tests/accu/image/take.cc: New.
      	* tests/accu/image/Makefile.am: New.
      	* tests/accu/image/set_value.cc: New.
      	* tests/accu/image/take_as_init.cc: New.
      	* tests/accu/Makefile.am: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3532 4aad255d-cdde-0310-9447-f3009e2ae8c0
      16705db8
  2. 14 Mar, 2009 1 commit
    • Edwin Carlinet's avatar
      Disambiguate component tree iterators. · 85af2a47
      Edwin Carlinet authored
      	* mln/morpho/tree/data.hh:
      	  Add children image to get instant access to child relationship.
      	  Remove mln_fwd_piter, mln_bkd_piter and mln_piter definition
      	from tree structure.
      	  Add mln_up_site_piter, mln_dn_site_piter, mln_up_node_piter,
      	mln_dn_node_piter iterator adaptator.
      	  Add mln_preorder_piter, the preorder tree traversal
      	iterator.
       	  Move inline code out of class definition.
      	* sandbox/edwin/tree/propagate_node.hh: Fix with new iterator,
      	but not yet optimized with new tree structure.
      	* sandbox/edwin/tree/propagate_value.hh: Fix with new
      	iterator, but not yet optimized with new tree structure.
      	* sandbox/edwin/tree/propagation.cc: Update test file.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3531 4aad255d-cdde-0310-9447-f3009e2ae8c0
      85af2a47
  3. 13 Mar, 2009 12 commits
    • Étienne Folio's avatar
      Classification of 2D images with their respective RGB histograms. · 90c869a4
      Étienne Folio authored
      	* sandbox/folio/mln/histo/classify_with_histo_rgb.hh: New
      	algorithm that classifies an image 2d with its rgb histogram.
      	* sandbox/folio/mln/histo/compute_histo_rgb.hh: Use component of
      	value's trait.
      	* sandbox/folio/test/histo/classify_with_histo_rgb.cc: New test
      	for the classification of 2d images with their respective RGB
      	histograms.
      	* sandbox/folio/test/histo/compute_histo_rgb.cc: Correct an include.
      	* sandbox/folio/test/histo/compute_histo_rgb_from_ppm.cc: New test
      	for building an histogram with a ppm image.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3530 4aad255d-cdde-0310-9447-f3009e2ae8c0
      90c869a4
    • Étienne Folio's avatar
      Add dimendions and components types in values' traits. · d21123aa
      Étienne Folio authored
      	Everything in the title, same for each file.
      	* mln/trait/value_.hh: .
      	* mln/value/float01.hh: .
      	* mln/value/float01_.hh: .
      	* mln/value/float01_f.hh: .
      	* mln/value/graylevel.hh: .
      	* mln/value/graylevel_f.hh: .
      	* mln/value/hsl.hh: .
      	* mln/value/int_s.hh: .
      	* mln/value/int_u.hh: .
      	* mln/value/int_u_sat.hh: .
      	* mln/value/label.hh: .
      	* mln/value/rgb.hh: .
      	* mln/value/sign.hh: .
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3529 4aad255d-cdde-0310-9447-f3009e2ae8c0
      d21123aa
    • Étienne Folio's avatar
      Orthograph correction in error message. · 7c9704d8
      Étienne Folio authored
      	* mln/canvas/labeling.hh: Orthograph.
      	* mln/labeling/blobs.hh: Orthograph.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3528 4aad255d-cdde-0310-9447-f3009e2ae8c0
      7c9704d8
    • Guillaume Lazzara's avatar
      Fix tutorial compilation. · 00679074
      Guillaume Lazzara authored
      	* milena/doc/tutorial/tutorial.tex: Fix syntax errors.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3527 4aad255d-cdde-0310-9447-f3009e2ae8c0
      00679074
    • Fabien Freling's avatar
      Find threshold value thanks to watershed. · f3e1dabe
      Fabien Freling authored
      	* fabien/bin/dumpi12_to_pgm.cc: New tool.
      	* fabien/igr/Makefile: Update.
      	* fabien/igr/check.sh: Update.
      	* fabien/igr/graph.cc: Update.
      	* fabien/igr/med.cc: Find median region value.
      	* fabien/igr/thres.cc: Threshold image.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3526 4aad255d-cdde-0310-9447-f3009e2ae8c0
      f3e1dabe
    • Thierry Geraud's avatar
      Fix missing trace in mln::test routines. · 4f4b9635
      Thierry Geraud authored
      	* mln/level/compare.hh,
      	* mln/test/positive.hh,
      	* mln/test/predicate.hh: Add trace.
      	Upgrade doc style.
      	* tests/level/compare.cc: Upgrade doc style.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3525 4aad255d-cdde-0310-9447-f3009e2ae8c0
      4f4b9635
    • Étienne Folio's avatar
      Sandbox reorganization. · cfca543a
      Étienne Folio authored
      	Moved again many old things...
      	* folio/dt/canvas_dt.hh: Remove.
      	* folio/dt/chamfer.hh: Remove.
      	* folio/dt/cp.hh: Remove.
      	* folio/dt/dmap.hh: Remove.
      	* folio/dt/path.hh: Remove.
      	* folio/dt/raw_cp_fast.hh: Remove.
      	* folio/dt/raw_cp_slow.hh: Remove.
      	* folio/dt/raw_dmap_fast.hh: Remove.
      	* folio/dt/raw_dmap_slow.hh: Remove.
      	* folio/dt/raw_path_fast.hh: Remove.
      	* folio/dt/raw_path_slow.hh: Remove.
      	* folio/dt: Remove.
      	* folio/dt_old/canevas_dt.hh: Remove.
      	* folio/dt_old/chamfer.cc: Remove.
      	* folio/dt_old/distance_front.cc: Remove.
      	* folio/dt_old/distance_front_new.hh: Remove.
      	* folio/dt_old/dt.cc: Remove.
      	* folio/dt_old/dt.hh: Remove.
      	* folio/dt_old/dt.spe.hh: Remove.
      	* folio/dt_old/naive.cc: Remove.
      	* folio/dt_old/psn.cc: Remove.
      	* folio/dt_old/psn_log.cc: Remove.
      	* folio/dt_old: Remove.
      	* folio/mln/dt/dt_old: New.
      	* folio/mln/dt: New.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3524 4aad255d-cdde-0310-9447-f3009e2ae8c0
      cfca543a
    • Thierry Geraud's avatar
      Add an identity site iterator adaptor. · 3160698f
      Thierry Geraud authored
      	* mln/core/internal/piter_identity.hh: New.
      	* mln/core/internal/site_iterator_base.hh (todo): Remove; done.
      	* mln/core/internal/site_set_iterator_base.hh (pset): New.
      	Upgrade file doc style.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3523 4aad255d-cdde-0310-9447-f3009e2ae8c0
      3160698f
    • Étienne Folio's avatar
      Reorganization of the sandbox. · 6e4e4bbf
      Étienne Folio authored
      	Moved a lot of things...
      	* folio/canevas_dt.hh: Remove.
      	* folio/chamfer.cc: Remove.
      	* folio/distance_front.cc: Remove.
      	* folio/distance_front_new.hh: Remove.
      	* folio/dt.cc: Remove.
      	* folio/dt.hh: Remove.
      	* folio/dt.spe.hh: Remove.
      	* folio/dt_old/canevas_dt.hh: New.
      	* folio/dt_old/chamfer.cc: New.
      	* folio/dt_old/distance_front.cc: New.
      	* folio/dt_old/distance_front_new.hh: New.
      	* folio/dt_old/dt.cc: New.
      	* folio/dt_old/dt.hh: New.
      	* folio/dt_old/dt.spe.hh: New.
      	* folio/dt_old/naive.cc: New.
      	* folio/dt_old/psn.cc: New.
      	* folio/dt_old/psn_log.cc: New.
      	* folio/dt_old: New.
      	* folio/histo/compute_histo_rgb.hh: Remove.
      	* folio/histo: Remove.
      	* folio/mln/histo: New.
      	* folio/mln/value: New.
      	* folio/mln: New.
      	* folio/naive.cc: Remove.
      	* folio/psn.cc: Remove.
      	* folio/psn_log.cc: Remove.
      	* folio/test/canvas/dt.hh: Remove.
      	* folio/test/canvas/dt.spe.hh: Remove.
      	* folio/test/canvas: Remove.
      	* folio/test/chamfer.cc: Remove.
      	* folio/test/dt.cc: Remove.
      	* folio/test/dt/canvas: New.
      	* folio/test/dt/chamfer.cc: New.
      	* folio/test/dt/dt.cc: New.
      	* folio/test/dt/dt_bench.cc: New.
      	* folio/test/dt/dt_maze.cc: New.
      	* folio/test/dt/naive.cc: New.
      	* folio/test/dt/psn.cc: New.
      	* folio/test/dt/psn_log.cc: New.
      	* folio/test/dt/tmp.ppm: New.
      	* folio/test/dt: New.
      	* folio/test/dt_bench.cc: Remove.
      	* folio/test/dt_maze.cc: Remove.
      	* folio/test/naive.cc: Remove.
      	* folio/test/psn.cc: Remove.
      	* folio/test/psn_log.cc: Remove.
      	* folio/test/tmp.ppm: Remove.
      	* folio/value/pipo.hh: Remove.
      	* folio/value: Remove.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3522 4aad255d-cdde-0310-9447-f3009e2ae8c0
      6e4e4bbf
    • Étienne Folio's avatar
      Add traits in pipo value type. · 9e4362c3
      Étienne Folio authored
      	* folio/value/pipo.hh: Add dimension and components types in the
      	pipo type's traits.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3521 4aad255d-cdde-0310-9447-f3009e2ae8c0
      9e4362c3
    • Étienne Folio's avatar
      HistoRGB out image size correction. · ba4e0f44
      Étienne Folio authored
      	* folio/histo/compute_histo_rgb.hh: Computes now the right
      	dimensions of the histogram.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3520 4aad255d-cdde-0310-9447-f3009e2ae8c0
      ba4e0f44
    • Frdric Bour's avatar
      fun update: add unary & binary composition. · d0dfc70f
      Frdric Bour authored
      	
      	* milena/sandbox/fred/fun/cos.hh,
      	* milena/sandbox/fred/fun/abs.hh:
      	  WIP, switching from solve to nsolve.
      	* milena/sandbox/fred/fun/assignability.hh: New.
      	  Traits to check function properties using sfinae (should be renamed).
      	* milena/sandbox/fred/fun/binary.hh: New. Binary function
      	* milena/sandbox/fred/fun/compose.hh: New. Compose function.
      	* milena/sandbox/fred/fun/composition.hh: New.
      	  Composition result objects definition.
      	* milena/sandbox/fred/fun/cos.cc: New. Test for composition.
      	* milena/sandbox/fred/fun/fun.cc: WIP.
      	* milena/sandbox/fred/fun/meta_function.hh:
                Added Meta_Function_v2v and Meta_Function_vv2v categories.
      	* milena/sandbox/fred/fun/nsolve.hh,
      	* milena/sandbox/fred/fun/nsolve_binary.hh,
      	* milena/sandbox/fred/fun/nsolve_unary.hh: New.
      	  Original trait solver modification now based
      	  on typename flag instead of template <class> class
      	* milena/sandbox/fred/fun/thru_morpher.hh: WIP.
      	* milena/sandbox/fred/fun/unary.hh: Update & redesign,
      	  especially for composition.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3519 4aad255d-cdde-0310-9447-f3009e2ae8c0
      d0dfc70f
  4. 12 Mar, 2009 4 commits
  5. 11 Mar, 2009 5 commits
  6. 10 Mar, 2009 7 commits
    • Edwin Carlinet's avatar
      Fix bug in leaf propagation. · c229bb5b
      Edwin Carlinet authored
      	* mln/morpho/tree/data.hh: Fix leaves calculus.
      	* sandbox/edwin/tree/propagate.hh: Fix bugs in propagations.
      	* sandbox/edwin/tree/tree.cc: Test file.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3509 4aad255d-cdde-0310-9447-f3009e2ae8c0
      c229bb5b
    • Guillaume Lazzara's avatar
      Make io::dump::* more robust and improve dump format. · ad2b09e0
      Guillaume Lazzara authored
      	* mln/io/dump/load.hh,
      	* mln/io/dump/save.hh:
      	  - Add new information in the header.
      	  - Add more assertion on value type, dimension and file type.
      
      	  Important note: Old dump files are not compatible with this new
      	  format.
      
      	* mln/trait/value_.hh: add a new macro mln_trait_value_name.
      
      	* mln/value/builtin/floatings.hh
      	* mln/value/builtin/integers.hh
      	* mln/value/builtin/symbolics.hh
      	* mln/value/int_s.hh
      	* mln/value/int_u.hh
      	* mln/value/label.hh
      	* mln/value/rgb.hh: add name() member to value_<> specialization.
      	  It returns the type name as a const char*.
      
      	* tests/io/dump/dump.cc: add new tests with builtin types.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3508 4aad255d-cdde-0310-9447-f3009e2ae8c0
      ad2b09e0
    • Guillaume Lazzara's avatar
      Various small fixes. · bde8e97c
      Guillaume Lazzara authored
      	* headers.mk: update dist header list.
      
      	* mln/algebra/vec.hh: add contructor and operator= with literal::zero.
      
      	* mln/canvas/distance_front.hh: avoid a warning.
      
      	* mln/fun/i2v/array.hh,
      	* mln/fun/l2l/relabel.hh,
      	* mln/convert/from_to.hxx: add new from_to over_loads.
      
      	* mln/convert/impl/all.hh,
      	* mln/convert/impl/from_unsigned_to_value.hh: add a new from_to
      	implementation to fix ambiguities with from_int_to_value and
      	from_float_to_value.
      
      	* mln/win/essential.hh,
      	* mln/core/internal/image_identity.hh: update doc.
      
      	* mln/core/routine/essential.hh: fix includes.
      
      	* mln/fun/essential.hh: include fun/meta/essential.hh.
      
      	* mln/util/soft_heap.hh: fix guards.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3507 4aad255d-cdde-0310-9447-f3009e2ae8c0
      bde8e97c
    • Guillaume Lazzara's avatar
      Add meta::first and meta::second. · 7339c0c4
      Guillaume Lazzara authored
      	* mln/fun/meta/all.hh,
      	* mln/fun/meta/essential.hh: include new headers.
      
      	* mln/fun/meta/first.hh,
      	* mln/fun/meta/second.hh: meta function to access util::couple data.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3506 4aad255d-cdde-0310-9447-f3009e2ae8c0
      7339c0c4
    • Guillaume Lazzara's avatar
      * configure.ac: configure tests/morpho/opening/approx. · 49fe5fe6
      Guillaume Lazzara authored
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3505 4aad255d-cdde-0310-9447-f3009e2ae8c0
      49fe5fe6
    • Guillaume Lazzara's avatar
      Split Scribo's code into several routines. · cf9a6da9
      Guillaume Lazzara authored
      	* scribo/Makefile: update include path.
      
      	* scribo/core/central_sites.hh,
      	* scribo/core/component_bboxes.hh,
      	* scribo/core/erase_bboxes.hh,
      	* scribo/core/macros.hh,
      	* scribo/debug/save_label_image.hh,
      	* scribo/debug/save_linked_textbboxes_image.hh,
      	* scribo/debug/save_table_image.hh,
      	* scribo/debug/save_textbboxes_image.hh,
      	* scribo/draw/bounding_box_links.hh,
      	* scribo/draw/bounding_boxes.hh,
      	* scribo/make/debug_filename.hh,
      	* scribo/make/influence_zone_graph.hh,
      	* scribo/table/align_lines_horizontaly.hh,
      	* scribo/table/align_lines_verticaly.hh,
      	* scribo/table/connect_horizontal_lines.hh,
      	* scribo/table/connect_vertical_lines.hh,
      	* scribo/table/erase.hh,
      	* scribo/table/extract_lines_with_rank.hh,
      	* scribo/table/internal/align_lines.hh,
      	* scribo/table/internal/connect_lines.hh,
      	* scribo/table/internal/repair_lines.hh,
      	* scribo/table/repair_horizontal_lines.hh,
      	* scribo/table/repair_vertical_lines.hh,
      	* scribo/text/extract_bboxes.hh,
      	* scribo/text/grouping/group_from_double_link.hh,
      	* scribo/text/grouping/group_from_multiple_links.hh,
      	* scribo/text/grouping/group_from_single_link.hh,
      	* scribo/text/grouping/group_with_multiple_links.hh,
      	* scribo/text/grouping/group_with_single_left_link.hh,
      	* scribo/text/grouping/group_with_single_right_link.hh,
      	* scribo/text/grouping/internal/find_root.hh,
      	* scribo/text/grouping/internal/init_link_array.hh,
      	* scribo/text/grouping/internal/update_link_array.hh,
      	* scribo/text/grouping/internal/update_link_graph.hh,
      	* scribo/text/recognition.hh: new routines.
      
      	* scribo/photo.cc,
      	* scribo/table.cc: move...
      	* scribo/src/photo.cc,
      	* scribo/src/table.cc: ... here.
      
      	* scribo/src/extract_text_double_link.cc,
      	* scribo/src/extract_text_multiple_links.cc,
      	* scribo/src/extract_text_single_link.cc: new small test related to
      	text extraction.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3504 4aad255d-cdde-0310-9447-f3009e2ae8c0
      cf9a6da9
    • Fabien Freling's avatar
      Implement 3D watershed and various tools. · 1c673751
      Fabien Freling authored
      	* fabien/bin/dicom2pgm.cc: New tool.
      	* fabien/bin/dump2pgm.cc: New tool.
      	* fabien/bin/dump2pgm8b.cc: New tool.
      	* fabien/bin/dump_mask.cc: New tool.
      	* fabien/bin/filetype.hh: New.
      	* fabien/bin/pnms2dump.cc: New tool.
      	* fabien/igr/Makefile: Update.
      	* fabien/igr/check2d_wsd.sh: Shell script for testing.
      	* fabien/igr/check3d_wsd.sh: Shell script for testing.
      	* fabien/igr/watershed.cc: Rename this...
      	* fabien/igr/watershed.hh: ...into this.
      	* fabien/igr/watershed2d.cc: Implement 2D watershed.
      	* fabien/igr/watershed3d.cc: Implement 3D watershed.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3503 4aad255d-cdde-0310-9447-f3009e2ae8c0
      1c673751
  7. 09 Mar, 2009 4 commits
  8. 08 Mar, 2009 1 commit
    • Frdric Bour's avatar
      Add work on meta functions and thru morpher. · 8c61652a
      Frdric Bour authored
      	* sandbox/fred/fun/abs.hh: New.
      	* sandbox/fred/fun/cos.hh: New.
      	* sandbox/fred/fun/fun.cc: New.
      	  Some tests don't pass, see FIXMEs (operator==(rgb::red_t,int) ?)
      	* sandbox/fred/fun/inc.hh: New.
      	* sandbox/fred/fun/meta_function.hh: New.
      	* sandbox/fred/fun/norm.hh: New.
      	* sandbox/fred/fun/red.hh: New.
      	* sandbox/fred/fun/thru.cc: New.
      	* sandbox/fred/fun/thru_morpher.hh: New.
      	  Constness of thru_image has to be corrected.
      	* sandbox/fred/fun/unary.hh: New.
      	* sandbox/fred/fun: New.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3498 4aad255d-cdde-0310-9447-f3009e2ae8c0
      8c61652a
  9. 06 Mar, 2009 5 commits