21 #ifndef otbVerticalSobelVectorImageFilter_h
22 #define otbVerticalSobelVectorImageFilter_h
36 template <
class TInput,
class TOutput>
49 unsigned int length = input.GetPixel(0).Size();
50 TOutput output(length);
51 for (
unsigned int i = 0; i < length; ++i)
53 output[i] =
static_cast<typename TOutput::ValueType
>((input.GetPixel(0)[i] - input.GetPixel(6)[i]) + 2 * (input.GetPixel(1)[i] - input.GetPixel(7)[i]) +
54 (input.GetPixel(2)[i] - input.GetPixel(8)[i]));
67 template <
class TInputImage,
class TOutputImage>
70 TInputImage, TOutputImage, Functor::VerticalSobelOperator<typename itk::ConstNeighborhoodIterator<TInputImage>, typename TOutputImage::PixelType>>
91 this->SetRadius(radius);
99 void operator=(
const Self&);
105 #endif // otbVerticalSobelVectorImageFilter_h