摘 要: 本文算法将像素点自适应分为边缘和非边缘区域,对边缘区域的像素点,确定出边缘点的梯度方向和边缘线方向。对边缘线上的点,采用线性插值;对边缘区域梯度方向的点,采用最近邻域插值法;对其他情形的像素点,采用双线性插值。MATLAB仿真环境实验结果表明:该算法提高了边缘及插值方向检测的准确性,与传统的Bilinear、Cubic算法相比,在处理边缘细节较多的图像时,具有更好的边缘估计和插值效果,提高了缩放后图像的视觉质量。 |
关键词: 图像缩放;边缘检测;线性插值;双线性插值 |
中图分类号: TP301.6
文献标识码: A
|
基金项目: 上海工程技术大学大学生创新训练计划资助项目(CX2021010). |
|
A Self-adaptive Image Scaling Algorithm based on Edge Operator |
LI Hongyan, FU Yirong, QIAO Jiawei, LAI Fangye, YAO Long
|
(School of Mathematics, Physics and Statistics, Shanghai University of Engineering Science, Shanghai 201620, China )
wxsh2001@163.com; fuyirong75@163.com; 2476105736@qq.com; 1966577211@qq.com; 1832991860@qq.com
|
Abstract: The algorithm proposed in this paper adaptively divides pixel points into edge and non-edge areas, and determines gradient direction and edge line direction for the pixel points in edge areas. For points on edge line, linear interpolation is used; for points in the gradient direction of the edge areas, nearest neighbor interpolation is used; for pixels in other situations, bilinear interpolation is used. The experimental results of MATLAB (Matrix & Laboratory) simulation environment show that the algorithm improves the accuracy of edge and interpolation direction detection. Compared with the traditional Bilinear and Cubic algorithms, it has better edge estimation and interpolation effect when processing images with more edge details, so to improve visual quality of the zoomed image. |
Keywords: image scaling; edge detection; linear interpolation; bilinear interpolation |