提出一种基于Hilbert扫描与弹性模型相结合的图像缩放新算法。首先将2维形式的图像通过Hilbert扫描转化为1维的灰度序列,然后将所得的灰度序列想象成一根橡皮筋,通过橡皮筋的伸缩实现图像的放大与缩小。实验结果表明,该方法操作简单,效果比较理想。
An algorithm for image reduction and zooming based on Hilbert scaning and the spring model is presented in this paper. Through the hilbert scan, the two-dimensional image is converted to a one-dimensional gray-level sequence. Then, the gray-level sequence is imaged to a rubber band, and the image zoom and reduction can be realized by stretching out and drawing back the rubber band. Our experiments show that the algorithm is simple in operation, and provides good results.