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

AddSquared.h

Go to the documentation of this file.
00001 #ifndef Impala_Core_Array_AddSquared_h
00002 #define Impala_Core_Array_AddSquared_h
00003 
00004 #include "Core/Array/Pattern/PatBinaryPixOp.h"
00005 #include "Core/Array/Trait/BpoAddSquared.h"
00006 
00007 namespace Impala
00008 {
00009 namespace Core
00010 {
00011 namespace Array
00012 {
00013 
00014 // dst = src1^2 + src2^2
00015 
00016 template<class DstArrayT, class Src1ArrayT, class Src2ArrayT>
00017 inline void
00018 AddSquared(DstArrayT*& dst, Src1ArrayT* src1, Src2ArrayT* src2)
00019 {
00020     Trait::BpoAddSquared<DstArrayT, Src1ArrayT, Src2ArrayT> bpo;
00021     Pattern::PatBinaryPixOp(dst, src1, src2, bpo);
00022 }
00023 
00024 } // namespace Array
00025 } // namespace Core
00026 } // namespace Impala
00027 
00028 #endif

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