[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libcvd-members] libcvd/cvd/internal pixel_traits.h
From: |
Ethan Eade |
Subject: |
[libcvd-members] libcvd/cvd/internal pixel_traits.h |
Date: |
Thu, 08 Nov 2007 17:54:42 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Changes by: Ethan Eade <ethaneade> 07/11/08 17:54:42
Modified files:
cvd/internal : pixel_traits.h
Log message:
Added pixel traits for Vector<N> (if TooN is present).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/internal/pixel_traits.h?cvsroot=libcvd&r1=1.11&r2=1.12
Patches:
Index: pixel_traits.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/internal/pixel_traits.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- pixel_traits.h 16 May 2006 13:24:29 -0000 1.11
+++ pixel_traits.h 8 Nov 2007 17:54:42 -0000 1.12
@@ -23,6 +23,10 @@
#include <limits>
+#if defined (CVD_HAVE_TOON)
+#include <TooN/TooN.h>
+#endif
+
namespace CVD {
namespace Pixel {
@@ -192,6 +196,19 @@
};
+#if defined (CVD_HAVE_TOON)
+ template<int N> struct traits<TooN::Vector<N> >
+ {
+ typedef TooN::Vector<N> wider_type;
+ typedef TooN::Vector<N> float_type;
+ static const bool integral = false;
+ static const bool is_signed = true;
+ static const TooN::Vector<N> max_intensity;
+ };
+ template <int N> const TooN::Vector<N> traits<TooN::Vector<N>
>::max_intensity = TooN::Vector<N>(1.0);
+
+#endif
+
template<int LIFT> const long double traits<long double,
LIFT>::max_intensity = 1.0;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libcvd-members] libcvd/cvd/internal pixel_traits.h,
Ethan Eade <=