21 #ifndef otbCloudDetectionFilter_hxx
22 #define otbCloudDetectionFilter_hxx
32 template <
class TInputImage,
class TOutputImage,
class TFunction>
40 template <
class TInputImage,
class TOutputImage,
class TFunction>
43 this->Superclass::PrintSelf(os, indent);
49 template <
class TInputImage,
class TOutputImage,
class TFunction>
52 unsigned int ReferencePixelNumberOfBands = 0;
53 ReferencePixelNumberOfBands = this->GetReferencePixel().GetSize();
56 if (ReferencePixelNumberOfBands != this->GetInput()->GetNumberOfComponentsPerPixel())
58 itkExceptionMacro(
"The number of bands of the reference pixel is different from the number of bands of the input image. ");
65 template <
class TInputImage,
class TOutputImage,
class TFunction>
68 this->GetFunctor().SetVariance(
var);
74 template <
class TInputImage,
class TOutputImage,
class TFunction>
77 return this->GetFunctor().GetVariance();
83 template <
class TInputImage,
class TOutputImage,
class TFunction>
86 this->GetFunctor().SetReferencePixel(ref);
92 template <
class TInputImage,
class TOutputImage,
class TFunction>
96 return this->GetFunctor().GetReferencePixel();
102 template <
class TInputImage,
class TOutputImage,
class TFunction>
105 this->GetFunctor().SetMinThreshold(threshold);
111 template <
class TInputImage,
class TOutputImage,
class TFunction>
114 this->GetFunctor().SetMaxThreshold(threshold);
120 template <
class TInputImage,
class TOutputImage,
class TFunction>
123 return this->GetFunctor().GetMinThreshold();
129 template <
class TInputImage,
class TOutputImage,
class TFunction>
132 return this->GetFunctor().GetMaxThreshold();