There is disclosed an image processing apparatus including a hardware processor which generates a highly resolved still image from a plurality of frame images obtained by continuously imaging a moving subject. The hardware processor analyzes each of the plurality of frame images to calculate a feature amount, and determines, on a basis of the calculated feature amount, a reference frame image which becomes a reference when generating the highly resolved still image from the plurality of frame images.