21 #ifndef otbImageToModulusAndDirectionImageFilter_hxx
22 #define otbImageToModulusAndDirectionImageFilter_hxx
25 #include "itkProcessObject.h"
33 template <
class TInputImage,
class TOutputImage,
class TOutputImageDirection>
36 this->SetNumberOfRequiredInputs(1);
37 this->SetNumberOfRequiredInputs(1);
38 this->SetNumberOfRequiredOutputs(2);
39 this->SetNumberOfRequiredOutputs(2);
42 this->SetNthOutput(0, OutputImageType::New());
43 this->SetNthOutput(1, OutputImageDirectionType::New());
47 template <
class TInputImage,
class TOutputImage,
class TOutputImageDirection>
51 if (this->GetNumberOfOutputs() < 1)
55 return static_cast<const OutputImageType*
>(this->itk::ProcessObject::GetOutput(0));
59 template <
class TInputImage,
class TOutputImage,
class TOutputImageDirection>
63 if (this->GetNumberOfOutputs() < 1)
67 return static_cast<OutputImageType*
>(this->itk::ProcessObject::GetOutput(0));
72 template <
class TInputImage,
class TOutputImage,
class TOutputImageDirection>
76 if (this->GetNumberOfOutputs() < 2)
85 template <
class TInputImage,
class TOutputImage,
class TOutputImageDirection>
89 if (this->GetNumberOfOutputs() < 2)
93 return static_cast<OutputImageDirectionType*
>(this->itk::ProcessObject::GetOutput(1));
100 template <
class TInputImage,
class TOutputImage,
class TOutputImageDirection>
103 Superclass::GenerateInputRequestedRegion();
109 template <
class TInputImage,
class TOutputImage,
class TOutputImageDirection>
112 Superclass::PrintSelf(os, indent);