1. 31 Oct, 2006 1 commit
  2. 24 Oct, 2006 1 commit
  3. 17 Oct, 2006 1 commit
    • Roland Levillain's avatar
      Organize the tests into a hierarchy. · 61b3b113
      Roland Levillain authored
      	* tests/fill.cc: Move file...
      	* tests/algorithms/fill.cc: ...here.
      	* tests/at.cc, tests/dpoint2d.cc, tests/grid.cc, tests/image1d.cc,
      	* tests/image2d.cc, tests/image3d.cc, tests/image_entry.cc,
      	* tests/npoints.cc, tests/point2d.cc, tests/window2d.cc: Move
      	* tests/core/at.cc, tests/core/dpoint2d.cc, tests/core/grid.cc,
      	* tests/core/image1d.cc, tests/core/image2d.cc,
      	* tests/core/image3d.cc, tests/core/image_entry.cc,
      	* tests/core/npoints.cc, tests/core/point2d.cc,
      	* tests/core/window2d.cc: ...here.
      	* tests/io_pnm.cc: Move file...
      	* tests/io/io_pnm.cc: ...here.
      	* tests/add_neighborhood_morpher.cc, tests/identity_morpher.cc,
      	* tests/morphers.cc, tests/value_cast.cc: Move files...
      	* tests/morphers/add_neighborhood_morpher.cc,
      	* tests/morphers/identity_morpher.cc, tests/morphers/morphers.cc,
      	* tests/morphers/value_cast.cc:: ...here.
      	* tests/grey.cc: Move file...
      	* tests/value/grey.cc: ...here.
      	* tests/algorithms/Makefile.am, tests/core/Makefile.am,
      	* tests/io/Makefile.am, tests/morphers/Makefile.am,
      	* tests/value/Makefile.am: New.
      	* tests/Makefile.am: Adjust.
      	* tests/sanity/Makefile.am (CPPFLAGS): Add `-I$(srcdir)/..'.
      	* oln/Makefile.am: Remove
      	Add core/automatic/image/mutable_image.hh.
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@654 4aad255d-cdde-0310-9447-f3009e2ae8c0
  4. 16 Oct, 2006 2 commits
  5. 12 Oct, 2006 3 commits
    • 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
      	(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
    • 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
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@630 4aad255d-cdde-0310-9447-f3009e2ae8c0
    • 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
  6. 11 Oct, 2006 2 commits
    • 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
    • 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
  7. 10 Oct, 2006 1 commit
    • 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
  8. 09 Oct, 2006 1 commit
  9. 03 Oct, 2006 2 commits
    • 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
      	* 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
    • Roland Levillain's avatar
      Add oln::image1d and associated types. · e9b02fbc
      Roland Levillain authored
      	* oln/core/1d/image1d.hh, oln/core/1d/array1d.hh,
      	* oln/core/1d/point1d.hh, oln/core/1d/dpoint1d.hh,
      	* oln/core/1d/neighb1d.hh, oln/core/1d/aliases.hh,
      	* oln/basics1d.hh: New.
      	* oln/core/abstract/point_set_being_connected.hh
      	(oln::abstract::point_set_being_1d_connected): New class.
      	(oln::case_<point_set_hierarchy_wrt_connectivity, E, 1>): Handle
      	the 1-dimension case, and move the 2-dimension case...
      	(oln::case_<point_set_hierarchy_wrt_connectivity, E, 2>): ...here
      	* tests/image1d.cc: New test.
      	* tests/Makefile.am (check_PROGRAMS): Add image1d.
      	(image1d_SOURCES): New.
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@604 4aad255d-cdde-0310-9447-f3009e2ae8c0
  10. 02 Oct, 2006 2 commits
  11. 29 Sep, 2006 1 commit
  12. 28 Sep, 2006 1 commit
  13. 27 Sep, 2006 1 commit
  14. 24 Sep, 2006 1 commit
    • Roland Levillain's avatar
      Restore the compatibility of morphers with G++ 4.0. · 555fe8df
      Roland Levillain authored
      	* oln/core/macros.hh (oln_direct_type_of, oln_direct_type_of_):
      	New macros.
      	* oln/morpher/internal/image_extension.hh (oln): Use
      	`oln_direct_type_of(Exact, ...)' instead of
      	`oln_type_of(self_t, ...)'.
      	* tests/morphers.cc (main): Add more static assertions.
      	* tests/identity_morpher.cc: More documentation.
      	* tests/add_neighborhood_morpher.cc: New test.
      	* tests/Makefile.am (check_PROGRAMS): Add
      	(add_neighborhood_morpher_SOURCES): New.
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@558 4aad255d-cdde-0310-9447-f3009e2ae8c0
  15. 18 Sep, 2006 1 commit
    • Roland Levillain's avatar
      Add the first two morphers: identity and neighborhood addition. · 7b62e266
      Roland Levillain authored
      	* oln/core/typedefs.hh (morpher_type, neighborhood_type): New
      	typedef declarations.
      	(neighb_type, image_neighbness_type, image_constness_type)
      	(image_dimension_type, image_typeness_type)
      	(image_valuedness_type, image_rawness_type): Remove typedef
      	* oln/core/image_entry.hh
      	(single_vtype<image_entry<E>, typedef_::morpher_type>): New
      	virtual type.
      	* oln/core/abstract/image.hh: Check it.
      	* oln/core/abstract/image_hierarchies.hh
      	(image_dimension_hierarchy, image_type_hierarchy): Rename as...
      	(image_hierarchy_wrt_dimension, image_hierarchy_wrt_type):
      	(image_neighborhood_hierarchy): Make it the third image hierarchy.
      	Rename as...
      	(image_value_hierarchy, image_rawness_hierarchy): Adjust and
      	rename as...
      	(image_hierarchy_wrt_value, image_hierarchy_wrt_data_retrieval):
      	(oln/core/abstract/image_having_neighborhood.hh): Include it.
      	* oln/core/abstract/image_dimension.hh:
      	(oln::abstract::image1d, oln::abstract::image2d)
      	(oln::abstract::image3d): Inherit from automatic::impl.
      	* oln/core/abstract/image_type.hh,
      	* oln/core/abstract/image_type_integre.hh:
      	* oln/core/abstract/image_having_neighborhood.hh: New
      	* oln/automatic/image_having_neighborhood.hh: New automatic
      	* oln/morpher/internal/image_extension.hh: New abstract
      	* oln/morpher/identity.hh,
      	* oln/morpher/add_neighborhood.hh: New morphers.
      	* tests/morphers.cc, tests/identity_morpher.cc: New tests.
      	* oln/Makefile.am (nobase_oln_HEADERS): Catch up with renamings
      	from the previous patches.
      	Add automatic/image_having_neighborhood.hh,
      	morpher/add_neighborhood.hh and
      	* tests/Makefile.am (check_PROGRAMS): Add identity_morpher and
      	(identity_morpher_SOURCES, morphers_SOURCES): New.
      	* oln/core/abstract/topology_hierarchies.hh: Aesthetic changes.
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@552 4aad255d-cdde-0310-9447-f3009e2ae8c0
  16. 12 Sep, 2006 1 commit
    • Roland Levillain's avatar
      Fix the current implementation of image_entry, as well as some · 34b029a5
      Roland Levillain authored
      	* oln/core/abstract/internal/image_impl.hh (oln::category::image):
      	Move this declaration...
      	* oln/core/abstract/image.hh: ...here.
      	* oln/core/case.hh: New file.
      	* oln/core/abstract/image_abstractions.hh,
      	* olena/oln/core/abstract/entry.hh,
      	* oln/core/traits.hh: Use it.
      	* oln/Makefile.am (nobase_oln_HEADERS): Add core/case.hh.
      	* oln/core/abstract/image_dimension.hh
      	(oln::ERROR::UNKNOWN_GRID_TYPE): New.
      	(oln::default_case_<grid_dim_tag, grid_type): Use it.
      	(ext_vtype_in_category): Turn into...
      	(ext_vtype): ...this.
      	* oln/core/abstract/image_typeness.hh (ext_vtype_in_category):
      	Turn into...
      	(ext_vtype): ...this.
      	* oln/core/typedefs.hh (oln_type_of, oln_type_of_): Move
      	these macros...
      	* oln/core/abstract/macros.hh: ...here, and replace the previous
      	Rename file as...
      	* oln/core/macros.hh: ...this.
      	Adjust header guards.
      	* oln/core/abstract/internal/image_impl.hh: Adjust users.
      	* oln/Makefile.am (nobase_oln_HEADERS): Remove
      	Add core/macros.hh
      	* oln/core/abstract/grid.hh (oln_grd_type_of, oln_grd_type_of_):
      	Remove macros.
      	(vtypes_in_category< category::grid, abstract::grid<G> >): Turn
      	(vtypes< abstract::grid<G> >): ...this.
      	(packed_vtypes_in_category<category::grid, G>):
      	* oln/core/1d/grid1d.hh, oln/core/2d/grid2d.hh,
      	* oln/core/3d/grid3d.hh (vtypes_in_category): Turn into...
      	(vtypes): ...this.
      	* tests/grid.cc: s/oln_grd_type_of_/oln_type_of_/g
      	* tests/image_entry.cc (my::dummy): New declaration.
      	(vtypes_in_category<category::image, my::image>): Turn into...
      	(vtypes<my::image>): ...this.
      	Add missing virtual types.
      	(my::image): Fix base class.
      	(main): Remove any references to
      	packed_vtypes_in_category<oln::category::image, my::image>, since
      	it no longer exists.
      	* tests/Makefile.am (AM_CPPFLAGS): Add -I$(top_srcdir)/extended.
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@529 4aad255d-cdde-0310-9447-f3009e2ae8c0
  17. 07 Sep, 2006 1 commit
    • Thierry Geraud's avatar
      2006-09-07 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr> · dd2ae6da
      Thierry Geraud authored
      	Add image2d and fix topo-related classes.
      	* olena/tests/npoints.cc: New.
      	* olena/tests/Makefile.am: Update.
      	* olena/oln/core/image_entry.hh: New.
      	* olena/oln/core/2d/image2d.hh: New.
      	* olena/oln/basics2d.hh: Force instantiation and include
      	* olena/oln/core/typedefs.hh: Include mlc/assert.hh and
      	(piter_type): Uncomment.
      	(rvalue_type): New.
      	(psite_type): New.
      	(concrete_type): Uncomment.
      	(size_type): Add comment.
      	(topo_type): New.
      	* olena/oln/core/abstract/topo.hh (bbox): Remove this method which
      	is redundant with the one of topo_with_bbox.
      	* olena/oln/core/abstract/topo_with_bbox.hh (bbox): Fix typo.
      	* olena/oln/core/abstract/entry.hh (next_entry_node): New
      	specialization to handle the specific and rare case of having no
      	* olena/oln/core/abstract/topo_ra.hh: Fix cut n paste errors.
      	* olena/oln/core/abstract/pset.hh (piter): New vtype decl.
      	* olena/oln/core/gen/fwd_piter.hh (fwd_piter_): Add commented
      	forthcoming ctors.
      	* olena/oln/core/gen/bbox_topo.hh: Cosmetics.
      	* olena/oln/core/pset_entry.hh (piter_type): New.
      	* olena/oln/core/abstract/image.hh: Update.
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@527 4aad255d-cdde-0310-9447-f3009e2ae8c0
  18. 25 Apr, 2006 1 commit
    • Roland Levillain's avatar
      Add grids. · ec13303d
      Roland Levillain authored
      	* oln/core/abstract/grid.hh,
      	* oln/core/1d/grid1d.hh,
      	* oln/core/2d/grid2d.hh,
      	* oln/core/3d/grid3d.hh: New files (imported from Olena proto-1.0,
      	and modified).
      	* oln/core/typedefs.hh (grid_type, point_type, dpoint_type)
      	(size_type, dimvalue_type, coord_type): Enable these types.
      	* oln/core/abstract/image.hh (grid_type): Don't mlc-declare this
      	typedef, since oln/core/typedefs.hh already takes care of it.
      	(vtypes< category::image, abstract::image<I> >): Enable	grid_type.
      	(packed_vtypes): Likewise.
      	* oln/core/abstract/internal/image_impl.hh: Improve comment.
      	* tests/grid.cc: New test.
      	* tests/image_entry.cc: Update this test.
      	* oln/Makefile.am (nobase_oln_HEADERS): Add core/abstract/grid.hh,
      	core/1d/grid1d.hh, core/2d/grid2d.hh and core/3d/grid3d.hh.
      	* tests/Makefile.am (check_PROGRAMS): Add grid.
      	(grid_SOURCES): New.
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@470 4aad255d-cdde-0310-9447-f3009e2ae8c0
  19. 21 Apr, 2006 1 commit
    • Roland Levillain's avatar
      Lay the foundation stone of abstract::image. · 649d49ab
      Roland Levillain authored
      	* oln/core/abstract/any.hh, oln/core/typedefs.hh,
      	* oln/core/abstract/image.hh,
      	* oln/core/abstract/internal/image_impl.hh
      	* oln/core/abstract/image_entry.hh
      	* oln/core/abstract/image_dimension.hh: New files (imported from
      	Olena proto-1.0, and modified).
      	* oln/core/abstract/macros.hh: New file.
      	* tests/image_entry.cc: New test.
      	* Makefile.am, oln/Makefile.am, tests/Makefile.am: New files.
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@462 4aad255d-cdde-0310-9447-f3009e2ae8c0
  20. 23 Mar, 2006 1 commit
  21. 14 Mar, 2006 2 commits
    • Roland Levillain's avatar
      New subproject: Static (`stc' for short). · 1eadf52f
      Roland Levillain authored
      	Move the SCOOP machinery (virtual types/properties) from Metalic
      	to Static.
      	* configure.ac (static/Makefile, static/stc/Makefile)
      	(static/tests/Makefile): Configure these files.
      	* metalic/stc/properties.hh: Move...
      	* static/stc/properties.hh: ...here.
      	(mlc_internal_get_typedef, mlc_equip_namespace_with_properties)
      	(mlc_set_super, mlc_super, mlc_super_, mlc_typeof, mlc_typeof_):
      	Rename as...
      	(stc_internal_get_typedef, stc_equip_namespace_with_properties)
      	(stc_set_super, stc_super, stc_super_, stc_typeof, stc_typeof_):
      	* metalic/tests/properties.cc: Move...
      	* static/tests/properties.cc: ...here.
      	* Makefile.am (SUBDIRS): Add static.
      	* static/Makefile.am, static/stc/Makefile.am,
      	* static/tests/Makefile.am: New.
      	* metalic/mlc/Makefile.am (nobase_mlc_HEADERS): Remove
      	* metalic/tests/Makefile.am (check_PROGRAMS): Remove properties.
      	(properties_SOURCES): Remove.
      	* extended/tests/Makefile.am (AM_CPPFLAGS): Add
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@424 4aad255d-cdde-0310-9447-f3009e2ae8c0
    • Roland Levillain's avatar
      Catch up with recent changes and fix some tests of Metalic. · 8b4beec4
      Roland Levillain authored
      	* metalic/mlc/properties.hh (mlc_equip_namespace_with_properties):
      	Catch up with recent changes in typedef.hh/ret.hh.
      	Don't declare a local `ret' typedef; include mlc/ret.hh, and use
      	the `mlc_ret' macro instead.
      	* metalic/mlc/cmp.hh (eq_<T, T>): Solve ambiguous calls to
      	* metalic/tests/ret.cc: Include mlc/ret.hh instead of
      	* extended/tests/Makefile.am (mlcdir, nobase_mlc_HEADERS): Remove.
      	(AM_CPPFLAGS): New.
      	* extended/xtd/Makefile.am: New file.
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@423 4aad255d-cdde-0310-9447-f3009e2ae8c0
  22. 03 Mar, 2006 1 commit
  23. 16 Feb, 2006 1 commit