18 #ifndef __otbModulusAndDirectionImageToImageFilter_txx
19 #define __otbModulusAndDirectionImageToImageFilter_txx
30 template <
class TInputImage,
class TOutputImage,
class TOutputImageDirection>
34 this->SetNumberOfInputs(2);
35 this->SetNumberOfRequiredInputs(2);
36 this->SetNumberOfOutputs(1);
37 this->SetNumberOfRequiredOutputs(1);
39 this->SetNthOutput(0, OutputImageType::New());
42 template <
class TInputImage,
class TInputImageDirection,
class TOutputImage>
49 const_cast<InputImageType *>(input));
52 template <
class TInputImage,
class TInputImageDirection,
class TOutputImage>
59 const_cast<InputImageDirectionType *>(direction));
63 template <
class TInputImage,
class TInputImageDirection,
class TOutputImage>
68 if (this->GetNumberOfInputs() < 1)
73 return static_cast<const TInputImage *
>
78 template <
class TInputImage,
class TInputImageDirection,
class TOutputImage>
80 TOutputImage>::InputImageDirectionType *
84 if (this->GetNumberOfInputs() < 2)
89 return static_cast<const TInputImageDirection *
>
97 template <
class TInputImage,
class TInputImageDirection,
class TOutputImage>
102 Superclass::PrintSelf(os, indent);