JPH04288541A - Image distortion correction device - Google Patents

Image distortion correction device

Info

Publication number
JPH04288541A
JPH04288541A JP3074563A JP7456391A JPH04288541A JP H04288541 A JPH04288541 A JP H04288541A JP 3074563 A JP3074563 A JP 3074563A JP 7456391 A JP7456391 A JP 7456391A JP H04288541 A JPH04288541 A JP H04288541A
Authority
JP
Japan
Prior art keywords
image
data
scale
correction
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3074563A
Other languages
Japanese (ja)
Inventor
Shigehiro Sano
佐野 茂弘
Kazuya Tsunashima
綱島 一也
Kazunori Yasumoto
安本 和則
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP3074563A priority Critical patent/JPH04288541A/en
Publication of JPH04288541A publication Critical patent/JPH04288541A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To obtain an accurate image input at all times by an optical reader regardless of the accuracy of the repetition of reading. CONSTITUTION:Image data on a document and a scale which are inputted from a plane scanner 2 which has a scale at a read part are recorded in a 1st image file 11. A corresponding point calculating means 5 calculates the coordinate values of points corresponding to the size of the document from the image data on the scale stored in the 1st image file 11 and stores them in a 2nd data file 14. The accurate coordinate values of specific points of the scale are already stored in a 1st data file 13 and a correction parameter calculating means 8 calculates a correction parameter from the coordinate values in the 1st data file 13 and 2nd data file 14. An image correcting means 9 corrects a document image stored in the 1st image file 11 by using the calculated correction parameter.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は光学式画像入力装置によ
る入力画像の歪を補正し、正確な入力画像データを得る
ための画像歪補正装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image distortion correction device for correcting distortion of an input image by an optical image input device and obtaining accurate input image data.

【0002】0002

【従来の技術】図11は無地網部分のあるYMCK4版
の作成工程を示す図であるが、無地網部分のあるYMC
K4版を作成する場合、線版28を平面スキャナ2によ
り入力し、無地網作成装置25で無地網データを作成し
、レイアウトシステム26で無地網部分と他の部分のレ
イアウトを行い、ドラムスキャナ27によりYMCKの
4版を出力する。次に、スキャナから出力されたYMC
Kの4色の版と線版28を合成して最終的なYMCKの
4色の版が完成する。しかし、合成を行うと、ほとんど
の場合ドラムスキャナ27より出力されたYMCKの4
色の版の網点の境界と線版の輪郭線が一致せず、良好な
最終的なYMCKの4色の版が作成できない。これは、
線画の入力に簡易な平面スキャナ2を用いると入力画像
に歪みが生じ、無地網作成装置25は歪んだ線画に囲ま
れた領域に網点を作成するためである。この問題を解決
するための歪補正技術としては、例えば、特開平 2−
32477号の「画像情報補正方法及び装置」がある。 この従来発明は、まず、ます目間隔の正確な方眼紙を用
意し、このます目の間隔をコンピュータに数値で入力す
る。次に、光学系のカメラを介して同じ方眼紙を画像と
して入力し、そのます目の間隔を計算する。ここで、光
学系を介したます目の間隔と、光学系を介さないます目
の間隔を比較することによりこの光学系の歪特性情報を
算出する。その後はその光学系に対して算出された歪特
性情報をもとに入力した画像の歪補正を自動的に行うと
いうものである。
[Prior Art] FIG. 11 is a diagram showing the process of creating a YMCK4 version with a plain mesh portion.
When creating a K4 plate, the line plate 28 is inputted using the flat scanner 2, the plain mesh data is created using the plain mesh creating device 25, the plain mesh portion and other portions are laid out using the layout system 26, and then the plain mesh data is created using the drum scanner 27. Outputs the 4th version of YMCK. Next, the YMC output from the scanner
By combining the K four-color plate and the line plate 28, a final YMCK four-color plate is completed. However, when compositing, in most cases the YMCK 4 output from the drum scanner 27
The halftone dot boundaries of the color plate and the outline of the line plate do not match, making it impossible to create a good final YMCK four-color plate. this is,
This is because if a simple plane scanner 2 is used to input line drawings, the input image will be distorted, and the plain screen creation device 25 will create halftone dots in the area surrounded by the distorted line drawings. As a distortion correction technique to solve this problem, for example,
No. 32477 entitled "Image information correction method and apparatus". In this conventional invention, first, graph paper with accurate grid spacing is prepared, and the grid spacing is entered numerically into a computer. Next, the same graph paper is input as an image through an optical camera, and the distance between the squares is calculated. Here, the distortion characteristic information of this optical system is calculated by comparing the interval between the squares through the optical system and the interval between the squares through the optical system. Thereafter, distortion correction of the input image is automatically performed based on the distortion characteristic information calculated for that optical system.

【0003】0003

