fuzzyclust.image.weighted_sum_image#

fuzzyclust.image.weighted_sum_image(img, alpha=1.0, window_size=3)[source]#

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:
imgndarray of shape (H, W) or (H, W, C)
alphafloat, default=1.0

Weight \(\alpha\) of the neighborhood mean.

window_sizeint, default=3
Returns:
xindarray, same shape as img