Adaptive Smoothing of Digital Images