【発明が解決しようとする課題】しかしながら、光学系
の繰り返し精度は必ずしも正確ではないので、入力画像
ごとに歪の度合が異なり、前記のような従来の技術では
、あらかじめ算出した歪特性情報で歪補正をしても、正
確な補正ができなくなるという問題点があった。本発明
は上記のような問題を解決するために、光学式読み取り
装置の繰り返し精度に係わらず、常に正確な画像入力が
得られる画像歪補正装置を提供することを目的とする。
[Problem to be Solved by the Invention] However, since the repeatability of the optical system is not necessarily accurate, the degree of distortion differs depending on the input image, and the conventional technology described above is unable to measure the distortion using pre-calculated distortion characteristic information. Even if correction is made, there is a problem that accurate correction cannot be made. SUMMARY OF THE INVENTION In order to solve the above problems, it is an object of the present invention to provide an image distortion correction device that can always obtain accurate image input regardless of the repeatability of an optical reading device.

【0004】0004

【課題を解決するための手段】上記課題を解決するため
に、本発明による、読み取り部にスケールを備えた光学
式読み取り装置と、この光学式読み取り装置で読み取っ
た原稿及びスケールの画像を記憶する画像記憶手段と、
前記スケールの特定点の正確な座標値が格納された第1
のデータフアイルと、前記画像記憶手段に格納されたス
ケールの画像データから前記特定点に対応する点の座標
値を算出する対応点算出手段と、この対応点算出手段が
算出した点の座標値を格納する第2のデータファイルと
、前記第1のデータファイルと前記第2のデータファイ
ルのデータより補正パラメータを算出する補正パラメー
タ算出手段と、この補正パラメータ算出手段が算出した
パラメータに基づいて前記画像記憶手段に記憶された原
稿の画像を補正する画像補正手段と、この画像補正手段
が補正した画像データを出力するデータ出力手段と、を
備えた画像歪補正装置を用いる。
[Means for Solving the Problems] In order to solve the above problems, the present invention provides an optical reading device having a scale in the reading section, and storing images of the original and the scale read by the optical reading device. image storage means;
A first one in which accurate coordinate values of a specific point on the scale are stored.
a data file, a corresponding point calculation means for calculating the coordinate value of a point corresponding to the specific point from the image data of the scale stored in the image storage means, and a coordinate value of the point calculated by the corresponding point calculation means. a second data file to be stored; a correction parameter calculation means for calculating a correction parameter from the data of the first data file and the second data file; An image distortion correction apparatus is used, which includes an image correction means for correcting an image of a document stored in a storage means, and a data output means for outputting image data corrected by the image correction means.

【0005】[0005]

【作用】本発明による画像歪補正装置においては、読み
取り部にスケールを備えた光学式読み取り装置より原稿
画像を入力すると、入力された原稿及びスケールの画像
データは画像記憶手段に記憶される。対応点算出手段は
画像記憶手段に格納されたスケールの画像データから原
稿のサイズに対応する点の座標値を算出して第2のデー
タファイルに格納する。また、第1のデータファイルに
はスケールの特定点の正確な座標値が格納されており、
補正パラメータ算出手段は第1のデータファイルより原
稿のサイズに対応する点を抽出し、抽出した点の座標値
と第2のデータファイルの座標値より補正パラメータを
算出する。画像補正手段は算出した補正パラメータを用
いて画像記憶手段に記憶された原稿の画像を補正する。
[Operation] In the image distortion correction apparatus according to the present invention, when an original image is inputted from an optical reading device having a scale in the reading section, the image data of the inputted original and the scale are stored in the image storage means. The corresponding point calculation means calculates coordinate values of points corresponding to the size of the document from the image data of the scale stored in the image storage means, and stores the coordinate values in the second data file. In addition, the first data file stores the exact coordinate values of a specific point on the scale,
The correction parameter calculation means extracts a point corresponding to the size of the document from the first data file, and calculates a correction parameter from the coordinate value of the extracted point and the coordinate value of the second data file. The image correction means uses the calculated correction parameters to correct the image of the document stored in the image storage means.

【0006】[0006]

