* green/mln/fun/v2v/rg8_to_rgn.hh: Correct space location.
---
trunk/milena/sandbox/ChangeLog | 7 +++++++
.../sandbox/green/mln/fun/v2v/rgb8_to_rgbn.hh | 20 ++++++++++----------
2 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/trunk/milena/sandbox/ChangeLog b/trunk/milena/sandbox/ChangeLog
index 8c48c64..f3f91d6 100644
--- a/trunk/milena/sandbox/ChangeLog
+++ b/trunk/milena/sandbox/ChangeLog
@@ -1,5 +1,12 @@
2009-10-08 Yann Jacquelet <jacquelet(a)lrde.epita.fr>
+ Fix LRDE norm fault in rgb8_to_rgn.hh
+
+ * green/mln/fun/v2v/rg8_to_rgn.hh: Correct space location.
+
+
+2009-10-08 Yann Jacquelet <jacquelet(a)lrde.epita.fr>
+
Add a new (red,green) value type.
* green/mln/value/rg.hh: New library file.
diff --git a/trunk/milena/sandbox/green/mln/fun/v2v/rgb8_to_rgbn.hh
b/trunk/milena/sandbox/green/mln/fun/v2v/rgb8_to_rgbn.hh
index b40ca5b..2918b1a 100644
--- a/trunk/milena/sandbox/green/mln/fun/v2v/rgb8_to_rgbn.hh
+++ b/trunk/milena/sandbox/green/mln/fun/v2v/rgb8_to_rgbn.hh
@@ -25,12 +25,12 @@
// exception does not however invalidate any other reasons why the
// executable file might be covered by the GNU General Public License.
-#ifndef MLN_FUN_V2V_RGB8_TO_RGBN_HH
-#define MLN_FUN_V2V_RGB8_TO_RGBN_HH
+#ifndef MLN_FUN_V2V_RGB8_TO_RGBN_HH
+# define MLN_FUN_V2V_RGB8_TO_RGBN_HH
-#include <mln/value/rgb8.hh>
-#include <mln/value/rgb.hh>
-#include <mln/core/contract.hh>
+# include <mln/value/rgb8.hh>
+# include <mln/value/rgb.hh>
+# include <mln/core/contract.hh>
/// \file
///
@@ -41,7 +41,7 @@ namespace mln
namespace fun
{
-
+
namespace v2v
{
@@ -54,13 +54,13 @@ namespace mln
{
typedef value::rgb8 argument;
typedef value::rgb<n> result;
-
+
result operator()(const argument& c) const
{
mln_precondition(8 > n);
unsigned size = pow(2,(8-n));
- /*
+ /*
std::cout << "c : " << c << std::endl;
std::cout << "red : " << c.red() << std::endl;
std::cout << "size : " << size << std::endl;
@@ -68,13 +68,13 @@ namespace mln
std::cout << "max : " << (mln_max(mln::value::int_u<n>))
<< std::endl;
*/
result res(c.red() / size, c.green() / size, c.blue() / size);
-
+
return res;
}
};
}
-
+
}
}
--
1.5.6.5