21 #ifndef otbDotProductImageFilter_h 22 #define otbDotProductImageFilter_h 39 template <
class TInput,
class TOutput>
61 assert(in.Size() ==
m_Vector.Size());
62 OutputType result = 0;
63 for (
unsigned int i = 0; i < in.Size(); ++i)
89 template <
typename TInputImage,
typename TOutputImage>
DotProductFunctor()=default
virtual ~DotProductFunctor()=default
OutputType operator()(const InputType &in)
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
void SetVector(const InputType &m)
A generic functor filter templated by its functor.
Computes the dot product against a specific vector.
const InputType & GetVector()