【実施例】以下、図面に基づき本発明の実施例を詳細に
説明する。図1は本発明の一実施例を示すブロック図で
ある。図1に示す画像歪補正装置1は、画像入力用の平
面スキャナ2と、入力画像の制御を行う入力制御手段3
と、画像データ、座標値データ等を記憶する磁気ディス
ク4、原稿サイズに対応する特定点を算出する対応点算
出手段5、対応点を原寸で表示する表示手段6、表示画
面上の対応点を指示するポインティングデバイス7、歪
補正用のパラメータを算出する補正パラメータ算出手段
8、歪んだ画像を補正する画像補正手段9、補正された
画像を無地網作成装置等へ出力する制御を行う出力制御
手段10により構成される。図1に示す磁気ディスク4
は第1の画像ファイル11、第2の画像ファイル12、
第1のデータファイル13、第2のデータファイル14
の4つのファイルを持つ。第1の画像ファイル11は平
面スキャナ2により入力され、入力制御手段3を介した
スケールと補正前の原稿の画像データを格納する。第2
の画像ファイル12は画像補正手段9により補正された
画像データを格納する。第1のデータファイル13には
スケールの特定点の正確な座標データがあらかじめ格納
されている。第2のデータファイル14は対応点算出手
段5により算出された、原稿のサイズに対応する3点の
座標データを格納する。
Embodiments Hereinafter, embodiments of the present invention will be described in detail based on the drawings. FIG. 1 is a block diagram showing one embodiment of the present invention. The image distortion correction device 1 shown in FIG. 1 includes a flat scanner 2 for image input, and an input control means 3 for controlling the input image.
, a magnetic disk 4 for storing image data, coordinate value data, etc., a corresponding point calculation means 5 for calculating a specific point corresponding to the document size, a display means 6 for displaying the corresponding point in the original size, and a display means 6 for displaying the corresponding point on the display screen. A pointing device 7 for instructing, a correction parameter calculating means 8 for calculating parameters for distortion correction, an image correcting means 9 for correcting a distorted image, and an output control means for controlling output of the corrected image to a plain screen forming device or the like. 10. Magnetic disk 4 shown in FIG.
are the first image file 11, the second image file 12,
First data file 13, second data file 14
It has four files. The first image file 11 is input by the flat scanner 2 and stores the scale and image data of the original before correction via the input control means 3. Second
The image file 12 stores image data corrected by the image correction means 9. Accurate coordinate data of a specific point on the scale is stored in advance in the first data file 13. The second data file 14 stores coordinate data of three points calculated by the corresponding point calculating means 5 and corresponding to the size of the document.

【0007】図2は図1に示す装置の動作を示したフロ
ーチャートである。以下、このフローチャートに従って
画像歪補正装置1の動作について説明する。図3は平面
スキャナ2の原稿台15にスケール16と原稿18をセ
ットした状態を示す図である。図示のごとく、原稿台1
5にはスケール16が印刷されたフィルム17が貼り付
けられ、その上に原稿18がセットされている。平面ス
キャナ2の原稿台15に原稿18をセットするときには
原稿18をスケール16よりわずかに離れた位置にセッ
トする。原稿18のセットが終わると、平面スキャナ2
はセットされた原稿画像とスケール画像を読み取る。 (S1)
FIG. 2 is a flowchart showing the operation of the apparatus shown in FIG. Hereinafter, the operation of the image distortion correction device 1 will be explained according to this flowchart. FIG. 3 is a diagram showing a state in which the scale 16 and the original 18 are set on the original table 15 of the flat scanner 2. As shown in FIG. As shown, document table 1
A film 17 on which a scale 16 is printed is pasted on the film 5, and an original 18 is set on top of the film 17. When setting the original 18 on the original table 15 of the flat scanner 2, the original 18 is set at a position slightly apart from the scale 16. After setting the original 18, the flat scanner 2
reads the set original image and scale image. (S1)

【0008】読み取られた原稿及びスケールの画像は入
力制御手段3を介して第1の画像ファイル11に格納さ
れる。(S2)
[0008] The read original and scale images are stored in the first image file 11 via the input control means 3. (S2)

【0009】次に、第1の画像ファイル11に格納され
た画像データから、入力原稿18のサイズで特定される
領域のスケール画像を表示する。図4に平面スキャナ2
の原稿台15におけるスケール16と原稿18の関係を
示すが、表示される領域は入力原稿18のスケール16
側の頂点に最も近い格子点19、20、21を含む領域
である。このとき、格子点20はスケール16の原点で
ある。他の格子点19、21は入力原稿18のサイズに
より決定される。図5はこのときの表示手段6の画面2
2の状態を示したもので、図示のごとく、この格子点を
含む領域24は原寸で表示手段6の画面に表示される。 表示されるスケール画像の領域24内に格子点は各々1
つしか含まれず、隣の格子点が含まれて領域24に2つ
の格子点が表示されることはない。(S3)
Next, a scaled image of the area specified by the size of the input document 18 is displayed from the image data stored in the first image file 11. Figure 4 shows flat scanner 2.
The relationship between the scale 16 and the original 18 on the original table 15 is shown, but the displayed area is based on the scale 16 of the input original 18.
This is a region including lattice points 19, 20, and 21 closest to the side vertices. At this time, the grid point 20 is the origin of the scale 16. Other grid points 19 and 21 are determined by the size of input document 18. Figure 5 shows the screen 2 of the display means 6 at this time.
As shown in the figure, the area 24 including this grid point is displayed in its original size on the screen of the display means 6. There are 1 grid point each in the area 24 of the displayed scale image.
Only one grid point is included, and two grid points are not displayed in the area 24 because the neighboring grid point is included. (S3)

【0010
】ここで、オペレータは画面22に表示された格子点を
ポインティングデバイスで指定する。図5に示すように
表示画面上に原寸表示された領域24内の線と線が交わ
った部分23をポインティングデバイス7により指定す
ることにより対応点の座標値が算出される。 (S4)
0010
] Here, the operator specifies the grid points displayed on the screen 22 with the pointing device. As shown in FIG. 5, the coordinate values of the corresponding points are calculated by specifying with the pointing device 7 a portion 23 where two lines intersect in an area 24 displayed in the original size on the display screen. (S4)

