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. 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
  3. 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
  4. 23 Aug, 2012 5 commits
    • 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