21 #ifndef otbWaterSqrtSpectralAngleImageFilter_h
22 #define otbWaterSqrtSpectralAngleImageFilter_h
25 #include "itkUnaryFunctorImageFilter.h"
42 template <
class TInput,
class TOutput>
49 :
RadiometricIndex<TInput, TOutput>({CommonBandNames::BLUE, CommonBandNames::GREEN, CommonBandNames::RED, CommonBandNames::NIR} )
80 pix[0] = this->
Value(CommonBandNames::BLUE, inPix);
81 pix[1] = this->
Value(CommonBandNames::GREEN, inPix);
82 pix[2] = this->
Value(CommonBandNames::RED, inPix);
83 pix[3] = this->
Value(CommonBandNames::NIR, inPix);
85 return std::sqrt(SpectralAngleDetails::ComputeSpectralAngle<PixelType, PixelType, TOutput>
105 this->
SetBandIndex(CommonBandNames::GREEN, channel + 1);
159 template <
class TInputVectorImage,
class TOutputImage,
166 typedef itk::UnaryFunctorImageFilter<TInputVectorImage, TOutputImage, TFunction>
Superclass;
191 void operator=(
const Self&) =
delete;
195 #ifndef OTB_MANUAL_INSTANTIATION