1. 10 Mar, 2009 1 commit
    • Guillaume Lazzara's avatar
      Make io::dump::* more robust and improve dump format. · ad2b09e0
      Guillaume Lazzara authored
      	* mln/io/dump/load.hh,
      	* mln/io/dump/save.hh:
      	  - Add new information in the header.
      	  - Add more assertion on value type, dimension and file type.
      
      	  Important note: Old dump files are not compatible with this new
      	  format.
      
      	* mln/trait/value_.hh: add a new macro mln_trait_value_name.
      
      	* mln/value/builtin/floatings.hh
      	* mln/value/builtin/integers.hh
      	* mln/value/builtin/symbolics.hh
      	* mln/value/int_s.hh
      	* mln/value/int_u.hh
      	* mln/value/label.hh
      	* mln/value/rgb.hh: add name() member to value_<> specialization.
      	  It returns the type name as a const char*.
      
      	* tests/io/dump/dump.cc: add new tests with builtin types.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3508 4aad255d-cdde-0310-9447-f3009e2ae8c0
      ad2b09e0
  2. 03 Feb, 2009 2 commits
    • Guillaume Lazzara's avatar
      Rename io::raw as io::dump. · 208b4613
      Guillaume Lazzara authored
      	* headers.mk: update distributed headers.
      
      	* tests/unit_test/mln_io_raw_all.cc,
      	* tests/unit_test/mln_io_raw_load.cc,
      	* tests/unit_test/mln_io_raw_save.cc,
      	* tests/io/raw/raw.cc,
      	* tests/io/raw/Makefile.am,
      	* tests/io/raw/pbm.cc,
      	* mln/io/raw/all.hh,
      	* mln/io/raw/load.hh,
      	* mln/io/raw/save.hh: move to...
      
      	* tests/unit_test/mln_io_dump_all,
      	* tests/unit_test/mln_io_dump_load,
      	* tests/unit_test/mln_io_dump_save,
      	* tests/io/dump/Makefile.am,
      	* tests/io/dump/dump.cc,
      	* mln/io/dump/all.hh,
      	* mln/io/dump/load.hh,
      	* mln/io/dump/save.hh: ... here.
      
      	* mln/io/all.hh
      	* mln/io/essential.hh: update includes.
      
      	* tests/unit_test/Makefile.am: update unit test list.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3253 4aad255d-cdde-0310-9447-f3009e2ae8c0
      208b4613
    • Guillaume Lazzara's avatar
      Various small fixes. · 8a6ddbb0
      Guillaume Lazzara authored
      	* headers.mk: add new headers to distribution.
      
      	* mln/algebra/quat.hh: add a new overload of rotate().
      
      	* mln/canvas/labeling/level.hh,
      	* mln/canvas/labeling.hh: handle labeling abortion with
      	trace::warning.
      
      	* mln/core/internal/graph_psite_base.hh: remove a useless forward
      	declaration.
      
      	* mln/io/raw/all.hh: Rewrite, completely wrong...
      
      	* mln/accu/compute.hh,
      	* mln/core/image/tr_image.hh,
      	* mln/core/site_set/p_queue.hh,
      	* mln/io/raw/load.hh,
      	* mln/io/raw/save.hh,
      	* mln/value/shell.hh: update doc.
      
      	* mln/math/jacobi.hh: add missing casts and fix a bug with macros and
      	missing semicolons in for loops.
      
      	* tests/unit_test/Makefile.am,
      	* tests/unit_test/mln_convert_impl_from_site_set_to_image.cc,
      	* tests/unit_test/mln_core_image_p2p_image.cc,
      	* tests/unit_test/mln_core_image_slice_image.cc,
      	* tests/unit_test/mln_debug_slices_2d.cc,
      	* tests/unit_test/mln_fun_p2p_all.cc,
      	* tests/unit_test/mln_fun_p2p_translation.cc,
      	* tests/unit_test/mln_level_sort_offsets.cc: add new unit tests.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3244 4aad255d-cdde-0310-9447-f3009e2ae8c0
      8a6ddbb0
  3. 23 Jan, 2009 1 commit
    • Guillaume Lazzara's avatar
      Add io::raw::save and io::raw::load routines. · efdf6433
      Guillaume Lazzara authored
      	* headers.mk: add new headers to distribution.
      
      	* mln/io/raw/all.hh: include new headers.
      
      	* mln/io/raw/load.hh,
      	* mln/io/raw/save.hh: new io routines. Dump/load Olena images into a
      	file.
      
      	* tests/io/Makefile.am,
      	* tests/io/raw/Makefile.am,
      	* tests/io/raw/pbm.cc,
      	* tests/io/raw/raw.cc: add new tests.
      
      	* tests/unit_test/Makefile.am,
      	* tests/unit_test/mln_io_raw_all.cc,
      	* tests/unit_test/mln_io_raw_load.cc,
      	* tests/unit_test/mln_io_raw_save.cc: add new unit tests.
      
      git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3194 4aad255d-cdde-0310-9447-f3009e2ae8c0
      efdf6433