1. An image processing apparatus comprising: a memory storing instructions; and at least one processor configured to process the instructions to: calculate a solar spectrum using a time at which an input image is captured, and a position at which the input image is captured, calculate an estimated background calculated to be close to a background included in the input image, using the input image and the solar spectrum, and output the estimated background.