【0011】算出された3点の座標値は第2のデータフ
ァイル14に格納される。(S5)
The calculated coordinate values of the three points are stored in the second data file 14. (S5)

【0012】次に、補正パラメータ算出手段8は第1の
データファイル13より原稿のサイズに対応する格子点
を3つ抽出し、また、第2のデータファイル14に格納
された3点の座標値を抽出する。
Next, the correction parameter calculation means 8 extracts three grid points corresponding to the size of the document from the first data file 13, and also extracts the coordinate values of the three points stored in the second data file 14. Extract.

【0013】ここで本実施例による装置の入力画像デー
タのデータ形式について説明する。図6は本実施例のデ
ータの一例を示す模式図であるが、同図に示すように本
実施例による装置が平面スキャナ2により読み取ったデ
ータはX軸方向のラインごとのランレングス形式となっ
ている。図6において括弧内の左側は色番号、右側は長
さを表す。図6の例では、1ライン目の「(2、3)(
3、14)」は左から色番号2の色が3画素続き、次に
色番号3の色が14画素続くことを表している。補正パ
ラメータ算出手段8ではこのデータ形式を利用できる補
正行列を用いて補正パラメータを算出する。
The data format of the input image data of the apparatus according to this embodiment will now be explained. FIG. 6 is a schematic diagram showing an example of the data of this embodiment. As shown in the figure, the data read by the device according to this embodiment using the flat scanner 2 is in the form of a run length for each line in the X-axis direction. ing. In FIG. 6, the left side in parentheses represents the color number, and the right side represents the length. In the example in Figure 6, the first line “(2, 3)(
3, 14)'' indicates that the color with color number 2 continues for 3 pixels from the left, and then the color with color number 3 continues for 14 pixels. The correction parameter calculation means 8 calculates correction parameters using a correction matrix that can utilize this data format.

【0014】図7は図形の種々の歪みにより歪んだ図形
を示した図である。以下、図7を用いて補正行列につい
て説明する。第1のデータファイル13内の特定点の正
確な座標を (Xi,Yi) 、第2のデータファイル
14内の特定点の座標を (xi,yi) とし、Pi
= (Xi,Yi,1)     Qi= (xi,y
i,1) とすると3×3の行列Aを用いて、Pi=Q
i×A  と書けるので、P、Qの各々に3点の座標値
を与えることにより歪補正行列Aが決定する。
FIG. 7 is a diagram showing a figure distorted by various distortions of the figure. The correction matrix will be explained below using FIG. 7. Let the exact coordinates of a specific point in the first data file 13 be (Xi, Yi), the coordinates of a specific point in the second data file 14 be (xi, yi), and Pi
= (Xi, Yi, 1) Qi= (xi, y
i, 1), then using a 3×3 matrix A, Pi=Q
Since it can be written as i×A, the distortion correction matrix A is determined by giving the coordinate values of three points to each of P and Q.

【0015】図7の(a)は一般的な歪により歪んだ図
形を示し、この歪みに対する歪補正行列は次のように表
される。
FIG. 7(a) shows a figure distorted by general distortion, and the distortion correction matrix for this distortion is expressed as follows.

【0016】[0016]

【数1】[Math 1]

【0017】図7の(b)は図形の平行移動により歪ん
だ図形を示し、図7の(c)は図形の拡大・縮小により
歪んだ図形を示し、図7の(d)は図形のX方向剪断に
より歪んだ図形を示し、図7の(e)は図形のY方向剪
断により歪んだ図形を示し、図7の(f)は図形の回転
により歪んだ図形を示し、これらの歪みに対する歪補正
行列は次のように表される。
FIG. 7(b) shows a figure distorted due to parallel movement of the figure, FIG. 7(c) shows a figure distorted due to enlargement/reduction of the figure, and FIG. 7(d) shows a figure distorted due to the parallel movement of the figure. Figure 7(e) shows a figure distorted by Y-direction shearing, and Figure 7(f) shows a figure distorted by rotation of the figure. The correction matrix is expressed as follows.

【0018】[0018]

【数2】[Math 2]

【0019】この場合、■式の行列Mは平行移動に対応
し、■式の行列Wは拡大・縮小に対応し、■式の行列C
xはX方向剪断に対応し、■式の行列CyはY方向剪断
に対応し、■式の行列Rは回転に対応する。
In this case, the matrix M in the formula (2) corresponds to parallel movement, the matrix W in the formula (2) corresponds to expansion/reduction, and the matrix C in the formula (2) corresponds to expansion/reduction.
x corresponds to shear in the X direction, matrix Cy in the equation (2) corresponds to shear in the Y direction, and matrix R in the equation (2) corresponds to rotation.

