A Locally-Adaptive Zooming Algorithm for Digital Images