An image processing apparatus, an image processing method, and an image processing program that enable certainly detecting a set number of images in a short processing time are provided. To achieve this object, image information about images constituting a continuous image sequence is read and acquired from a storage unit; a predetermined image change amount between at least two images is calculated, using the acquired image information; and, after information about the image change amount is added to a corresponding image, a preset number of images are extracted from the image sequence based on the added information.