Signal restoration by statistical soft morphology