1. 03 Jun, 2010 22 commits
    • Guillaume Lazzara's avatar
      text/merging.hh: Disable some debug. · 3b8335a1
      Guillaume Lazzara authored
      3b8335a1
    • Guillaume Lazzara's avatar
      Prepare DIA tools for Nuxeo/XWiki. · ff1e5aae
      Guillaume Lazzara authored
      	* scribo/src/Makefile.am: Add a new target.
      
      	* scribo/src/text_in_article_preprocess.cc: New.
      
      	* scribo/src/text_in_article_pbm.cc: Add optional cropping and
      	makes the debug optionnal.
      
      	* scribo/text/clean.hh: Improve cleanup.
      
      	* scribo/text/recognition.hh: Remove last '\n' in Tesseract's
      	output.
      ff1e5aae
    • Guillaume Lazzara's avatar
      Improve OCR recognition. · c7cb9f3c
      Guillaume Lazzara authored
      	* src/text_in_article_pbm.cc: Update call to text::recognition.
      
      	* text/clean.hh: Resize text lines according to their x_height.
      
      	* text/extract_lines.hh: Update call to extract::components.
      
      	* text/merging.hh: Remove Debug.
      
      	* text/recognition.hh: Update call to text::clean and do
      	recognition only on lines considered as text.
      
      	* subsampling/bilinear.hh,
      	* upsampling/bs2x.hh: New.
      c7cb9f3c
    • Guillaume Lazzara's avatar
      28453cfc
    • Guillaume Lazzara's avatar
      Add new routines to detect separators. · f256a61a
      Guillaume Lazzara authored
      	* scribo/primitive/extract/horizontal_separators.hh,
      	* scribo/primitive/extract/separators.hh,
      	* scribo/primitive/extract/vertical_separators.hh,
      	* scribo/primitive/remove/separators.hh: New.
      f256a61a
    • Guillaume Lazzara's avatar
      Add A first draft of a README in Scribo. · 464d58f9
      Guillaume Lazzara authored
      	* README: New.
      464d58f9
    • Guillaume Lazzara's avatar
      Move AFP's GUI into Scribo's demo directory. · 9c5c4831
      Guillaume Lazzara authored
      	* milena/sandbox/lazzara/afp/photos/gui/gui.pro,
      	* milena/sandbox/lazzara/afp/photos/gui/gui.qrc,
      	* milena/sandbox/lazzara/afp/photos/gui/icons/next.png,
      	* milena/sandbox/lazzara/afp/photos/gui/icons/ok.png,
      	* milena/sandbox/lazzara/afp/photos/gui/icons/photos.png,
      	* milena/sandbox/lazzara/afp/photos/gui/icons/prev.png,
      	* milena/sandbox/lazzara/afp/photos/gui/icons/remove.png,
      	* milena/sandbox/lazzara/afp/photos/gui/src/custom_delegate.cc,
      	* milena/sandbox/lazzara/afp/photos/gui/src/custom_delegate.hh,
      	* milena/sandbox/lazzara/afp/photos/gui/src/launch_dialog.cc,
      	* milena/sandbox/lazzara/afp/photos/gui/src/launch_dialog.hh,
      	* milena/sandbox/lazzara/afp/photos/gui/src/main.cc,
      	* milena/sandbox/lazzara/afp/photos/gui/src/main_window.cc,
      	* milena/sandbox/lazzara/afp/photos/gui/src/main_window.hh,
      	* milena/sandbox/lazzara/afp/photos/gui/ui/launch_dialog.ui,
      	* milena/sandbox/lazzara/afp/photos/gui/ui/main_window.ui: Move...
      
      	* scribo/demo/tip/gui.pro,
      	* scribo/demo/tip/gui.qrc,
      	* scribo/demo/tip/icons/next.png,
      	* scribo/demo/tip/icons/ok.png,
      	* scribo/demo/tip/icons/photos.png,
      	* scribo/demo/tip/icons/prev.png,
      	* scribo/demo/tip/icons/remove.png,
      	* scribo/demo/tip/src/custom_delegate.cc,
      	* scribo/demo/tip/src/custom_delegate.hh,
      	* scribo/demo/tip/src/launch_dialog.cc,
      	* scribo/demo/tip/src/launch_dialog.hh,
      	* scribo/demo/tip/src/main.cc,
      	* scribo/demo/tip/src/main_window.cc,
      	* scribo/demo/tip/src/main_window.hh,
      	* scribo/demo/tip/ui/launch_dialog.ui,
      	* scribo/demo/tip/ui/main_window.ui: ... here.
      9c5c4831
    • Guillaume Lazzara's avatar
      Introduce dmax_functor concept. · 9d7a1cca
      Guillaume Lazzara authored
      	* core/concept/dmax_functor.hh,
      	* primitive/link/internal/dmax_default.hh,
      	* primitive/link/internal/dmax_functor_base.hh,
      	* primitive/link/internal/dmax_width_and_height.hh,
      	* primitive/link/internal/dmax_width_only.hh: New.
      
      	* primitive/link/internal/link_single_dmax_ratio_base.hh,
      	* primitive/link/with_single_left_link_dmax_ratio.hh,
      	* primitive/link/with_single_right_link_dmax_ratio.hh: Make use of
      	the new functors.
      9d7a1cca
    • Guillaume Lazzara's avatar
      Small fixes in Scribo. · a184c810
      Guillaume Lazzara authored
      	* binarization/sauvola_ms.hh,
      	* binarization/sauvola_threshold_image_debug.hh: Update prototypes.
      
      	* primitive/internal/rd.hh,
      	* primitive/group/apply.hh,
      	* debug/save_bboxes_image.hh: Add missing mln:: namespace prefix.
      
      	* filter/objects_large.hh: Split into a routine and a functor.
      
      	* fun/v2b/objects_large_filter.hh: New.
      
      	* io/xml/save_text_lines.hh: Save line type.
      
      	* table/internal/repair_lines.hh,
      	* table/internal/align_lines.hh,
      	* make/text.hh: Update macro name.
      
      	* core/erase_objects.hh,
      	* primitive/extract/lines_discontinued.hh,
      	* primitive/extract/lines_h_discontinued.hh,
      	* primitive/extract/lines_h_pattern.hh,
      	* primitive/extract/lines_h_single.hh,
      	* primitive/extract/lines_h_thick.hh,
      	* primitive/extract/lines_thick.hh,
      	* primitive/extract/lines_v_discontinued.hh,
      	* primitive/extract/lines_v_single.hh,
      	* primitive/extract/lines_v_thick.hh,
      	* primitive/group/from_graph.hh,
      	* primitive/internal/find_graph_link.hh,
      	* primitive/link/with_graph.hh,
      	* primitive/link/with_several_graphes.hh,
      	* primitive/link/with_several_left_links.hh,
      	* primitive/link/with_several_right_links.hh,
      	* table/erase.hh,
      	* table/extract.hh: Remove any references to object_image.
      
      	* table/internal/connect_lines.hh: use
      	influence_zone_geodesic_saturated
      
      	* filter/objects_small.hh: Duplicate component set.
      
      	* primitive/internal/all.hh,
      	* primitive/extract/all.hh,
      	* filter/all.hh,
      	* core/all.hh: Remove non existing includes.
      
      	* core/macros.hh: New macro.
      
      	* core/line_info.hh: Fix stats.
      
      	* filter/object_links_non_aligned.hh,
      	* filter/object_links_non_h_aligned.hh,
      	* filter/object_links_non_v_aligned.hh: Removed.
      a184c810
    • Guillaume Lazzara's avatar
      Improve dematerialization wizard. · 8d47be15
      Guillaume Lazzara authored
      	* demo/wizard/src/crop_widget.cc,
      	* demo/wizard/src/main.cc,
      	* demo/wizard/src/main_window.cc,
      	* demo/wizard/src/main_window.hh,
      	* demo/wizard/src/preprocessing_widget.cc,
      	* demo/wizard/src/process_page.cc,
      	* demo/wizard/src/result_page.cc,
      	* demo/wizard/src/result_page.hh,
      	* demo/wizard/src/result_widget.cc,
      	* demo/wizard/src/result_widget.hh,
      	* demo/wizard/src/runner.cc,
      	* demo/wizard/ui/preprocessing_widget.ui,
      	* demo/wizard/wizard.pro: Add support for text recognition and
      	display results.
      8d47be15
    • Guillaume Lazzara's avatar
      Add a new demo in Scribo. · 548b72e3
      Guillaume Lazzara authored
      	* demo/demat/demat.pro,
      	* demo/demat/demat.qrc,
      	* demo/demat/src/doc_type.hh,
      	* demo/demat/src/main.cc,
      	* demo/demat/src/main_window.cc,
      	* demo/demat/src/main_window.hh,
      	* demo/demat/src/mln_widgets.cc,
      	* demo/demat/src/preprocessing_task.hh,
      	* demo/demat/src/process_args.hh,
      	* demo/demat/src/runner.cc,
      	* demo/demat/src/runner.hh,
      	* demo/demat/ui/main_window.ui: New.
      
      	* demo/shared/src/crop_item.cc,
      	* demo/shared/src/crop_item.hh,
      	* demo/shared/src/image_viewer.cc,
      	* demo/shared/src/image_viewer.hh,
      	* demo/shared/ui/image_viewer.ui: Update according the needs of
      	this new demo.
      548b72e3
    • Guillaume Lazzara's avatar
      11701a0c
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
      Use anchor::Type in alignment routines' dispatch. · b54300a5
      Guillaume Lazzara authored
      	* filter/object_links_bottom_aligned.hh,
      	* filter/object_links_center_aligned.hh,
      	* filter/object_links_left_aligned.hh,
      	* filter/object_links_non_aligned_simple.hh,
      	* filter/object_links_right_aligned.hh,
      	* filter/object_links_top_aligned.hh: Use anchor::Type.
      
      	* filter/internal/alignment_angle.hh,
      	* filter/internal/component_aligned.hh: New.
      b54300a5
    • Guillaume Lazzara's avatar
      Small fixes related to object_groups. · 6143a5ec
      Guillaume Lazzara authored
      	* core/object_groups.hh: Add more preconditions.
      
      	* filter/object_groups_small.hh: Call duplicate().
      6143a5ec
    • Guillaume Lazzara's avatar
      Add init() member to object_links structure. · 2c6947d7
      Guillaume Lazzara authored
      	* core/object_links.hh: New init() member.
      
      	* filter/object_groups_v_thickness.hh,
      	* filter/object_groups_with_holes.hh,
      	* primitive/group/from_double_link.hh,
      	* primitive/link/internal/link_functor_base.hh,
      	* primitive/link/merge_double_link.hh,
      	* src/afp/link.hh,
      	* src/afp/regroup.hh: Call init() on object_links instances.
      
      	* primitive/internal/init_link_array.hh: Remove.
      2c6947d7
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
      Add new Sauvola overloads and update examples. · d10f1a65
      Guillaume Lazzara authored
      	* scribo/binarization/internal/first_pass_functor.hh,
      	* scribo/binarization/local_threshold.hh,
      	* scribo/binarization/sauvola.hh,
      	* scribo/binarization/sauvola_ms.hh,
      	* scribo/binarization/sauvola_ms_split.hh,
      	* scribo/binarization/sauvola_threshold_image.hh,
      	* scribo/canvas/integral_browsing.hh: Add more parameters to
      	Sauvola routines.
      
      	* scribo/binarization/sauvola_threshold_image_debug.hh: New. New
      	overload providing debug outputs.
      
      	* scribo/debug/usage.hh: Remove a parameter.
      
      	* scribo/src/binarization/Makefile.am,
      	* scribo/src/binarization/pgm_global_threshold_auto.cc,
      	* scribo/src/binarization/pgm_sauvola.cc,
      	* scribo/src/binarization/pgm_sauvola_ms.cc,
      	* scribo/src/binarization/ppm_fg_sauvola_ms.cc,
      	* scribo/src/binarization/ppm_sauvola.cc,
      	* scribo/src/binarization/ppm_sauvola_ms.cc,
      	* scribo/src/binarization/ppm_sauvola_ms_split.cc: Add new
                program arguments.
      
      	* scribo/src/binarization/fg_sauvola_ms.cc,
              * scribo/src/binarization/sauvola.cc,
              * scribo/src/binarization/sauvola_ms.cc,
              * scribo/src/binarization/sauvola_ms_split.cc,
      	* scribo/src/binarization/sauvola_debug.cc: New.
      d10f1a65
    • Guillaume Lazzara's avatar
      Add support for various image types in text_in_photo_fast. · b1a4d275
      Guillaume Lazzara authored
      	* src/Makefile.am: Add ImageMagick CPPFLAGS and LDFLAGS.
      
      	* src/text_in_photo_ppm_fast.cc: Rename as...
      	* src/text_in_photo_fast.cc: ... this. Use ImageMagick to load images.
      b1a4d275
    • Guillaume Lazzara's avatar
      Improve dematerialization wizard. · 9f724b07
      Guillaume Lazzara authored
      	* demo/wizard/src/crop_widget.cc,
      	* demo/wizard/src/main.cc,
      	* demo/wizard/src/main_window.cc,
      	* demo/wizard/src/main_window.hh,
      	* demo/wizard/src/preprocessing_widget.cc,
      	* demo/wizard/src/process_page.cc,
      	* demo/wizard/src/result_page.cc,
      	* demo/wizard/src/result_page.hh,
      	* demo/wizard/src/result_widget.cc,
      	* demo/wizard/src/result_widget.hh,
      	* demo/wizard/src/runner.cc,
      	* demo/wizard/ui/preprocessing_widget.ui,
      	* demo/wizard/wizard.pro: Add support for text recognition and
      	display results.
      9f724b07
    • Guillaume Lazzara's avatar
      Add a new demo in Scribo. · 6adbc43e
      Guillaume Lazzara authored
      	* demo/demat/demat.pro,
      	* demo/demat/demat.qrc,
      	* demo/demat/src/doc_type.hh,
      	* demo/demat/src/main.cc,
      	* demo/demat/src/main_window.cc,
      	* demo/demat/src/main_window.hh,
      	* demo/demat/src/mln_widgets.cc,
      	* demo/demat/src/preprocessing_task.hh,
      	* demo/demat/src/process_args.hh,
      	* demo/demat/src/runner.cc,
      	* demo/demat/src/runner.hh,
      	* demo/demat/ui/main_window.ui: New.
      
      	* demo/shared/src/crop_item.cc,
      	* demo/shared/src/crop_item.hh,
      	* demo/shared/src/image_viewer.cc,
      	* demo/shared/src/image_viewer.hh,
      	* demo/shared/ui/image_viewer.ui: Update according the needs of
      	this new demo.
      6adbc43e
    • Guillaume Lazzara's avatar
      Small fixes in Scribo. · 4a195987
      Guillaume Lazzara authored
      	* binarization/sauvola_ms.hh: Fix compilation issues on MacOS X.
      
      	* core/component_set.hh: Add labeled_image_() member.
      
      	* debug/save_bboxes_image.hh: Add a missing include.
      
      	* preprocessing/split_bg_fg.hh,
      	* primitive/extract/components.hh: Fix namespace ambiguities.
      
      	* src/text_in_article.cc: Rename as...
      	* src/text_in_article_pbm.cc: ... this.
      
      	* src/Makefile.am: Update source file names.
      4a195987
  2. 18 Mar, 2010 1 commit
    • Guillaume Lazzara's avatar
      Cleanup binarization tools. · e1a1cc37
      Guillaume Lazzara authored
      	* binarization/binarize.hh,
      	* binarization/simple.hh,
      	* binarization/sauvola_threshold.hh,
      	* src/binarization/simple.cc,
      	* src/binarization/sauvola_pgm.cc,
      	* src/binarization/sauvola_ms.cc,
      	* src/binarization/sauvola.cc: Rename as...
      
      
      	* binarization/local_threshold.hh,
      	* binarization/global_threshold_auto.hh,
      	* binarization/sauvola_threshold_image.hh,
      	* src/binarization/pgm_global_threshold_auto.cc,
      	* src/binarization/pgm_sauvola.cc,
      	* src/binarization/pgm_sauvola_ms.cc,
      	* src/binarization/ppm_sauvola.cc: ... this.
      
      	* binarization/global_threshold.hh,
      	* binarization/sauvola_ms_split.hh,
      	* src/binarization/ppm_fg_sauvola_ms.cc,
      	* src/binarization/ppm_sauvola_ms.cc,
      	* src/binarization/ppm_sauvola_ms_split.cc: New.
      
      	* binarization/internal/first_pass_functor.hh: Fix an include.
      
      	* binarization/sauvola.hh: Update code according to last renaming.
      
      	* binarization/sauvola_ms.hh: Invert threshold test and add
      	documentation.
      
      	* src/binarization/Makefile.am: Add new targets.
      
      	* tests/Makefile.am,
      	* tests/binarization/Makefile.am,
      	* tests/binarization/global_threshold.cc,
      	* tests/binarization/local_threshold.cc: New tests.
      e1a1cc37
  3. 17 Mar, 2010 1 commit
    • Guillaume Lazzara's avatar
      Update AFP's toolchain according to last changes in core classes. · 70d61a2d
      Guillaume Lazzara authored
      	* core/object_groups.hh: Add duplicate().
      
      	* primitive/group/apply.hh: Preserve components ids.
      
      	* draw/groups_bboxes.hh,
      	* filter/object_groups_with_holes.hh,
      	* primitive/regroup/from_single_left_link.hh: New.
      
      	* src/text_in_photo_ppm_fast.cc: Make it work with the new core
      	classes. Fix component ids issues when relabeling.
      70d61a2d
  4. 15 Mar, 2010 16 commits
    • Guillaume Lazzara's avatar
      Add a new example for finding text in pictures. · b0562970
      Guillaume Lazzara authored
      	* src/Makefile.am: Add new target.
      
      	* src/text_in_photo_pbm_fast.cc: New.
      b0562970
    • Guillaume Lazzara's avatar
      First draft of the dematerialization wizard. · 4046dfe6
      Guillaume Lazzara authored
      	* demo/shared/icons/Symbols-Delete-icon.png,
      	* demo/shared/icons/accept-icon.png,
      	* demo/shared/icons/close.gif,
      	* demo/shared/icons/crop-icon.png,
      	* demo/shared/icons/image-add-icon.png,
      	* demo/shared/icons/image-edit-icon.png,
      	* demo/shared/icons/image-multi-icon.png,
      	* demo/shared/icons/image-next-icon.png,
      	* demo/shared/icons/image-remove-icon.png,
      	* demo/shared/icons/next-icon.png,
      	* demo/shared/icons/page-down-icon.png,
      	* demo/shared/icons/page-search-icon.png,
      	* demo/shared/icons/rotate_ccw.png,
      	* demo/shared/icons/rotate_cw.png,
      	* demo/shared/icons/search-add-icon.png,
      	* demo/shared/icons/search-remove-icon.png,
      	* demo/shared/shared.qrc,
      	* demo/shared/src/bak/crop_item.cc,
      	* demo/shared/src/bak/crop_item.hh,
      	* demo/shared/src/bak/image_viewer.cc,
      	* demo/shared/src/bak/image_viewer.hh,
      	* demo/shared/src/bak/types.hh,
      	* demo/shared/src/browse_widget.cc,
      	* demo/shared/src/browse_widget.hh,
      	* demo/shared/src/crop_item.cc,
      	* demo/shared/src/crop_item.hh,
      	* demo/shared/src/image_viewer.cc,
      	* demo/shared/src/image_viewer.hh,
      	* demo/shared/src/internal.bak/interactive_scene.cc,
      	* demo/shared/src/internal.bak/interactive_scene.hh,
      	* demo/shared/src/internal.bak/selection_rectangle.cc,
      	* demo/shared/src/internal.bak/selection_rectangle.hh,
      	* demo/shared/src/internal/interactive_scene.cc,
      	* demo/shared/src/internal/interactive_scene.hh,
      	* demo/shared/src/internal/selection_rectangle.cc,
      	* demo/shared/src/internal/selection_rectangle.hh,
      	* demo/shared/src/to_mln_image.hh,
      	* demo/shared/src/types.hh,
      	* demo/shared/ui/browse_widget.ui,
      	* demo/shared/ui/crop_widget.ui,
      	* demo/shared/ui/image_viewer.ui,
      	* demo/shared/ui/interactive_scene.cc,
      	* demo/shared/ui/interactive_scene.hh,
      	* demo/shared/ui/rotate_widget.ui,
      	* demo/wizard/images/dematerialization.png,
      	* demo/wizard/src/crop_page.cc,
      	* demo/wizard/src/crop_page.hh,
      	* demo/wizard/src/crop_widget.cc,
      	* demo/wizard/src/crop_widget.hh,
      	* demo/wizard/src/doc_type.hh,
      	* demo/wizard/src/doc_type_page.cc,
      	* demo/wizard/src/doc_type_page.hh,
      	* demo/wizard/src/doc_type_widget.cc,
      	* demo/wizard/src/doc_type_widget.hh,
      	* demo/wizard/src/load_page.cc,
      	* demo/wizard/src/load_page.hh,
      	* demo/wizard/src/load_widget.cc,
      	* demo/wizard/src/load_widget.hh,
      	* demo/wizard/src/main.cc,
      	* demo/wizard/src/main_window.cc,
      	* demo/wizard/src/main_window.hh,
      	* demo/wizard/src/mln_widgets.cc,
      	* demo/wizard/src/preprocessing_page.cc,
      	* demo/wizard/src/preprocessing_page.hh,
      	* demo/wizard/src/preprocessing_task.hh,
      	* demo/wizard/src/preprocessing_widget.cc,
      	* demo/wizard/src/preprocessing_widget.hh,
      	* demo/wizard/src/process_page.cc,
      	* demo/wizard/src/process_page.hh,
      	* demo/wizard/src/process_widget.cc,
      	* demo/wizard/src/process_widget.hh,
      	* demo/wizard/src/rotate_page.cc,
      	* demo/wizard/src/rotate_page.hh,
      	* demo/wizard/src/rotate_widget.cc,
      	* demo/wizard/src/rotate_widget.hh,
      	* demo/wizard/src/runner.cc,
      	* demo/wizard/src/runner.hh,
      	* demo/wizard/src/test.cc,
      	* demo/wizard/ui/doc_type_widget.ui,
      	* demo/wizard/ui/load_widget.ui,
      	* demo/wizard/ui/main_window.ui,
      	* demo/wizard/ui/preprocessing_widget.ui,
      	* demo/wizard/wizard.pro,
      	* demo/wizard/wizard.qrc: New.
      4046dfe6
    • Guillaume Lazzara's avatar
      Update examples. · cae5c856
      Guillaume Lazzara authored
      	* src/text_in_photo_ppm_fast.cc,
      	* src/debug/show_links_bottom_aligned.cc,
      	* src/debug/show_links_top_aligned.cc: Update calls to routines.
      
      	* src/preprocessing/trash.cc,
      	* src/text_in_photo_ppm_fast_2.cc,
      	* src/preprocessing/split_bg_fg_ms.cc,
      	* src/preprocessing/denoising.cc: Removed.
      
      	* src/preprocessing/denoise.cc,
      	* src/preprocessing/homogeneous_contrast.ccm,
      	* src/preprocessing/subsample.cc: New.
      
      	* src/preprocessing/Makefile.am: Add new files as target.
      
      	* src/preprocessing/split_bg_fg.cc: Fix usage.
      
      	* src/text_in_article.cc: Update processing chain.
      cae5c856
    • Guillaume Lazzara's avatar
      Improve text line merging algorithm. · de558e1f
      Guillaume Lazzara authored
      	* text/merging.hh: Change merge rules and improve integration with
      	Scribo line structures.
      de558e1f
    • Guillaume Lazzara's avatar
      Add a reconstruction algorithm. · ec5a4728
      Guillaume Lazzara authored
      	* primitive/internal/rd.hh: New.
      ec5a4728
    • Guillaume Lazzara's avatar
      Small fixes. · 2d5c9e76
      Guillaume Lazzara authored
      	* binarization/sauvola_ms.hh: Add a missing include.
      
      	* binarization/sauvola_threshold.hh: Remove debug and useless
      	comments.
      
      	* preprocessing/unskew.hh: Fix invalid guards.
      
      	* primitive/extract/components.hh: Fill image extension.
      
      	* primitive/extract/lines_pattern.hh: Adjust and fill image
      	extension.
      
      	* primitive/extract/lines_v_thick.hh: Fix traces.
      2d5c9e76
    • Guillaume Lazzara's avatar
      Add new preprocessing routines. · b8b44828
      Guillaume Lazzara authored
      	* preprocessing/denoise.hh,
      	* preprocessing/denoise_bg.hh,
      	* preprocessing/denoise_fg.hh,
      	* preprocessing/homogeneous_contrast.hh,
      	* preprocessing/rotate_90.hh: New routines.
      
      	* fun/v2b/label_to_bool.hh: New function.
      
      	* tests/preprocessing/Makefile.am,
      	* tests/preprocessing/rotate_90.cc: New test.
      b8b44828
    • Guillaume Lazzara's avatar
      Update code according to last changes in Scribo core classes. · 1e6a267b
      Guillaume Lazzara authored
      	* draw/bounding_box_links.hh,
      	* primitive/internal/init_link_array.hh,
      	* primitive/internal/is_link_valid.hh,
      	* primitive/link/internal/link_single_dmax_base.hh,
      	* src/afp/link.hh: Update the use of object_link class.
      
      	* draw/bounding_boxes.hh,
      	* filter/objects_with_holes.hh,
      	* src/afp/regroup.hh: Update for_all macro.
      
      	* estim/object_groups_v_thickness.hh,
      	* filter/object_groups_small.hh,
      	* filter/object_groups_v_thickness.hh,
      	* text/recognition.hh: Update access to component_set.
      
      	* filter/object_links_bbox_h_ratio.hh,
      	* filter/object_links_bbox_overlap.hh,
      	* filter/object_links_bbox_ratio.hh,
      	* filter/object_links_bottom_aligned.hh,
      	* filter/object_links_non_aligned_simple.hh,
      	* filter/object_links_top_aligned.hh,
      	* primitive/group/apply.hh,
      	* primitive/group/from_single_link.hh,
      	* primitive/link/merge_double_link.hh,
      	* primitive/link/with_single_right_link_bottom.hh,
      	* primitive/link/with_single_right_link_dmax_ratio.hh,
      	* primitive/link/with_single_right_link_top.hh: Improve routine
      	prototypes.
      
      	* primitive/link/internal/link_functor_base.hh: Make use of
      	separators if exist.
      1e6a267b
    • Guillaume Lazzara's avatar
      Improve debug routines in Scribo. · 3a3cd53c
      Guillaume Lazzara authored
      	* debug/bboxes_enlarged_image.hh,
      	* debug/looks_like_a_text_line_image.hh,
      	* debug/mean_and_base_lines_image.hh: New routines.
      
      	* debug/alignment_decision_image.hh,
      	* debug/decision_image.hh,
      	* debug/save_bboxes_image.hh: Update code according to last
      	changes in core classes.
      
      	* debug/usage.hh: Make the description optional.
      3a3cd53c
    • Guillaume Lazzara's avatar
      Improve core classes in Scribo. · 94a1f48d
      Guillaume Lazzara authored
      	* core/component_info.hh,
      	* core/component_set.hh: Add new methods and an output operator.
      
      	* core/line_info.hh: Add new methods and improve stats computation.
      
      	* core/line_set.hh: Add new methods.
      
      	* core/macros.hh: Add more specific macros.
      
      	* core/tag/component.hh,
      	* core/tag/line.hh: Add output operators.
      94a1f48d
    • Guillaume Lazzara's avatar
      Share internal data in groups and links structures. · cb3ec8ce
      Guillaume Lazzara authored
      	* core/object_groups.hh,
      	* core/object_links.hh: Share internal data using a tracked
      	pointer.
      cb3ec8ce
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
      Add a small tool to recognize text in a binary image. · ced2be00
      Guillaume Lazzara authored
      	* src/text/Makefile.am: New target.
      
      	* src/text/pbm_recognition.cc: New.
      
      	* text/recognition.hh: Add an overload taking an image as
      	argument.
      ced2be00
    • Guillaume Lazzara's avatar
      Add a subsampling algorithm. · c803910e
      Guillaume Lazzara authored
      	* subsampling/integral.hh: New. Compute a subsample image and an
      	integral image at the same time.
      c803910e
    • Guillaume Lazzara's avatar
      Add a first draft of a text line merging algorithm. · 7dc506b4
      Guillaume Lazzara authored
      	* text/merging.hh: New.
      7dc506b4
    • Guillaume Lazzara's avatar
      Add and update examples. · a0c8b8d5
      Guillaume Lazzara authored
      	* src/Makefile.am,
      	* src/binarization/Makefile.am,
      	* src/preprocessing/Makefile.am: Add new targets.
      
      	* src/preprocessing/denoising.cc: New.
      
      	* src/preprocessing/split_bg_fg.cc: Fix usage.
      
      	* src/text_in_article.cc,
      	* src/text_in_photo_ppm_fast.cc: Update code according last
      	changes in core classes.
      
      	* src/text_in_photo_ppm_fast_2.cc: New example.
      a0c8b8d5