An image processing apparatus includes: an obtaining unit configured to obtain a first image of an object and a second image of the object; a difference unit configured to obtain a difference image after the first image and the second image are registered; and a change unit configured to perform processing of changing a pixel value in the difference image based on a likelihood calculated using a pixel value in the first image and a pixel value in the second image.