Provided are an image processing apparatus and method whereby even if
shape data representing the shape of an object in a moving image
undergoes a major change temporarily, a frame that is to be corrected can
be detected and corrected in ideal fashion and it is possible to execute
moving-image coding that is outstanding both visually and in terms of
coding efficiency. In one example, a moving image composed of a plurality
of frames is acquired from a image input unit (101) and the background
image of the moving image is acquired by a background image generating
unit (102). A background subtraction processor (103) extracts an object
by comparing each of the frames constituting the moving image with the
background image, and an abnormal-data discrimination unit (105)
discriminates whether shape data representing the shape of the extracted
object is abnormal or not. If the shape data is abnormal, a shape-data
correction unit (106) corrects the shape data. An image-data correction
unit (107) corrects a frame using the corrected shape data, and the
corrected shape data and image data is coded by an encoder (104).