1. An image processing apparatus comprising: a determination unit that determines whether contrast enhancement processing should be performed on an input image; an intensity mapping unit that generates a plurality of images having different exposure times from the input image, using intensity mapping, if the contrast enhancement processing should be performed on the input image; and an image composition unit that composes the plurality of images into an image.