22 #ifndef otbReciprocalCovarianceToCoherencyDegreeImageFilter_h
23 #define otbReciprocalCovarianceToCoherencyDegreeImageFilter_h
52 template <
class TInput,
class TOutput>
60 inline void operator()(TOutput& result,
const TInput& Covariance)
const
79 result[0] = std::abs(C13) / std::sqrt(C11 * C33);
84 result[1] = std::abs(C23) / std::sqrt(C22 * C33);
89 result[2] = std::abs(C12) / std::sqrt(C11 * C22);
116 template <
typename TInputImage,
typename TOutputImage>
A generic functor filter templated by its functor.
Evaluate the Coherency Degree coefficient from from the MLC image.
TOutput::ValueType OutputValueType
static constexpr double m_Epsilon
std::complex< double > ComplexType
constexpr vcl_size_t OutputSize(...) const
void operator()(TOutput &result, const TInput &Covariance) const
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.