1. An image processing apparatus comprising: a division unit configured to divide an image into a plurality of areas; a calculation unit configured to calculate a feature amount for each division area; an area category determination unit configured to determine for each division area at least a night scene category or an under-exposure category based on the calculated feature amount; an entire category determination unit configured to determine a category of the entire image based on the result of category determination; and a processing unit configured to perform correction processing on the image based on the result of category determination by the entire category determination unit.