【0020】■−■式に示す5種類の補正行列は一般的
な歪補正行列Aに対し1次従属になっているので、1種
を除いた4種類の補正で一般の歪補正が行える。すなわ
ち、 A=M×Cx×W×R────(7) と表すことができる。5種類の補正行列のうち、Y方向
剪断と回転はラインと垂直なベクトルが変化するため、
ランレングスデータを変換することができない。したが
って、角度補正と平行移動を無視すれば、X、Y方向の
変倍に関する行列WとX方向の剪断に関する行列Cxの
2つで歪補正が可能となる。よって、(7)式に各要素
を代入すると、次のような方程式が得られる。
Since the five types of correction matrices shown in equations (1)-(2) are linearly dependent on the general distortion correction matrix A, general distortion correction can be performed using four types of corrections except for one type. That is, it can be expressed as A=M×Cx×W×R────(7). Among the five types of correction matrices, Y-direction shear and rotation change the vector perpendicular to the line, so
Unable to convert run length data. Therefore, if angular correction and translation are ignored, distortion correction can be performed using two matrixes: the matrix W related to scaling in the X and Y directions, and the matrix Cx related to shearing in the X direction. Therefore, by substituting each element into equation (7), the following equation is obtained.

【0021】[0021]

【数3】[Math 3]

【0022】   この方程式を解き、以下の解を得る。       θ= tan−1(d/a) ─────
──────────(8)       mx=(c
e−fb)/(ae−db)      my=(dc
−af)/(db−ae)      wx=a/co
s θ───────────────(9)    
   wy=e cosθ−b sinθ──────
─────(10)      cx=(bcos2θ
+e cosθ sinθ)/a────(11)
[0022] Solve this equation and obtain the following solution. θ= tan-1(d/a) ─────
──────────(8) mx=(c
e-fb)/(ae-db) my=(dc
-af)/(db-ae) wx=a/co
s θ──────────────────(9)
wy=e cosθ−b sinθ──────
──────(10) cx=(bcos2θ
+e cosθ sinθ)/a────(11)

【0
023】X、Y方向の変倍に関する行列Wを求めるため
には要素のwx、wyを求めればよく、X方向の剪断に
関する行列Cxを求めるためには要素のcxを求めれば
よい。第1のデータファイル13と第2のデータファイ
ル14から3点ずつ座標値を抽出することにより、補正
行列Aの各要素a、b、c、d、e、fが算出され、a
、dを用いて(8) 式によりθも算出される。よって
(9),(10),(11)式により補正パラメータw
x、wy、cxが算出される。以上の計算を補正パラメ
ータ算出手段8で行い、補正パラメータを算出する。(
S6)
0
In order to obtain the matrix W related to scaling in the X and Y directions, it is sufficient to obtain wx and wy of the elements, and in order to obtain the matrix Cx related to shearing in the X direction, it is sufficient to obtain cx of the elements. By extracting the coordinate values of three points each from the first data file 13 and the second data file 14, each element a, b, c, d, e, f of the correction matrix A is calculated, and a
, d is also used to calculate θ using equation (8). Therefore, according to equations (9), (10), and (11), the correction parameter w
x, wy, and cx are calculated. The above calculations are performed by the correction parameter calculation means 8 to calculate correction parameters. (
S6)

【0024】このようにして求めた補正パラメー
タwx、wy、cxを用いて、画像補正手段9では第1
の画像ファイル11に格納された原稿画像を補正する。 図8は図6に示した本装置のデータの補正後の状態を示
した図である。図8の(a) はwx=2のときの補正
後の状態を示した図であり、図示のごとく、補正パラメ
ータwxの値が2の場合、図6に示す画像データの各ラ
ンの長さが2倍されX方向へ拡大された画像データが作
成される。具体的には1ライン目のデータ「(2、3)
(3、14)」は「(2、6)(3、28)」となる。 図8の (b) はwy=2のときの補正後の状態を示
した図であり、図示のごとく補正パラメータwyの値が
2の場合、同じランデータを持つラインが2行続けて書
かれ、Y方向へ拡大された画像データが作成される。具
体的には1ライン目のデータはそのまま「(2、3)(
3、14)」であり、2ライン目のデータも「(2、3
)(3、14)」となる。3ライン目のデータは補正前
の2ライン目のデータと同じ「(0、6)(1、4)(
0、7)」となり、4ライン目のデータも「(0、6)
(1、4)(0、7)」となる。図8の (c) はc
x=1のときの補正後の状態を示した図であり、図9は
補正パラメータcxと図形のX方向の剪断の関係を示す
図である。補正パラメータcxは図9に示す傾斜角αに
対し、cx=tanα  となるので、Lライン目のデ
ータをL×cxだけ平行移動させることによりX方向の
剪断歪が補正される。補正パラメータcxの値が1の場
合、図8 (c) に示すように1ライン目を1つ、2
ライン目を2つ、3ライン目を3つ左へ移動する。移動
して空いた場所には状況に応じて適切な色を入れる。具
体的には1ライン目のデータ「(2、3)(3、14)
」は「(2、2)(3、14)(99、1)」となる。 以上のようにして画像補正手段9では歪補正処理が行な
われる。(S7)
Using the correction parameters wx, wy, and cx obtained in this way, the image correction means 9
The document image stored in the image file 11 of is corrected. FIG. 8 is a diagram showing the state of the data of the apparatus shown in FIG. 6 after correction. FIG. 8(a) is a diagram showing the state after correction when wx=2. As shown in the figure, when the value of the correction parameter wx is 2, the length of each run of the image data shown in FIG. is doubled and expanded in the X direction to create image data. Specifically, the first line data “(2, 3)
(3, 14)” becomes “(2, 6) (3, 28)”. FIG. 8(b) is a diagram showing the state after correction when wy=2. As shown in the figure, when the value of the correction parameter wy is 2, two lines with the same run data are written consecutively. , image data enlarged in the Y direction is created. Specifically, the data on the first line is written as “(2, 3)(
3, 14)", and the data on the second line is also "(2, 3)".
)(3,14)”. The data on the third line is the same as the data on the second line before correction (0, 6) (1, 4) (
0, 7)", and the data on the 4th line is also "(0, 6)".
(1, 4) (0, 7)”. (c) in Figure 8 is c
9 is a diagram showing the state after correction when x=1, and FIG. 9 is a diagram showing the relationship between the correction parameter cx and the shearing of the figure in the X direction. Since the correction parameter cx is cx=tanα for the inclination angle α shown in FIG. 9, the shear strain in the X direction is corrected by translating the L-th line data by L×cx. When the value of the correction parameter cx is 1, as shown in Figure 8(c), the first line is 1, 2
Move the first line two places and the third line three places to the left. Fill in the empty space with the appropriate color depending on the situation. Specifically, the first line data “(2, 3) (3, 14)
” becomes “(2, 2) (3, 14) (99, 1)”. As described above, the image correction means 9 performs distortion correction processing. (S7)

