An image processing apparatus decomposes an image into frequency
components of at least two frequency bands, and generates a basic
conversion table used to change values of the frequency components. The
image processing apparatus sets an expansion/contraction ratio of the
basic conversion table on the basis of a pixel value range which is
determined on the basis of the image. The basic conversion table is
changed based on the set expansion/contraction ratio.