摘要 |
PROBLEM TO BE SOLVED: To disclose a technology to limit a capacity of a storing unit used for skew correction.SOLUTION: An image reading device executes skew correction when reading an image of a document. A CPU sets the number of minimum storage lines. A read DMA processing unit and a write DMA processing unit of a skew correction circuit reads a pre-correction image stored in an input line buffer 4A to allow an output line buffer to store a post-correction image. An arithmetic processing unit executes management processing, and when the post-correction image of one line is stored in the output line buffer (S42:YES), determines whether or not to release a partial storage area of the input line buffer 4A (S44 and S46). When the number of lines obtained by subtracting 1 from the number of input storage lines is more than the number of minimum storage lines (S44:YES), it instructs to release an area in which the pre-correction image read by the read DMA processing unit and the write DMA processing unit has been stored, from the input line buffer 4A. |