Linearly weighted sum image of EnFCM.
\[\xi_k=\frac{1}{1+\alpha}\Big(x_k+\frac{\alpha}{N_R}\sum_{r\in N_k}x_r\Big)\]
- Parameters:
- img
ndarray of shape (H, W) or (H, W, C)
- alpha
float, default=1.0 Weight \(\alpha\) of the neighborhood mean.
- window_size
int, default=3
- Returns:
- xi
ndarray, same shape as img