Commit 7cb8e69e authored by Fabien Freling's avatar Fabien Freling
Browse files

Fix save function for cloud.

	* mln/io/cloud/save.hh: Fix (save_data).

git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3339 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 390aed76
2009-02-10 Fabien Freling <fabien.freling@lrde.epita.fr>
Fix save function for cloud.
* mln/io/cloud/save.hh: Fix (save_data).
2009-02-10 Thierry Geraud <thierry.geraud@lrde.epita.fr> 2009-02-10 Thierry Geraud <thierry.geraud@lrde.epita.fr>
   
Fix missing specialization for bkd_pixter in image1d and image3d. Fix missing specialization for bkd_pixter in image1d and image3d.
...@@ -64,10 +64,10 @@ namespace mln ...@@ -64,10 +64,10 @@ namespace mln
inline inline
void save_data(const p_array<P>& arr, std::ofstream& file) void save_data(const p_array<P>& arr, std::ofstream& file)
{ {
std::ostringstream sline;
mln_piter(p_array<P>) p(arr); mln_piter(p_array<P>) p(arr);
for_all(p) for_all(p)
{ {
std::ostringstream sline;
algebra::vec<P::dim,float> v = p.to_site().to_vec(); algebra::vec<P::dim,float> v = p.to_site().to_vec();
sline << v[0]; sline << v[0];
for (unsigned i = 1; i < P::dim; ++i) for (unsigned i = 1; i < P::dim; ++i)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment