- 15 Nov, 2006 2 commits
-
-
Roland Levillain authored
images. * tests/morphers/with_lut.cc (main): More static checking of the interface of an image with LUT. Test oln::level::fill on an image with LUT. * oln/level/fill.hh (level::fill(abstract:: mutable_image_being_value_wise_random_accessible<I>&)) (level::impl:: fill(abstract::mutable_image_being_value_wise_random_accessible<I>&)): New. * oln/core/typedefs.hh (oln_fwd_viter, oln_fwd_viter_) (oln_bkd_viter, oln_bkd_viter_, oln_viter, oln_viter_): New macros. * oln/core/gen/bkd_viter_lut.hh (bkd_viter_lut::bkd_viter_lut(const morpher::with_lut<Image, Lut>&)) * oln/core/gen/fwd_viter_lut.hh (fwd_viter_lut::fwd_viter_lut(const morpher::with_lut<Image, Lut>&)) New ctors. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@709 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
oln::internal::dpoint_nd. * oln/core/internal/point_nd.hh (oln::vtypes< internal::point_nd<E> >::vec_t) (oln::vtypes< internal::point_nd<E> >::psite_type): Remove typedefs. (oln::vtypes< internal::point_nd<E> >::vec_type): Fix typedef. * oln/core/internal/point_nd.hh (oln::vtypes< internal::point_nd<E> >::vec_t): Remove typedef. (oln::vtypes< internal::point_nd<E> >::vec_type): Fix typedef. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@708 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 14 Nov, 2006 2 commits
-
-
Thierry Geraud authored
Now call simplified scoop macros. * oln/core/macros.hh (oln_deduce_direct_type_of_, oln_deduce_direct_type_of): Remove. (oln_check_type_of, oln_check_type_of_): Remove. (oln_check_direct_type_of, oln_check_direct_type_of_): Remove. (oln_deduce): New; shortcut to oln_deduce_type_of. Add missing shortcuts. * oln/core/typedefs.hh (oln_dim, oln_dim_): New. (oln_vec, oln_vec_): New. (oln_bbox, oln_bbox_): New. (include): Fix and add fwd decls. Move single_vtype definitions into vtypes structures. * oln/core/point_set_entry.hh: Update. (single_vtype): Move into... (vtypes): ...this. * 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/point.hh: Likewise. * oln/core/gen/topo_add_nbh.hh: Likewise. * oln/core/internal/topology_morpher.hh: Likewise. * oln/morpher/value_cast.hh: Likewise. * oln/morpher/two_way.hh: Likewise. * oln/morpher/thru_fun.hh: Likewise. * oln/morpher/slice.hh: Likewise. * oln/morpher/with_lut.hh: Likewise. * oln/morpher/count_rw.hh: Likewise. * oln/morpher/two_way_rw.hh: Likewise. * oln/morpher/stack.hh: Likewise. * oln/morpher/thru_mfun.hh: Likewise. * oln/morpher/stack_rw.hh: Likewise. * oln/morpher/internal/image_value_morpher.hh: Likewise. Prevent problems due to mutual recursion (thru inheritance and dependent types). * oln/core/abstract/image.hh (decl): Disable static checks. * oln/core/abstract/image/bbox/hierarchy.hh: Update. (decl): Disable static check. * oln/core/abstract/point_set.hh (~point_set): Fix code. (decl): Disable static check. * oln/core/gen/fwd_piter_bbox.hh: Update. Disable static check. * oln/core/gen/bkd_piter_bbox.hh: Update. Disable static check. For safety purpose. * oln/basics2d.hh (include): Move iterator_vtypes up. Decouple some files from specific code. * oln/core/automatic/image/mutable_image1d.hh (include): Remove dependency to specific point header. (tmp): Update. * oln/core/automatic/image/mutable_image2d.hh: Likewise. * oln/core/automatic/image/mutable_image3d.hh: Likewise. * oln/core/automatic/image/image1d.hh: Likewise. * oln/core/automatic/image/image2d.hh: Likewise. * oln/core/automatic/image/image3d.hh: Likewise. * oln/core/1d/dpoint1d.hh: Add fwd decls and/or aliases. (include): Remove aliases header. * oln/core/2d/dpoint2d.hh: Likewise. * oln/core/3d/dpoint3d.hh: Likewise. * oln/core/1d/point1d.hh: Add fwd decls and/or aliases. (include): Remove aliases header. * oln/core/2d/point2d.hh: Likewise. * oln/core/3d/point3d.hh: Likewise. * oln/core/1d/neighb1d.hh: Add alias. * oln/core/2d/neighb2d.hh: Likewise. * oln/core/3d/neighb3d.hh: Likewise. * tests/core/point2d.cc (include): Solve FIXME. (main): Change test. * tests/core/dpoint2d.cc: Likewise. Update. * tests/morphers/with_lut.cc: Cosmetics. * tests/core/image_entry.cc: Update. * oln/io/pnm.hh: Use shortcuts. (include): Update. * oln/core/abstract/point_set/point_set_having_bbox.hh: Update. * oln/core/gen/bkd_qiter_win.hh: Update. * oln/core/gen/grid.hh: Update. * oln/core/gen/bkd_viter_lut.hh: Update. * oln/core/gen/bbox_fwd_piter.hh: Update. * oln/core/gen/fwd_niter_neighb.hh: Update. * oln/core/gen/fwd_qiter_win.hh: Update. * oln/core/gen/bbox_bkd_piter.hh: Update. * oln/core/gen/bkd_niter_neighb.hh: Update. * oln/core/gen/fwd_viter_lut.hh: Update. * oln/core/internal/point_nd.hh: Update. (vtypes): New. * oln/core/internal/dpoint_nd.hh: Update. (vtypes): New. * oln/morpher/add_isubset.hh: Update. Remove dead code. * oln/morpher/identity.hh: Update. * oln/morpher/add_neighborhood.hh: Update. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@707 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
Simplify scoop facilities. * stc/scoop.hh: Rename as... * stc/was.scoop.hh: ...this new file. * stc/scoop.hh: New version. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@706 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 13 Nov, 2006 4 commits
-
-
Roland Levillain authored
* oln/core/lookup_table.hh (oln::lookup_table::reverse_iterator) (oln::lookup_table::const_reverse_iterator): New typedefs. (oln::lookup_table::rbegin, oln::lookup_table::rend): New methods. * oln/core/typedefs.hh (bkd_viter_type): New virtual type declaration. * oln/core/gen/bkd_viter_lut.hh: New. * oln/core/gen/fwd_viter_lut.hh: Typos. * oln/morpher/with_lut.hh (single_vtype<morpher::with_lut<Image,Lut>, typedef_::bkd_viter_type>): New. * tests/morphers/with_lut.cc (main): Test backward value iterator on look-up table. * oln/Makefile.am (nobase_oln_HEADERS): Add core/gen/bkd_viter_lut.hh. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@705 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
* oln/core/internal/fwd_viter_lut.hh: Remove this file, and merge... (oln::internal::fwd_viter_lut): ...this class with... * oln/core/gen/fwd_viter_lut.hh (oln::fwd_viter_lut): ...this one. * oln/Makefile.am (nobase_oln_HEADERS): Remove core/internal/fwd_viter_lut.hh. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@704 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@703 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
* oln/core/typedefs.hh (is_value_wise_mutable): Remove virtual type declaration. * oln/core/abstract/image/value_wise_accessibility/hierarchy.hh: (case_<image_hierarchy_wrt_value_wise_accessibility, E, 1>): No longer use the virtual type `is_value_wise_mutable' in the static switch condition; query `mutable_value_proxy' instead. * olena/oln/morpher/with_lut.hh (vtypes< morpher::with_lut<Image, Lut> >::is_value_wise_mutable_type): Remove typedef. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@702 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 10 Nov, 2006 1 commit
-
-
Roland Levillain authored
* olena/oln/value/lut_value_proxy.hh: New. * oln/core/typedefs.hh (mutable_fwd_viter_type): Remove virtual type declaration. (value_proxy_type, mutable_value_proxy_type): New virtual types declarations. Aesthetic changes. * oln/core/abstract/image/value_wise_accessibility/hierarchy.hh (image_being_value_wise_random_accessible::fwd_viter_t): Remove typedef. (image_being_value_wise_random_accessible::value_proxy_t): New typedef. (image_being_value_wise_random_accessible::value): Return a value proxy instead of a value iterator. (mutable_image_being_value_wise_random_accessible::fwd_viter_t): Remove typedef. (mutable_image_being_value_wise_random_accessible::value_proxy_t): New typedef. (mutable_image_being_value_wise_random_accessible::value)): Return a value proxy instead of a value iterator. * oln/morpher/with_lut.hh (oln/value/lut_value_proxy.hh): Include it. (vtypes< morpher::with_lut<Image, Lut> >::value_proxy_type) (vtypes< morpher::with_lut<Image, Lut> >::mutable_value_proxy_type): New typedefs. (single_vtype<morpher::with_lut<Image, Lut>, typedef_::mutable_fwd_viter_type>): Remove single virtual type. (oln::morpher::with_lut::fwd_viter_type) (oln::morpher::with_lut::mutable_fwd_viter_type): Remove. (oln::morpher::with_lut::value_proxy_type) (oln::morpher::with_lut::mutable_value_proxy_type): New typedefs. (oln::morpher::with_lut::impl_value): Have these methods return value proxies instead of value iterators. * oln/Makefile.am (nobase_oln_HEADERS): Add value/lut_value_proxy.hh. Remove oln::mutable_fwd_viter_lut and clean up oln::fwd_viter_lut. * olena/oln/core/abstract/iterator_on_values.hh: New. * oln/core/internal/fwd_viter_lut.hh: (oln::internal::fwd_viter_lut<Exact>): Inherit from oln::abstract::iterator_on_values<Exact>. s/rvalue_type/value_type/g. (oln::internal::fwd_viter_lut(lut_type&, const value_type&)): Remove ctor. (oln::internal::fwd_viter_lut::start) (oln::internal::fwd_viter_lut::next) (oln::internal::fwd_viter_lut::invalidate) (oln::internal::fwd_viter_lut::is_valid): Rename methods as... (oln::internal::fwd_viter_lut::impl_start) (oln::internal::fwd_viter_lut::impl_next) (oln::internal::fwd_viter_lut::impl_invalidate) (oln::internal::fwd_viter_lut::impl_is_valid): ...these. * oln/core/gen/fwd_viter_lut.hh (oln::fwd_viter_lut<Lut>): s/rvalue_type/value_type/g. (oln::fwd_viter_lut::fwd_viter_lut(const Lut&, const rvalue_type&)): Remove ctor. (oln::fwd_viter_lut::operator rvalue_type): Turn this operator into... (oln::fwd_viter_lut::impl_to_value): ...this method. (oln::mutable_fwd_viter_lut): Remove this class and it virtual types. (operator<<(std::ostream&, const mutable_fwd_viter_lut<Lut>&)): Remove. * oln/Makefile.am (nobase_oln_HEADERS): Add core/abstract/iterator_on_values.hh git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@701 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 08 Nov, 2006 1 commit
-
-
Roland Levillain authored
* oln/value/color/rgb.hh (rgb_<T>::operator==): Make it const. * oln/core/gen/fwd_viter_lut.hh (operator rvalue_type, print): Fix these methods. * tests/morphers/with_lut.cc: Test oln::fwd_viter_lut. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@700 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 07 Nov, 2006 3 commits
-
-
Thierry Geraud authored
* xtd/vec.hh (L2_norm): New. (include): Add cmath header. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@699 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
Add point-set types based on std containers. * oln/core/gen/piter_on_std_based_pset.hh: New. * oln/core/gen/pset_list.hh: New. * oln/core/gen/pset_vec.hh: New. * oln/core/gen/pset_.hh: New. * oln/Makefile.am: Update. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@698 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
* TODO: Add description of primary image types. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@697 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 06 Nov, 2006 2 commits
-
-
Thierry Geraud authored
Add oln::morpher::two_way_rw. * ChangeLog: Fix file dir in previous entry. * tests/morphers/two_way_rw_morpher.cc: New. * tests/morphers/Makefile.am: Update. * oln/morpher/two_way_rw.hh: New. * oln/Makefile.am: Update. * oln/morpher/two_way.hh (value::two_way): Move impl into... * oln/value/two_way.hxx: ...this new file. * oln/core/abstract/functions.hh (fun_rw): Update. * oln/morpher/count_rw.hh (count_rw): Move impl into guards. * oln/morpher/stack_rw.hh (include): Update. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@696 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
Add morpher::stack_rw. * olena/tests/morphers/stack_rw_morpher.cc: New. * olena/tests/morphers/Makefile.am: Update. * olena/oln/morpher/stack_rw.hh: New. * olena/oln/Makefile.am: Update. * olena/oln/debug/print.hh (print): Store loop 2D bounds. * olena/oln/core/abstract/functions.hh (fun_rw): New. * olena/oln/morpher/two_way.hh (ima_): Change type to pointer. (two_way): New ctor for class value::two_way. (read_, write_): New methods. (operator, value): Call read_. (operator=): Call write_. * olena/oln/morpher/stack.hh (N): New. * olena/oln/value/two_way.hh (two_way): New ctor decl. (ima_): Change type to pointer. (read_, write_): New method decls. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@695 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 03 Nov, 2006 1 commit
-
-
Roland Levillain authored
* mlc/is_a.hh, mlc/case.hh: Add spaces in macros to please icpc. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@694 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 31 Oct, 2006 4 commits
-
-
Roland Levillain authored
* oln/core/typedefs.hh (size_type): Remove virtual type declaration. Clean up. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@693 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
* oln/core/abstract/image/accessibility/hierarchy.hh: Rename as... * oln/core/abstract/image/point_wise_accessibility/hierarchy.hh: ...this. Adjust header guards. (oln::abstract::image_being_random_accessible): Rename as... (oln::abstract::image_being_point_wise_random_accessible): ...this. Adjust. (oln::case_<image_hierarchy_wrt_accessibility, E, 1>): Rename as... (oln::case_<image_hierarchy_wrt_point_wise_accessibility, E, 1>): ...this. Adjust. * oln/core/abstract/image/hierarchies.hh, * oln/core/abstract/image/all.hh, * oln/core/abstract/image/hybrid/classical.hh: Adjust. * oln/core/automatic/image/image_being_random_accessible.hh: Adjust. Rename as... * oln/core/automatic/image/image_being_point_wise_random_accessible.hh: ...this. Adjust header guards. * oln/Makefile.am (nobase_oln_HEADERS): Remove core/abstract/image/accessibility/hierarchy.hh and core/automatic/image/image_being_random_accessible.hh. Add core/abstract/image/point_wise_accessibility/hierarchy.hh and core/automatic/image/image_being_point_wise_random_accessible.hh. Remove duplicate core/automatic/image/image_having_neighborhood.hh git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@692 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
* oln/core/typedefs.hh (is_value_wise_mutable_type): New virtual type declaration. * oln/core/abstract/image/value_wise_accessibility/hierarchy.hh (struct case_<image_hierarchy_wrt_value_wise_accessibility, E, 2>): Re-enable. Swap with... (struct case_<image_hierarchy_wrt_value_wise_accessibility, E, 1>): ...this case. * oln/morpher/with_lut.hh (vtypes< morpher::with_lut<Image, Lut> >::is_value_wise_mutable_type): New virtual type. Set to mlc::true_. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@691 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
* configure.ac: Erase CXXFLAGS if the user doesn't set it. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@690 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 27 Oct, 2006 4 commits
-
-
Roland Levillain authored
git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@689 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
* oln/core/automatic/image/mutable_image1d.hh: Fix header guards, (were the same as oln/core/automatic/image/image1d.hh's). (oln::abstract::mutable_image1d): Forward-declare it. s/abstract::image1d/abstract::mutable_image1d/g. * oln/core/abstract/image/dimension/1d.hh (mutable_image1d) * oln/core/abstract/image/dimension/2d.hh (mutable_image2d) * oln/core/abstract/image/dimension/3d.hh (mutable_image3d): Fix the lookup of impl_at(). * oln/core/type_fun/slice.hh: Remove unnecessary headers. * oln/core/abstract/array.hh, oln/core/abstract/functions.hh, * oln/core/internal/point_nd.hh, oln/morpher/thru_mfun.hh: Add missing headers. * oln/morpher/thru_fun.hh (xtd/mexpr.hh): Include it. (struct case_<tag::fun_operator_1, mlc::pair_<Fun, A>, 1>): Turn into... (struct case_<tag::fun_operator_1, mlc::pair_<Fun, A>, 2>): ...this. * oln/value/proxy.hh: Fix header guards. (oln/core/typedefs.hh): Include it. * oln/Makefile.am (nobase_oln_HEADERS): Add core/abstract/image/computability/hierarchy.hh, core/abstract/image/value_wise_accessibility/hierarchy.hh, core/automatic/image/image_being_value_wise_random_accessible.hh, core/gen/topo_add_isubset.hh, core/gen/fwd_viter_lut.hh, core/internal/fwd_viter_lut.hh and value/two_way.hh. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@688 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
* mlc/basic.hh: Fix dates in copyright notice. * mlc/Makefile.am (nobase_mlc_HEADERS): Add basic.hh. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@687 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
* xtd/Makefile.am (nobase_xtd_HEADERS): Add math/ops.hh. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@686 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 26 Oct, 2006 1 commit
-
-
Roland Levillain authored
* oln/core/abstract/image/hierarchies.hh (image_hierarchy_wrt_value_wise_accessibility): New hierarchy. (image_hybrid_hierarchy_wrt_classical) (image_hierarchy_wrt_value, image_hierarchy_wrt_data_retrieval): Adjust numbers. * oln/core/abstract/image/all.hh (oln/core/abstract/image/value_wise_accessibility/hierarchy.hh): Include it. Adjust. * oln/core/abstract/image/value_wise_accessibility/hierarchy.hh: New. * oln/core/automatic/image/image_being_value_wise_random_accessible.hh: New. * oln/core/internal/fwd_viter_lut.hh, * oln/core/gen/fwd_viter_lut.hh: New. * oln/core/typedefs.hh (fwd_viter_type, mutable_fwd_viter_type) (lut_type, lut_iter_type): New virtual types declarations. * oln/core/lookup_table.hh (lookup_table): Rename the first two parameters to Orig_Value and New_Value. Add two parameters Orig_Value_Compare and New_Value_Compare, defaulting to std::less<Orig_Value> and std::less<New_Value> respectively. (lookup_table::key_type, lookup_table::data_type): Rename typedefs as... (lookup_table::orig_value_type, lookup_table::new_value_type): ...these. (lookup_table::map_type): Remove typedef. (lookup_table::orig_value_type, lookup_table::new_value_type) (lookup_table::const_iterator, lookup_table::iterator): New typedefs. Adjust signatures of methods. (lookup_table::map): Remove method. (lookup_table::begin, lookup_table::end, lookup_table::find) (lookup_table::orig_to_new_map, lookup_table::new_to_orig_map): New methods. (lookup_table::map_): Remove attributes. (lookup_table::orig_to_new_map_, lookup_table::new_to_orig_map_): New attributes. (lookup_table::add): Adjust method. * oln/morpher/with_lut.hh: Adjust. (single_vtype<morpher::with_lut<Image, Lut>, typedef_::fwd_viter_type>) (single_vtype<morpher::with_lut<Image ,Lut>, typedef_::mutable_fwd_viter_type>): New. (with_lut::lut_t, with_lut::value_t, with_lut::rvalue_t) (with_lut::psite_t): Rename typedefs as... (with_lut::lut_type, with_lut::value_type, with_lut::rvalue_type) (with_lut::psite_type): ...these. Adjust. (with_lut::fwd_viter_type, with_lut::mutable_fwd_viter_type): New typedefs. (with_lut::impl_value): New methods. (operator+ (const abstract::image<I>&, const lookup_table<K, D>&)): Turn into... (operator+ (const abstract::image<I>&, lookup_table<K, D>&)): ...this. Adjust. * tests/morphers/with_lut.cc: Augment this test. * oln/value/color/rgb.hh (rgb_<T>::operator==(const rgb_<U>&)): New operator. * TODO: New. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@685 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 25 Oct, 2006 8 commits
-
-
Thierry Geraud authored
Oops. * oln/value/two_way.hh: New. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@684 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
Tiny fix just before pastis. * oln/basics1d.hh (include): Add missing headers. * oln/basics2d.hh: Likewise. * oln/basics3d.hh: Likewise. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@683 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
* xtd/math.hh (include): Move ops inclusion into... * xtd/math/ops.hh: ... this new file. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@682 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
Add two-way morpher. * tests/morphers/two_way_morpher.cc: New. * tests/morphers/Makefile.am: Update. * oln/morpher/two_way.hh: New. * oln/Makefile.am: Update. * oln/core/abstract/image.hh (id_): Unconst. * oln/core/abstract/functions.hh (fun_v2w2v): New. * oln/core/traits.hh (oln_xtd_case_op_id): Fix number. (include): Add commentary. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@681 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
Add oln::level::apply_inplace. * tests/level/apply_inplace.cc: New. * oln/level/assign.hh: Typo. * oln/level/apply.hh (apply_inplace): New. * oln/level/fill.hh (include): Fix. * oln/core/traits.hh (include): Add xtd/math/ops.hh. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@680 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
Add oln abstract functions + move slice vtype definitions. * oln/level/assign.hh: New. * oln/level/apply.hh: New. * oln/level/clone.hh: New. * oln/core/abstract/functions.hh: New. * oln/debug/track.hh (dummy): Add code to remove warning. * oln/debug/print.hh (OLN_ENV_2D): Guard specific code. * oln/level/fill.hh (fill): New couple of versions. * oln/basics1d.hh (OLN_ENV_1D): New. * oln/core/typedefs.hh (oln_plain_value, oln_plain_value_): New. * oln/core/iterator_vtypes.hh (slice): Move type definitions to... * oln/morpher/slice.hh: ...here. * oln/basics2d.hh (OLN_ENV_2D): New. * oln/basics3d.hh (OLN_ENV_3D): New. * oln/Makefile.am: Update. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@679 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
Introduce ids for images and better oln::morpher::count_rw_. * tests/morphers/count_rw_morpher.cc: Add sample code in comments. * oln/core/abstract/iterator_on_points.hh (operator<<): New. * oln/core/abstract/image.hh (image, operator=): New. (id_, id): New. * oln/core/gen/piter_isubset.hh (isubset_): Remove &. * oln/core/gen/pw_value.hh (ima_): Remove &. (impl_calc): Fix static check. * oln/core/gen/topo_add_isubset.hh (isubset_): Add comment. * oln/core/gen/fwd_piter_bbox.hh (operator<<): Remove; obsolete. * oln/core/gen/bkd_piter_bbox.hh: Likewise. * oln/morpher/add_isubset.hh (operator|): New overloading. (add_isubset): Relax static check. * oln/morpher/internal/image_value_morpher.hh (image_): Remove &. * oln/morpher/internal/image_extension.hh (image_): Remove &. (image_extension): New cpy ctor. * oln/morpher/count_rw.hh (count_rw): Rename the class as... (count_rw_): ...this. (count_rw): New overloading. * oln/value/rw_counter.hh (counter_rw): Rewrite. (rw_counter): Remove & from ima_ type. (ro_counter): Likewise. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@678 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
Update xtd bool op traits. * xtd/builtin/traits.hh (bool): Fix partially. * xtd/internal/opmacros.hh (xtd_internal_decl_binary_logical_operator): New macro. * xtd/math/logic.hh: Update. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@677 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 24 Oct, 2006 5 commits
-
-
Thierry Geraud authored
Add point-wise values. * tests/core/pw_value.cc: New. * tests/core/Makefile.am: Update. * oln/core/gen/pw_value.hh: New. * oln/Makefile.am: Update. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@676 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
Add a morpher to count read-write ops. * tests/morphers/count_rw_morpher.cc: New. * tests/morphers/Makefile.am: Update. * oln/morpher/count_rw.hh: New. * oln/value/proxy.hh: New. * oln/value/rw_counter.hh: New. * oln/Makefile.am: Update. * oln/core/traits_id.hh (unop_vproxy, binop_vproxy): New. (others): Update. * oln/core/typedefs.hh (oln_is_computed, oln_is_computed_): New. * oln/morpher/internal/image_value_morpher.hh (image_value_morpher): New overloading for ctor. (image_): Add & to its type. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@675 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
* oln/core/lookup_table.hh: New. * oln/morpher/with_lut.hh: New morpher. * oln/Makefile.am (nobase_oln_HEADERS): Add core/lookup_table.hh and morpher/with_lut.hh. * tests/morphers/with_lut.cc: New test. * tests/morphers/Makefile.am (check_PROGRAMS): Add with_lut. (with_lut_SOURCES): New. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@674 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
* oln/morpher/add_neighborhood.hh: Fix header guards. (oln::morpher::add_neighborhood): Use the macro stc_get_supers to set the super class. (oln::morpher::add_neighborhood::super_t): Use the macro stc_get_super to define it. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@673 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Roland Levillain authored
* oln/color/rgb.hh: Move... * oln/value/color/rgb.hh: ...here. (oln::color): Move the contents of this namespace... (oln::value::color): ...into this one. * oln/value/all.hh: Adjust. * oln/Makefile.am (nobase_oln_HEADERS): s|color/rgb.hh|value/color/rgb.hh|. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@672 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
- 23 Oct, 2006 2 commits
-
-
Thierry Geraud authored
Fix debug track and disambiguate the 'at' method overloading in const and mutable nD images. * oln/core/abstract/array.hh: New. * oln/debug/track.hh (n_arrays): New. (include): Fix. * oln/core/abstract/image.hh (image): New cpy ctor so fix n_images tracking. * oln/core/abstract/image/dimension/1d.hh: Disambiguate by changing inheritance to virtual + inserting a using directive. * oln/core/abstract/image/dimension/2d.hh: Likewise. * oln/core/abstract/image/dimension/3d.hh: Likewise. * oln/core/1d/array1d.hh (array1d): Add inheritance. * oln/core/2d/array2d.hh: Likewise. * oln/core/3d/array3d.hh: Likewise. * oln/Makefile.am: Update. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@671 4aad255d-cdde-0310-9447-f3009e2ae8c0
-
Thierry Geraud authored
Add stack morpher and remove the hack related to indexed mutable access. * tests/morphers/stack_morpher.cc: New. * tests/morphers/Makefile.am: Update. * oln/debug/track.hh: New. * oln/core/automatic/image/mutable_image2d.hh: New. * oln/core/automatic/image/mutable_image3d.hh: New. * oln/core/automatic/image/mutable_image1d.hh: New. * oln/morpher/stack.hh: New. * oln/Makefile.am: Update. * oln/debug/print.hh (println): Remove; too dummy. (operator): New. * oln/level/fill.hh (fill): New specialization for C arrays. * oln/core/automatic/image/image1d.hh: Remove hack of 'at'. * oln/core/automatic/image/image2d.hh: Likewise. * oln/core/automatic/image/image3d.hh: Likewise. * oln/core/abstract/image.hh (image, ~image): Add counting. (include): Update. * oln/core/abstract/image/dimension/1d.hh (image1d): Split partially into... (mutable_image1d): ...this new class. (include): Update. * oln/core/abstract/image/dimension/2d.hh: Likewise. * oln/core/abstract/image/dimension/3d.hh: Likewise. * oln/core/abstract/image/dimension/hierarchy.hh (case_): Update. * oln/core/2d/array2d.hh (memsize): Better sig. (include): Update. * oln/core/2d/image2d.hh (image2d): New overloading for no arg. git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@670 4aad255d-cdde-0310-9447-f3009e2ae8c0
-