An image processing apparatus obtains a visible light image and an infrared light image, and generates a color component of a composite image using a color component of the visible light image, and generates a luminance component of the composite image using luminance components of the infrared light image and the visible light image. The image processing apparatus corrects the color component or the luminance component of the composite image, using a correction coefficient determined based on the color component of the visible light image.