1. An image processing apparatus comprising: a calculation unit configured to calculate a brightness component and a color difference component of image data; a determination unit configured to determine whether the image data is a nightscape image or an underexposed image, using the brightness component and the color difference component calculated by the calculation unit; and a correction unit configured to correct the image data which has been determined as the nightscape image or the underexposed image by the determination unit.