21 #ifndef otbLocalGradientVectorImageFilter_h
22 #define otbLocalGradientVectorImageFilter_h
26 #include <itkNumericTraits.h>
38 template <
class TInput,
class TOutput>
54 unsigned int length = input.GetPixel(0).Size();
55 TOutput output(length);
56 for (
unsigned int i = 0; i < length; ++i)
58 output[i] =
static_cast<typename TOutput::ValueType
>(input.GetCenterPixel()[i] - input.GetPixel(5)[i] / 2. - input.GetPixel(7)[i] / 2.);
71 template <
class TInputImage,
class TOutputImage>
74 TInputImage, TOutputImage, Functor::LocalGradientOperator<typename itk::ConstNeighborhoodIterator<TInputImage>, typename TOutputImage::PixelType>>
95 this->SetRadius(radius);
103 void operator=(
const Self&);
109 #endif // otbLocalGradientVectorImageFilter_h