Patent ID: 7433543

Claim:
An image processing apparatus for processing image data that has been captured by an image sensing apparatus having a two-dimensional image sensing device, said apparatus comprising: an attitude information input unit that inputs attitude information representing the attitude of the image sensing apparatus; a rotating unit which divides the image data captured by the image sensing device into a plurality of divided image data that have a block size corresponding to a size by which a processing unit processes image data, and rotates the block-size image data in accordance with the attitude information input by said attitude information input unit; and a processing unit that processes the image data output from said rotating unit in units having the block size; wherein in a case where the attitude information indicates that the image sensing apparatus is not rotated relative to a reference attitude, said rotating unit inputs the block-size image data successively in a first order and outputs the block-size image data without rotating the block-size image data, and wherein in a case where the attitude information indicates that the image sensing apparatus is rotated clockwise through at least any one of 90°, 180° and 270° relative to the reference attitude, said rotating unit inputs the block-size image data successively in a second order which is determined by the relation between the first order and the rotation degree of the image sensing apparatus, rotates each of the block-size image data, and outputs the plurality of the rotated block-size image data.