Image restoration by means of statistical soft morphology