1. 07 Sep, 2007 1 commit
    • Thierry Geraud's avatar
      Renaming sbrowsing and tests. · 9af91891
      Thierry Geraud authored
      	* mln/canvas/browsing: New directory.
      
      	* mln/canvas/sbrowsing.hh,
      	* mln/linear/fast_gaussian.hh,
      	* tests/approx_median.cc,
      	* tests/assign.cc,
      	* tests/convolve.cc,
      	* tests/fast_median.cc,
      	* tests/fill.cc,
      	* tests/histo.cc,
      	* tests/hmedian.cc,
      	* tests/int_s.cc,
      	* tests/int_u8.cc,
      	* tests/label.cc,
      	* tests/mean.cc,
      	* tests/median.cc,
      	* tests/naive_median.cc,
      	* tests/println.cc,
      	* tests/println_with_border.cc,
      	* tests/rectangle2d.cc,
      	* tests/sobel.cc,
      	* tests/to_image.cc,
      	* tests/to_vec_p.cc,
      	* tests/transform.cc,
      	* tests/vset.cc: Respectively rename as...
      
      	* mln/canvas/browsing/snake_fwd.hh,
      	* mln/linear/gaussian.hh,
      	* tests/level_approx_median.cc,
      	* tests/level_assign.cc,
      	* tests/linear_convolve.cc,
      	* tests/level_median_fast.cc,
      	* tests/level_fill.cc,
      	* tests/histo_compute.cc,
      	* tests/level_median_hline2d.cc,
      	* tests/value_int_s.cc,
      	* tests/value_int_u8.cc,
      	* tests/value_label.cc,
      	* tests/estim_mean.cc,
      	* tests/level_median.cc,
      	* tests/level_naive_median.cc,
      	* tests/debug_println.cc,
      	* tests/debug_println_with_border.cc,
      	* tests/win_rectangle2d.cc,
      	* tests/linear_sobel.cc,
      	* tests/convert_to_image.cc,
      	* tests/convert_to_vec_p.cc,
      	* tests/level_transform.cc,
      	* tests/value_set.cc: ...these.
      
      	* mln/level/median.hh: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1084 4aad255d-cdde-0310-9447-f3009e2ae8c0
      9af91891
  2. 06 Sep, 2007 7 commits
  3. 05 Sep, 2007 2 commits
    • Matthieu Garrigues's avatar
      Add 1d handling · 19d46af7
      Matthieu Garrigues authored
      	* mln/convert/to_image.hh: .
      	* mln/core/box1d.hh: New.
      	* mln/core/dpoint1d.hh: New.
      	* mln/core/image1d_b.hh: New.
      	* mln/core/internal/box_impl.hh: .
      	* mln/core/neighb1d.hh: New.
      	* mln/core/pixter1d_b.hh: New.
      	* mln/core/point1d.hh: New.
      	* mln/core/w_window1d_float.hh: New.
      	* mln/core/w_window1d_int.hh: New.
      	* mln/core/win/segment1d.hh: New.
      	* mln/core/window1d.hh: New.
      	* mln/geom/max_ind.hh: New.
      	* mln/geom/min_ind.hh: New.
      	* mln/geom/ninds.hh: New.
      	* mln/geom/size1d.hh: New.
      	* mln/make/box1d.hh: New.
      	* mln/make/dpoint1d.hh: New.
      	* mln/make/point1d.hh: New.
      	* mln/make/w_window1d.hh: New.
      	* mln/make/w_window1d_int.hh: New.
      	* mln/make/window1d.hh: New.
      	* sandbox/garrigues/TODO: New.
      	* tests/box1d.cc: New.
      	* tests/dpoint1d.cc: New.
      	* tests/image1d_b.cc: New.
      	* tests/pixter1d_b.cc: New.
      	* tests/point1d.cc: New.
      	* tests/w_window1d_int.cc: New.
      	* tests/window1d.cc: New.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1071 4aad255d-cdde-0310-9447-f3009e2ae8c0
      19d46af7
    • Thierry Geraud's avatar
      Add labeling routines. · 7ad265ba
      Thierry Geraud authored
      	* tests/sort_points.cc: Rename as...
      	* tests/level_sort_points.cc: ...this.
      	Augment.
      	* tests/labeling.cc: Rename as...
      	* tests/labeling_foreground.cc: ...this.
      	Update.
      	* tests/labeling_regional_maxima.cc: New.
      	* mln/convert/to_vec_p.hh: New.
      	* mln/pw/image.hh (change_value): Use fixme.
      	* mln/core/vec_p.hh (reserve, hook_): New.
      	* mln/core/vec_p_piter.hh (vec_p_bkd_piter_): Code.
      	* mln/level/sort_points.hh (sort_points): Rename as...
      	(sort_points_increasing): ...this.
      	(sort_points_decreasing): New.
      	* mln/level/fill.hh: Add & to the C function arg; that fixes
      	the behavior of icpc when calling fill with the literal 0.
      	* mln/level/labeling.hh: Remove; obsolete because of
      	labeling::level.
      	* mln/linear/sobel.hh: Add FIXME.
      	* mln/canvas/labeling.hh: New.
      	* mln/labeling/flat_zones.hh: New.
      	* mln/labeling/+foreground.hh: Remove.
      	* mln/labeling/level.hh: New.
      	* mln/labeling/foreground.hh: New.
      	* mln/labeling/regional_minima.hh: New.
      	* mln/labeling/base.hh: New.
      	* mln/labeling/regional_maxima.hh: New.
      	* mln/labeling/background.hh: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1068 4aad255d-cdde-0310-9447-f3009e2ae8c0
      7ad265ba
  4. 03 Sep, 2007 2 commits
  5. 31 Aug, 2007 2 commits
    • Thierry Geraud's avatar
      Augment morphology. · cee613b7
      Thierry Geraud authored
      	* mln/value/cast.hh: Rename as...
      	* mln/core/cast_image.hh: ...this.
      	Update.
      	* mln/core/concept/value.hh (cast): Move to and rename as...
      	* mln/value/cast.hh (cast_image): ...this, here.
      	* tests/cast_image.cc: Update.
      
      	* mln/morpho/thickening.hh: New.
      	* mln/morpho/laplacian.hh: New.
      	* mln/morpho/thick_miss.hh: New.
      	* mln/morpho/thin_fit.hh: New.
      	* mln/morpho/thinning.hh: New.
      	* tests/morpho_thinning.cc: New.
      	* tests/morpho_laplacian.cc: New.
      	* tests/morpho_hit_or_miss.cc: Update.
      
      	* mln/morpho/plus.hh (mln_postcondition): Remove.
      	* mln/morpho/minus.hh: Remove dead lines.
      	* mln/morpho/hit_or_miss.hh: Augment doc.
      	Add postconditions.
      	Add a FIXME.
      	* mln/io/save_pgm.hh: Rewrite.
      	* mln/arith/plus.hh (plus_cst, plus_cst_inplace): New.
      	* img/picasso.pgm: Invert.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1064 4aad255d-cdde-0310-9447-f3009e2ae8c0
      cee613b7
    • Thierry Geraud's avatar
      Add hit-or-miss and p2v ternary+elif functions. · f5d52c2f
      Thierry Geraud authored
      	* tests/morpho_hit_or_miss.cc: New.
      	* mln/fun/p2v/elifs.hh: New.
      	* mln/fun/p2v/ternary.hh: New.
      	* mln/morpho/min.hh: New.
      	* mln/morpho/hit_or_miss.hh: New.
      	* mln/arith/min.hh: New.
      	* mln/value/int_u_sat.hh: New.
      	* img/picasso.pgm: New.
      
      	* mln/arith/revert.hh: Fix.
      	* mln/morpho/includes.hh: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1063 4aad255d-cdde-0310-9447-f3009e2ae8c0
      f5d52c2f
  6. 30 Aug, 2007 1 commit
    • Thierry Geraud's avatar
      Make operations on windows more explicit. · e04278fb
      Thierry Geraud authored
      	* mln/convert/to_std_set.hh: New.
      	* mln/geom/sym.hh: New.
      	* mln/geom/shift.hh: New.
      	* mln/set: New directory.
      	* mln/set/inter.hh: New.
      	* mln/set/diff.hh: New.
      	* mln/set/union.hh: New.
      	* mln/set/sym_diff.hh: New.
      
      	* mln/convert/to_image.hh: Typo.
      	* mln/convert/to_window.hh (to_window): New overload.
      	* mln/convert/to_dpoint.hh: Typo.
      	* mln/core/w_window.hh (sym_): Rename as...
      	(sym): ...this and update.
      	* mln/core/window.hh: Likewise.
      	(operator-): Remove the unary version.
      	(operator+, operator-): Remove; now handle by...
      	* mln/geom/shift.hh (shift): ...this.
      	* mln/core/concept/weighted_window.hh: Update.
      	(operator-): Remove.
      	* mln/core/concept/window.hh: Likewise.
      	* mln/core/concept/doc/weighted_window.hh,
      	* mln/core/concept/doc/window.hh,
      	* mln/core/win/vline2d.hh,
      	* mln/core/win/hline2d.hh,
      	* mln/core/win/rectangle2d.hh,
      	* mln/morpho/includes.hh,
      	* mln/morpho/closing.hh,
      	* mln/morpho/opening.hh,
      	* mln/level/was.median.hh,
      	* mln/level/median.hh,
      	* mln/level/fast_median.hh,
      	* tests/rectangle2d.cc: Update.
      	* mln/core/concept/value.hh: Fix warning.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1062 4aad255d-cdde-0310-9447-f3009e2ae8c0
      e04278fb
  7. 29 Aug, 2007 3 commits
    • Thierry Geraud's avatar
      Add morphological complementation. · 45f9259e
      Thierry Geraud authored
      	* tests/morpho_contrast.cc: Augment.
      	* mln/core/concept/value.hh (cast): New.
      	* mln/fun/v2v/saturate.hh: Update.
      	* mln/morpho/minus.hh: Move assertions.
      	* mln/logical/and.hh,
      	* mln/logical/and_not.hh,
      	* mln/logical/or.hh: Fix doc.
      
      	* mln/value/int_s.hh (operator=): New.
      	* mln/value/int_u.hh: Likewise.
      	* mln/morpho/complementation.hh: New.
      	* mln/morpho/includes.hh: Update.
      	* mln/arith/revert.hh: New.
      	* mln/logical/not.hh: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1061 4aad255d-cdde-0310-9447-f3009e2ae8c0
      45f9259e
    • Thierry Geraud's avatar
      Add morphology plus and minus. · 8acba43d
      Thierry Geraud authored
      	* tests/erosion.cc: Rename as...
      	* tests/morpho_erosion.cc: ...this.
      	* mln/geom/pmin_pmax.hh: Fix.
      	* mln/morpho/plus.hh: New.
      	* mln/morpho/minus.hh: New.
      	* mln/logical: New.
      	* mln/logical/and.hh: New.
      	* mln/logical/and_not.hh: New.
      	* mln/logical/or.hh: New.
      	* mln/morpho/includes.hh,
      	* mln/morpho/gradient.hh,
      	* mln/morpho/contrast.hh,
      	* mln/morpho/top_hat.hh: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1060 4aad255d-cdde-0310-9447-f3009e2ae8c0
      8acba43d
    • Thierry Geraud's avatar
      Add morphological top-hats and contrast. · 3614dc12
      Thierry Geraud authored
      	* tests/morpho_gradient.cc: Fix doc.
      	* mln/geom/pmin_pmax.hh (pmin_pmax): Overload for point set.
      	* mln/geom/bbox.hh: Update.
      	* mln/morpho/includes.hh (include): Add mln/test/positive.hh
      	and mln/arith/plus.hh.
      	* mln/morpho/gradient.hh: Add commentaries.
      
      	* tests/morpho_contrast.cc: New.
      	* mln/morpho/contrast.hh: New.
      	* mln/morpho/top_hat.hh: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1059 4aad255d-cdde-0310-9447-f3009e2ae8c0
      3614dc12
  8. 28 Aug, 2007 2 commits
    • Thierry Geraud's avatar
      Replace 2D specific methods in 2D images by routines. · 18232963
      Thierry Geraud authored
      	* mln/geom/max_col.hh: New.
      	* mln/geom/nrows.hh: New.
      	* mln/geom/min_row.hh: New.
      	* mln/geom/max_row.hh: New.
      	* mln/geom/ncols.hh: New.
      	* mln/geom/size2d.hh: New.
      	* mln/geom/min_col.hh: New.
      
      	* mln/core/image2d_b.hh (image2d_b): Remove inheritance to
      	box_impl.
      	
      	* tests/image2d_b.cc,
      	* mln/core/pixter2d_b.hh,
      	* mln/io/save_pgm.hh,
      	* mln/io/load_pgm.hh,
      	* mln/level/was.median.hh,
      	* mln/level/median.hh,
      	* mln/level/fast_median.hh,
      	* mln/canvas/sbrowsing.hh: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1058 4aad255d-cdde-0310-9447-f3009e2ae8c0
      18232963
    • Thierry Geraud's avatar
      Fix compilation errors. · 9c11b307
      Thierry Geraud authored
      	* tests/run_pset.cc: Fix and clean.
      	* tests/README: Augment.
      	* tests/erosion.cc: Clean.
      	* mln/core/internal/run_pset.hh: Fix.
      	* mln/core/concept/function.hh: Add explicit calls to cpy
      	ctors.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1057 4aad255d-cdde-0310-9447-f3009e2ae8c0
      9c11b307
  9. 27 Aug, 2007 9 commits
    • Thierry Geraud's avatar
      Augment morpho and add saturation for int-like types. · 66f4ade1
      Thierry Geraud authored
      	* mln/arith/minus.hh (minus_inplace): New.
      	* mln/arith/plus.hh (plus_inplace): New.
      	* mln/fun/v2v/saturate.hh: New.
      	* mln/level/abs.hh: New.
      	* mln/level/saturate.hh: New.
      	* mln/linear/sobel.hh: Update.
      	* mln/math/round.hh (round_): Rename as...
      	(round): ...this.
      	* tests/convolve.cc,
      	* tests/line_convolve.cc,
      	* tests/sobel.cc: Update.
      
      	* mln/linear/line_convolve.hh,
      	* mln/linear/line_x2_convolve.hh,
      	* mln/make/w_window_line.hh: Unconst array literals to help
      	g++-2.95.
      
      	* mln/core/concept/function.hh (Function_v2b): New.
      	* mln/core/macros.hh (mln_value_): New.
      	* mln/fun/ops.hh (l_, r_, f_): Add const.
      	(mln_decl_binary_expr_): Use 'Out' part of fun type name.
      	(mln_decl_unary_expr_): Likewise.
      	New overload for "v2v -> v2b" operators.
      	* mln/fun/v2v/id.hh: New.
      	* mln/level/assign.hh,
      	* mln/level/fill.hh: Add todo.
      	* mln/morpho/erosion.hh: Update.
      
      	* mln/morpho/includes.hh,
      	* mln/morpho/closing.hh,
      	* mln/morpho/dilation.hh
      	* mln/morpho/gradient.hh
      	* mln/morpho/opening.hh: New.
      	* mln/test: New directory.
      	* mln/test/positive.hh,
      	* mln/test/predicate.hh,
      	* tests/morpho_gradient.cc: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1056 4aad255d-cdde-0310-9447-f3009e2ae8c0
      66f4ade1
    • Thierry Geraud's avatar
      Augment tools for linear filtering; add sobel. · 2e66d4d3
      Thierry Geraud authored
      	* mln/core/decorated_image.hh
      	(helper_decorated_image_write_): Replace by...
      	(decorated_image_impl_): ...this.
      	(impl_): New.
      	(lvalue): Update.
      	(write_): Remove; now in impl_.
      
      	* mln/value/all.hh: Update.
      	* mln/value/props.hh,
      	* mln/value/int_u.hh,
      	* mln/value/int_s.hh (min, max): Change to proc.
      	* mln/value/props.hh (mln_min, mln_max): Update.
      	(epsilon): Change to proc.
      	* mln/value/aliases.hh: New.
      	* mln/level/stretch.hh: Update.
      
      	* mln/arith/abs.hh: New.
      	* mln/arith/plus.hh: Overload.
      	* mln/fun/v2v/abs.hh: New.
      	* mln/level/apply.hh: Fix meaning; add todo.
      	* mln/math/abs.hh: Overload.
      
      	* mln/core/concept/iterator.hh (for_all_3): New.
      	* mln/math/round_sat.hh: New.
      	* mln/make/w_window_line.hh: New.
      	* mln/metal/abort.hh: New.
      	* mln/linear/line_convolve.hh: New.
      	* mln/linear/line_x2_convolve.hh: New.
      	* mln/linear/sobel.hh: New.
      	* tests/line_convolve.cc: New.
      	* tests/sobel.cc: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1055 4aad255d-cdde-0310-9447-f3009e2ae8c0
      2e66d4d3
    • Thierry Geraud's avatar
      Add local convolution. · 0b6be5d5
      Thierry Geraud authored
      	* mln/core/concept/doc/generalized_pixel.hh,
      	* mln/core/concept/generalized_pixel.hh,
      	* mln/core/internal/pixel_impl.hh (ima): New.
      	* mln/core/concept/doc/generalized_pixel.hh,
      	* mln/core/concept/doc/pixel_iterator.hh 
      	* mln/core/concept/generalized_pixel.hh,
      	* mln/core/concept/pixel_iterator.hh,
      	* mln/core/dpoints_pixter.hh (ctor): Better sig.
      	(center_value): Rename as...
      	(center_val): ...this.
      	* mln/core/internal/pixel_impl.hh (operator*): Rename as...
      	(val): ...this.
      	* mln/debug/iota.hh,
      	* mln/histo/compute.hh,
      	* mln/level/apply.hh,
      	* mln/level/assign.hh,
      	* mln/level/fast_median.hh,
      	* mln/level/take.hh,
      	* mln/level/transform.hh,
      	* mln/linear/convolve.hh,
      	: Update.
      	* mln/core/pixel.hh (is_valid): Disambiguate.
      	(include): Fix.
      
      	* mln/linear/local: New directory.
      	* mln/linear/local/convolve.hh: New.
      	* mln/make/pixel.hh: New.
      	* mln/metal/const.hh: New.
      	* tests/decorated_image.cc: Fix warning.
      	* tests/local_convolve.cc: New.
      	* tests/pixel.cc: Update and augment.
      	* tests/pixter_point2d.cc: Rename as...
      	* tests/pixter2d_b.cc: ...this.
      	Clean, update, and augment.
      	* tests/pixter_dpoint2d.cc: Rename as...
      	* tests/dpoints_pixter.cc: ...this.
      	Clean, update, and augment.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1054 4aad255d-cdde-0310-9447-f3009e2ae8c0
      0b6be5d5
    • Thierry Geraud's avatar
      Add proper inheritance to functions. · ef48f52d
      Thierry Geraud authored
      	* mln/core/concept/doc/neighborhood.hh,
      	* mln/core/concept/neighborhood.hh,
      	* mln/core/neighb.hh (point): New.
      	* mln/convert/to_image.hh
      	(helper_dim_, helper_image_from_): New in mln::internal.
      	(image_from_): New in mln.
      	(mln_image_from): New macro.
      	(to_image): Fix; now generalized.
      
      	* mln/metal/all.hh: New.
      	* mln/metal/equal.hh: Update.
      	(mlc_equal): New.
      	* mln/metal/if.hh: New.
      	* mln/metal/is_a.hh: New.
      	* mln/metal/unptr.hh: New.
      	* mln/metal/unqualif.hh: New.
      	* mln/metal/unref.hh: New.
      
      	* mln/core/concept/function.hh (result): New in Function_p2b.
      	* mln/fun/internal: New directory.
      	* mln/pw/cst.hh: Precise inheritance.
      	* mln/pw/value.hh: Likewise.
      	(select_function_): Move to...
      	* mln/fun/internal/selector.hh: ...this new file.
      	(select_function_): Rename as...
      	(selector_): ...this.
      	* mln/fun/c.hh: New.
      	* mln/convert/to_fun.hh: New.
      
      	* mln/convert/to_window.hh (to_window): New overload.
      	* mln/estim/mean.hh (mean): New overload.
      	* mln/estim/sum.hh: New.
      	* mln/level/run.hh: Rename as...
      	* mln/level/compute.hh: ...this.
      	(run): Rename as...
      	(compute): ...this.
      	* tests/w_window2d_int.cc: Augment.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1053 4aad255d-cdde-0310-9447-f3009e2ae8c0
      ef48f52d
    • Thierry Geraud's avatar
      Add some linear filters and augment related tools. · 7d205129
      Thierry Geraud authored
      	* mln/linear/convolve.hh: Add doc.
      	* mln/linear/log.hh (LoG_7x7, LoG_13x13, LoG_17x17): New.
      	* mln/linear/lap.hh: New.
      	* tests/linear_lap.cc: New.
      	* mln/convert/to_dpoint.hh: Add postcondition.
      	* mln/convert/to_w_window.hh: New.
      	* mln/core/w_window2d_float.hh: New.
      	* mln/make/w_window.hh: New.
      	* mln/make/w_window2d_int.hh: Remove; useless.
      
      	* mln/core/concept/doc/weighted_window.hh: Augment doc.
      	(weight, window): Rename as...
      	(w, win): ...these.
      	(weight, window): New associated types.
      	* mln/core/concept/weighted_window.hh: Update.
      	
      	* mln/core/window.hh (window_): Rename as...
      	(window): ...this.
      	* mln/core/w_window.hh (w_window_): Rename as...
      	(w_window): ...this.
      	(insert): Swap args; add precondition.
      	Update.
      	* mln/convert/to_image.hh,
      	* mln/convert/to_window.hh,
      	* mln/geom/pmin_pmax.hh,
      	* mln/geom/bbox.hh: New overload.
      	* mln/core/window2d.hh,
      	* mln/core/w_window2d_int.hh,
      	* mln/linear/convolve.hh,
      	* mln/make/w_window2d.hh,
      	* tests/convolve.cc,
      	* tests/pixter_dpoint2d.cc,
      	* tests/w_window2d_int.cc: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1052 4aad255d-cdde-0310-9447-f3009e2ae8c0
      7d205129
    • Thierry Geraud's avatar
      Update accus and add LoG filter. · 38469bb4
      Thierry Geraud authored
      	* mln/core/concept/accumulator.hh (merge): New.
      	* mln/core/concept/doc/accumulator.hh
      	(take): New; overload.
      	* mln/accu/bbox.hh,
      	* mln/accu/count.hh,
      	* mln/accu/histo.hh,
      	* mln/accu/max.hh,
      	* mln/accu/mean.hh,
      	* mln/accu/min.hh,
      	* mln/accu/sum.hh (operator+=): Rename as...
      	(take): ...this.
      	(conversion): Remove operator; too risky.
      	Update.
      	* mln/estim/mean.hh: Update.
      	* mln/level/fast_median.hh: Update.
      	* mln/level/median.hh: Update.
      	* mln/level/naive/median.hh: Update.
      	* mln/morpho/erosion.hh: Update.
      
      	* mln/border/duplicate.hh,
      	* mln/border/fill.hh,
      	* mln/border/mirror.hh,
      	* mln/border/resize.hh: Add fixme.
      	
      	* mln/io/load_pgm,
      	* mln/io/save_pgm: Fix for g++-2.95.
      	* mln/linear/convolve.hh: Use border.
      	* tests/convolve.cc: Update.
      	
      	* mln/accu/min_max.hh: New.
      	* mln/estim/min_max.hh: New.
      	* mln/fun/v2v/linear.hh: New.
      	* mln/level/stretch.hh: New.
      	* mln/linear/log.hh: New.
      	* mln/value/props.hh (epsilon): New.
      	* tests/linear_log.cc: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1051 4aad255d-cdde-0310-9447-f3009e2ae8c0
      38469bb4
    • Thierry Geraud's avatar
      Add 'decorated image' morpher. · 591901fb
      Thierry Geraud authored
      	* mln/core/decorated_image.hh: New.
      	* mln/core/internal/image_adaptor.hh (adaptee): New.
      	* mln/metal/unconst.hh: New.
      	* mln/metal/vec.hh (vec): New ctors.
      	(operator==): New.
      	* mln/metal/make: New directory.
      	* mln/metal/make/vec.hh: New.
      	* mln/value/proxy: New.
      	* mln/value/stack.hh (helper_stack_image_lvalue_): New.
      	(read_, write_): New.
      	(operator()): Fix.
      	(stack): New overload for n=2 and I mutable.
      	* tests/decorated_image.cc: New.
      	* tests/stack.cc: Augment.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1050 4aad255d-cdde-0310-9447-f3009e2ae8c0
      591901fb
    • Thierry Geraud's avatar
      Handle const promotion for morphers. · ef1feee9
      Thierry Geraud authored
      	* mln/core/internal/image_adaptor.hh (operator I): New.
      	(pset_): Remove; uncompatible with temporary pset.
      	(domain): Change sig.
      	* mln/core/inplace.hh: New.
      	* tests/line2d.cc: Augment; use inplace.
      	* mln/core/sub_image.hh: New.
      	* tests/sub_image.cc: New.
      
      	* mln/core/safe.hh (safe): New overload; const version.
      	(safe_image): Update.
      	(default_value): New.
      	(operator safe_image<const I>): New.
      	* tests/safe_image.cc: Augment.
      	* mln/core/queue_p.hh (push): Fix missing return.
      	* mln/core/internal/image_base.hh: Add doc.
      	* mln/core/pset_if_piter.hh (fixme): Remove include; useless.
      	* mln/core/vec_p_piter.hh: Likewise.
      	* mln/make/box2d: Change arg list (all min first).
      	* tests/to_image.cc: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1049 4aad255d-cdde-0310-9447-f3009e2ae8c0
      ef1feee9
    • Thierry Geraud's avatar
      Renaming. · d7cfbdbf
      Thierry Geraud authored
      	* mln/core/fimage.hh,
      	* tests/fimage.cc: Rename as...
      	* mln/pw/image.hh,
      	* tests/pw_image.cc: ...these.
      	* mln/pw/all.hh,
      	* mln/draw/line.hh,
      	* tests/line2d.cc: Update.
      	
      	* mln/core/pqueue.hh,
      	* mln/core/pvec.hh,
      	* mln/core/pvec_piter.hh,
      	* mln/core/pset.hh,
      	* tests/pqueue.cc,
      	* tests/pset.cc: Rename as...
      	* mln/core/queue_p.hh,
      	* mln/core/vec_p.hh,
      	* mln/core/vec_p_piter.hh,
      	* mln/core/set_p.hh,
      	* tests/queue_p.cc,
      	* tests/set_p.cc: ...these.
      	* mln/core/line2d.hh: Update.
      	
      	* mln/core/psubset.hh,
      	* mln/core/psubset_piter.hh,
      	* mln/core/subimage.hh,
      	* tests/psubset.cc,
      	* tests/subimage.cc: Rename as...
      	* mln/core/pset_if.hh,
      	* mln/core/pset_if_piter.hh,
      	* mln/core/image_if.hh,
      	* tests/pset_if.cc,
      	* tests/image_if.cc: ...these.
      	* tests/to_image.cc: Update.
      
      	* mln/accu/counter.hh: Rename as...
      	* mln/accu/count.hh: ...this.
      	* mln/accu/count.hh,
      	* mln/accu/mean.hh,
      	* mln/accu/sum.hh (operator+=): New.
      	* mln/value/props.hh (mln_sum, sum): New.
      	* mln/accu/mean.hh,
      	* mln/accu/sum.hh,
      	* mln/value/int_u.hh,
      	* mln/value/int_s.hh: Update.
      	* mln/level/apply.hh: Move accumulator version into...
      	* mln/level/take.hh: ...this new file.
      	* mln/level/run.hh: New.
      	* mln/estim/mean.hh: Update.
      	
      	* mln/core/internal/set_of.hh (operator==): Remove;
      	too error-prone.
      	* mln/core/concept/window.hh (operator==): New.
      	* tests/rectangle2d.cc: Fix.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1048 4aad255d-cdde-0310-9447-f3009e2ae8c0
      d7cfbdbf
  10. 30 Jul, 2007 1 commit
    • Nicolas Ballas's avatar
      Add RLE and Sparse image to milena. · 404fc075
      Nicolas Ballas authored
      	* tests/sparse_image.cc,
      	* tests/run_pset.cc,
      	* tests/rle_image.cc: test.
      	* mln/core/sparse_encode.hh: Encode an image into a sparse image.
      	* mln/core/internal/run_image.hh: New, factorisation class.
      	* mln/core/internal/run_psite.hh: New, run psite class.
      	* mln/core/internal/run_pset.hh: New, point set of run image.
      	* mln/core/rle_image.hh: New, rle_image class.
      	* mln/core/rle_encode.hh: Encode an image into an rle image.
      	* mln/core/sparse_image.hh: New, sparse_image class.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1046 4aad255d-cdde-0310-9447-f3009e2ae8c0
      404fc075
  11. 27 Jul, 2007 2 commits
    • Thierry Geraud's avatar
      Clean-up windows! · 7e1da0e6
      Thierry Geraud authored
      	* mln/core/internal/dpoints_base.hh: New.
      	* mln/core/concept/doc/weighted_window.hh: New.
      	* mln/core/w_window.hh
      	(element, nelements): Rename as...
      	(dp, ndpoints): ...these.
      	(sym_): Add body.
      	Update.
      	* mln/core/window.hh (super_): Update.
      	(qiter): Remove; obsolete.
      	(point, dpoint, is_centered, delta): Remove; factored.
      	* mln/core/dpoints_pixter.hh: Update.
      	* mln/core/concept/weighted_window.hh
      	(is_symmetric): Remove; too ambiguous.
      	* mln/core/win/vline2d.hh: Update inheritance.
      	* mln/core/win/hline2d.hh: Likewise.
      	* mln/core/win/rectangle2d.hh: Likewise.
      	(qiter): Remove; obsolete.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1045 4aad255d-cdde-0310-9447-f3009e2ae8c0
      7e1da0e6
    • Thierry Geraud's avatar
      Add weighted windows and related tools + a generic convolution. · dc84877e
      Thierry Geraud authored
      	* tests/convolve.cc: New.
      	* tests/w_window2d_int.cc: New.
      	* mln/core/w_window.hh: New.
      	* mln/core/concept/weighted_window.hh: New.
      	* mln/core/w_window2d_int.hh: New.
      	* mln/math/round.hh: New.
      	* mln/linear: New.
      	* mln/linear/convolve.hh: New.
      	* mln/make/w_window2d.hh: New.
      	* mln/make/w_window2d_int.hh: New.
      	* mln/core/dpoints_piter.hh: Change accessibility.
      	* mln/core/internal/pixel_impl.hh
      	(address_): Remove preconditions.
      	* mln/core/image2d_b.hh: Update include.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1044 4aad255d-cdde-0310-9447-f3009e2ae8c0
      dc84877e
  12. 26 Jul, 2007 4 commits
    • Thierry Geraud's avatar
      Add a queue of points. · 9096ba3e
      Thierry Geraud authored
      	* tests/pqueue.cc: New.
      	* TODO: Update.
      	* mln/core/pvec.hh: Fix.
      	* mln/core/pqueue.hh: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1043 4aad255d-cdde-0310-9447-f3009e2ae8c0
      9096ba3e
    • Thierry Geraud's avatar
      Add stack and transpose morphers. · 4a1c591a
      Thierry Geraud authored
      	* tests/t_image.cc: New.
      	* tests/stack.cc: New.
      	* tests/approx_median.cc: New.
      	* mln/core/t_image.hh: New.
      	* mln/value/stack.hh: New.
      	* tests/median.cc: Update.
      	* tests/README: Update.
      	* mln/core/internal/image_base.hh
      	(morpher_lvalue_): New.
      	* mln/core/internal/image_adaptor.hh: Use morpher_lvalue_.
      	(image_adaptor_): Change Image<I> into I.
      	* mln/core/safe.hh: Update.
      	* mln/core/image2d_b.hh: Remove dead code.
      	* mln/metal/vec.hh: Split decls and defs.
      	(operator<<): New.
      	* mln/level/median.hh (hline2d): Update.
      	(vline2d): New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1042 4aad255d-cdde-0310-9447-f3009e2ae8c0
      4a1c591a
    • Thierry Geraud's avatar
      Fix doc. · 585b68e6
      Thierry Geraud authored
      	* tests/int_s8.cc: Rename as...
      	* tests/int_s.cc: ...this.
      	* tests/sort_points.cc,
      	* mln/pw/all.hh,
      	* mln/pw/value.hh,
      	* mln/core/win/vline2d.hh,
      	* mln/core/win/hline2d.hh,
      	* mln/core/win/rectangle2d.hh: Fix doc.
      	* doc/Doxyfile.in: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1041 4aad255d-cdde-0310-9447-f3009e2ae8c0
      585b68e6
    • Thierry Geraud's avatar
      Various clean-ups + add line2d. · 9705761c
      Thierry Geraud authored
      	Clean-up functions.
      
      	* mln/fun/i2v,
      	* mln/fun/p2b,
      	* mln/fun/p2v,
      	* mln/fun/v2v: New directories.
      	* mln/fun/chess.hh: Rename as...
      	* mln/fun/p2b/chess.hh: New.
      	* mln/fun/to_enc.hh: Rename as...
      	* mln/fun/v2v/enc.hh: ...this.
      	(to_enc): Rename as...
      	(enc): ...this.
      	* mln/fun/all.hh: Rename as...
      	* mln/fun/i2v/all.hh: ...this.
      	* mln/core/point.hh,
      	* mln/core/window.hh,
      	* mln/core/dpoint.hh,
      	* mln/core/image2d_b.hh,
      	* mln/level/to_enc.hh: Update.
      
      	Clean-up windows.
      	
      	* mln/core/win: New directory.
      	* mln/core/hline2d.hh: Rename as...
      	* mln/core/win/hline2d.hh: ...this.
      	* mln/core/rectangle2d.hh: Rename as...
      	* mln/core/win/rectangle2d.hh: ...this.
      	* mln/core/vline2d.hh: Rename as...
      	* mln/core/win/vline2d.hh: ...this.
      	* tests/median.cc,
      	* tests/fast_median.cc,
      	* tests/main.cc,
      	* tests/to_image.cc,
      	* tests/psubset.cc,
      	* tests/fimage.cc,
      	* tests/rectangle2d.cc,
      	* tests/cast_image.cc,
      	* tests/subimage.cc,
      	* tests/hmedian.cc,
      	* tests/erosion.cc,
      	* tests/naive_median.cc,
      	* mln/core/box2d.hh,
      	* mln/morpho/erosion.hh,
      	* mln/level/was.median.hh,
      	* mln/level/median.hh,
      	* mln/level/approx/median.hh: Update.
      
      	Clean-up metal.
      	
      	* mlc/equal.hh: Rename as...
      	* mln/metal/equal.hh: ...this.
      	* mlc/same_coord.hh: Rename as...
      	* mln/metal/same_coord.hh: ...this.
      	* mlc/same_point.hh: Rename as...
      	* mln/metal/same_point.hh: ...this.
      	* mlc: Remove.
      	* mln/core/concept/generalized_point.hh: Update.
      
      	Light changes.
      	
      	* TODO: Update.
      	* mln/core/dpoints_piter.hh
      	(dpoints_bkd_piter): New; fake.
      	* mln/core/fimage.hh: Add doc.
      	* mln/core/pvec.hh
      	(pvec_fwd_piter_, pvec_bkd_piter_): Move to...
      	* mln/core/pvec_piter.hh: ...this new file.
      	* mln/core/internal/fixme.hh: Add empty body.
      
      	New stuff.
      	
      	* tests/line2d.cc: New.
      	* mln/pw/all.hh: New.
      	* mln/core/line2d.hh: New.
      	* mln/math: New.
      	* mln/math/min.hh: New.
      	* mln/math/abs.hh: New.
      	* mln/math/max.hh: New.
      	* mln/math/all.hh: New.
      	* mln/math/sign.hh: New.
      	* mln/draw: New.
      	* mln/draw/line.hh: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1040 4aad255d-cdde-0310-9447-f3009e2ae8c0
      9705761c
  13. 25 Jul, 2007 2 commits
    • Thierry Geraud's avatar
      Add a label type and labeling. · 21d11b8f
      Thierry Geraud authored
      	* tests/labeling.cc: New.
      	* tests/label.cc: New.
      	* mln/fun/to_enc.hh: New.
      	* mln/level/to_enc.hh: New.
      	* mln/level/labeling.hh: New.
      	* mln/value/label.hh: New.
      	* img/tiny.pgm: New.
      
      	* tests/README: Fix missing CR.
      	* doc/Doxyfile.in: Update.
      	* mln/core/trait/is_lowq.hh: Remove.
      	* mln/core/trait/all.hh: Update.
      	* mln/core/macros.hh: Update.
      	* mln/value/set.hh: Update.
      	* mln/core/concept/value.hh (++, --): New.
      	* mln/level/fill.hh (memset): Force cast.
      	* mln/value/lut_vec.hh: Fix warning.
      	* mln/value/props.hh (card, mln_card): Rename as...
      	(card_, mln_card_): ...these.
      	(convert_): New.
      	* mln/value/int_s.hh (+=, -=): New.
      	* mln/value/int_u.hh: Likewise.
      	* mln/value/internal/iterable_set.hh: Use convert_.
      	* mln/value/internal/encoding.hh: Factor names.
      	* mln/value/internal/value_like.hh (to_enc): New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1039 4aad255d-cdde-0310-9447-f3009e2ae8c0
      21d11b8f
    • Thierry Geraud's avatar
      Add pset and pvec point sets. · 2655e8c7
      Thierry Geraud authored
      	* tests/sort_points.cc: New.
      	* tests/pset.cc: New.
      	* tests/histo.cc: Update.
      	* mln/histo/sort.hh: Rename as...
      	* mln/level/sort_points.hh: ...this new file.
      	(sort_points): New overload.
      	* mln/histo/data.hh (vec): Rename as...
      	(vect): ...this.
      	* mln/core/dpoints_piter.hh: Update.
      	* mln/core/pvec.hh: New.
      	* mln/core/pset.hh: New.
      	* mln/core/internal/set_of.hh: Update.
      	* mln/accu/histo.hh: Update.
      	* mln/accu/bbox.hh: New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1038 4aad255d-cdde-0310-9447-f3009e2ae8c0
      2655e8c7
  14. 24 Jul, 2007 2 commits
    • Thierry Geraud's avatar
      Add int_s, an histogram class, and distributed sort. · 2df3dd07
      Thierry Geraud authored
      	* tests/int_s8.cc: New.
      	* tests/int_u8.cc: Augment.
      	* mln/histo/sort.hh: New.
      	* mln/histo/data.hh: New.
      	* mln/histo/compute.hh: New.
      	* mln/accu/histo.hh: Fix doc.
      	* mln/accu/median.hh: Fix doc.
      	* mln/value/int_s8.hh: New.
      	* mln/value/int_u16.hh: New.
      	* mln/value/int_u8.hh: New.
      	* mln/value/int_s.hh: New.
      	* mln/value/int_u.hh (zero, one): New.
      	(encoding_): Move to...
      	* mln/value/internal/encoding.hh: ...this new file.
      	* tests/median.cc,
      	* tests/fast_median.cc,
      	* tests/main.cc,
      	* tests/hmedian.cc,
      	* tests/erosion.cc,
      	* tests/naive_median.cc,
      	* tests/vset.cc,
      	* tests/histo.cc,
      	* mln/io/save_pgm.hh,
      	* mln/io/load_pgm.hh: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1037 4aad255d-cdde-0310-9447-f3009e2ae8c0
      2df3dd07
    • Thierry Geraud's avatar
      Make value::set works for any type. · 8b9996bc
      Thierry Geraud authored
      	* mln/value/set.hh: Rename as...
      	* mln/value/internal/iterable_set.hh: ...this.
      	(the): Remove.
      	(E): New.
      	* mln/value/set.hh: New.
      
      	* tests/vset.cc,
      	* tests/histo.cc,
      	* TODO,
      	* mln/core/macros.hh,
      	* mln/core/trait/is_lowq.hh,
      	* mln/core/fimage.hh,
      	* mln/core/image2d_b.hh,
      	* mln/level/naive/median.hh,
      	* mln/level/was.median.hh,
      	* mln/level/fast_median.hh,
      	* mln/level/transform.hh,
      	* mln/level/median.hh,
      	* mln/accu/histo.hh,
      	* mln/accu/median.hh,
      	* mln/accu/median_alt.hh,
      	* mln/value/props.hh,
      	* mln/value/cast.hh,
      	* mln/value/int_u.hh: Update.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1036 4aad255d-cdde-0310-9447-f3009e2ae8c0
      8b9996bc