An
image processing apparatus includes a CPU. The CPU acquires a series of a plurality of projection images or a plurality of tomographic images obtained by performing
tomosynthesis imaging by irradiating a breast with
radiation having a first energy; acquires a plurality of normal two-dimensional images captured by irradiating the breast with
radiation having a second energy, which is higher than the first energy, a plurality of times; calculates, for each of the plurality of normal two-dimensional images, a virtual projection position, which is a position at which the breast is virtually projected during the
tomosynthesis imaging, from a position of a
radiation source in a case in which the normal two-dimensional image is captured; generates a composite two-dimensional image from the plurality of projection images or the plurality of tomographic images based on the virtual projection position calculated for each of the plurality of normal two-dimensional images; and generates a difference image between each of the plurality of normal two-dimensional images and each of the composite two-dimensional images generated for each of the plurality of normal two-dimensional images.