摘要 |
PURPOSE: To effectively remove distortion even when local distortion is generated in an input image and to easily and exactly correct the distortion by utilizing a reference line for the distortion correction of the image. CONSTITUTION: At a part to calculate the real length of a graphic such as a part describing a dimension in a machine drawing, for example, the graphic is divided into several pieces by line segments L1-L8. Afterwards, the ratio of lengths on the graphic and a distortion rate corresponding to the real lengths of respective blocks are calculated. Next, the respective blocks of the graphic are compressed or extended according to the distortion rate. In this case, the first division is limited only to the horizontal and vertical directions of the graphic so that run length data equipped with the start point and length of the part of black data can be efficiently processed at high speed. |