21 #ifndef otbMultiplyVectorImageFilterFunctor_h
22 #define otbMultiplyVectorImageFilterFunctor_h
29 template<
class TInput1,
class TInput2,
class TOutputPixel>
33 TOutputPixel
operator ()(
const TInput1& p1,
const TInput2& p2)
const
35 unsigned int const nbComp = p1.GetSize();
36 TOutputPixel outValue(nbComp);
37 for(
unsigned int i = 0; i<nbComp;++i)
39 outValue[i] =
static_cast<typename TOutputPixel::ValueType
>(p1[i]*p2[i]/p2[1]);
TOutputPixel operator()(const TInput1 &p1, const TInput2 &p2) const
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.