An image processing apparatus includes a determination part, an
information obtaining part, a dynamic range setting part and a processing
part. The determination part determines whether or not an image includes
an area where destruction of gradation due to contrast correction tends
to be conspicuous. The information obtaining part obtains information of
the area when the determination part determines that the image includes
such an area. The dynamic range setting part sets a dynamic range using
the information obtained by the information obtaining part. The
processing part performs the contrast correction on the image using the
dynamic range set by the dynamic range setting part.