The image processing method and apparatus acquire input image data from the
image recorded optically with a taking lens, acquire the information about
the lens used to record the image and perform image processing schemes on
the input image data using the acquired lens information, provided that
the type of the lens used is identified from the acquired lens information
and the intensity of sharpness enhancement of the corresponding image is
altered in accordance with the identified lens type. Using the obtained
lens characteristics as well as the position information for the recorded
image, the input image data is subjected to aberration correction for
correcting the deterioration in image quality due to the lens
characteristics.