Image Scaling Using Bilinear Interpolation Technique
This experiment implements image scaling using bilinear interpolation technology. The method calculates output pixel values as weighted averages from 2×2 neighborhood sampling points in the input image, performing interpolation in both horizontal and vertical directions based on four surrounding pixels' grayscale values. Compared to nearest-neighbor interpolation, this averaging algorithm provides anti-aliasing effects, producing images with smooth edges where锯齿 artifacts are barely noticeable. The program accepts an image matrix and target dimensions as input parameters, allowing comparative analysis with previous experimental results to deepen understanding of interpolation methods.