【0025】画像補正手段9で補正された正確な原稿画
像を第2の画像ファイル12に格納する。(S8)
The correct original image corrected by the image correction means 9 is stored in the second image file 12. (S8)

【0
026】以上のようにして得られた正確な原稿画像は出
力制御手段10を介して無地網作成装置25へ出力され
る。無地網作成装置25ではディスプレイ上で原稿画像
の輪郭線等により分割された領域に着色を行って、各領
域のY、M、C、Kの網%を決定し、無地網データを作
成する。次に、作成された無地網データはレイアウトシ
ステム26で線画以外の画像データ等の他のデータと共
に割り付けられる。そして、割り付けられたデータをも
とにドラムスキャナ27によりYMCKの4色の版を出
力する。ドラムスキャナ27から出力されたYMCKの
4色の版と線版28を合成することにより、最終的なY
MCKの4色の版が得られる。
0
[026] The accurate original image obtained in the above manner is outputted to the plain mesh forming device 25 via the output control means 10. The plain mesh creating device 25 colors areas divided by the outline of the original image on the display, determines the Y, M, C, and K halftone percentages of each area, and creates plain mesh data. Next, the created plain mesh data is laid out in the layout system 26 along with other data such as image data other than line drawings. Then, based on the allocated data, the drum scanner 27 outputs a YMCK four-color plate. By combining the YMCK four-color plate output from the drum scanner 27 and the line plate 28, the final Y
A four-color plate of MCK is obtained.

【0027】上記実施例では原稿18と共に平面スキャ
ナ2で読み取ったスケール画像の特定点をポインティン
グデバイス7で直接指定して入力していたが、本装置の
データがランレングス形式であることを利用して、スケ
ール画像の特定点を自動認識して入力するようにしても
よい。以下、スケール画像の特定点の自動認識について
説明する。図10は図5に示す領域24内のデータを示
す図であり、同図において色番号0は白を表し、色番号
1は黒を表す。この領域24内のデータをラインごとに
上から走査していくと領域24内の上方は数行の間は左
右に約4から7画素の白い部分が有り、中央に2、3画
素の黒い部分が有ることを検出する。走査を続けている
と14画素全部が黒で白い部分が全くないラインを検出
する。さらに走査を続けると再び左右に約4から7画素
の白い部分が有り、中央に2、3画素の黒い部分が有る
ラインを数行検出する。この検出したデータをもとに2
直線の方程式を求め、さらに交点の座標値を算出する。 このようにして、スケール画像の特定点を含む領域24
内を走る2本の直線の交点を自動認識する。
In the above embodiment, a specific point on the scale image read by the flat scanner 2 along with the original 18 was directly designated and inputted using the pointing device 7, but this method uses the fact that the data of this device is in a run-length format. Alternatively, specific points on the scale image may be automatically recognized and input. The automatic recognition of a specific point on a scale image will be described below. FIG. 10 is a diagram showing data in the area 24 shown in FIG. 5, in which color number 0 represents white and color number 1 represents black. When the data in this area 24 is scanned line by line from above, there is a white part of about 4 to 7 pixels on the left and right between several lines in the upper part of the area 24, and a black part of 2 to 3 pixels in the center. Detects that there is. As scanning continues, a line is detected in which all 14 pixels are black and there are no white areas. As the scanning continues, several lines are again detected that have white parts of about 4 to 7 pixels on the left and right, and a black part of 2 or 3 pixels in the center. Based on this detected data, 2
Find the equation of the straight line and calculate the coordinates of the intersection. In this way, the area 24 including the specific point of the scale image
Automatically recognizes the intersection of two straight lines running inside.

