1. An image processing apparatus comprising: an input unit configured to receive a captured image; and a data processing unit configured to determine block statistics which indicates image characteristics of each of a plurality of blocks by using the plurality of blocks obtained by dividing the captured image, determine a shading estimation coefficient to be applied to the captured image by using the determined block statistics and an amount of infrared light included in a light source, and correct shading of the captured image by using the determined shading estimation coefficient.