An image processor determines the number of pixels to be added/removed within each row/column of pixels of an image to accomplish a given image enlargement/reduction. The image processor evenly distributes pixels that are to be added/removed along the full length of each of the rows or columns of pixels, and adds/removes pixels in a process that identifies a set of original pixels that are immediately adjacent to the pixel to be added/removed. The image processor then replaces each of the sets of the original pixels with a replacement set (that has one more/less pixel relative to the set of original pixels). Also, for each pixel that will be added/removed, the image processor determines data values for replacement pixels in each of the replacement sets by weighting data values from original pixels in the sets of original pixels. The image processor outputs an enlarged/reduced size version of the input image.
展开▼