【0028】[0028]

【発明の効果】以上、本発明によれば、読み取り部にス
ケールを備えた光学式読み取り装置より入力した原稿及
びスケールの画像データを画像記憶手段に記憶し、対応
点算出手段が画像記憶手段に格納されたスケールの画像
データから原稿のサイズに対応する点の座標値を算出し
て第2のデータファイルに格納し、補正パラメータ算出
手段が、スケールの特定点の正確な座標値を格納した第
1のデータファイルより原稿のサイズに対応する点を抽
出し、抽出した点の座標値と第2のデータファイルの座
標値より補正パラメータを算出し、画像補正手段が算出
した補正パラメータを用いて画像記憶手段に記憶された
原稿の画像を補正する、という画像歪補正装置を用いて
歪補正を行うので、光学読み取り装置の繰り返し精度に
関係無く、常に正確な入力データを得ることができる。
As described above, according to the present invention, the image data of the original and the scale input from the optical reading device having the scale in the reading section are stored in the image storage means, and the corresponding point calculation means is stored in the image storage means. The coordinate values of a point corresponding to the size of the document are calculated from the stored scale image data and stored in a second data file, and the correction parameter calculation means calculates the coordinate values of a point corresponding to the size of the document from the stored image data of the scale, and the correction parameter calculation means calculates the coordinate values of a point corresponding to the size of the document from the stored image data of the scale. A point corresponding to the size of the document is extracted from the first data file, a correction parameter is calculated from the coordinate value of the extracted point and the coordinate value of the second data file, and the image correction means uses the calculated correction parameter to create an image. Since distortion correction is performed using an image distortion correction device that corrects the image of the document stored in the storage means, accurate input data can always be obtained regardless of the repeat accuracy of the optical reading device.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明による画像歪補正装置1の構成を示すブ
ロック図である。
FIG. 1 is a block diagram showing the configuration of an image distortion correction device 1 according to the present invention.

【図2】画像歪補正装置1の動作を示すフローチャート
である。
FIG. 2 is a flowchart showing the operation of the image distortion correction device 1.

【図3】図1に示す平面スキャナ2の原稿台15にスケ
ール16と原稿18をセットした状態の平面図である。
3 is a plan view of the flat scanner 2 shown in FIG. 1, with a scale 16 and a document 18 set on the document table 15; FIG.

【図4】原稿18とスケール16の位置関係を示す説明
図である。
FIG. 4 is an explanatory diagram showing the positional relationship between the original 18 and the scale 16.

【図5】表示装置6の画面に格子点を含む領域を原寸表
示した状態を示す模式図である
FIG. 5 is a schematic diagram showing a state in which an area including grid points is displayed in its original size on the screen of the display device 6.

【図6】本発明による画像歪補正装置1のデータ構造を
示す模式図である。
FIG. 6 is a schematic diagram showing the data structure of the image distortion correction device 1 according to the present invention.

【図7】平面スキャナ2により歪んだ図形を示す模式図
である。
7 is a schematic diagram showing a figure distorted by the flat scanner 2. FIG.

【図8】画像補正手段9により補正されたデータを示す
模式図である。
8 is a schematic diagram showing data corrected by the image correction means 9. FIG.

【図9】X方向の剪断と傾斜角αの関係を示す模式図で
ある。
FIG. 9 is a schematic diagram showing the relationship between shear in the X direction and inclination angle α.

【図10】図5に示す領域24内のデータ構造を示す模
式図である。
10 is a schematic diagram showing a data structure within the area 24 shown in FIG. 5. FIG.

【図11】印刷用のYMCK4版の作成工程を示すブロ
ック図である。
FIG. 11 is a block diagram showing the process of creating a YMCK4 version for printing.

【符号の説明】[Explanation of symbols]

