1. 23 Aug, 2012 31 commits
    • Guillaume Lazzara's avatar
      d4afa3d8
    • Guillaume Lazzara's avatar
      Introduce a verbose mode. · 7e6b2a1c
      Guillaume Lazzara authored
      	* scribo/binarization/internal/sauvola_ms_functor.hh,
      	* scribo/binarization/sauvola_ms.hh: Remove debug.
      
      	* src/binarization/otsu.cc,
      	* src/binarization/sauvola.cc: Add verbose mode option.
      7e6b2a1c
    • Guillaume Lazzara's avatar
      Improve Sauvola. · 44961f41
      Guillaume Lazzara authored
      	* sauvola_fast.cc: Remove.
      
      	* scribo/binarization/internal/local_threshold_debug.hh: Add more
      	debug.
      
      	* scribo/binarization/internal/sauvola_ms_functor.hh,
      	* scribo/binarization/sauvola_ms.hh: Introduce k for each scale.
      
      	* src/binarization/Makefile.am,
      	* src/binarization/sauvola_ms.cc,
      	* src/binarization/sauvola_ms_debug.cc,
      	* src/binarization/sauvola_ms_split.cc: Take several k into
      	account.
      44961f41
    • Guillaume Lazzara's avatar
      Add Wolf's binarization algorithm. · e5f272e6
      Guillaume Lazzara authored
      	* scribo/binarization/internal/wolf_formula.hh,
      	* scribo/binarization/internal/wolf_functor.hh,
      	* scribo/binarization/wolf.hh,
      	* scribo/util/integral_sum_sum2_global_min_functor.hh,
      	* src/binarization/wolf.cc,
      	* tests/binarization/wolf.cc,
      	* tests/binarization/wolf.ref.pbm,
      	* tests/binarization/wolf_weven_hodd.ref.pbm,
      	* tests/binarization/wolf_wodd_heven.ref.pbm,
      	* tests/binarization/wolf_wodd_hodd.ref.pbm: New.
      
      	* src/binarization/Makefile.am,
      	* tests/binarization/Makefile.am: Add new target.
      e5f272e6
    • Guillaume Lazzara's avatar
      New tools. · c2ba610e
      Guillaume Lazzara authored
      	* z/sauvola_ms_rv/pbm_color_diff.cc,
      	* z/sauvola_ms_rv/pgm_color_diff.cc: New.
      c2ba610e
    • Guillaume Lazzara's avatar
      Add more debug. · d9cc1c4f
      Guillaume Lazzara authored
      	* scribo/binarization/internal/local_threshold_debug.hh,
      	* scribo/binarization/internal/sauvola_ms_functor.hh,
      	* scribo/binarization/sauvola_ms.hh,
      	* src/binarization/sauvola_ms_debug.cc: Here.
      d9cc1c4f
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
      Fix warning in Otsu related files. · 83ee60cb
      Guillaume Lazzara authored
      83ee60cb
    • Guillaume Lazzara's avatar
      Fix and improve sauvola_ms debug. · 4218334f
      Guillaume Lazzara authored
      	* scribo/binarization/internal/local_threshold_core.hh,
      	* scribo/binarization/internal/local_threshold_debug.hh,
      	* scribo/binarization/internal/sauvola_ms_functor.hh,
      	* scribo/binarization/sauvola_ms.hh,
      	* src/binarization/sauvola_ms_debug.cc: Here.
      4218334f
    • Guillaume Lazzara's avatar
      Fix invalid line offset due to input image size. · 31b45b44
      Guillaume Lazzara authored
      	* scribo/binarization/internal/niblack_functor.hh,
      	* scribo/binarization/internal/sauvola_functor.hh: Here.
      
      	* tests/binarization/niblack.cc,
      	* tests/binarization/niblack_weven_hodd.ref.pbm,
      	* tests/binarization/niblack_wodd_heven.ref.pbm,
      	* tests/binarization/niblack_wodd_hodd.ref.pbm,
      	* tests/binarization/sauvola.cc,
      	* tests/binarization/sauvola_ms.cc,
      	* tests/binarization/sauvola_ms_weven_hodd.ref.pbm,
      	* tests/binarization/sauvola_ms_wodd_heven.ref.pbm,
      	* tests/binarization/sauvola_ms_wodd_hodd.ref.pbm,
      	* tests/binarization/sauvola_weven_hodd.ref.pbm,
      	* tests/binarization/sauvola_wodd_heven.ref.pbm,
      	* tests/binarization/sauvola_wodd_hodd.ref.pbm,
      	* tests/img/lena_weven_hodd.pgm,
      	* tests/img/lena_wodd_heven.pgm,
      	* tests/img/lena_wodd_hodd.pgm: Add test case.
      31b45b44
    • Guillaume Lazzara's avatar
      Fix binarization tests. · b76254be
      Guillaume Lazzara authored
      	* sauvola_fast.cc,
      	* scribo/binarization/internal/local_threshold_core.hh,
      	* tests/binarization/niblack.cc,
      	* tests/binarization/niblack.ref.pbm,
      	* tests/binarization/sauvola.cc,
      	* tests/binarization/sauvola.ref.pbm: Here.
      b76254be
    • Guillaume Lazzara's avatar
      Revamp *_threshold functions. · a0a8f63a
      Guillaume Lazzara authored
      	* scribo/binarization/internal/sauvola_core.hh: Remove.
      
      	* scribo/binarization/internal/local_threshold_core.hh: New.
      
      	* scribo/binarization/internal/niblack_threshold_functor.hh,
      	* scribo/binarization/internal/sauvola_functor.hh,
      	* scribo/binarization/internal/sauvola_threshold_functor.hh,
      	* scribo/binarization/niblack.hh,
      	* scribo/binarization/niblack_threshold.hh,
      	* scribo/binarization/sauvola.hh,
      	* scribo/binarization/sauvola_threshold.hh: Make use of
      	local_threshold_core.
      a0a8f63a
    • Guillaume Lazzara's avatar
      Refactor local threshold binarization algorithms. · 0e2a2c0e
      Guillaume Lazzara authored
      	* scribo/binarization/internal/compute_local_threshold.hh,
      	* scribo/binarization/internal/first_pass_functor.hh: Remove.
      
      	* scribo/binarization/internal/niblack_functor.hh,
      	* scribo/binarization/internal/niblack_threshold_functor.hh,
      	* scribo/binarization/internal/sauvola_core.hh,
      	* scribo/binarization/internal/sauvola_functor.hh,
      	* scribo/binarization/internal/sauvola_ms_functor.hh,
      	* scribo/binarization/internal/sauvola_threshold_functor.hh,
      	* scribo/util/compute_sub_domains.hh,
      	* scribo/util/init_integral_image.hh,
      	* scribo/util/integral_sub_sum_sum2_functor.hh,
      	* scribo/util/integral_sum_sum2_functor.hh,
      	* src/binarization/pgm_niblack_threshold_image.cc: New.
      
      	* scribo/binarization/internal/local_threshold_debug.hh,
      	* scribo/binarization/internal/niblack_formula.hh,
      	* scribo/binarization/internal/sauvola_formula.hh,
      	* scribo/binarization/local_threshold.hh,
      	* scribo/binarization/niblack.hh,
      	* scribo/binarization/niblack_threshold.hh,
      	* scribo/binarization/sauvola.hh,
      	* scribo/binarization/sauvola_ms.hh,
      	* scribo/binarization/sauvola_threshold.hh,
      	* scribo/binarization/trash/compute_local_threshold.hh,
      	* scribo/canvas/integral_browsing.hh: Cleanup and make use of
      	functors.
      
      	* src/binarization/sauvola_ms.cc,
      	* src/binarization/sauvola_ms_debug.cc: Handle verbose/debug
      	modes.
      0e2a2c0e
    • Guillaume Lazzara's avatar
      a839009d
    • Guillaume Lazzara's avatar
      d1a7a06e
    • Guillaume Lazzara's avatar
      ec1cc0bc
    • Guillaume Lazzara's avatar
      sauvola_fast.cc: New implementation. · b1d52c99
      Guillaume Lazzara authored
      b1d52c99
    • Guillaume Lazzara's avatar
      a8f83ef3
    • Guillaume Lazzara's avatar
      Add test images. · 664d9d7e
      Guillaume Lazzara authored
      	* z/sauvola_ms_rv/img/001.pgm,
      	* z/sauvola_ms_rv/img/001_i.pgm,
      	* z/sauvola_ms_rv/img/002.pgm,
      	* z/sauvola_ms_rv/img/002_i.pgm,
      	* z/sauvola_ms_rv/img/003.pgm,
      	* z/sauvola_ms_rv/img/003_i.pgm,
      	* z/sauvola_ms_rv/img/004.pgm,
      	* z/sauvola_ms_rv/img/004_i.pgm,
      	* z/sauvola_ms_rv/img/005.pgm,
      	* z/sauvola_ms_rv/img/005_i.pgm,
      	* z/sauvola_ms_rv/img/006.pgm,
      	* z/sauvola_ms_rv/img/006_i.pgm,
      	* z/sauvola_ms_rv/img/007.pgm,
      	* z/sauvola_ms_rv/img/007_i.pgm,
      	* z/sauvola_ms_rv/img/008.pgm,
      	* z/sauvola_ms_rv/img/008_i.pgm,
      	* z/sauvola_ms_rv/img/009.pgm,
      	* z/sauvola_ms_rv/img/009_i.pgm,
      	* z/sauvola_ms_rv/img/010.pgm,
      	* z/sauvola_ms_rv/img/010_i.pgm,
      	* z/sauvola_ms_rv/img/011.pgm,
      	* z/sauvola_ms_rv/img/011_i.pgm,
      	* z/sauvola_ms_rv/img/012.pgm,
      	* z/sauvola_ms_rv/img/012_i.pgm,
      	* z/sauvola_ms_rv/img/013.pgm,
      	* z/sauvola_ms_rv/img/013_i.pgm,
      	* z/sauvola_ms_rv/img/014.pgm,
      	* z/sauvola_ms_rv/img/014_i.pgm,
      	* z/sauvola_ms_rv/img/015.pgm,
      	* z/sauvola_ms_rv/mp00082c_crop.pgm: New.
      664d9d7e
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
      Compute Sauvola on documents with light text and dark background. · 9be09ead
      Guillaume Lazzara authored
      	* scribo/binarization/internal/compute_local_threshold.hh,
      	* scribo/binarization/internal/first_pass_functor.hh,
      	* scribo/binarization/internal/sauvola_formula.hh,
      	* scribo/binarization/local_threshold.hh: Update formula.
      9be09ead
    • Guillaume Lazzara's avatar
      Add new tools. · 241d1ffe
      Guillaume Lazzara authored
      	* z/sauvola_ms_rv/pgm_color_diff.cc,
      	* z/sauvola_ms_rv/pgm_local_mean.cc,
      	* z/sauvola_ms_rv/ppm_influence_zone_geodesic.cc: New.
      241d1ffe
    • Guillaume Lazzara's avatar
      Rename skewness directory and share code between implementations. · a07c8c69
      Guillaume Lazzara authored
      	* z/skewness/skewness.cc,
      	* z/skewness/skewness2.cc: Move...
      
      	* z/sauvola_ms_rv/skewness.cc,
      	* z/sauvola_ms_rv/skewness/skewness2.cc: ... Here.
      
      	* z/sauvola_ms_rv/skewness/integral_browsing_rv.hh: Share code
      	between the two implementations.
      a07c8c69
    • Guillaume Lazzara's avatar
      z/skewness/skewness2.cc: New. · d984d2d1
      Guillaume Lazzara authored
      d984d2d1
    • Guillaume Lazzara's avatar
      b90f28dc
    • Guillaume Lazzara's avatar
      z/skewness/skewness.cc: New. · 9a655339
      Guillaume Lazzara authored
      9a655339
  2. 10 May, 2012 5 commits
    • Guillaume Lazzara's avatar
      Improve option parser. · 3a65b8d1
      Guillaume Lazzara authored
      	* scribo/debug/option_check.hh: New function for verbose mode.
      
      	* scribo/debug/option_parser.hh: Fix a bug with misplaced options.
      3a65b8d1
    • Guillaume Lazzara's avatar
      Add Readme files about contests. · 9aec9988
      Guillaume Lazzara authored
      	* src/contest/DAE-2011/README,
      	* src/contest/hdibco-2010/README,
      	* src/contest/hdlac-2011/README: New.
      9aec9988
    • Guillaume Lazzara's avatar
      Fix compilation in Scribo. · 8c4e2dd6
      Guillaume Lazzara authored
      	* scribo/primitive/link/merge_double_link_closest_aligned.hh: Add
      	a missing include.
      
      	* src/content_in_hdoc.cc,
      	* src/contest/DAE-2011/content_in_doc_dae.cc,
      	* src/contest/DAE-2011/content_in_hdoc_dae.cc,
      	* src/contest/hdlac-2011/content_in_hdoc_hdlac.cc,
      	* src/non_text_components.cc: Add mandatory arguments.
      8c4e2dd6
    • Guillaume Lazzara's avatar
      Rely on Argument-Dependent Lookup (ADL) in from_to_ overloads. · e1b3bd77
      Guillaume Lazzara authored
      	* mln/accu/count_labels.hh,
      	* mln/convert/from_to.hxx	,
      	* mln/convert/to.hh,
      	* mln/core/alias/point1d.hh,
      	* mln/core/alias/point2d.hh,
      	* mln/core/alias/point3d.hh,
      	* mln/core/dpoint.hh,
      	* mln/core/internal/neighborhood_base.hh,
      	* mln/core/point.hh,
      	* mln/core/site_set/p_centered.hh,
      	* mln/core/site_set/p_vaccess.hh,
      	* mln/fun/v2v/hsl_to_rgb.hh,
      	* mln/fun/v2v/rgb_to_hsl.hh,
      	* mln/io/magick/save.hh,
      	* mln/io/plot/save.hh,
      	* mln/labeling/blobs_and_compute.hh,
      	* mln/labeling/value_and_compute.hh,
      	* mln/make/w_window2d.hh,
      	* mln/win/multiple.hh,
      	* mln/win/multiple_size.hh,
      	* tests/accu/site_set/rectangularity.cc,
      	* tests/core/other/graph_elt_neighborhood.cc,
      	* tests/core/other/graph_elt_window.cc,
      	* tests/core/other/point_set_compatibility.cc,
      	* tests/draw/graph.cc: Update forward declarations and includes.
      
      	* mln/algebra/vec.hh,
      	* mln/convert/from_to.hh,
      	* mln/convert/impl/from_double_to_value.hh,
      	* mln/convert/impl/from_float_to_value.hh,
      	* mln/convert/impl/from_image_to_site_set.hh,
      	* mln/convert/impl/from_int_to_value.hh,
      	* mln/convert/impl/from_unsigned_to_value.hh,
      	* mln/convert/impl/from_value_to_value.hh,
      	* mln/core/alias/neighb2d.hh,
      	* mln/core/alias/neighb3d.hh,
      	* mln/core/alias/window1d.hh,
      	* mln/core/alias/window2d.hh,
      	* mln/core/alias/window3d.hh,
      	* mln/core/concept/accumulator.hh,
      	* mln/core/concept/gdpoint.hh,
      	* mln/core/concept/gpoint.hh,
      	* mln/core/concept/image.hh,
      	* mln/core/concept/proxy.hh,
      	* mln/core/concept/site_set.hh,
      	* mln/core/concept/window.hh,
      	* mln/core/image/graph_window_if_piter.hh,
      	* mln/core/image/image1d.hh,
      	* mln/core/mixed_neighb.hh,
      	* mln/core/neighb.hh,
      	* mln/core/site_set/operators.hh,
      	* mln/core/w_window.hh,
      	* mln/fun/i2v/array.hh,
      	* mln/util/object_id.hh,
      	* mln/value/hsl.hh,
      	* mln/value/int_u.hh,
      	* mln/value/label.hh,
      	* mln/value/qt/rgb32.hh,
      	* mln/value/rgb.hh,
      	* mln/histo/array.hh,
      	* mln/util/array.hh: Move from_to_ overloads in the same namespace
      	as their first argument.
      e1b3bd77
    • Guillaume Lazzara's avatar
      183d8311
  3. 07 May, 2012 3 commits
  4. 05 Apr, 2012 1 commit
    • Guillaume Lazzara's avatar
      Remove useless targets in scribo/src/binarization. · 6bc3a119
      Guillaume Lazzara authored
      	* scribo/src/binarization/Makefile.am: Remove targets.
      
      	* src/binarization/pgm_sauvola.cc,
      	* src/binarization/pgm_sauvola_ms.cc,
      	* src/binarization/pgm_sauvola_threshold_image.cc,
      	* src/binarization/ppm_sauvola.cc,
      	* src/binarization/ppm_sauvola_ms.cc,
      	* src/binarization/ppm_sauvola_ms_fg.cc,
      	* src/binarization/ppm_sauvola_ms_split.cc: Remove.
      6bc3a119