1. 06 Mar, 2020 1 commit
    • Robert Sachunsky's avatar
      scribo-cli binarization: add negate-output toggles uniformly · b40632da
      Robert Sachunsky authored
          - add `negate-input` / `negate-output` toggles from otsu
            to other algorithm CLIs too
            (but keep `negate` as synonym for `negate-output` in sauvola;
             and don't add `negate-input` where this would require
             negation on RGB)
          - use the versatile io::magick::save instead of just io::pbm::save
          - rename output argument to `output.*` to reflect versatility
      b40632da
  2. 30 Aug, 2013 1 commit
  3. 02 Apr, 2013 1 commit
    • Guillaume Lazzara's avatar
      Improve time logging in Scribo. · d86fc9a3
      Guillaume Lazzara authored
      	* scribo/debug/logger.hh: Use a stack to handle several
      	simultaneous logs.
      
      	* scribo/binarization/sauvola_ms.hh: Fix an invalid time stop.
      
      	* scribo/binarization/internal/local_threshold_core.hh,
      	* src/binarization/sauvola.cc,
      	* src/binarization/sauvola_ms.cc,
      	* src/binarization/sauvola_ms_debug.cc: Rename time logging
      	functions.
      d86fc9a3
  4. 18 Mar, 2013 1 commit
    • Guillaume Lazzara's avatar
      Make use of mln_trace. · d48b8a4a
      Guillaume Lazzara authored
      	* scribo/binarization/global_threshold.hh,
      	* scribo/binarization/global_threshold_auto.hh,
      	* scribo/binarization/internal/local_threshold_core.hh,
      	* scribo/binarization/kim.hh,
      	* scribo/binarization/local_threshold.hh,
      	* scribo/binarization/niblack.hh,
      	* scribo/binarization/niblack_fast.hh,
      	* scribo/binarization/niblack_threshold.hh,
      	* scribo/binarization/otsu.hh,
      	* scribo/binarization/otsu_threshold.hh,
      	* scribo/binarization/sauvola.hh,
      	* scribo/binarization/sauvola_ms.hh,
      	* scribo/binarization/sauvola_ms_split.hh,
      	* scribo/binarization/sauvola_threshold.hh,
      	* scribo/binarization/singh.hh,
      	* scribo/binarization/wolf.hh,
      	* scribo/binarization/wolf_fast.hh,
      	* scribo/convert/from_base64.hh,
      	* scribo/convert/to_base64.hh,
      	* scribo/core/central_sites.hh,
      	* scribo/core/erase_objects.hh,
      	* scribo/core/init_integral_image.hh,
      	* scribo/debug/alignment_decision_image.hh,
      	* scribo/debug/bboxes_enlarged_image.hh,
      	* scribo/debug/bboxes_image.hh,
      	* scribo/debug/char_space_image.hh,
      	* scribo/debug/decision_image.hh,
      	* scribo/debug/highlight_text_area.hh,
      	* scribo/debug/line_info_image.hh,
      	* scribo/debug/linked_bboxes_image.hh,
      	* scribo/debug/links_decision_image.hh,
      	* scribo/debug/links_image.hh,
      	* scribo/debug/looks_like_a_text_line_image.hh,
      	* scribo/debug/mean_and_base_lines_image.hh,
      	* scribo/debug/save_comp_diff.hh,
      	* scribo/debug/save_label_image.hh,
      	* scribo/debug/save_table_image.hh,
      	* scribo/debug/text_areas_image.hh,
      	* scribo/draw/bounding_box_links.hh,
      	* scribo/draw/bounding_boxes.hh,
      	* scribo/draw/groups_bboxes.hh,
      	* scribo/draw/line_components.hh,
      	* scribo/estim/components_features.hh,
      	* scribo/estim/font_boldness.hh,
      	* scribo/estim/font_color.hh,
      	* scribo/estim/internal/compute_skeleton.hh,
      	* scribo/estim/object_groups_mean_width.hh,
      	* scribo/filter/common/objects_photo.hh,
      	* scribo/filter/images_in_paragraph.hh,
      	* scribo/filter/internal/alignment_angle.hh,
      	* scribo/filter/internal/component_aligned.hh,
      	* scribo/filter/internal/compute.hh,
      	* scribo/filter/object_groups_mean_width.hh,
      	* scribo/filter/object_groups_size_ratio.hh,
      	* scribo/filter/object_groups_small.hh,
      	* scribo/filter/object_groups_with_holes.hh,
      	* scribo/filter/object_links_aligned.hh,
      	* scribo/filter/object_links_bbox_h_ratio.hh,
      	* scribo/filter/object_links_bbox_overlap.hh,
      	* scribo/filter/object_links_bbox_ratio.hh,
      	* scribo/filter/object_links_bbox_w_ratio.hh,
      	* scribo/filter/object_links_bottom_aligned.hh,
      	* scribo/filter/object_links_center_aligned.hh,
      	* scribo/filter/object_links_left_aligned.hh,
      	* scribo/filter/object_links_non_aligned_simple.hh,
      	* scribo/filter/object_links_right_aligned.hh,
      	* scribo/filter/object_links_top_aligned.hh,
      	* scribo/filter/objects_h_thick.hh,
      	* scribo/filter/objects_h_thin.hh,
      	* scribo/filter/objects_large.hh,
      	* scribo/filter/objects_on_border.hh,
      	* scribo/filter/objects_size_ratio.hh,
      	* scribo/filter/objects_small.hh,
      	* scribo/filter/objects_thick.hh,
      	* scribo/filter/objects_thin.hh,
      	* scribo/filter/objects_v_thick.hh,
      	* scribo/filter/objects_v_thin.hh,
      	* scribo/filter/objects_with_holes.hh,
      	* scribo/filter/paragraphs_bbox_overlap.hh,
      	* scribo/filter/paragraphs_in_borders.hh,
      	* scribo/filter/paragraphs_in_image.hh,
      	* scribo/filter/separators_in_borders.hh,
      	* scribo/filter/separators_in_element.hh,
      	* scribo/filter/separators_in_paragraph.hh,
      	* scribo/filter/separators_vert_in_borders.hh,
      	* scribo/io/img/save.hh,
      	* scribo/io/text_boxes/save.hh,
      	* scribo/io/xml/internal/save_image_to_xml.hh,
      	* scribo/io/xml/save.hh,
      	* scribo/layout/xy_cut.hh,
      	* scribo/make/influence_zone_graph.hh,
      	* scribo/make/text_blocks_image.hh,
      	* scribo/make/text_components_image.hh,
      	* scribo/postprocessing/fill_object_holes.hh,
      	* scribo/postprocessing/images_to_drop_capital.hh,
      	* scribo/preprocessing/crop.hh,
      	* scribo/preprocessing/crop_without_localization.hh,
      	* scribo/preprocessing/denoise.hh,
      	* scribo/preprocessing/denoise_bg.hh,
      	* scribo/preprocessing/denoise_fg.hh,
      	* scribo/preprocessing/deskew.hh,
      	* scribo/preprocessing/deskew_crop.hh,
      	* scribo/preprocessing/homogeneous_contrast.hh,
      	* scribo/preprocessing/rotate_90.hh,
      	* scribo/preprocessing/split_bg_fg.hh,
      	* scribo/primitive/extract/alignments.hh,
      	* scribo/primitive/extract/canvas.hh,
      	* scribo/primitive/extract/cells.hh,
      	* scribo/primitive/extract/components.hh,
      	* scribo/primitive/extract/horizontal_separators.hh,
      	* scribo/primitive/extract/lines_discontinued.hh,
      	* scribo/primitive/extract/lines_h_discontinued.hh,
      	* scribo/primitive/extract/lines_h_pattern.hh,
      	* scribo/primitive/extract/lines_h_single.hh,
      	* scribo/primitive/extract/lines_h_thick.hh,
      	* scribo/primitive/extract/lines_h_thick_and_single.hh,
      	* scribo/primitive/extract/lines_h_thick_and_thin.hh,
      	* scribo/primitive/extract/lines_pattern.hh,
      	* scribo/primitive/extract/lines_thick.hh,
      	* scribo/primitive/extract/lines_v_discontinued.hh,
      	* scribo/primitive/extract/lines_v_pattern.hh,
      	* scribo/primitive/extract/lines_v_single.hh,
      	* scribo/primitive/extract/lines_v_thick.hh,
      	* scribo/primitive/extract/lines_v_thick_and_single.hh,
      	* scribo/primitive/extract/non_text.hh,
      	* scribo/primitive/extract/non_text_hdoc.hh,
      	* scribo/primitive/extract/non_text_kmean.hh,
      	* scribo/primitive/extract/separators.hh,
      	* scribo/primitive/extract/separators_nonvisible.hh,
      	* scribo/primitive/extract/vertical_separators.hh,
      	* scribo/primitive/group/apply.hh,
      	* scribo/primitive/group/from_double_link.hh,
      	* scribo/primitive/group/from_double_link_any.hh,
      	* scribo/primitive/group/from_graph.hh,
      	* scribo/primitive/group/from_single_link.hh,
      	* scribo/primitive/identify.hh,
      	* scribo/primitive/internal/find_graph_link.hh,
      	* scribo/primitive/internal/rd.hh,
      	* scribo/primitive/internal/update_graph_link.hh,
      	* scribo/primitive/link/compute.hh,
      	* scribo/primitive/link/compute_several.hh,
      	* scribo/primitive/link/merge_double_link.hh,
      	* scribo/primitive/link/merge_double_link_closest_aligned.hh,
      	* scribo/primitive/link/with_graph.hh,
      	* scribo/primitive/link/with_rag.hh,
      	* scribo/primitive/link/with_several_graphes.hh,
      	* scribo/primitive/link/with_several_left_links.hh,
      	* scribo/primitive/link/with_several_right_closest_links.hh,
      	* scribo/primitive/link/with_several_right_links.hh,
      	* scribo/primitive/link/with_several_right_links_overlap.hh,
      	* scribo/primitive/link/with_single_down_link.hh,
      	* scribo/primitive/link/with_single_left_link.hh,
      	* scribo/primitive/link/with_single_left_link_dmax_ratio.hh,
      	* scribo/primitive/link/with_single_left_link_dmax_ratio_aligned.hh,
      	* scribo/primitive/link/with_single_right_link.hh,
      	* scribo/primitive/link/with_single_right_link_bottom.hh,
      	* scribo/primitive/link/with_single_right_link_dmax_ratio.hh,
      	* scribo/primitive/link/with_single_right_link_dmax_ratio_aligned.hh,
      	* scribo/primitive/link/with_single_right_link_top.hh,
      	* scribo/primitive/link/with_single_up_link.hh,
      	* scribo/primitive/merge/components.hh,
      	* scribo/primitive/regroup/from_single_left_link.hh,
      	* scribo/primitive/regroup/from_single_left_link_wrt_h_ratio.hh,
      	* scribo/primitive/remove/separators.hh,
      	* scribo/subsampling/bilinear.hh,
      	* scribo/subsampling/integral.hh,
      	* scribo/subsampling/integral_single_image.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.hh,
      	* scribo/table/internal/align_lines.hh,
      	* scribo/table/internal/connect_lines.hh,
      	* scribo/table/internal/repair_lines.hh,
      	* scribo/table/rebuild.hh,
      	* scribo/table/repair_horizontal_lines.hh,
      	* scribo/table/repair_vertical_lines.hh,
      	* scribo/text/clean.hh,
      	* scribo/text/clean_inplace.hh,
      	* scribo/text/extract_lines.hh,
      	* scribo/text/extract_lines_with_features.hh,
      	* scribo/text/extract_lines_wo_merge.hh,
      	* scribo/text/look_like_text_lines.hh,
      	* scribo/text/paragraphs_closing.hh,
      	* scribo/text/recognition.hh,
      	* scribo/toolchain/internal/text_in_doc_preprocess_functor.hh,
      	* scribo/toolchain/nepomuk/text_extraction.hh,
      	* scribo/toolchain/text_in_doc_preprocess.hh,
      	* scribo/toolchain/text_in_picture.hh,
      	* scribo/upsampling/bs2x.hh,
      	* scribo/upsampling/eagle.hh,
      	* scribo/util/box_intersection.hh,
      	* scribo/util/box_is_included.hh,
      	* scribo/util/component_precise_outline.hh,
      	* scribo/util/compute_sub_domains.hh,
      	* scribo/util/hex_to_color.hh,
      	* scribo/util/init_integral_image.hh,
      	* src/binarization/global_threshold.cc,
      	* src/binarization/kim.cc,
      	* src/binarization/niblack.cc,
      	* src/binarization/otsu.cc,
      	* src/binarization/pgm_global_threshold_auto.cc,
      	* src/binarization/pgm_niblack_threshold_image.cc,
      	* src/binarization/sauvola.cc,
      	* src/binarization/sauvola_debug.cc,
      	* src/binarization/sauvola_ms.cc,
      	* src/binarization/sauvola_ms_debug.cc,
      	* src/binarization/sauvola_ms_fg.cc,
      	* src/binarization/sauvola_ms_split.cc,
      	* src/binarization/singh.cc,
      	* src/binarization/wolf.cc,
      	* src/content_in_doc.cc,
      	* 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/debug/highlight_text_area.cc,
      	* src/debug/show_info_median_inter_characters.cc,
      	* src/debug/show_info_x_height.cc,
      	* src/debug/show_lines_boldness.cc,
      	* src/debug/show_objects_large.cc,
      	* src/debug/show_objects_large_small.cc,
      	* src/debug/show_objects_small.cc,
      	* src/debug/show_objects_thick.cc,
      	* src/debug/show_objects_thin.cc,
      	* src/debug/show_paragraph_blocks.cc,
      	* src/debug/show_separators.cc,
      	* src/debug/show_stoppers.cc,
      	* src/debug/show_text_lines.cc,
      	* src/debug/show_text_lines_wo_seps.cc,
      	* src/filter/objects_large.cc,
      	* src/filter/objects_small.cc,
      	* src/filter/objects_thick.cc,
      	* src/filter/objects_thin.cc,
      	* src/filter/objects_with_holes.cc,
      	* src/filter/objects_with_holes_pgm.cc,
      	* src/misc/negate.cc,
      	* src/misc/superpose.cc,
      	* src/non_text_components.cc,
      	* src/pbm_text_in_doc.cc,
      	* src/postprocessing/fill_object_holes.cc,
      	* src/preprocessing/denoise_bg.cc,
      	* src/preprocessing/denoise_fg.cc,
      	* src/preprocessing/preprocess.cc,
      	* src/preprocessing/split_bg_fg.cc,
      	* src/preprocessing/subsample.cc,
      	* src/preprocessing/unskew.cc,
      	* src/primitive/extract/alignments.cc,
      	* src/primitive/extract/discontinued_hlines.cc,
      	* src/primitive/extract/discontinued_lines.cc,
      	* src/primitive/extract/discontinued_vlines.cc,
      	* src/primitive/extract/lines_pattern.cc,
      	* src/primitive/extract/separators_nonvisible.cc,
      	* src/primitive/extract/thick_hlines.cc,
      	* src/primitive/extract/thick_vlines.cc,
      	* src/primitive/find/find_discontinued_lines.cc,
      	* src/primitive/find/find_pattern_lines.cc,
      	* src/primitive/find/find_single_lines.cc,
      	* src/primitive/find/find_thick_and_single_lines.cc,
      	* src/primitive/find/find_thick_lines.cc,
      	* src/primitive/remove/separators.cc,
      	* src/table/erase.cc,
      	* src/table/extract.cc,
      	* src/text/cleantxt.cc,
      	* src/text/pbm_lines_recognition.cc,
      	* src/text/pbm_recognition.cc,
      	* src/text_in_picture.cc,
      	* src/text_in_picture_dual.cc,
      	* src/text_recognition_in_picture.cc,
      	* src/util/component_precise_outline.cc: Here.
      d48b8a4a
  5. 15 Mar, 2013 1 commit
    • Guillaume Lazzara's avatar
      Remove references to InitializeMagick(). · 40eaf23f
      Guillaume Lazzara authored
      	* scribo/demo/viewer/main.cc,
      	* scribo/demo/xml2doc/main.cc,
      	* scribo/core/document.hh,
      	* scribo/debug/logger.hh,
      	* src/binarization/global_threshold.cc,
      	* src/binarization/kim.cc,
      	* src/binarization/niblack.cc,
      	* src/binarization/otsu.cc,
      	* src/binarization/sauvola.cc,
      	* src/binarization/sauvola_ms.cc,
      	* src/binarization/sauvola_ms_debug.cc,
      	* src/binarization/sauvola_ms_fg.cc,
      	* src/binarization/sauvola_ms_split.cc,
      	* src/binarization/singh.cc,
      	* src/binarization/wolf.cc,
      	* src/content_in_doc.cc,
      	* 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/debug/show_components_boldness.cc,
      	* src/debug/show_components_color.cc,
      	* src/non_text_components.cc,
      	* src/preprocessing/rotate.cc,
      	* src/preprocessing/rotate_90.cc,
      	* src/preprocessing/split_bg_fg.cc,
      	* src/text_in_doc_preprocess.cc,
      	* src/text_in_picture.cc,
      	* src/text_in_picture_dual.cc,
      	* src/text_recognition_in_picture.cc: Here.
      40eaf23f
  6. 26 Feb, 2013 1 commit
    • Guillaume Lazzara's avatar
      Fix various warnings. · 6c791fef
      Guillaume Lazzara authored
      	* scribo/binarization/otsu_threshold.hh: Fix comparisons between
      	different types.
      
      	* scribo/io/xml/load.hh: Convert to float.
      
      	* scribo/text/paragraphs_closing.hh,
      	* scribo/text/recognition.hh,
      	* src/afp/components.hh: Remove unused variables.
      
      	* src/binarization/otsu.cc: Silent warning.
      
      	* src/misc/morpho.cc: Check number of arguments.
      6c791fef
  7. 13 Feb, 2013 2 commits
    • Roland Levillain's avatar
      Simplify more Scribo Makefiles thanks to AM_DEFAULT_SOURCE_EXT. · 155ebbe2
      Roland Levillain authored
      	* src/binarization/Makefile.am,
      	* src/contest/DAE-2011/Makefile.am,
      	* src/contest/hdibco-2010/Makefile.am,
      	* src/contest/hdlac-2011/Makefile.am,
      	* src/postprocessing/Makefile.am,
      	* src/primitive/remove/Makefile.am,
      	* src/toolchain/nepomuk/Makefile.am,
      	* src/util/Makefile.am,
      	* tests/binarization/Makefile.am,
      	* tests/convert/Makefile.am,
      	* tests/core/Makefile.am,
      	* tests/estim/Makefile.am,
      	* tests/primitive/extract/Makefile.am,
      	* tests/primitive/link/Makefile.am,
      	* tests/toolchain/nepomuk/Makefile.am,
      	* tests/util/Makefile.am:
      	Here.
      155ebbe2
    • Roland Levillain's avatar
      Use AM_DEFAULT_SOURCE_EXT to simplify Scribo's Makefiles. · 12d0a854
      Roland Levillain authored
      	* common.mk: New.
      	Include it...
      	* scribo.mk,
      	* tests/tests.mk:
      	...here.
      	* src/Makefile.am,
      	* src/binarization/Makefile.am,
      	* src/debug/Makefile.am,
      	* src/filter/Makefile.am,
      	* src/misc/Makefile.am,
      	* src/multi_scale/Makefile.am,
      	* src/preprocessing/Makefile.am,
      	* src/primitive/extract/Makefile.am,
      	* src/primitive/find/Makefile.am,
      	* src/primitive/group/Makefile.am,
      	* src/table/Makefile.am,
      	* src/text/Makefile.am,
      	* tests/filter/Makefile.am,
      	* tests/preprocessing/Makefile.am,
      	* tests/table/Makefile.am:
      	Remove (now useless) `*_SOURCES' variables using
      	sed -ri '/^(\s|#)*\S+_SOURCES\s*=\s*\S+.cc\s*$/d'.
      	* tests/unit_test/build_unit_test.sh: No longer output `*_SOURCES'
      	variables.
      	* tests/unit_test/unit-tests.mk: Regen.
      12d0a854
  8. 28 Jan, 2013 2 commits
    • Guillaume Lazzara's avatar
      Use io::magick to save output. · b05f4e5c
      Guillaume Lazzara authored
      	* src/binarization/niblack.cc,
      	* src/binarization/otsu.cc,
      	* src/binarization/sauvola.cc,
      	* src/binarization/sauvola_ms.cc,
      	* src/binarization/wolf.cc: Here.
      b05f4e5c
    • Guillaume Lazzara's avatar
      Fix binarization programs. · d4370554
      Guillaume Lazzara authored
      	* src/binarization/sauvola_ms.cc: Add negate option.
      
      	* src/binarization/sauvola_ms_debug.cc: Fix invalid k parameter
      	value.
      d4370554
  9. 10 Sep, 2012 1 commit
  10. 23 Aug, 2012 16 commits
    • Guillaume Lazzara's avatar
      Add Singh algorithm. · 82e9a800
      Guillaume Lazzara authored
      	* scribo/binarization/internal/singh_formula.hh,
      	* scribo/binarization/internal/singh_functor.hh,
      	* scribo/binarization/singh.hh,
      	* src/binarization/singh.cc: New.
      82e9a800
    • Guillaume Lazzara's avatar
      Fix invalid default options. · 73e6122b
      Guillaume Lazzara authored
      	* src/binarization/sauvola_ms_split.cc: Here.
      73e6122b
    • Guillaume Lazzara's avatar
      Add a better support for different k values in Sauvola Multiscale. · db78cd2a
      Guillaume Lazzara authored
      	* scribo/scribo/binarization/internal/sauvola_ms_functor.hh,
      	* scribo/scribo/binarization/sauvola_ms.hh,
      	* scribo/scribo/binarization/sauvola_ms_split.hh,
      	* scribo/scribo/toolchain/internal/text_in_doc_preprocess_functor.hh,
      	* scribo/scribo/toolchain/text_in_doc_preprocess.hh: Make use of
      	k2, k3 and k4 variables.
      
      	* scribo/src/binarization/sauvola_ms.cc,
      	* scribo/src/binarization/sauvola_ms_debug.cc,
      	* scribo/src/binarization/sauvola_ms_fg.cc,
      	* scribo/src/binarization/sauvola_ms_split.cc: Fix program
      	arguments.
      db78cd2a
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
      Make use of new logger features. · 56f4535e
      Guillaume Lazzara authored
      	* src/binarization/global_threshold.cc,
      	* src/binarization/kim.cc,
      	* src/binarization/niblack.cc,
      	* src/binarization/otsu.cc,
      	* src/binarization/sauvola.cc,
      	* src/binarization/sauvola_ms.cc,
      	* src/binarization/sauvola_ms_debug.cc,
      	* src/binarization/sauvola_ms_fg.cc,
      	* src/binarization/sauvola_ms_split.cc,
      	* src/binarization/wolf.cc: Make use of operator<<.
      56f4535e
    • Guillaume Lazzara's avatar
      Cleanup Kim's binarization. · 63becd70
      Guillaume Lazzara authored
      	* src/binarization/kim.cc: Move code...
      	* scribo/binarization/kim.hh: ... here.
      
      	* tests/binarization/Makefile.am: Add new target.
      
      	* tests/binarization/kim.cc,
      	* tests/binarization/kim.ref.pbm,
      	* tests/binarization/kim_weven_hodd.ref.pbm,
      	* tests/binarization/kim_wodd_heven.ref.pbm,
      	* tests/binarization/kim_wodd_hodd.ref.pbm: New.
      63becd70
    • Guillaume Lazzara's avatar
      Several small fixes. · 5cb4a2bf
      Guillaume Lazzara authored
      	* scribo/estim/font_color.hh: Fix namespace ambiguities.
      
      	* src/binarization/Makefile.am: Add kim as target.
      
      	* src/binarization/kim.cc: Cleanup code.
      
      	* src/binarization/niblack.cc: Fix reverse video.
      
      	* src/binarization/sauvola_ms.cc: Handle several k values.
      5cb4a2bf
    • Guillaume Lazzara's avatar
    • 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
      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
      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
      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
  11. 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
  12. 16 Nov, 2011 1 commit
    • Guillaume Lazzara's avatar
      Add Niblack's binarization algorithm. · 481bcb1c
      Guillaume Lazzara authored
      	* scribo/binarization/all.hh: Update includes.
      
      	* scribo/binarization/internal/compute_local_threshold.hh,
      	* scribo/binarization/internal/compute_sauvola_threshold.hh,
      	* scribo/binarization/internal/first_pass_functor.hh,
      	* scribo/binarization/internal/local_threshold_debug.hh,
      	* scribo/binarization/internal/sauvola_debug.hh,
      	* scribo/binarization/internal/sauvola_formula.hh,
      	* scribo/binarization/sauvola.hh,
      	* scribo/binarization/sauvola_ms.hh,
      	* scribo/binarization/sauvola_threshold.hh,
      	* scribo/binarization/sauvola_threshold_image.hh: Revamp code in
      	order to share some parts with Niblack's algorithm.
      
      	* scribo/binarization/internal/niblack_formula.hh,
      	* scribo/binarization/niblack.hh,
      	* scribo/binarization/niblack_threshold.hh: New.
      
      	* src/binarization/Makefile.am
      	* tests/binarization/Makefile.am: Add new targets.
      
      	* src/binarization/niblack.cc: New tool.
      
      	* tests/binarization/niblack.cc: New test.
      
      	* tests/binarization/niblack.ref.pbm: New test data.
      481bcb1c
  13. 14 Oct, 2011 2 commits
  14. 22 Aug, 2011 1 commit
    • Guillaume Lazzara's avatar
      Add an option parser to some examples. · fa58e2e7
      Guillaume Lazzara authored
      	* scribo/debug/option_check.hh,
      	* scribo/debug/option_parser.hh: New.
      
      	* src/binarization/sauvola.cc,
      	* src/binarization/sauvola_ms.cc,
      	* src/binarization/sauvola_ms_fg.cc,
      	* src/binarization/sauvola_ms_split.cc,
      	* src/content_in_doc.cc,
      	* src/pbm_text_in_doc.cc,
      	* src/text_in_doc_preprocess.cc,
      	* src/text_in_picture.cc,
      	* src/text_in_picture_neg.cc,
      	* src/text_recognition_in_picture.cc: Use the new option parser.
      fa58e2e7
  15. 04 May, 2011 1 commit
    • Guillaume Lazzara's avatar
      Small fixes in Scribo. · 62776ae2
      Guillaume Lazzara authored
      	* demo/xml2doc/image_crop.cc: Abort xml loading if an error
      	is found.
      
      	* scribo/core/line_info.hh: Fix text cleanup.
      
      	* scribo/io/img/save.hh: Add documentation.
      
      	* scribo/io/xml/internal/extended_page_xml_visitor.hh: Use
      	internal_gradient.
      
      	* scribo/primitive/extract/alignments.hh: Set component type to
      	whitespaceSeparator.
      
      	* src/binarization/sauvola_ms_fg.cc: Fix argument use.
      62776ae2
  16. 29 Mar, 2011 1 commit
    • Guillaume Lazzara's avatar
      Make use of mln::fun::v2v::rgb_to_luma. · 7d8b1163
      Guillaume Lazzara authored
      	* scribo/toolchain/internal/text_in_doc_preprocess_functor.hh,
      	* 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,
      	* src/binarization/sauvola.cc,
      	* src/binarization/sauvola_debug.cc,
      	* src/binarization/sauvola_ms.cc,
      	* src/binarization/sauvola_ms_debug.cc,
      	* src/binarization/sauvola_ms_fg.cc,
      	* src/text_in_picture.cc,
      	* src/text_in_picture_neg.cc,
      	* src/text_recognition_in_picture.cc: Here.
      7d8b1163
  17. 13 Jan, 2011 1 commit
    • Guillaume Lazzara's avatar
      Fix examples. · b4e03ea6
      Guillaume Lazzara authored
      	* src/binarization/sauvola.cc: Initialize ImageMagick.
      
      	* src/binarization/sauvola_ms.cc: Fix maximum argument count.
      b4e03ea6
  18. 10 Dec, 2010 1 commit
    • Guillaume Lazzara's avatar
      Small fixes. · 31fc353b
      Guillaume Lazzara authored
      	* scribo/text/recognition.hh: Add comments.
      
      	* src/debug/show_links_single_right.cc: Fix an invalid
      	incrementation.
      
      	* src/Makefile.am: Add Magickxx flags for pbm_text_in_doc.
      
      	* src/binarization/sauvola_ms.cc,
      	* src/text_in_doc_preprocess.cc,
      	* src/text_in_picture_neg.cc,
      	* src/text_recognition_in_picture.cc: Initialize LibMagick++.
      31fc353b
  19. 18 Nov, 2010 4 commits
    • Guillaume Lazzara's avatar
      Compilation fixes. · 9873b787
      Guillaume Lazzara authored
      	* scribo/binarization/sauvola_threshold_image.hh: Fix namespace
      	ambiguity.
      
      	* scribo/io/xml/save.hh
      	* scribo/primitive/extract/elements.hh
      	* scribo/primitive/merge/components.hh
      	* scribo/toolchain/text_in_doc_preprocess.hh
      	* scribo/toolchain/text_in_picture.hh
      	* src/binarization/ppm_sauvola_ms.cc
      	* src/binarization/ppm_sauvola_ms_fg.cc
      	* src/binarization/ppm_sauvola_ms_split.cc
      	* src/binarization/sauvola_ms.cc
      	* src/binarization/sauvola_ms_fg.cc
      	* src/binarization/sauvola_ms_split.cc
      	* src/contest/hdibco-2010/sauvola_ms_hdibco.cc
      	* src/text_in_picture.cc: Add missing includes.
      
      	* scribo/primitive/extract/lines_h_pattern.hh,
      	* scribo/primitive/extract/lines_v_pattern.hh: Make sure the
      	rectangle have odd dimensions.
      
      	* src/Makefile.am: Remove deprecated include path.
      
      	* src/binarization/ppm_sauvola.cc: Convert to gray level.
      
      	* src/pbm_text_in_doc.cc: Use doc structure.
      
      	* src/text_in_picture_neg.cc: Make use of world::rgb::invert.
      9873b787
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
      Set default window size to 101 in Sauvola examples. · 91a43aed
      Guillaume Lazzara authored
      	* src/binarization/pgm_sauvola.cc,
      	* src/binarization/ppm_sauvola.cc,
      	* src/binarization/sauvola.cc: Set default window size to 101.
      91a43aed
    • Guillaume Lazzara's avatar
      Improve debug management and outputs for Sauvola. · 87a2f38e
      Guillaume Lazzara authored
      	* scribo/binarization/internal/compute_sauvola_threshold.hh:
      	New. Move sauvola_threshold related routines here.
      
      	* scribo/binarization/internal/first_pass_functor.hh,
      	* scribo/binarization/sauvola.hh,
      	* scribo/binarization/sauvola_ms.hh,
      	* scribo/binarization/sauvola_threshold_image.hh: Move debug
      	variables...
      
      	* scribo/binarization/internal/sauvola_debug.hh: ... here. New.
      
      	* scribo/binarization/sauvola_threshold_image_debug.hh: Remove.
      
      	* src/binarization/Makefile.am,
      	* src/binarization/sauvola_debug.cc,
      	* src/binarization/sauvola_ms_debug.cc: Improve debug outputs.
      
      	* src/binarization/pgm_sauvola_threshold_image.cc: New.
      87a2f38e