URL:
https://svn.lrde.epita.fr/svn/oln/branches/cleanup-2008/milena
ChangeLog:
2008-10-22 Matthieu Garrigues <garrigues(a)lrde.epita.fr>
* mln/convert/to_image.hh: convert a histo::data<T> in an
image1d<std::size_t> instead of image1d<T>.
---
to_image.hh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: branches/cleanup-2008/milena/mln/convert/to_image.hh
===================================================================
--- branches/cleanup-2008/milena/mln/convert/to_image.hh (revision 2650)
+++ branches/cleanup-2008/milena/mln/convert/to_image.hh (revision 2651)
@@ -124,9 +124,9 @@
template <typename W>
mln_image_from(W, mln_weight(W)) to_image(const Weighted_Window<W>&
w_win);
- /// Convert an histo \p h into an image1d<T>.
+ /// Convert an histo \p h into an image1d<std::size_t>.
template <typename T>
- image1d<T> to_image(const histo::data<T>& h);
+ image1d<std::size_t> to_image(const histo::data<T>& h);
@@ -192,11 +192,11 @@
template <typename T>
inline
- image1d<T> to_image(const histo::data<T>& h)
+ image1d<std::size_t> to_image(const histo::data<T>& h)
{
T v_min = h.vset()[0],
v_max = h.vset()[h.vset().nvalues() - 1];
- image1d<T> ima(make::box1d(v_min, v_max));
+ image1d<std::size_t> ima(make::box1d(v_min, v_max));
for (unsigned i = 0; i < h.vset().nvalues(); ++i)
ima(point1d(i)) = h[i];
return ima;