1  画像歪補正装置 2  平面スキャナ 3  入力制御手段 4  磁気ディスク 5  対応点算出手段 6  表示手段 7  ポインティングデバイス 8  補正パラメータ算出手段 9  画像補正手段 10  出力制御手段 11  第1の画像ファイル 12  第2の画像ファイル 13  第1のデータファイル 14  第2のデータファイル 15  原稿台 16  スケール 17  フィルム 18  原稿 19  格子点 20  スケールの原点 21  格子点 22  表示装置6の画面 23  格子点 24  原寸表示領域 25  無地網作成装置 26  レイアウトシステム 27  ドラムスキャナ 28  線版 1 Image distortion correction device 2 Flat scanner 3 Input control means 4 Magnetic disk 5 Corresponding point calculation means 6 Display means 7 Pointing device 8 Correction parameter calculation means 9 Image correction means 10 Output control means 11 First image file 12 Second image file 13 First data file 14 Second data file 15 Manuscript stand 16 scale 17 Film 18 Manuscript 19 Lattice points 20 Origin of scale 21 Lattice points 22 Screen of display device 6 23 Lattice points 24 Original size display area 25 Plain net making device 26 Layout system 27 Drum scanner 28 Line version

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  読み取り部にスケールを備えた光学式
読み取り装置と、この光学式読み取り装置で読み取った
原稿及びスケールの画像を記憶する画像記憶手段と、前
記スケールの特定点の正確な座標値が格納された第1の
データフアイルと、前記画像記憶手段に格納されたスケ
ールの画像データから前記特定点に対応する点の座標値
を算出する対応点算出手段と、この対応点算出手段が算
出した点の座標値を格納する第2のデータファイルと、
前記第1のデータファイルと前記第2のデータファイル
のデータより補正パラメータを算出する補正パラメータ
算出手段と、この補正パラメータ算出手段が算出したパ
ラメータに基づいて前記画像記憶手段に記憶された原稿
の画像を補正する画像補正手段と、この画像補正手段が
補正した画像データを出力するデータ出力手段とを備え
た画像歪補正装置。
1. An optical reading device having a scale in a reading section; an image storage means for storing an image of a document and a scale read by the optical reading device; a stored first data file and a corresponding point calculation means for calculating coordinate values of a point corresponding to the specific point from the image data of the scale stored in the image storage means; a second data file storing coordinate values of the points;
a correction parameter calculation means for calculating correction parameters from data in the first data file and the second data file; and an image of the document stored in the image storage means based on the parameters calculated by the correction parameter calculation means. An image distortion correction device comprising: an image correction means for correcting image data; and a data output means for outputting image data corrected by the image correction means.
【請求項2】  前記対応点算出手段が前記画像記憶手
段に記憶されたスケールの画像を表示する表示手段と、
この表示手段に表示されたスケールの画像上の格子点を
指示するポインティングデバイスと、を備えたことを特
徴とする請求項1に記載の画像歪補正装置。
2. Display means for displaying an image of the scale in which the corresponding point calculation means is stored in the image storage means;
2. The image distortion correction apparatus according to claim 1, further comprising a pointing device for indicating a grid point on the scale image displayed on the display means.
【請求項3】  前記対応点算出手段が前記画像記憶手
段に記憶された前記原稿のサイズにより特定される領域
内のスケールの画像の格子点の座標値を自動的に算出す
ることを特徴とする請求項1に記載の画像歪補正装置。
3. The corresponding point calculation means automatically calculates coordinate values of grid points of an image of a scale within a region specified by the size of the document stored in the image storage means. The image distortion correction device according to claim 1.
JP3074563A 1991-03-14 1991-03-14 Image distortion correction device Pending JPH04288541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3074563A JPH04288541A (en) 1991-03-14 1991-03-14 Image distortion correction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3074563A JPH04288541A (en) 1991-03-14 1991-03-14 Image distortion correction device

Publications (1)

Publication Number Publication Date
JPH04288541A true JPH04288541A (en) 1992-10-13

Family

ID=13550816

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3074563A Pending JPH04288541A (en) 1991-03-14 1991-03-14 Image distortion correction device

Country Status (1)

Country Link
JP (1) JPH04288541A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6546151B1 (en) 1998-01-22 2003-04-08 Matsushita Electric Industrial Co., Ltd Information processing apparatus and information equipment using the information processing apparatus
CN105612401A (en) * 2013-09-30 2016-05-25 独立行政法人产业技术综合研究所 Marker image processing system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6546151B1 (en) 1998-01-22 2003-04-08 Matsushita Electric Industrial Co., Ltd Information processing apparatus and information equipment using the information processing apparatus
CN105612401A (en) * 2013-09-30 2016-05-25 独立行政法人产业技术综合研究所 Marker image processing system

Similar Documents

Publication Publication Date Title
JPH07104958B2 (en) How to activate a data display system
JP2007241356A (en) Image processor and image processing program
JPH0640219B2 (en) How to create cutout mask data
US5757958A (en) Document recognizing system and method
JPH0561954A (en) Image processor
JPH04288541A (en) Image distortion correction device
JPS5923670A (en) Correcting method of inclination during digital picture input
JPH0777417B2 (en) Layout scanner-Character and figure input device
JP3889118B2 (en) Endless image reduction method and reduction apparatus
JPH0457271B2 (en)
JPS60179877A (en) Pattern thickening system
JP3075111B2 (en) Image cropping device and layout scanner
JPH05151350A (en) Method for correcting position distortion of image data
JP2002197452A (en) Processor for correcting image distortion
JP3075110B2 (en) Image trimming device
JPH0779321A (en) Tilt correction device for picture data
JP3122664B2 (en) Drawing equipment
JPH05216203A (en) Design information converter
JP3018379B2 (en) Pattern trimming alignment method
JPH0156589B2 (en)
JPH06131452A (en) Method for correcting position distortion of picture data
JPH06347992A (en) Layout sheet input device
JPH02108585A (en) Apparatus for correcting strain pattern film
JPS63109650A (en) Picture reader
JPH04314263A (en) Picture processor