1. 26 Mar, 2009 2 commits
    • Guillaume Lazzara's avatar
      Update Scribo's code. · be67709a
      Guillaume Lazzara authored
      	* scribo/Makefile: add a new target.
      
      	* scribo/Makefile.am,
      	* scribo/scribo.mk,
      	* scribo/src/Makefile.am,
      	* scribo/tests/Makefile.am,
      	* scribo/tests/data.hh.in,
      	* scribo/tests/filter/Makefile.am,
      	* scribo/tests/text/Makefile.am,
      	* scribo/tests/table/Makefile.am: prepare build system integration.
      
      	* scribo/text/grouping/group_with_single_left_link.hh,
      	* scribo/text/grouping/group_with_single_right_link.hh,
      	* scribo/text/grouping/group_with_several_right_links.hh,
      	* scribo/text/grouping/group_with_several_left_links.hh,
      	* scribo/debug/save_linked_textbboxes_image.hh: do not compute mass
      	centers anymore.
      
      	* scribo/draw/bounding_box_links.hh: remove duplicate preconditions.
      
      	* scribo/tests/table/repair_lines.cc
      	* scribo/tests/filter/small_and_large_bboxes.cc
      	* scribo/tests/table/extract_lines_with_rank.cc
      	* scribo/src/table_rebuild_opening.cc
      	* scribo/src/table_rebuild_rank.cc
      	* scribo/src/table_extract.cc
      	* scribo/src/morpho.cc,
      	* scribo/filter/large_components.hh: fix.
      
      	* scribo/text/grouping/group_from_single_link.hh,
      	* scribo/text/grouping/group_from_double_link.hh,
      	* scribo/filter/thin_bboxes.hh,
      	* scribo/filter/small_components.hh: add a fixme.
      
      	* scribo/filter/thick_bboxes.hh: new routine.
      
      	* scribo/make/debug_filename.hh: use a std::string instead of a char*.
      
      	* scribo/make/text.hh: prepare a new routine.
      
      	* scribo/src/extract_text_double_several_links.cc: add timer info.
      
      	* scribo/src/extract_text_multiple_links.cc,,
      	* scribo/src/extract_text_several_multiple_links.cc,
      	* scribo/text/grouping/group_from_multiple_links.hh,
      	* scribo/text/grouping/group_with_multiple_links.hh,
      	* scribo/text/grouping/group_with_several_multiple_links.hh,
      	* scribo/text/grouping/internal/find_left_graph_link.hh,
      	* scribo/text/grouping/internal/update_link_graph.hh: rename as...
      
      	* scribo/src/extract_text_graph.cc,
      	* scribo/src/extract_text_several_graphes.cc,
      	* scribo/text/grouping/group_from_graph.hh,
      	* scribo/text/grouping/group_with_graph.hh,
      	* scribo/text/grouping/group_with_several_graphes.hh,
      	* scribo/text/grouping/internal/find_graph_link.hh,
      	* scribo/text/grouping/internal/update_graph_link.hh: ... this.
      
      	* scribo/src/photo_basic.cc: new sample code. Process text in photos.
      
      	* scribo/src/table_rebuild.cc: remove.
      
      	* scribo/text/extract_lines.hh: use double several links routines.
      
      	* scribo/util/text.hh: store the bbox mass centers.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3579 4aad255d-cdde-0310-9447-f3009e2ae8c0
      be67709a
    • Guillaume Lazzara's avatar
      Small fixes. · d7882273
      Guillaume Lazzara authored
      	* doc/tutorial/tutorial.tex: Fix a compilation issue.
      
      	* headers.mk: update distributed file list.
      
      	* mln/win/ball.hh,
      	* mln/core/concept/function.hh: avoid a warning.
      
      	* mln/util/array.hh,
      	* mln/fun/i2v/array.hh: revert invalid from_to overloads.
      
      	* mln/fun/internal/array_base.hh: add reserve().
      
      	* mln/fun/l2l/relabel.hh: reserve data before appending.
      
      	* mln/io/pnm/save.hh: Allow images of builtin types to be saved.
      
      	* tests/geom/Makefile.am,
      	* tests/morpho/Makefile.am,
      	* tests/util/Makefile.am: do not set tests as xfail tests anymore.
      
      	* tests/unit_test/unit-tests.mk: update unit test list.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3578 4aad255d-cdde-0310-9447-f3009e2ae8c0
      d7882273
  2. 25 Mar, 2009 5 commits
  3. 24 Mar, 2009 10 commits
    • Edwin Carlinet's avatar
      Test geodesic distance with component tree and try to apply. · f8508643
      Edwin Carlinet authored
      	* mln/morpho/attribute/sharpness.hh: Fix bugs related to
      	height computation.
      	* sandbox/edwin/attributes/bbox.hh: Add bbox morpho attribute.
      	* sandbox/edwin/tree/run.hh: Correct bugs and delete
      	run_while_treshold which can be computed throught pointwise.
      	* sandbox/edwin/tree/test.cc: Test file.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3572 4aad255d-cdde-0310-9447-f3009e2ae8c0
      f8508643
    • Frdric Bour's avatar
      Add inf, sup accumulator and accu_result function. · 8594606c
      Frdric Bour authored
      	* mln/accu/inf.hh: New.
      	* mln/accu/sup.hh: New.
      	* mln/accu: New.
      	* mln/fun/accu_result.hh: New.
      	* mln/fun/from_accu.hh: Correct some typo errors.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3571 4aad255d-cdde-0310-9447-f3009e2ae8c0
      8594606c
    • Guillaume Lazzara's avatar
      Update Scribo's code. · 1a934244
      Guillaume Lazzara authored
      	* scribo/Makefile: add new targets.
      
      	* scribo/debug/save_linked_textbboxes_image.hh,
      	* scribo/debug/save_table_image.hh,
      	* scribo/debug/save_textbboxes_image.hh: improve outputs.
      
      	* scribo/draw/bounding_box_links.hh: draw mass centers.
      
      	* scribo/filter/small_components.hh: add an assertion.
      
      	* scribo/src/extract_text_double_link.cc,
      	* scribo/src/extract_text_double_several_links.cc,
      	* scribo/src/extract_text_multiple_links.cc,
      	* scribo/src/extract_text_single_link.cc: cleanup small components.
      
      	* scribo/src/extract_text_several_left_links.cc,
      	* scribo/src/extract_text_several_multiple_links,
      	* scribo/src/rectangularity.cc,
      	* scribo/src/table_erase.cc,
      	* scribo/src/table_rebuild_opening.cc,
      	* scribo/src/table_rebuild_rank.cc: new sample code.
      
      	* scribo/table/align_lines_horizontaly.hh,
      	* scribo/table/align_lines_verticaly.hh: fix compilation issues.
      
      	* scribo/table/erase.hh: fix traces.
      
      	* scribo/table/extract.hh,
      	* scribo/table/extract_lines_with_opening.hh,
      	* scribo/table/extract_lines_with_rank.hh: update prototypes.
      
      	* scribo/table/rebuild.hh: use for_all_elements instead of
      	for_all_components.
      
      	* scribo/text/grouping/group_from_double_link.hh: fix wrong
      	link validation.
      
      	* 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: refactor code...
      
      	* scribo/text/grouping/internal/find_left_graph_link.hh,
      	* scribo/text/grouping/internal/find_left_link.hh,
      	* scribo/text/grouping/internal/find_right_link.hh: ... here.
      
      	* scribo/text/grouping/internal/update_link_array.hh: fix wrong
      	conditions.
      
      	* scribo/text/grouping/group_with_several_left_links.hh,
      	* scribo/text/grouping/group_with_several_multiple_links.hh,
      	* scribo/text/grouping/group_with_several_right_links.hh: new variants
      	using three anchors instead of one to find the left/right neighbors.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3570 4aad255d-cdde-0310-9447-f3009e2ae8c0
      1a934244
    • Guillaume Lazzara's avatar
      Small fixes. · ae793da6
      Guillaume Lazzara authored
      	* headers.mk: update distributed header list.
      
      	* doc/ref_guide/ref_guide.tex: update reference to clone().
      
      	* doc/tutorial/tutorial.tex: fix references.
      
      	* mln/accu/center.hh: Fix meta accu.
      
      	* mln/canvas/browsing/depth_first_search.hh: update functor interface.
      
      	* mln/core/concept/function.hh: Introduce Function_i2b.
      
      	* mln/debug/colorize.hh: call srand.
      
      	* mln/fun/i2v/array.hh: update from_to overloads: add a special case
      	for element[0].
      
      	* mln/io/pgm/save.hh: Check if the image is compatible with pgm
      	format.
      
      	* mln/labeling/level.hh,
      	* mln/labeling/regional_maxima.hh: avoid warnings.
      
      	* mln/labeling/relabel.hh: update call to make::relabelfun.
      
      	* mln/make/graph.hh: adjust extension to structural element.
      
      	* mln/util/array.hh:
      	  - add subject_impl specialization.
      	  - Update from_to overloads: add a special case for element[0].
      
      	* tests/accu/site_set/rectangularity.cc: add more tests.
      
      	* tests/unit_test/unit-tests.mk: update unit test list.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3569 4aad255d-cdde-0310-9447-f3009e2ae8c0
      ae793da6
    • Guillaume Lazzara's avatar
      Fix compilation issues with Cygwin. · 4d468626
      Guillaume Lazzara authored
      	* mln/convert/from_to.hxx,
      	* mln/core/concept/site_set.hh: do NOT prefix template parameter names
      	with '_'. Names prefixed by '_' are reserved!
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3568 4aad255d-cdde-0310-9447-f3009e2ae8c0
      4d468626
    • Thierry Geraud's avatar
      Relax a couple of contraints related to labels and integers. · efb0fbc4
      Thierry Geraud authored
      	* mln/debug/colorize.hh: Relax the Symbolic constraint.
      	That allows for colorizing images containing integers.
      	* mln/value/int_u.hh (next): New.
      	That allows for images containing integers to be processed
      	as labeled images.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3567 4aad255d-cdde-0310-9447-f3009e2ae8c0
      efb0fbc4
    • Frdric Bour's avatar
      Add from_accu functional wrapper. · 0520cc8a
      Frdric Bour authored
      	* fred/mln/fun/from_accu.hh: New.
      	* fred/mln/fun/math/cos.hh: Support for integer value as argument.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3566 4aad255d-cdde-0310-9447-f3009e2ae8c0
      0520cc8a
    • Thierry Geraud's avatar
      Add some executable source. · eff316a9
      Thierry Geraud authored
      	* theo/icdar: New directory.
      	* theo/icdar/dibco: New directory.
      	* theo/icdar/hsc: New directory.
      	* theo/icdar/hsc/fuzzy.sh: New.
      	* theo/icdar/hsc/dist.sh: New.
      	* theo/icdar/hsc/exec: New directory.
      	* theo/icdar/hsc/exec/iz_lines.cc: New.
      	* theo/icdar/hsc/exec/relabel_lines.cc: New.
      	* theo/icdar/hsc/exec/show_lines_pbm.cc: New.
      	* theo/icdar/hsc/exec/show_lines.cc: New.
      	* theo/exec/watershed_superpose.cc: New.
      	* theo/exec/gaussian_directional_2d__float.cc: New.
      	* theo/exec/distance_thick.cc: New.
      	* theo/exec/closing_rectangle.cc: Add pbm case.
      	* theo/exec/opening_rectangle.cc: New.
      	* theo/exec/closing_isotropic.cc: Add pgm case.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3565 4aad255d-cdde-0310-9447-f3009e2ae8c0
      eff316a9
    • Frdric Bour's avatar
      Correct new functions. · 304a4365
      Frdric Bour authored
      	* fred/mln/core/image/thru_morpher.hh,
      	* fred/mln/fun/math/inf.hh,
      	* fred/mln/fun/math/sup.hh: Correct typo
      	* fred/mln/fun/spe/unary.hh,
      	* fred/mln/fun/unary.hh: Add composition with lresult.
      	* fred/tests/Makefile,
      	* fred/tests/thru.cc: Removed unnecessary include.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3564 4aad255d-cdde-0310-9447-f3009e2ae8c0
      304a4365
    • Fabien Freling's avatar
      Conversion from util::array to image1d. · 7d48d101
      Fabien Freling authored
      	* mln/convert/from_to.hxx: Update from_to for image1d.
      	* mln/core/image/image1d.hh: Update from_to.
      	* mln/world/binary_2d/projected_histo.hh: Update.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3563 4aad255d-cdde-0310-9447-f3009e2ae8c0
      7d48d101
  4. 23 Mar, 2009 2 commits
  5. 20 Mar, 2009 8 commits
  6. 19 Mar, 2009 9 commits
    • Edwin Carlinet's avatar
      Optimize propagations and add component processing functions. · 1ca16ec6
      Edwin Carlinet authored
      	* mln/morpho/tree/data.hh: Add optimization about preorder
      	iterator.
      	* tests/morpho/tree/data.cc: Update test file.
      
      	* sandbox/edwin/tree/accumulator/arg_max.hh: New accumulator
      	that returns site having the max value.
      	* sandbox/edwin/tree/accumulator/max.hh: Remove.
      	* sandbox/edwin/tree/propagate.hh: Make clean.
      	* sandbox/edwin/tree/propagate_if.hh: Functions performing
      	different propagations on nodes matching a predicate.
      	* sandbox/edwin/tree/propagate_node.hh: Basic ascendant and
      	descendant propagations computation.
      	* sandbox/edwin/tree/propagation.cc: Test file for propagations.
      	* sandbox/edwin/tree/routines.hh: Remove.
      	* sandbox/edwin/tree/run.hh: Methods to apply accumulator on
      	tree nodes, and to perform object component research with a
      	criteria (treshold...).
      	* sandbox/edwin/tree/test.cc: New.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3552 4aad255d-cdde-0310-9447-f3009e2ae8c0
      1ca16ec6
    • Guillaume Lazzara's avatar
      Update Scribo's code. · 0fdaf359
      Guillaume Lazzara authored
      	* scribo/Makefile: add new targets.
      
      	* scribo/core/central_sites.hh,
      	* scribo/core/component_bboxes.hh: add more assertions.
      
      	* scribo/text/recognition.hh,
      	* scribo/text/grouping/internal/find_root.hh,
      	* scribo/text/grouping/internal/init_link_array.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/extract_bboxes.hh,
      	* scribo/src/extract_text_double_link.cc,
      	* scribo/src/extract_text_multiple_links.cc,
      	* scribo/src/extract_text_single_link.cc,
      	* 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: make use of util::text.
      
      	* scribo/filter/large_components.hh,
      	* scribo/filter/small_components.hh,
      	* scribo/filter/thin_bboxes.hh: new filters.
      
      	* scribo/make/debug_filename.hh: improve.
      
      	* scribo/make/text.hh: Construct a text class.
      
      	* scribo/src/dmap.cc,
      	* scribo/src/morpho.cc,
      	* scribo/src/table_extract.cc,
      	* scribo/src/table_rebuild.cc,
      	* scribo/src/thin_bboxes.cc: new sample code.
      
      	* scribo/src/table.cc: fix include.
      
      	* scribo/table/internal/align_lines.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: add more parameters.
      
      	* scribo/table/extract.hh: new routine to extract document tables.
      
      	* scribo/table/extract_lines_with_opening.hh: new routine to extract
      	document tables.
      
      	* scribo/table/extract_lines_with_rank.hh: fix missing bbox.enlarge.
      
      	* scribo/table/internal/connect_lines.hh: make it compile.
      
      	* scribo/table/internal/repair_lines.hh: make it work.
      
      	* scribo/table/rebuild.hh: new routine to rebuild document tables.
      
      	* scribo/core/erase_bboxes.hh,
      	* scribo/table/repair_horizontal_lines.hh: revamp.
      
      	* scribo/tests/filter/small_and_large_bboxes.cc,
      	* scribo/tests/table/extract_lines_with_rank.cc,
      	* scribo/tests/table/repair_lines.cc: new tests.
      
      	* scribo/text/extract_lines.hh: new routine to extract text
      	automatically.
      
      	* scribo/text/grouping/internal/update_link_array.hh,
      	* scribo/text/grouping/internal/update_link_graph.hh: fix conditions.
      
      	* scribo/util/text.hh: new object to represent text components.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3551 4aad255d-cdde-0310-9447-f3009e2ae8c0
      0fdaf359
    • Guillaume Lazzara's avatar
      * configure.ac: configure tests/accu/site_set. · 395abea1
      Guillaume Lazzara authored
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3550 4aad255d-cdde-0310-9447-f3009e2ae8c0
      395abea1
    • Guillaume Lazzara's avatar
      Add accu::site_set::rectangularity. · 33be8ed3
      Guillaume Lazzara authored
      	* mln/accu/all.hh,
      	* mln/accu/essential.hh,
      	* mln/accu/image/essential.hh,
      	* mln/accu/site_set/all.hh,
      	* mln/accu/site_set/essential.hh: update all and essential includes.
      
      	* mln/accu/site_set/rectangularity.hh: new accumulator.
      
      	* tests/accu/Makefile.am,
      	* tests/accu/site_set/Makefile.am,
      	* tests/accu/site_set/rectangularity.cc: add associated test.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3549 4aad255d-cdde-0310-9447-f3009e2ae8c0
      33be8ed3
    • Guillaume Lazzara's avatar
      Add accu::couple. · 44d1c01d
      Guillaume Lazzara authored
      	* mln/accu/internal/couple.hh: new class.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3548 4aad255d-cdde-0310-9447-f3009e2ae8c0
      44d1c01d
    • Guillaume Lazzara's avatar
      Add a buggy sample case. · e3252cda
      Guillaume Lazzara authored
      	* bugs/concept_and_assignment.cc: sample code of what should not
      	be done while assigning an image to another.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3547 4aad255d-cdde-0310-9447-f3009e2ae8c0
      e3252cda
    • Guillaume Lazzara's avatar
      Add transform::distance_and_influence_zone_geodesic. · 636798ce
      Guillaume Lazzara authored
      	* mln/transform/all.hh: include new file.
      
      	* mln/transform/distance_and_influence_zone_geodesic.hh: new routine.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3546 4aad255d-cdde-0310-9447-f3009e2ae8c0
      636798ce
    • Fabien Freling's avatar
      Add a new file translating IGR Matlab code. · b530dd25
      Fabien Freling authored
      	* fabien/bin/dump2pbm.cc: Minor fix.
      	* fabien/igr/Makefile: Update.
      	* fabien/igr/check.sh: Update.
      	* fabien/igr/matlab.cc: New file translating matlab code.
      	* fabien/igr/med.cc: Update.
      	* fabien/igr/thres.cc: Update.
      	* fabien/magick/load.hh: Moved to mln/io/magick.
      	* fabien/magick/magick.cc: Update.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3545 4aad255d-cdde-0310-9447-f3009e2ae8c0
      b530dd25
    • Thierry Geraud's avatar
      Add meta-code to access component types of value types. · 75d6da8c
      Thierry Geraud authored
      	* mln/trait/value/internal: New directory.
      	* mln/trait/value/internal/all.hh: New.
      	* mln/trait/value/internal/comp.hh: New.
      	* mln/trait/value/comp.hh: New.
      	* mln/trait/value/all.hh: Update.
      	* mln/trait/value_.hh,
      	* mln/trait/value/nature.hh: Upgrade doc style.
      	* mln/value/builtin/symbolics.hh,
      	* mln/value/builtin/floatings.hh,
      	* mln/value/builtin/integers.hh (trait_): Add dim.
      	* mln/value/builtin/carrays.hh: New.
      	* mln/value/builtin/all.hh: Update.
      	* mln/algebra/vec.hh (trait_): Add dim and comp.
      	* tests/trait/value/comp.cc: New.
      	* tests/trait/value/Makefile.am: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3544 4aad255d-cdde-0310-9447-f3009e2ae8c0
      75d6da8c
  7. 18 Mar, 2009 4 commits