1. An image processing apparatus for performing processing on image data which is formed of a predetermined number of pixel data obtained by an image-capturing device including a predetermined number of pixels and having a time integrating function, said image processing apparatus comprising: area specifying means for specifying a non-mixed area formed of a foreground area consisting of foreground object components which form a foreground object of the image data and a background area consisting of background object components which form a background object of the image data, or a mixed area in which the foreground object components and the background object components area mixed; and processing execution means for simultaneously performing, based on a result obtained by specifying the area by said area specifying means, processing for separating the foreground object components and the background object components from the pixel data of the mixed area, and processing for eliminating motion blur from the separated foreground object components.