Patent ID: 6999099

Claim:
A recoding medium storing a computer readable program for controlling an image processing apparatus that converts a spatial resolution of an original image so as to respectively multiply Z times either in a vertical direction or a horizontal direction or both directions, the program comprising: calculating a central pixel energy at a pixel position of interest, wherein the central pixel energy is calculated in the horizontal or vertical direction of a predetermined pixel of the original image from pixel values of adjacent pixels present in a proximity of the pixel; enhancing an edge based on the central pixel energy calculated by the energy calculating step; detecting a direction of the edge enhanced by the edge enhancement step; interpolating a linear interpolated pixel at the pixel position of interest by linear interpolation; interpolating a selected direction interpolated pixel in a selected direction at the pixel position of interest based on the edge direction detected by the edge direction detecting step, and interpolating a composition interpolated pixel by compositing the linear interpolated pixel and the selected direction interpolated pixel.