1. 15 Mar, 2010 24 commits
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
      Introduce new Scribo core classes and start using them. · 03f61d76
      Guillaume Lazzara authored
      	* scribo/core/component_info.hh,
      	* scribo/core/component_set.hh,
      	* scribo/core/line_info.hh,
      	* scribo/core/line_set.hh,
      	* scribo/core/macros.hh,
      	* scribo/core/object_groups.hh,
      	* scribo/core/object_links.hh,
      	* scribo/core/tag/anchor.hh,
      	* scribo/core/tag/component.hh,
      	* scribo/core/tag/line.hh: New core classes.
      
      	* scribo/core/object_image.hh: Remove.
      
      	* scribo/core/anchors.hh
      	* scribo/primitive/extract/objects.hh: Rename as...
      
      	* scribo/primitive/link/internal/compute_anchor.hh,
      	* scribo/primitive/extract/components.hh: ... this.
      
      	* scribo/draw/bounding_box_links.hh,
      	* scribo/filter/object_links_bbox_h_ratio.hh,
      	* scribo/filter/object_links_bbox_ratio.hh,
      	* scribo/filter/objects_small.hh,
      	* scribo/fun/v2b/objects_small_filter.hh,
      	* scribo/primitive/group/apply.hh,
      	* scribo/primitive/group/from_single_link.hh,
      	* scribo/primitive/internal/find_root.hh,
      	* scribo/primitive/internal/init_link_array.hh,
      	* scribo/primitive/link/compute.hh,
      	* scribo/primitive/link/internal/find_link.hh,
      	* scribo/primitive/link/internal/find_several_links.hh,
      	* scribo/primitive/link/internal/link_functor_base.hh,
      	* scribo/primitive/link/internal/link_several_dmax_base.hh,
      	* scribo/primitive/link/internal/link_single_dmax_base.hh,
      	* scribo/primitive/link/internal/link_single_dmax_ratio_base.hh,
      	* scribo/primitive/link/merge_double_link.hh,
      	* scribo/primitive/link/with_single_left_link_dmax_ratio.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_top.hh: Make use of
      	the new core classes.
      03f61d76
    • Guillaume Lazzara's avatar
      Add anchor support in debug routines. · 92a937fa
      Guillaume Lazzara authored
      	* scribo/debug/alignment_decision_image.hh,
      	* scribo/debug/links_decision_image.hh,
      	* scribo/debug/save_linked_bboxes_image.hh,
      	* scribo/draw/bounding_box_links.hh: Make use of anchor points to
      	draw debug outputs.
      92a937fa
    • Guillaume Lazzara's avatar
      Add new link filters. · 10172dec
      Guillaume Lazzara authored
      	* scribo/filter/object_links_non_aligned_simple.hh: Handle new
      	cases.
      
      	* scribo/filter/object_links_left_aligned.hh,
      	* scribo/filter/object_links_right_aligned.hh: New filters.
      10172dec
    • Guillaume Lazzara's avatar
      Improve object linking backend. · 3894a51d
      Guillaume Lazzara authored
      	* scribo/primitive/internal/find_left_link.hh,
      	* scribo/primitive/internal/find_right_link.hh,
      	* scribo/primitive/internal/is_invalid_link.hh: Remove.
      
      	* scribo/primitive/link/internal/compute_anchor.hh,
      	* scribo/primitive/link/internal/link_ms_dmax_base.hh,
      	* scribo/primitive/link/internal/link_ms_dmax_ratio_base.hh,
      	* scribo/primitive/link/internal/link_single_dmax_base.hh,
      	* scribo/primitive/link/internal/link_single_dmax_ratio_base.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_right_link.hh,
      	* scribo/primitive/link/with_single_right_link_dmax_ratio.hh,
      	* scribo/primitive/link/with_single_up_link.hh: Introduce the
      	anchor concept and make use of it.
      3894a51d
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
      Add dedicated routines for AFP's use case. · b31f2f59
      Guillaume Lazzara authored
      	* scribo/src/afp/components.hh,
      	* scribo/src/afp/link.hh,
      	* scribo/src/afp/regroup.hh: New.
      b31f2f59
    • Guillaume Lazzara's avatar
      Add new tools in Scribo. · 9fca6595
      Guillaume Lazzara authored
      	* src/preprocessing/Makefile.am,
      	* src/filter/Makefile.am,
      	* src/debug/Makefile.am: Add new targets.
      
      	* src/debug/show_info_median_inter_characters.cc,
      	* src/debug/show_info_x_height.cc,
      	* src/debug/show_links_single_down.cc,
      	* src/debug/show_links_single_down_left_aligned.cc,
      	* src/debug/show_links_single_down_right_aligned.cc,
      	* src/debug/show_links_single_up.cc,
      	* src/debug/show_links_single_up_left_aligned.cc,
      	* src/debug/show_links_single_up_right_aligned.cc,
      	* src/filter/objects_with_holes.cc,
      	* src/filter/objects_with_holes_pgm.cc,
      	* src/pbm_lines_in_doc.cc,
      	* src/preprocessing/split_bg_fg_ms.cc,
      	* src/text_in_article.cc,
      	* src/text_in_photo_ppm_fast.cc: New tools.
      
      	* src/debug/show_left_right_links_validation.cc: Rename as...
      	* src/debug/show_links_left_right_links_validation.cc: ...this.
      
      	* src/debug/show_links_bbox_h_ratio.cc: Add a missing argument.
      9fca6595
    • Guillaume Lazzara's avatar
      619f727a
    • Guillaume Lazzara's avatar
      Cleanup and avoid warnings in Sauvola related files. · ca034dd5
      Guillaume Lazzara authored
      	* scribo/binarization/sauvola_ms.hh,
      	* scribo/binarization/sauvola_threshold.hh,
      	* scribo/canvas/integral_browsing.hh,
      	* scribo/src/binarization/sauvola_ms.cc,
      	* scribo/src/binarization/sauvola_pgm.cc,x
      	* scribo/subsampling/integral_single_image.hh: Cleanup and avoir
      	warnings.
      ca034dd5
    • Guillaume Lazzara's avatar
      7c60810a
    • Guillaume Lazzara's avatar
      Add a new test for object_image. · 07c83125
      Guillaume Lazzara authored
      	* tests/Makefile.am,
      	* tests/core/Makefile.am: Update build system.
      
      	* tests/core/object_image.cc: New test.
      07c83125
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
      Fix object links filters. · 3151875d
      Guillaume Lazzara authored
      	* filter/object_links_bottom_aligned.hh,
      	* filter/object_links_center_aligned.hh,
      	* filter/object_links_non_aligned_simple.hh,
      	* filter/object_links_top_aligned.hh: Pass the proper dimension as
      	routine argument.
      3151875d
    • Guillaume Lazzara's avatar
      Cleanup Sauvola's binarization code. · 74ae8cb3
      Guillaume Lazzara authored
      	* binarization/sauvola_threshold.hh,
      	* binarization/sauvola.hh: Use fun::v2v::rgb_to_int_u8.
      
      	* binarization/sauvola_ms.hh: New. Sauvola multi-scale routine.
      
      	* src/binarization/sauvola.cc: Make the window size a program
      	argument.
      
      	* src/binarization/sauvola_ms.cc: Use Sauvola multi-scale routine.
      74ae8cb3
    • Guillaume Lazzara's avatar
    • Guillaume Lazzara's avatar
      Improve linking routines. · 906f2366
      Guillaume Lazzara authored
      	* core/anchors.hh: New. Add anchor types.
      
      	* filter/objects_thin.hh: Use filter::internal::compute.
      
      	* primitive/link/internal/find_several_links.hh,
      	* primitive/link/internal/find_link.hh,
      	* primitive/link/compute.hh: Update functor interface in order to
      	specify anchors.
      
      	* primitive/link/compute_several.hh: Fix an invalid namespace.
      
      	* primitive/link/internal/anchors_3.hh: Move...
      
      	* primitive/link/internal/compute_anchor.hh: ... here.
      
      	* primitive/link/internal/link_functor_base.hh: Use anchor type.
      
      	* primitive/link/internal/link_several_dmax_base.hh: New.
      
      	* primitive/link/internal/link_center_dmax_base.hh,
      	* primitive/link/internal/link_center_dmax_ratio_base.hh: Removed.
      
      	* primitive/link/with_several_right_links_overlap.hh: Fix includes.
      
      	* primitive/link/with_single_right_link_bottom.hh,
      	* primitive/link/with_single_right_link_top.hh,
      	* primitive/link/with_single_left_link.hh,
      	* primitive/link/with_single_right_link.hh: Use
      	link_single_dmax_base functor.
      
      	* src/debug/show_links_several_right_overlap.cc,
      	* src/debug/show_links_single_left.cc,
      	* src/debug/show_links_single_left_dmax_ratio.cc,
      	* src/debug/show_links_single_right.cc,
      	* src/debug/show_links_single_right_dmax_ratio.cc: Update functor
      	interface.
      906f2366
    • Guillaume Lazzara's avatar
      Add rbg_to_int_u function. · f7773bdb
      Guillaume Lazzara authored
      	* mln/fun/v2v/all.hh: Include the new header.
      
      	* mln/fun/v2v/rgb_to_int_u.hh: New.
      f7773bdb
    • Guillaume Lazzara's avatar
      Add an antialiased subsampling. · 97aadbd7
      Guillaume Lazzara authored
      	* mln/subsampling/antialiased.hh: New.
      97aadbd7
    • Guillaume Lazzara's avatar
      Add hooks for subclasses in labeled_image_base. · f70c8e0a
      Guillaume Lazzara authored
      	* mln/core/internal/labeled_image_base.hh: New methods which can
      	be overridden in subclasses.
      
      	* mln/core/image/imorph/labeled_image.hh: Add a missing header.
      f70c8e0a
    • Guillaume Lazzara's avatar
      Improve stats computation in Sauvola Multi-scale. · 542fcf95
      Guillaume Lazzara authored
      	* binarization/internal/first_pass_functor.hh: Use
      	sauvola_threshold routine.
      
      	* binarization/sauvola_threshold.hh: Remove debug and fix invalid
      	read in integral image.
      
      	* canvas/integral_browsing.hh,
      	* subsampling/integral_single_image.hh: Fix stats computation.
      
      	* src/binarization/sauvola_ms.cc: Fix window parameter and make
      	debug output optional.
      542fcf95
    • Guillaume Lazzara's avatar
      Optimize Sauvola's multiscale binarization. · 32e461a6
      Guillaume Lazzara authored
      	* core/init_integral_image.hh: New.
      
      	* src/binarization/sauvola_ms.cc: Optimize and make it more
      	robust.
      
      	* canvas/integral_browsing.hh: New canvas to browse and compute
      	data in an integral image.
      
      	* binarization/internal/first_pass_functor.hh: New functor to be
      	used in the integral browsing.
      
      	* binarization/sauvola_threshold.hh: Add new overloads.
      
      	* subsampling/integral_single_image.hh: Subsample an image and
      	compute integral images at the same time.
      32e461a6
    • Guillaume Lazzara's avatar
      Small fixes. · 4bfd663c
      Guillaume Lazzara authored
      	* mln/accu/count_value.hh: Fix doc.
      
      	* mln/convert/from_to.hxx,
      	* mln/value/int_u.hh,
      	* mln/value/qt/rgb32.hhL: Add new from_to overloads.
      
      	* mln/convert/to_qimage.hh: Add a missing include.
      
      	* mln/convert/to_qimage_nocopy.hh: Rename an overload.
      
      	* mln/core/concept/function.hh: Add new concept n2v.
      
      	* mln/geom/rotate.hh: rename center() to pcenter().
      
      	* mln/histo/compute.hh: Fix a namespace ambiguity.
      
      	* mln/io/magick/save.hh: Handle qt::rgb32.
      
      	* mln/io/plot/save.hh: Add an overload for histograms.
      
      	* mln/labeling/relabel.hh: Make 'nlabels' const.
      
      	* mln/topo/skeleton/crest.hh: Fix a bug.
      
      	* tests/core/other/box_runstart_piter.cc: Write a valid test.
      4bfd663c
  2. 11 Mar, 2010 1 commit
  3. 24 Feb, 2010 1 commit
  4. 17 Feb, 2010 1 commit
  5. 16 Feb, 2010 13 commits