Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

InvOBw.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Array_InvOBw_h
00002 #define Impala_Core_Array_InvOBw_h
00003 
00004 #include <vector>
00005 #include "Core/Array/Pattern/PatM9PixOp.h"
00006 #include "Core/Array/Trait/M9poOBw.h"
00007 
00008 namespace Impala
00009 {
00010 namespace Core
00011 {
00012 namespace Array
00013 {
00014 
00015 
00016 // s1 - s9 should contain R  G  B  Rx  Gx  Bx  Ry  Gy  By
00017 template<class DstArrayT, class SrcArrayT>
00018 inline void
00019 InvOBw(DstArrayT*& dst, SrcArrayT* s1, SrcArrayT* s2, SrcArrayT* s3,
00020        SrcArrayT* s4, SrcArrayT* s5, SrcArrayT* s6, SrcArrayT* s7,
00021        SrcArrayT* s8, SrcArrayT* s9)
00022 {
00023     Trait::M9poOBw<DstArrayT, SrcArrayT> mpo;
00024     Pattern::PatM9PixOp(dst, s1, s2, s3, s4, s5, s6, s7, s8, s9, mpo);
00025 }
00026 
00027 
00028 // relies on rgbList to contain R, Rx, Ry, G, Gx, Gy, B, Bx, By
00029 template<class ArrayT>
00030 inline void
00031 InvOBw(ArrayT*& dst, const std::vector<ArrayT*>& rgbList)
00032 {
00033     InvOBw(dst,
00034            rgbList[0], rgbList[3], rgbList[6],
00035            rgbList[1], rgbList[4], rgbList[7],
00036            rgbList[2], rgbList[5], rgbList[8]);
00037 }
00038 
00039 } // namespace Array
00040 } // namespace Core
00041 } // namespace Impala
00042 
00043 #endif

Generated on Fri Mar 19 09:30:47 2010 for ImpalaSrc by  doxygen 1.5.1