Template Struct variance_plus_covar

Struct Documentation

template<typename T1>
struct variance_plus_covar

The variance of the sum of a pair of correlated pixels

The covariance is modelled as alpha*sqrt(var_x*var_y)

Note

We provide a single-operand version for when the right-hand-side of an expression is a scalar, not a masked pixel,

Public Functions

variance_plus_covar(double alpha = 0)
T1 operator()(T1 const&, T1 const&, T1 const &vx, T1 const &vy) const
T1 operator()(T1 const&, T1 const&, T1 const &vx) const