Visual information from noisy measurements. Generalization of Non-local Means: Bayesian inference and PDF estimation