Patent ID: 8274579

Claim:
An image processing apparatus comprising: a distortion correction unit configured to perform a distortion correction processing on image data generated and stored in a frame memory; a distortion correction range calculation unit configured to calculate distortion correction ranges of respective block lines of the image data, each range being a rectangular area that the distortion correction unit uses to perform the distortion correction processing on one block line; a control unit configured to determine an input image range for the image data that is input as present block line to the distortion correction unit, from present distortion correction range and next distortion correction range, the present distortion correction range having been calculated, by the distortion correction range calculation unit, for the present block line being processed at present in the distortion correction unit, and the next distortion correction range having been calculated, by the distortion correction range calculation unit, for at least one block line following the present block line; a storage control unit configured to calculate a range for a part of the image data corresponding to the input image range, from the present distortion correction range and the next distortion correction range, the part of the image data being necessary also for the next block line to be processed in the distortion correction unit; and a margin storage memory configured to store, as margin data, the image data of the range calculated by the storage control unit, wherein the image data input to the distortion correction unit and corresponding to the input image range includes both the image data read from the frame memory and the margin data read from the margin storage memory.