A histogram is generated on the basis of the pixel value of an image. An
LUT used for changing the dynamic range of the image is generated on the
basis of the histogram value in each pixel value interval of the
generated histogram. The dynamic range of the image is changed on the
basis of the generated LUT.