1. 16 Oct, 2006 4 commits
  2. 13 Oct, 2006 8 commits
    • Roland Levillain's avatar
      Fix oln/core/iterator_vtypes.hh w.r.t. backward niters. · 8b54945e
      Roland Levillain authored
      	* oln/core/iterator_vtypes.hh (oln::bkd_niter_neighb_): New
      	forward declaration.
      	(single_vtype<morpher::add_neighborhood<Image, Neighb>,
      	 typedef_::bkd_niter_type >): Fix ret.
      	Add comments.
      	Aesthetic changes.
      	* oln/morpher/add_neighborhood.hh
      	(oln/core/gen/bkd_niter_neighb.hh): Include it.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@640 4aad255d-cdde-0310-9447-f3009e2ae8c0
      8b54945e
    • Roland Levillain's avatar
      Add backward iterators on neighborhoods and windows. · c265f3d3
      Roland Levillain authored
      	* oln/core/gen/bkd_niter_neighb.hh,
      	* oln/core/gen/bkd_qiter_win.hh: New.
      	* oln/core/gen/fwd_niter_neighb.hh
      	(oln::fwd_niter_neighb_<point_t>::fwd_niter_neighb_)
      	(oln::fwd_niter_neighb_<point_t>::impl_next)
      	* oln/core/gen/fwd_qiter_win.hh
      	(oln::fwd_qiter_win_<point_t>::fwd_qiter_win_)
      	(oln::fwd_qiter_win_<point_t>::impl_next): Initialize i_
      	using this->invalidate().
      	* oln/core/1d/aliases.hh (oln::bkd_qiter_win_): New forward
      	declaration.
      	(oln::bkd_qiter1d): New typedef.
      	* oln/core/2d/aliases.hh (oln::bkd_qiter_win_): New forward
      	declaration.
      	(oln::bkd_qiter2d): New typedef.
      	* oln/core/3d/aliases.hh (oln::bkd_qiter_win_): New forward
      	declaration.
      	(oln::bkd_qiter3d): New typedef.
      	* oln/core/iterator_vtypes.hh
      	(oln::single_vtype<image1d<T>, typedef_::bkd_qiter_type>)
      	(oln::single_vtype<image2d<T>, typedef_::bkd_qiter_type>)
      	(oln::single_vtype<image3d<T>, typedef_::bkd_qiter_type>): New
      	vtypes.
      	* oln/basics1d.hh (oln/core/gen/window.hh)
      	(oln/core/gen/fwd_qiter_win.hh, oln/core/gen/bkd_qiter_win.hh):
      	* oln/basics2d.hh (oln/core/gen/bkd_qiter_win.hh)
      	* oln/basics3d.hh (oln/core/gen/window.hh)
      	(oln/core/gen/fwd_qiter_win.hh, oln/core/gen/bkd_qiter_win.hh):
      	Include them.
      	* oln/Makefile.am (nobase_oln_HEADERS): Add
      	core/gen/bkd_niter_neighb.hh and core/gen/bkd_qiter_win.hh.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@639 4aad255d-cdde-0310-9447-f3009e2ae8c0
      c265f3d3
    • Roland Levillain's avatar
      Add some documentation to image abstractions. · ba648903
      Roland Levillain authored
      	* oln/core/abstract/image/hybrid/classical.hh: Add documentation.
      	* oln/core/abstract/image/dimension/hierarchy.hh,
      	* oln/core/abstract/image/type/hierarchy.hh: Update documentation.
      	* oln/core/abstract/image/neighborhood/hierarchy.hh: Remove dead
      	comments.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@638 4aad255d-cdde-0310-9447-f3009e2ae8c0
      ba648903
    • Roland Levillain's avatar
      Factor oln::grid1d, oln::grid2d and oln::grid3d into oln::grid_<>. · 28bb75aa
      Roland Levillain authored
      	* oln/core/1d/grid1d.hh, oln/core/2d/grid2d.hh,
      	* oln/core/3d/grid3d.hh: Remove.
      	* oln/core/gen/grid.hh: New file.
      	* oln/core/1d/image1d.hh, oln/core/2d/image2d.hh,
      	* oln/core/3d/image3d.hh: Include it.
      	* oln/core/1d/aliases.hh (oln::grid_): Declare it.
      	(oln::grid1d): Adjust definition.
      	* oln/core/2d/aliases.hh (oln::grid_): Declare it.
      	(oln::grid2d): Adjust definition.
      	* oln/core/3d/aliases.hh (oln::grid_): Declare it.
      	(oln::grid3d): Adjust definition.
      	* oln/basics1d.hh, oln/basics2d.hh, oln/basics3d.hh,
      	* oln/core/abstract/image/dimension/hierarchy.hh,
      	* oln/core/abstract/image/hybrid/classical.hh,
      	* oln/core/abstract/point_set/point_set_being_connected.hh,
      	* oln/Makefile.am,
      	* tests/grid.cc: Adjust.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@637 4aad255d-cdde-0310-9447-f3009e2ae8c0
      28bb75aa
    • Roland Levillain's avatar
      * configure.ac (olena/img/Makefile): Configure it. · 7d1510b0
      Roland Levillain authored
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@636 4aad255d-cdde-0310-9447-f3009e2ae8c0
      7d1510b0
    • Roland Levillain's avatar
      Add a Makefile to img/ and fix the previous patch. · b424732b
      Roland Levillain authored
      	* img/Makefile.am: New.
      	* Makefile.am (SUBDIRS): Add img.
      	* oln/Makefile.am (nobase_oln_HEADERS):
      	Remove core/automatic/image_having_neighborhood.hh.
      	Add core/automatic/image/image_having_neighborhood.hh.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@635 4aad255d-cdde-0310-9447-f3009e2ae8c0
      b424732b
    • Roland Levillain's avatar
      Reorganize oln/core/automatic like oln/core/abstract. · 25fd314c
      Roland Levillain authored
      	* oln/core/automatic/image.hh,
      	* oln/core/automatic/image1d.hh,
      	* oln/core/automatic/image2d.hh,
      	* oln/core/automatic/image3d.hh,
      	* oln/core/automatic/image_being_mutable.hh,
      	* oln/core/automatic/image_being_random_accessible.hh,
      	* oln/core/automatic/image_having_neighborhood.hh,
      	* oln/core/automatic/topology_being_random_accessible.hh,
      	* oln/core/automatic/topology_having_bbox.hh,
      	* oln/core/automatic/topology_having_neighborhood.hh,
      	* oln/core/automatic/topology_having_subset.hh: Move...
      	* oln/core/automatic/image/image.hh,
      	* oln/core/automatic/image/image1d.hh,
      	* oln/core/automatic/image/image2d.hh,
      	* oln/core/automatic/image/image3d.hh,
      	* oln/core/automatic/image/image_being_mutable.hh,
      	* oln/core/automatic/image/image_being_random_accessible.hh,
      	* oln/core/automatic/image/image_having_neighborhood.hh,
      	* oln/core/automatic/topology/topology_being_random_accessible.hh,
      	* oln/core/automatic/topology/topology_having_bbox.hh,
      	* oln/core/automatic/topology/topology_having_neighborhood.hh
      	* oln/core/automatic/topology/topology_having_subset.hh: ...here.
      	* oln/core/abstract/image.hh,
      	* oln/core/abstract/image/accessibility/hierarchy.hh,
      	* oln/core/abstract/image/dimension/1d.hh,
      	* oln/core/abstract/image/dimension/2d.hh,
      	* oln/core/abstract/image/dimension/3d.hh,
      	* oln/core/abstract/image/mutability/hierarchy.hh,
      	* oln/core/abstract/image/neighborhood/hierarchy.hh,
      	* oln/core/abstract/topology/topology_being_random_accessible.hh,
      	* oln/core/abstract/topology/topology_having_bbox.hh,
      	* oln/core/abstract/topology/topology_having_neighborhood.hh,
      	* oln/core/abstract/topology/topology_having_subset.hh,
      	* oln/level/fill.hh, oln/Makefile.am: Adjust paths.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@634 4aad255d-cdde-0310-9447-f3009e2ae8c0
      25fd314c
    • Roland Levillain's avatar
      Fix the distribution. · 90f6e525
      Roland Levillain authored
      	* oln/Makefile.am (nobase_oln_HEADERS): Remove core/fwd_piter.hh.
      	Add core/iterator_vtypes.hh.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@633 4aad255d-cdde-0310-9447-f3009e2ae8c0
      90f6e525
  3. 12 Oct, 2006 12 commits
    • Roland Levillain's avatar
      Fix tests/window2d. · 8557a6f1
      Roland Levillain authored
      	* oln/core/image_entry.hh
      	(oln::single_vtype<image_entry<E>, typedef_::bkd_qiter_type>):
      	New.
      	* oln/core/iterator_vtypes.hh
      	(oln::single_vtype<image1d<T>, typedef_::fwd_qiter_type>)
      	(oln::single_vtype<image2d<T>, typedef_::fwd_qiter_type>)
      	(oln::single_vtype<image3d<T>, typedef_::fwd_qiter_type>): New.
      	Aesthetic changes.
      	* oln/core/1d/aliases.hh (oln::window_)
      	(oln::fwd_qiter_win_, oln::bkd_qiter_win_): New forward
      	declarations.
      	(oln::window1d, oln::fwd_qiter1d): New typedefs.
      	* oln/core/3d/aliases.hh (oln::window_)
      	(oln::fwd_qiter_win_, oln::bkd_qiter_win_): New forward
      	declarations.
      	(oln::window3d, oln::fwd_qiter3d): New typedefs.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@632 4aad255d-cdde-0310-9447-f3009e2ae8c0
      8557a6f1
    • Roland Levillain's avatar
      Fix access to images in tests. · 786a8176
      Roland Levillain authored
      	* tests/data.hh: New file.
      	* tests/io_pnm: Include it.
      	(main): Use rdata to compute the path to loaded images.
      	* tests/window2d.cc: Likewise.
      	Add copyright header.
      	* tests/Makefile.am (AM_CPPFLAGS): Add -I$(srcdir)/check and
      	-DOLN_IMG_DIR=\"$(top_srcdir)/olena/img\".
      	(noinst_HEADERS): New.
      	Add data.hh
      	* tests/check/Makefile.am (EXTRA_DIST): Add Makefile.flags.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@631 4aad255d-cdde-0310-9447-f3009e2ae8c0
      786a8176
    • Thierry Geraud's avatar
      2006-10-12 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 63a3fc78
      Thierry Geraud authored
      	Add image accessors with indices.
      	
      	* tests/at.cc: New.
      	* oln/core/automatic/image1d.hh: New.
      	* oln/core/automatic/image2d.hh: New.
      	* oln/core/automatic/image3d.hh: New.
      	* tests/Makefile.am (check_PROGRAMS): Add 'at'.
      	Move io_pnm to get consistent with SOURCES list.
      	(at_SOURCES): New.
      	* oln/core/typedefs.hh (oln_psite, oln_psite_): New.	
      	* oln/core/automatic/image_being_mutable.hh
      	(lvalue_t, psite_t): Remove; use oln_lvalue and oln_psite instead.
      	(impl_op_readwrite): Update sig.
      	* oln/core/abstract/image/dimension/1d.hh (at): New const method.
      	(at, has_at): New methods that should be elsewhere; this is a hack.
      	(image1d): Move ctor impl inside guards.
      	* oln/core/abstract/image/dimension/2d.hh (at): New const method.
      	(at, has_at): New methods that should be elsewhere; this is a hack.
      	(image2d): Move ctor impl inside guards.
      	* oln/core/abstract/image/dimension/3d.hh (at): New const method.
      	(at, has_at): New methods that should be elsewhere; this is a hack.
      	(image3d): Move ctor impl inside guards.
      	* oln/core/abstract/point.hh (include): Add xtd/vec.hh.
      	* oln/core/1d/neighb1d.hh (mk_c2): Update to mimic neighb2d.
      	* oln/core/2d/image2d.hh (impl_at): New.
      	* oln/core/3d/image3d.hh (impl_at): New.
      	* oln/Makefile.am (nobase_oln_HEADERS): Update.
      	* oln/morpher/internal/image_extension.hh (delegate): New mutable
      	version.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@630 4aad255d-cdde-0310-9447-f3009e2ae8c0
      63a3fc78
    • Roland Levillain's avatar
      Fix sanity tests. · 5f383334
      Roland Levillain authored
      	* oln/core/spe/row.hh, oln/core/spe/col.hh, oln/core/spe/slice.hh
      	(oln/core/abstract/point_set/point_set_having_bbox.hh)
      	(oln/core/abstract/image/bbox/hierarchy.hh): Include them.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@629 4aad255d-cdde-0310-9447-f3009e2ae8c0
      5f383334
    • Roland Levillain's avatar
      * oln/core/fwd_piter.hh: Rename as.... · 3eed4d4b
      Roland Levillain authored
      	* oln/core/iterator_vtypes.hh: ...this.
      	Adjust header guards.
      	* oln/basics1d.hh, oln/basics2d.hh, oln/basics3d.hh,
      	* oln/core/1d/image1d.hh, oln/core/2d/image2d.hh,
      	* oln/core/3d/image3d.hh, oln/core/internal/bbox_bkd_piter.hh,
      	* oln/core/internal/bbox_fwd_piter.hh, oln/io/pnm.hh,
      	* oln/morpher/add_neighborhood.hh: Adjust.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@628 4aad255d-cdde-0310-9447-f3009e2ae8c0
      3eed4d4b
    • Roland Levillain's avatar
      Reorganize and fix oln/core/3d/. · aabd0250
      Roland Levillain authored
      	* oln/core/3d/aliases.hh (oln::fwd_piter3d, oln::bkd_piter3d): Fix
      	their definitions.
      	* oln/core/3d/neighb3d.hh (c6, c18, c26)
      	(c4_slice, c8_slice, c4_row, c8_row, c4_col, c8_col): Rename as...
      	(mk_c6, mk_c18, mk_c26, mk_c4_slice, mk_c8_slice)
      	(mk_c4_row, mk_c8_row, mk_c4_col, mk_c8_col): ...these.
      	(c6, c18, c26, c4_slice, c8_slice, c4_row, c8_row)
      	(c4_col, c8_col): New objects.
      	* oln/core/3d/array3d.hh, oln/core/3d/dpoint3d.hh,
      	* oln/core/3d/image3d.hh, oln/core/3d/neighb3d.hh,
      	* oln/core/3d/point3d.hh: Separate the interface of the methods
      	and functions from their implementation.
      	* oln/core/3d/image3d.hh (oln::vtypes< image3d<T> >): Set
      	topo_type to topo3d.
      	(bbox_<point3d>): Move explicit	instantiation...
      	* oln/basics3d.hh: ...here
      	(oln/core/fwd_piter.hh): Include it.
      	* oln/core/3d/image3d.hh: Move the definition of the virtual types
      	fwd_piter and bkd_piter of oln::image3d...
      	* oln/core/fwd_piter.hh: ...here.
      	* oln/core/abstract/image/hybrid/classical.hh
      	(oln::abstract:classical_3d_image): New.
      	(oln::case_<image_hybrid_hierarchy_wrt_classical, E, 3>): Rename
      	as...
      	(oln::case_<image_hybrid_hierarchy_wrt_classical, E, 4>): ...this.
      	(oln::case_<image_hybrid_hierarchy_wrt_classical, E, 3>): New.
      	Handle 3D case.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@627 4aad255d-cdde-0310-9447-f3009e2ae8c0
      aabd0250
    • Roland Levillain's avatar
      Fix explicit instantiations of oln::bbox_. · 1035c5a6
      Roland Levillain authored
      	* oln/basics1d.hh (bbox_<point1d>): Move explicit
      	instantiation...
      	* oln/core/1d/bbox1d.hh: ...here (new file).
      	* oln/core/1d/image1d.hh: Include it.
      	* oln/basics2d.hh (bbox_<point2d>): Move explicit
      	instantiation...
      	* oln/core/2d/bbox2d.hh: ...here (new file).
      	* oln/core/2d/image2d.hh: Include it.
      	* oln/core/3d/bbox3d.hh: New file.
      	* oln/basics3d.hh, oln/core/3d/image3d.hh: Include it.
      	* oln/Makefile.am (nobase_oln_HEADERS): Add core/1d/bbox1d.hh,
      	core/2d/bbox2d.hh and core/3d/bbox3d.hh.
      
      	* oln/core/2d/array2d.hh: Aesthetic changes.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@626 4aad255d-cdde-0310-9447-f3009e2ae8c0
      1035c5a6
    • Roland Levillain's avatar
      Clean up ChangeLog. · 7cf92efc
      Roland Levillain authored
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@625 4aad255d-cdde-0310-9447-f3009e2ae8c0
      7cf92efc
    • Roland Levillain's avatar
      Move explicit instantiation of bbox_<point2d> to basics2d.hh. · 707f0e12
      Roland Levillain authored
      	* oln/core/2d/image2d.hh (oln::vtypes< image2d<T> >): Set
      	topo_type to topo2d.
      	* oln/core/2d/image2d.hh (bbox_<point2d>): Move explicit
      	instantiation...
      	* oln/basics2d.hh: ...here
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@624 4aad255d-cdde-0310-9447-f3009e2ae8c0
      707f0e12
    • Roland Levillain's avatar
      Reorganize and fix oln/core/1d/. · 011728be
      Roland Levillain authored
      	* oln/core/1d/aliases.hh (oln::fwd_piter1d, oln::bkd_piter1d): Fix
      	their definitions.
      	* oln/core/1d/neighb1d.hh (oln::c2): Rename as...
      	(oln::mk_c2): ...this.
      	(c2): New object.
      	* oln/core/1d/array1d.hh, oln/core/1d/dpoint1d.hh,
      	* oln/core/1d/image1d.hh, oln/core/1d/neighb1d.hh,
      	* oln/core/1d/point1d.hh: Separate the interface of the methods
      	and functions from their implementation.
      	* oln/core/1d/image1d.hh (oln::vtypes< image1d<T> >): Set
      	topo_type to topo1d.
      	(bbox_<point1d>): Move explicit	instantiation...
      	* oln/basics1d.hh: ...here
      	(oln/core/fwd_piter.hh): Include it.
      	* oln/core/1d/image1d.hh:
      	Move the definition of the virtual types fwd_piter and bkd_piter
      	of oln::image1d...
      	* oln/core/fwd_piter.hh: ...here.
      	* oln/core/abstract/image/hybrid/classical.hh
      	(oln::abstract:classical_1d_image)
      	(oln::case_<image_hybrid_hierarchy_wrt_classical, E, 1>)
      	(oln::case_<image_hybrid_hierarchy_wrt_classical, E, 2>): Rename
      	as...
      	(oln::case_<image_hybrid_hierarchy_wrt_classical, E, 2>)
      	(oln::case_<image_hybrid_hierarchy_wrt_classical, E, 3>):
      	...these.
      	(oln::case_<image_hybrid_hierarchy_wrt_classical, E, 1>): New.
      	Handle 1D case.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@623 4aad255d-cdde-0310-9447-f3009e2ae8c0
      011728be
    • Roland Levillain's avatar
      * oln/core/abstract/image/dimension/1d.hh · f19b924a
      Roland Levillain authored
      	* oln/core/abstract/image/dimension/2d.hh
      	* oln/core/abstract/image/dimension/3d.hh
      	* oln/core/abstract/image/dimension/hierarchy.hh
      	* oln/core/1d/grid1d.hh, oln/core/2d/grid2d.hh,
      	* oln/core/3d/grid3d.hh, oln/core/2d/array2d.hh,
      	* oln/core/2d/dpoint2d.hh, oln/core/2d/point2d.hh,
      	* tests/image1d.cc, tests/image2d.cc, tests/image3d.cc,
      	* tests/image_entry.cc, tests/io_pnm.cc, tests/Makefile.am:
      	Aesthetic changes.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@622 4aad255d-cdde-0310-9447-f3009e2ae8c0
      f19b924a
    • Roland Levillain's avatar
      Add static assertions to oln::topo_bbox_ and oln::topo_lbbox_. · d6c43300
      Roland Levillain authored
      	* oln/core/gen/topo_bbox.hh (oln::topo_bbox_<point>)
      	* oln/core/gen/topo_lbbox.hh (oln::topo_lbbox_<point>): Ensure
      	parameter point is an oln::abstract::point.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@621 4aad255d-cdde-0310-9447-f3009e2ae8c0
      d6c43300
  4. 11 Oct, 2006 3 commits
    • Thierry Geraud's avatar
      2006-10-11 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 9baaa495
      Thierry Geraud authored
      	Add new facilities to access to components such as row, col, etc.
      	
      	* oln/core/spe/row.hh: New.
      	* oln/core/spe/col.hh: New.
      	* oln/core/spe/slice.hh: New.
      	* oln/debug/print.hh (print): Use min_row, etc.
      	(include): Update.
      	* oln/core/typedefs.hh (index_comp_type): New.
      	(row_comp_type, col_comp_type, slice_comp_type): New.
      	(vec_type): New.
      	* oln/core/abstract/iterator_on_points.hh (coord_type): New.
      	* oln/core/abstract/point.hh (vec_type): New.
      	(vec): New.
      	* oln/core/1d/dpoint1d.hh (index_comp_type): New.
      	* oln/core/1d/point1d.hh (index_comp_type): New.
      	* oln/core/2d/dpoint2d.hh (row_comp_type, col_comp_type): New.
      	* oln/core/2d/point2d.hh (row_comp_type, col_comp_type): New.
      	* oln/core/3d/dpoint3d.hh
      	(slice_comp_type, row_comp_type, col_comp_type): New.
      	* oln/core/3d/point3d.hh
      	(slice_comp_type, row_comp_type, col_comp_type): New.
      	* oln/core/internal/point_nd.hh (vec_t): New.
      	(vec): Rename as...
      	(impl_vec): this.
      	* oln/basics2d.hh (include): Update.
      	* oln/basics3d.hh (include): Update.
      	* oln/Makefile.am (nobase_oln_HEADERS): Update.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@620 4aad255d-cdde-0310-9447-f3009e2ae8c0
      9baaa495
    • Thierry Geraud's avatar
      2006-10-11 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 6c471684
      Thierry Geraud authored
      	New facilities related to windows and q-iterators.
      	
      	* tests/window2d.cc: New.
      	* tests/Makefile.am (window2d_SOURCES): New.
      	* oln/debug/print.hh (format): New.
      	(print): Update; use format to correctly print 'unsigned char'.
      	* oln/level/fill.hh: Separate header and implementation.
      	(fill): Use shortcut.
      	* oln/core/typedefs.hh: New shortcuts oln_something(T) for
      	oln_type_of(T, something).
      	* oln/core/fwd_piter.hh (fwd_qiter_type): New.
      	* oln/core/abstract/window.hh: New.
      	* oln/core/2d/aliases.hh (window2d, fwd_qiter2d): New.
      	* oln/core/gen/fwd_qiter_win.hh (include): Add abstract::window.hh.
      	(fwd_qiter_win_): Update ctor signature.
      	* oln/core/gen/window.hh (grid_type): New.
      	(window_): Add inheritance from abstract::window.
      	(impl_is_valid): New.
      	(include): Update.
      	* oln/basics2d.hh (include): Add window.hh and fwd_qiter_win.hh.
      	* oln/Makefile.am (nobase_oln_HEADERS): Update.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@619 4aad255d-cdde-0310-9447-f3009e2ae8c0
      6c471684
    • Thierry Geraud's avatar
      2006-10-11 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 5a215e72
      Thierry Geraud authored
      	Add some tools related to morphers over image value.
      	
      	* oln/core/abstract/value.hh: New.
      	* oln/morpher/thru_fun.hh: New.
      	* oln/morpher/internal/image_value_morpher.hh: New.
      	* oln/color: New.
      	* oln/color/rgb.hh: New.
      	* tests/Makefile.am (check_PROGRAMS): Reorganize.
      	(io_pnm_SOURCES): New.
      	* oln/core/abstract/grid.hh (grid): Add inheritance from oln::type.
      	* oln/Makefile.am (nobase_oln_HEADERS): Update.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@618 4aad255d-cdde-0310-9447-f3009e2ae8c0
      5a215e72
  5. 10 Oct, 2006 3 commits
    • Roland Levillain's avatar
      Fix sanity checks. · 2ac3e55f
      Roland Levillain authored
      	* oln/core/abstract/image/hybrid/classical.hh,
      	* oln/core/gen/neighb.hh, oln/core/gen/window.hh,
      	* oln/core/gen/fwd_qiter_win.hh, oln/core/gen/piter_isubset.hh,
      	* oln/core/gen/mapimage.hh,
      	* oln/core/internal/bbox_fwd_piter.hh,
      	* oln/core/internal/bbox_bkd_piter.hh,
      	* oln/core/fwd_piter.hh, oln/core/1d/point1d.hh,
      	* oln/core/1d/dpoint1d.hh, oln/core/2d/point2d.hh,
      	* oln/core/2d/dpoint2d.hh, oln/core/2d/neighb2d.hh,
      	* oln/core/3d/point3d.hh, oln/core/3d/dpoint3d.hh,
      	* oln/core/3d/neighb3d.hh,
      	* oln/morpher/add_isubset.hh, oln/morpher/add_neighborhood.hh,
      	* oln/debug/print.hh, oln/io/pnm.hh, oln/level/fill.hh:
      	Include needed (missing) headers.
      	* oln/core/1d/image1d.hh, oln/core/2d/image2d.hh,
      	* oln/core/3d/image3d.hh: Likewise.
      	Instantiate oln::bbox_ explicitly.
      	* oln/core/gen/bbox.hh
      	(oln/core/gen/bbox_fwd_piter.hh, oln/core/gen/bbox_bkd_piter.hh):
      	Don't include them.
      	* oln/core/gen/topo_bbox.hh (impl_has_large): Typo.
      
      
      	Reorganize the abstract::image hierarchy.
      
      	* oln/core/abstract/image/hierarchies.hh: Move inclusions of point
      	set abstractions...
      	* oln/core/abstract/image/all.hh: ...here (new file).
      	* oln/core/image_entry.hh: Adjust.
      	* oln/Makefile.am (nobase_oln_HEADERS): Adjust.
      	* oln/basics1d.hh, oln/basics2d.hh, oln/basics3d.hh: Remove
      	explicit template instantiations.
      	* oln/core/abstract/image.hh
      	(oln/core/abstract/image/hierarchies.hh): Don't include it.
      	* oln/core/abstract/image/dimension/hierarchy.hh
      	* oln/core/abstract/image/type/hierarchy.hh,
      	* oln/core/abstract/image/neighborhood/hierarchy.hh
      	* oln/core/abstract/image/bbox/hierarchy.hh
      	* oln/core/abstract/image/accessibility/hierarchy.hh
      	* oln/core/abstract/image/mutability/hierarchy.hh
      	* oln/core/abstract/image/hybrid/classical.hh
      	(oln/core/abstract/image/hierarchies.hh): Include it.
      	* oln/core/abstract/image/type/integre.hh
      	(oln::abstract::case_<image_hierarchy_wrt_type, E, 4>)
      	(oln::abstract::case_<image_hierarchy_wrt_type, E, 5>)
      	(oln::abstract::case_<image_hierarchy_wrt_type, E, 6>): Catch up
      	with image type hierarchy.
      
      
      	Reorganize the abstract::point_set hierarchy.
      
      	* oln/core/abstract/point_set_hierarchies.hh: Rename as...
      	* oln/core/abstract/point_set/hierarchies.hh: ...this.
      	Move inclusions of point set abstractions...
      	* oln/core/abstract/point_set/all.hh: ...here (new file).
      	* oln/core/point_set_entry.hh: Adjust.
      	* oln/core/abstract/point_set_being_connected.hh,
      	* oln/core/abstract/point_set_being_random_accessible.hh,
      	* oln/core/abstract/point_set_having_bbox.hh,
      	* oln/core/abstract/point_set_having_known_size.hh: Rename as...
      	* oln/core/abstract/point_set/point_set_being_connected.hh,
      	* oln/core/abstract/point_set/point_set_being_random_accessible.hh,
      	* oln/core/abstract/point_set/point_set_having_bbox.hh,
      	* oln/core/abstract/point_set/point_set_having_known_size.hh:
      	...these.
      	Adjust header guards and inclusions.
      	* oln/Makefile.am (nobase_oln_HEADERS): Adjust.
      	* oln/core/abstract/bbox.hh
      	(oln::case_<point_set_hierarchy_wrt_bbox, E, 1>)
      	(oln::case_<point_set_hierarchy_wrt_bbox, E, 2>): Move...
      	* oln/core/abstract/point_set/point_set_having_bbox.hh: ...here.
      	(oln::abstract::point_set_having_bbox):
      	s/oln_type_of/oln_check_type_of/g.
      
      
      	Reorganize the abstract::topology hierarchy.
      
      	* oln/core/abstract/topology_hierarchies.hh: Rename as...
      	* oln/core/abstract/topology/hierarchies.hh: ...this.
      	Move inclusions of topology abstractions...
      	* oln/core/abstract/topology/all.hh: ...here (new file).
      	* oln/core/topology_entry.hh: Adjust
      	* oln/core/abstract/topology_being_random_accessible.hh,
      	* oln/core/abstract/topology_having_bbox.hh,
      	* oln/core/abstract/topology_having_neighborhood.hh,
      	* oln/core/abstract/topology_having_subset.hh: Rename as...
      	* oln/core/abstract/topology/topology_being_random_accessible.hh,
      	* oln/core/abstract/topology/topology_having_bbox.hh,
      	* oln/core/abstract/topology/topology_having_neighborhood.hh,
      	* oln/core/abstract/topology/topology_having_subset.hh: ...these.
      	Adjust header guards and inclusions.
      	* oln/Makefile.am (nobase_oln_HEADERS): Adjust.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@617 4aad255d-cdde-0310-9447-f3009e2ae8c0
      2ac3e55f
    • Thierry Geraud's avatar
      2006-10-10 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · aad9a923
      Thierry Geraud authored
      	Add xtd accessors (pure functions based on accessor methods).
      	
      	* xtd/accessor.hh: New.
      	* xtd/vec.hh (operator<<): Move outside of class.
      	(operator<<): New specializations for 'unsigned char' and
      	'signed char' so that data is considered as number and
      	not as 'char'.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@616 4aad255d-cdde-0310-9447-f3009e2ae8c0
      aad9a923
    • Thierry Geraud's avatar
      2006-10-10 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 5c195b4c
      Thierry Geraud authored
      	Add i/o read for pbm and pgm formats.
      	
      	* tests/io_pnm.cc: New.
      	* tests/Makefile.am (check_PROGRAMS): Update.
      	* oln/io: New directory.
      	* oln/io/pnm.hh: New.
      	* oln/core/image_entry.hh (coord_type): New single_vtype.
      	* oln/core/abstract/image.hh (decl): New comment.
      	* oln/core/2d/image2d.hh (adr_at): New.
      	* oln/basics2d.hh (include): Add fwd_piter.hh.
      	* oln/Makefile.am (nobase_oln_HEADERS): Update.
      	* img: New directory.
      	* img/chien.pbm: New.
      	* img/lena32.pgm: New.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@615 4aad255d-cdde-0310-9447-f3009e2ae8c0
      5c195b4c
  6. 09 Oct, 2006 7 commits
    • Thierry Geraud's avatar
      2006-10-09 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 28d697de
      Thierry Geraud authored
      	* oln/core/internal/tracked_ptr.hh (operator bool):
      	Fix signature.
      	(operator bool): Add line to remove warning.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@614 4aad255d-cdde-0310-9447-f3009e2ae8c0
      28d697de
    • Roland Levillain's avatar
      Add sanity check to Olena. · c69629d7
      Roland Levillain authored
      	* configure.ac: Configure olena/tests/check/Makefile,
      	olena/tests/check/defs, olena/tests/sanity/Makefile and
      	olena/tests/sanity/check.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@613 4aad255d-cdde-0310-9447-f3009e2ae8c0
      c69629d7
    • Thierry Geraud's avatar
      2006-10-09 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · e8f8e002
      Thierry Geraud authored
      	* stc/scoop.hh (stc_virtual_typedef): Remove this macro which
      	cannot be consistent wrt to client namespaces.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@612 4aad255d-cdde-0310-9447-f3009e2ae8c0
      e8f8e002
    • Thierry Geraud's avatar
      2006-10-09 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · c0379564
      Thierry Geraud authored
      	Change stc_virtual_typedef into oln_virtual_typedef.
      	
      	* oln/core/macros.hh (oln_virtual_typedef): New macro.
      	It replaces stc_virtual_typedef.
      	* oln/core/abstract/image.hh: Update.
      	* oln/core/abstract/image/mutability/hierarchy.hh: Update.
      	* oln/core/abstract/image/neighborhood/hierarchy.hh: Update.
      	* oln/core/abstract/image/bbox/hierarchy.hh: Update.
      	* oln/core/abstract/point_set.hh: Update.
      	* oln/core/abstract/neighborhood.hh: Update.
      	* oln/core/abstract/topology.hh: Update.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@611 4aad255d-cdde-0310-9447-f3009e2ae8c0
      c0379564
    • Thierry Geraud's avatar
      2006-10-09 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 1ba3dbba
      Thierry Geraud authored
      	* oln/debug/print.hh: Separate definition from declaration.
      	* oln/core/automatic/topology_being_random_accessible.hh
      	(impl_has_large): Fix signature.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@610 4aad255d-cdde-0310-9447-f3009e2ae8c0
      1ba3dbba
    • Thierry Geraud's avatar
      2006-10-09 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · afaada91
      Thierry Geraud authored
      	* stc/scoop.hh (stc_virtual_typedef): Fix macro.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@609 4aad255d-cdde-0310-9447-f3009e2ae8c0
      afaada91
    • Thierry Geraud's avatar
      2006-10-09 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · f5c31fa0
      Thierry Geraud authored
      	Separate definition code from declaration code in olena.
      
      	* oln/core/type.hh: Split code.
      	* oln/core/point_set_entry.hh: Likewise.
      	* oln/core/automatic/image.hh: Likewise.
      	* oln/core/automatic/topology_having_bbox.hh: Likewise.
      	* oln/core/automatic/image_being_random_accessible.hh: Likewise.
      	* oln/core/automatic/image_having_neighborhood.hh: Likewise.
      	* oln/core/automatic/topology_being_random_accessible.hh: Likewise.
      	* oln/core/automatic/topology_having_subset.hh: Likewise.
      	* oln/core/automatic/image_being_mutable.hh: Likewise.
      	* oln/core/automatic/topology_having_neighborhood.hh: Likewise.
      	* oln/core/neighborhood_entry.hh: Likewise.
      	* oln/core/topology_entry.hh: Likewise.
      	* oln/core/image_entry.hh: Likewise.
      	* oln/core/abstract/iterator_on_points.hh: Likewise.
      	* oln/core/abstract/topology_having_bbox.hh: Likewise.
      	* oln/core/abstract/image.hh: Likewise.
      	* oln/core/abstract/image/type/binary.hh: Likewise.
      	* oln/core/abstract/image/type/data.hh: Likewise.
      	* oln/core/abstract/image/type/grey_level.hh: Likewise.
      	* oln/core/abstract/image/type/color.hh: Likewise.
      	* oln/core/abstract/image/type/label.hh: Likewise.
      	* oln/core/abstract/image/hybrid/classical.hh: Likewise.
      	* oln/core/abstract/image/mutability/hierarchy.hh: Likewise.
      	* oln/core/abstract/image/dimension/2d.hh: Likewise.
      	* oln/core/abstract/image/neighborhood/hierarchy.hh: Likewise.
      	* oln/core/abstract/image/accessibility/hierarchy.hh: Likewise.
      	* oln/core/abstract/image/bbox/hierarchy.hh: Likewise.
      	* oln/core/abstract/point_set_being_random_accessible.hh: Likewise.
      	* oln/core/abstract/grid.hh: Likewise.
      	* oln/core/abstract/iterator.hh: Likewise.
      	* oln/core/abstract/point.hh: Likewise.
      	* oln/core/abstract/bbox.hh: Likewise.
      	* oln/core/abstract/point_set_being_connected.hh: Likewise.
      	* oln/core/abstract/dpoint.hh: Likewise.
      	* oln/core/abstract/topology_being_random_accessible.hh: Likewise.
      	* oln/core/abstract/topology_having_subset.hh: Likewise.
      	* oln/core/abstract/topology_having_neighborhood.hh: Likewise.
      	* oln/core/abstract/entry.hh: Likewise.
      	* oln/core/abstract/point_set.hh: Likewise.
      	* oln/core/abstract/point_set_having_known_size.hh: Likewise.
      	* oln/core/abstract/neighborhood.hh: Likewise.
      	* oln/core/abstract/point_set_having_bbox.hh: Likewise.
      	* oln/core/abstract/topology.hh: Likewise.
      	* oln/core/2d/neighb2d.hh: Likewise.
      	* oln/core/2d/dpoint2d.hh: Likewise.
      	* oln/core/2d/array2d.hh: Likewise.
      	* oln/core/2d/image2d.hh: Likewise.
      	* oln/core/2d/point2d.hh: Likewise.
      	* oln/core/gen/piter_isubset.hh: Likewise.
      	* oln/core/gen/topo_add_isubset.hh: Likewise.
      	* oln/core/gen/bbox.hh: Likewise.
      	* oln/core/gen/topo_bbox.hh: Likewise.
      	* oln/core/gen/neighb.hh: Likewise.
      	* oln/core/gen/fwd_piter_bbox.hh: Likewise.
      	* oln/core/gen/bbox_fwd_piter.hh: Likewise.
      	* oln/core/gen/fwd_niter_neighb.hh: Likewise.
      	* oln/core/gen/fwd_qiter_win.hh: Likewise.
      	* oln/core/gen/topo_lbbox.hh: Likewise.
      	* oln/core/gen/window.hh: Likewise.
      	* oln/core/gen/bbox_bkd_piter.hh: Likewise.
      	* oln/core/gen/bkd_piter_bbox.hh: Likewise.
      	* oln/core/gen/topo_add_nbh.hh: Likewise.
      	* oln/core/gen/mapimage.hh: Likewise.
      	* oln/core/internal/tracked_ptr.hh: Likewise.
      	* oln/core/internal/topology_morpher.hh: Likewise.
      	* oln/core/internal/point_nd.hh: Likewise.
      	* oln/core/internal/bbox_bkd_piter.hh: Likewise.
      	* oln/core/internal/bbox_fwd_piter.hh: Likewise.
      	* oln/core/internal/dpoint_nd.hh: Likewise.
      	* oln/basics2d.hh: Likewise.
      	* oln/morpher/add_isubset.hh: Likewise.
      	* oln/morpher/identity.hh: Likewise.
      	* oln/morpher/internal/image_extension.hh: Likewise.
      	* oln/morpher/add_neighborhood.hh: Likewise.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@608 4aad255d-cdde-0310-9447-f3009e2ae8c0
      f5c31fa0
  7. 05 Oct, 2006 1 commit
    • Thierry Geraud's avatar
      2006-10-05 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · 1f303fb1
      Thierry Geraud authored
      	Decouple iterators from image topology; update neighborhood tools
      	and start to add window tools.
      	
      	* oln/core/automatic/topology_having_subset.hh: New.
      	* oln/core/abstract/topology_having_subset.hh: New.
      	* oln/core/gen/fwd_niter_neighb.hh: New.
      	* oln/core/gen/fwd_qiter_win.hh: New.
      	* oln/core/gen/window.hh: New.
      	* oln/core/typedefs.hh
      	(qiter_type, fwd_qiter_type, bkd_qiter_type): Uncomment.
      	(niter_type, fwd_niter_type, bkd_niter_type): Uncomment.
      	(isubset): Rename into...
      	(subset_type): ...this.
      	* oln/core/macros.hh
      	(oln_type_of, oln_deduce_type_of, oln_type_of_): Rely on direct access.
      	(oln_check_type_of, oln_check_type_of_): Rely on direct access.
      	(oln_deduce_direct_type_of): New.
      	* oln/core/topology_entry.hh (subset_type): New.
      	* oln/core/image_entry.hh (fwd_piter_type, bkd_piter_type): Move
      	from vtypes to single_vtype.
      	(fwd_qiter_type): New.
      	* oln/core/abstract/topology_hierarchies.hh
      	(topology_hierarchy_wrt_subset): New.
      	(include): Add topology_having_subset.hh.
      	* oln/core/abstract/image/neighborhood/hierarchy.hh
      	(niter, fwd_niter, bkd_niter): New in decl.
      	* oln/core/2d/aliases.hh
      	(fwd_piter_bbox_, bkd_piter_bbox_): Change param letter.
      	(fwd_piter2d, bkd_piter2d): Update.
      	* oln/core/2d/neighb2d.hh (c4, c8, c2_row, c2_col): Rename into...
      	(mk_c4, mk_c8, mk_c2_row, mk_c2_col): ...these in namespace internal.
      	(c4, c8, c2r, c2c): New objects.
      	* oln/core/gen/piter_isubset.hh (piter_isubset_): New ctor for
      	iterators around a point.
      	(topo): Return a copy.
      	(change_topology_): Remove; obsolete.
      	* oln/core/gen/topo_add_isubset.hh (isubset_type): Rename into...
      	(subset_type): ...this.
      	(isubset): Rename into...
      	(impl_subset): ...this.
      	* oln/core/gen/topo_bbox.hh (impl_lbbox): New; experimental!
      	* oln/core/gen/fwd_piter_bbox.hh (fwd_piter_bbox_): Change parameter
      	from topo to point; update.
      	(topo): Remove this method; obsolete.
      	(change_topology_): Remove; obsolete.
      	(topo_): Remove this attribute; obsolete.
      	* oln/core/gen/bkd_piter_bbox.hh: Likewise.
      	* oln/basics2d.hh: Update.
      	* oln/Makefile.am (nobase_oln_HEADERS): Update.
      	* oln/core/2d/image2d.hh
      	(fwd_piter_type, bkd_piter_type): Move these definitions into...
      	* oln/core/fwd_piter.hh: ... this new file.
      	* oln/morpher/add_isubset.hh: Likewise.
      	* oln/morpher/add_neighborhood.hh: Likewise.
      	* oln/morpher/internal/image_extension.hh (image_): Change from
      	const& to plain type.
      
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@607 4aad255d-cdde-0310-9447-f3009e2ae8c0
      1f303fb1
  8. 03 Oct, 2006 2 commits
    • Roland Levillain's avatar
      Fix the distribution. · e145418e
      Roland Levillain authored
      	* oln/Makefile.am (nobase_oln_HEADERS): Add core/1d/aliases.hh,
      	core/1d/array1d.hh, core/1d/dpoint1d.hh, core/1d/image1d.hh,
      	core/1d/neighb1d.hh, core/1d/point1d.hh, core/3d/aliases.hh,
      	core/3d/array3d.hh, core/3d/dpoint3d.hh, core/3d/image3d.hh,
      	core/3d/neighb3d.hh, core/3d/point3d.hh,
      	core/internal/tracked_ptr.hh, basics1d.hh, basics3d.hh.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@606 4aad255d-cdde-0310-9447-f3009e2ae8c0
      e145418e
    • Roland Levillain's avatar
      Add oln::image3d and associated types. · 57b5b067
      Roland Levillain authored
      	* oln/core/3d/image3d.hh, oln/core/3d/array3d.hh,
      	* oln/core/3d/point3d.hh, oln/core/3d/dpoint3d.hh,
      	* oln/core/3d/neighb3d.hh, oln/core/3d/aliases.hh,
      	* oln/basics3d.hh: New.
      	* oln/core/abstract/point_set_being_connected.hh
      	(oln::abstract::point_set_being_3d_connected): New class.
      	(oln::case_<point_set_hierarchy_wrt_connectivity, E, 3>): New
      	case.
      	* tests/image3d.cc: New test.
      	* tests/Makefile.am (check_PROGRAMS): Add image3d.
      	(image3d_SOURCES): New.
      
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@605 4aad255d-cdde-0310-9447-f3009e2ae8c0
      57b5b067