An image processing apparatus acquires a plurality of radiation images by radiation imaging with a plurality of energies, and detects, based on pixel values of the plurality of radiation images, whether there is any abnormal pixel in at least one of the plurality of radiation images.