JP3242241B2 - Picture magnification / angle measuring device - Google Patents

Picture magnification / angle measuring device

Info

Publication number
JP3242241B2
JP3242241B2 JP30465393A JP30465393A JP3242241B2 JP 3242241 B2 JP3242241 B2 JP 3242241B2 JP 30465393 A JP30465393 A JP 30465393A JP 30465393 A JP30465393 A JP 30465393A JP 3242241 B2 JP3242241 B2 JP 3242241B2
Authority
JP
Japan
Prior art keywords
contour
variance
pattern
angle
line
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.)
Expired - Fee Related
Application number
JP30465393A
Other languages
Japanese (ja)
Other versions
JPH07134014A (en
Inventor
尚 荒井
芳明 工藤
幹雄 高木
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 JP30465393A priority Critical patent/JP3242241B2/en
Publication of JPH07134014A publication Critical patent/JPH07134014A/en
Application granted granted Critical
Publication of JP3242241B2 publication Critical patent/JP3242241B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Inking, Control Or Cleaning Of Printing Machines (AREA)
  • Length Measuring Devices By Optical Means (AREA)
  • Preparing Plates And Mask In Photomechanical Process (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は絵柄の倍率/角度測定装
置、特に、印刷製版工程において、印刷原稿上に形成さ
れた第1の絵柄と、この第1の絵柄の割付状態を示すた
めに割付指定紙上に線画として描かれた第2の絵柄と、
の相対的な倍率および回転角度を測定する装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pattern magnification / angle measuring apparatus, and more particularly, to a first pattern formed on a printed document and a layout of the first pattern in a printing process. A second pattern drawn as a line drawing on the layout designation paper,
And a device for measuring a relative magnification and a rotation angle of the camera.

【0002】[0002]

【従来の技術】一般に印刷物は、絵柄、図形、文字とい
った要素を所定の位置に、所定の大きさで、所定の向き
(回転角度)に割り付けることによって構成されてい
る。近年は、コンピュータを利用した電子製版技術が進
歩してきており、印刷原稿(たとえば写真)上の絵柄
は、スキャナ装置によって画像データとして取り込ま
れ、コンピュータによる集版処理が行われる。このコン
ピュータを用いた集版処理を精度良く円滑に行うために
は、実際の割り付け状態を考慮して画像データの取り込
みを行っておくのが好ましい。たとえば、写真上の絵柄
をスキャナ装置によって取り込む場合、画像データとし
ての取り込み倍率および回転角度を、原寸大の印刷物上
の大きさおよび回転角度に一致するように設定するのが
好ましい。このため、従来は、各絵柄を原寸大に割り付
けた状態を示す割付指定紙を用意し、写真上の絵柄を投
影機を用いてこの割付指定紙上に投影し、投影像が割付
指定紙上に描かれた割付態様を示す絵柄に一致するよう
に、投影倍率および写真の向きを調節し、適正な倍率お
よび向き(回転角度)の測定を行っていた。たとえば、
特開昭60−112039号公報には、このような倍率
および角度を測定するための測定装置が開示されてい
る。
2. Description of the Related Art In general, printed matter is constituted by allocating elements such as pictures, figures, and characters at predetermined positions, in predetermined sizes, and in predetermined directions (rotation angles). 2. Description of the Related Art In recent years, electronic plate making technology using a computer has been advanced, and a pattern on a printed document (for example, a photograph) is captured as image data by a scanner device, and plate collection processing is performed by the computer. In order to smoothly and accurately perform the plate collection processing using the computer, it is preferable to take in the image data in consideration of the actual layout state. For example, when a picture on a photograph is taken in by a scanner device, it is preferable to set the taking magnification and the rotation angle as image data to match the size and the rotation angle on a full-size printed matter. For this reason, conventionally, an assignment designation sheet showing the state where each pattern is assigned to the actual size is prepared, and the pattern on the photograph is projected on the assignment designation sheet using a projector, and the projected image is drawn on the assignment designation sheet. The projection magnification and the direction of the photograph were adjusted so as to match the pattern indicating the assigned layout mode, and the appropriate magnification and direction (rotation angle) were measured. For example,
JP-A-60-112039 discloses a measuring device for measuring such magnification and angle.

【0003】[0003]

【発明が解決しようとする課題】上述した投影機を用い
た倍率および角度の測定作業は、熟練した作業者による
手作業で行われている。すなわち、作業者は投影機に写
真をセットし、割付指定紙上に写真上の絵柄の像を投影
した状態で投影倍率と写真の角度とを手作業で調整し、
絵柄の一致を目で確認した上で、そのときの投影倍率と
写真の角度とを測定するという作業を行うことになる。
しかも、投影像を見やすくするために、この作業は暗所
で行われる。このような暗所での作業は、作業者への負
担が大きいため、作業時間が増大するとともに、作業ミ
スも発生しやすくなる。
The measurement of the magnification and the angle using the above-described projector is performed manually by a skilled worker. That is, the worker sets the photograph on the projector, manually adjusts the projection magnification and the angle of the photograph while projecting the image of the picture on the layout designated paper,
After visually confirming the matching of the pictures, the work of measuring the projection magnification and the angle of the photograph at that time is performed.
In addition, this operation is performed in a dark place to make the projected image easier to see. Since the work in such a dark place places a heavy burden on the worker, the work time is increased and a work error is likely to occur.

【0004】そこで本発明は、絵柄の倍率および角度を
自動的に測定することのできる倍率/角度測定装置を提
供することを目的とする。
Accordingly, an object of the present invention is to provide a magnification / angle measuring device capable of automatically measuring the magnification and angle of a picture.

【0005】[0005]

【課題を解決するための手段】[Means for Solving the Problems]

(1) 本願第1の発明は、特徴が近似した2つの絵柄に
ついての相対的な回転角度を測定する装置において、測
定対象となる絵柄を黒画素と白画素とで表現される二値
画像からなる線画データとして取り込む画像取込手段
と、この画像取込手段によって取込んだ線画データにつ
いて、黒画素の重心位置を演算する重心演算手段と、重
心位置を中心として、所定角度Δθ間隔で放射状に複数
の半直線を定義し、各半直線上において重心位置から最
も離れた位置にある黒画素を輪郭画素として求める輪郭
画素決定手段と、重心位置と各輪郭画素との距離として
定義される輪郭距離を演算する輪郭距離演算手段と、横
軸に半直線の角度位置を、縦軸にその半直線について得
られた輪郭距離を、それぞれ定義することによって、半
直線の角度位置と輪郭距離との関係を示すグラフを作成
し、測定対象となる第1の絵柄に基づいて得られた第1
のグラフを、測定対象となる第2の絵柄に基づいて得ら
れた第2のグラフに対して横軸方向に所定のずれ量だけ
ずらし、同一横座標上の第1のグラフの縦軸値と第2の
グラフの縦軸値との比をそれぞれ異なる複数の横座標位
置について求め、求めた複数の比についての分散を計算
する分散計算手段と、異なる複数のずれ量を設定して、
分散計算手段によりそれぞれのずれ量ごとの分散を求
め、最も分散が小さくなるずれ量を、第1の絵柄の第2
の絵柄に対する回転角度と決定する角度決定手段と、を
設けたものである。
(1) The first invention of the present application is directed to an apparatus for measuring a relative rotation angle of two patterns having similar characteristics, wherein a pattern to be measured is converted from a binary image represented by black pixels and white pixels. Image capturing means for capturing as line image data, and for the line image data captured by the image capturing means, a center of gravity calculating means for calculating the barycentric position of the black pixel, and radially at a predetermined angle Δθ interval around the barycentric position. Contour pixel determining means for defining a plurality of half-lines and determining a black pixel at a position farthest from the center of gravity on each half-line as a contour pixel; and a contour distance defined as a distance between the center of gravity and each contour pixel. , And the vertical axis defines the angular position of the half line, and the vertical axis defines the outline distance obtained for the half line. Create a graph showing the relationship between, first obtained based on the first picture to be measured
Is shifted by a predetermined amount of shift in the horizontal axis direction with respect to the second graph obtained based on the second pattern to be measured, and the vertical axis value of the first graph on the same horizontal coordinate is The variance calculation means for calculating the ratio of the second graph to the vertical axis value for a plurality of different abscissa positions and calculating the variance for the obtained ratios, and setting a plurality of different shift amounts,
The variance for each shift amount is obtained by the variance calculation means, and the shift amount that minimizes the variance is determined by the second amount of the first pattern.
And an angle determining means for determining a rotation angle with respect to the pattern.

【0006】(2) 本願第2の発明は、特徴が近似した
2つの絵柄についての相対的な倍率を測定する装置にお
いて、測定対象となる絵柄を黒画素と白画素とで表現さ
れる二値画像からなる線画データとして取り込む画像取
込手段と、この画像取込手段によって取込んだ線画デー
タについて、黒画素の重心位置を演算する重心演算手段
と、重心位置を中心として、所定角度Δθ間隔で放射状
に複数の半直線を定義し、各半直線上において重心位置
から最も離れた位置にある黒画素を輪郭画素として求め
る輪郭画素決定手段と、重心位置と各輪郭画素との距離
として定義される輪郭距離を演算する輪郭距離演算手段
と、横軸に半直線の角度位置を、縦軸にその半直線につ
いて得られた輪郭距離を、それぞれ定義することによっ
て、半直線の角度位置と輪郭距離との関係を示すグラフ
を作成し、測定対象となる第1の絵柄に基づいて得られ
た第1のグラフを、測定対象となる第2の絵柄に基づい
て得られた第2のグラフに対して横軸方向に所定のずれ
量だけずらし、同一横座標上の第1のグラフの縦軸値と
第2のグラフの縦軸値との比をそれぞれ異なる複数の横
座標位置について求め、求めた複数の比についての分散
を計算する分散計算手段と、異なる複数のずれ量を設定
して、分散計算手段によりそれぞれのずれ量ごとの分散
を求め、最も分散が小さくなるずれ量について得られた
比の平均値を、第1の絵柄の第2の絵柄に対する倍率と
決定する倍率決定手段と、を設けたものである。
(2) The second invention of the present application is directed to an apparatus for measuring a relative magnification of two pictures having similar characteristics, wherein a picture to be measured is a binary image represented by black pixels and white pixels. Image capturing means for capturing as line drawing data composed of an image, barycentric calculating means for calculating the barycentric position of the black pixel for the line drawing data captured by the image capturing means, and a predetermined angle Δθ interval around the barycentric position A plurality of radial rays are defined, and a contour pixel determining means for determining a black pixel located farthest from the center of gravity on each half line as a contour pixel is defined as a distance between the center of gravity position and each contour pixel. By defining the contour distance calculating means for calculating the contour distance, and defining the angle position of the half line on the horizontal axis and the contour distance obtained for the half line on the vertical axis, the angle position of the half line A graph showing the relationship with the contour distance is created, and a first graph obtained based on a first pattern to be measured is converted into a second graph obtained based on a second pattern to be measured. Is shifted in the horizontal axis direction by a predetermined shift amount, and the ratio between the vertical axis value of the first graph and the vertical axis value of the second graph on the same horizontal coordinate is obtained for a plurality of different horizontal coordinate positions, A variance calculation means for calculating the variance for the plurality of ratios obtained, and a plurality of different shift amounts are set, and the variance for each of the shift amounts is obtained by the variance calculation means. Magnification determining means for determining an average value of the ratios as a magnification of the first pattern with respect to the second pattern.

【0007】(3) 本願第3の発明は、上述の第1また
は第2の発明に係る測定装置において、分散計算手段で
は、1回目の計算により第1の分散を求めた後、この分
散に基づいて定められる所定のばらつきの範囲内にある
比の値のみを用いて2回目の計算を行い第2の分散を求
め、回転角度決定手段または倍率決定手段においては、
この第2の分散を用いた決定を行うようにしたものであ
る。
(3) The third invention of the present application is the measurement apparatus according to the first or second invention, wherein the variance calculating means obtains the first variance by the first calculation, and then calculates the first variance. A second variance is obtained by performing a second calculation using only the value of the ratio within a range of a predetermined variation determined based on the rotation angle, and the rotation angle determining unit or the magnification determining unit includes:
The determination using the second variance is performed.

【0008】[0008]

【作 用】本願発明は、特願平5−251125号明細
書に開示された基本発明についての改良発明である。こ
の基本発明では、各絵柄の輪郭線を構成する輪郭画素が
抽出され、絵柄の重心位置と各輪郭画素との距離である
輪郭距離が求められる。そして、2つの絵柄について求
めた各角度方向(重心位置から放射状に外側へ向かう複
数の方向)の輪郭距離に基づいて、これら2つの絵柄に
ついての倍率と回転角度とが求められる。
The present invention is an improvement over the basic invention disclosed in Japanese Patent Application No. 5-251125. In this basic invention, contour pixels forming the contour line of each picture are extracted, and a contour distance that is a distance between the position of the center of gravity of the picture and each contour pixel is obtained. Then, based on the contour distances in the respective angular directions (a plurality of directions radially outward from the position of the center of gravity) obtained for the two pictures, the magnification and the rotation angle for these two pictures are obtained.

【0009】本願発明は、各角度方向に関する輪郭距離
の情報を得たのち、2つの絵柄の倍率と回転角度とを精
度良く求める手法を開示するものである。いま、第1の
絵柄と、これをX倍して得られる相似形の第2の絵柄
と、について、それぞれ各角度方向に関する輪郭距離が
求まっていたとする。このとき、両絵柄の回転角度(向
き)が同じであれば、各角度位置において、後者の輪郭
距離は前者の輪郭距離のX倍になるはずである。別言す
れば、どの角度位置においても、両輪郭距離の比は常に
一定のXになるはずである。ところが、両絵柄の回転角
度(向き)にずれがあれば、絵柄が真円でない限り、両
輪郭距離の比は一定ではなくなり、各角度位置ごとにバ
ラバラの値になる。
The present invention discloses a method of obtaining the information on the contour distance in each angle direction and then accurately obtaining the magnification and the rotation angle of two pictures. Now, it is assumed that the contour distance in each angular direction has been determined for the first picture and the second picture of a similar shape obtained by multiplying the first picture by X. At this time, if the rotation angles (directions) of both pictures are the same, the contour distance of the latter should be X times the contour distance of the former at each angular position. In other words, the ratio of both contour distances should always be constant X at any angular position. However, if there is a deviation in the rotation angle (direction) of the two patterns, the ratio of the two contour distances will not be constant unless the pattern is a perfect circle, and will have different values for each angular position.

【0010】本願発明は、この点に着目して、両絵柄の
回転角度を求めるものである。すなわち、横軸に角度位
置を、縦軸に輪郭距離を、それぞれ定義することによっ
てグラフを作成し、測定対象となる第1の絵柄に基づい
て得られた第1のグラフを、測定対象となる第2の絵柄
に基づいて得られた第2のグラフに対して横軸方向に所
定のずれ量だけずらし、同一横座標上の第1のグラフの
縦軸値と第2のグラフの縦軸値との比をそれぞれ異なる
複数の横座標位置について求める。もし、所定のずれ量
だけずらしたことにより、両絵柄の向きが一致したとす
ると、そのときに得られる縦軸値の比は、常に一定の値
になるはずである。そこで、比の値の分散を求め、分散
が最も小さくなるずれ量を求めれば、このずれ量が両絵
柄相互の回転角度となる。また、このときの比の値(理
論的には一定であるが、実際にはばらつきがあるために
平均をとる)が両絵柄相互の倍率となる。
The present invention focuses on this point and obtains the rotation angle of both pictures. That is, a graph is created by defining the angle position on the horizontal axis and the contour distance on the vertical axis, and the first graph obtained based on the first pattern to be measured is the measurement target. The vertical axis value of the first graph and the vertical axis value of the second graph on the same abscissa are shifted by a predetermined amount in the horizontal axis direction with respect to the second graph obtained based on the second pattern. With respect to a plurality of different abscissa positions. If the directions of the two pictures coincide with each other by shifting by a predetermined shift amount, the ratio of the vertical axis values obtained at that time should always be a constant value. Therefore, if the variance of the ratio value is obtained and the amount of deviation that minimizes the variance is obtained, this amount of deviation becomes the rotation angle between the two pictures. Also, the value of the ratio at this time (which is theoretically constant but is actually averaged because there is variation) is the magnification between the two patterns.

【0011】[0011]

【実施例】以下、本発明を図示する実施例に基づいて詳
述する。図1は、本発明の一実施例に係る絵柄の倍率/
角度測定装置の基本構成を示すブロック図である。この
測定装置は、印刷原稿A上に描かれた第1の絵柄と、こ
の第1の絵柄の割付状態を示すために割付指定紙B上に
線画として描かれた第2の絵柄と、の相対的な倍率/角
度を測定する機能を有する。画像入力装置10は、印刷
原稿Aを走査して、ここに描かれた第1の絵柄を各画素
の濃度値を示す画像データとして入力する機能を有す
る。同様に、線画像入力装置20は、割付指定紙Bを走
査して、ここに描かれた第2の絵柄を各画素の濃度値を
示す線画像データとして入力する機能を有する。後述す
るように、この実施例では、印刷原稿Aとしてカラーの
ポジ写真を用いており、画像入力装置10は写真から第
1の絵柄を入力する処理を行う。これに対して、割付指
定紙Bに描かれた第2の絵柄は、第1の絵柄の割付態様
を示す線画であり、線画像入力装置20は、この線画を
入力する処理を行う。もちろん、実際には、同一のスキ
ャナ装置によって、画像入力装置10と線画像入力装置
20とを兼用させるようにしてもかまわない。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. FIG. 1 is a diagram showing a magnification / size of a picture according to an embodiment of the present invention.
FIG. 2 is a block diagram illustrating a basic configuration of the angle measuring device. The measuring device is configured to measure a relative position between a first pattern drawn on a print original A and a second pattern drawn as a line drawing on a layout designation sheet B to indicate a layout state of the first pattern. It has a function of measuring a typical magnification / angle. The image input device 10 has a function of scanning the print document A and inputting the first pattern drawn here as image data indicating the density value of each pixel. Similarly, the line image input device 20 has a function of scanning the layout designation paper B and inputting the second pattern drawn here as line image data indicating the density value of each pixel. As described later, in this embodiment, a color positive photograph is used as the print document A, and the image input device 10 performs a process of inputting a first pattern from the photograph. On the other hand, the second pattern drawn on the layout designation sheet B is a line drawing indicating the layout mode of the first pattern, and the line image input device 20 performs a process of inputting the line drawing. Of course, in practice, the image input device 10 and the line image input device 20 may be shared by the same scanner device.

【0012】コンピュータ100は、画像入力装置10
から入力した画像データおよび線画像入力装置20から
入力した線画像データを取り込み、これらのデータに後
述する種々の演算処理を行って、印刷原稿Aに描かれた
第1の絵柄と割付指定紙Bに描かれた第2の絵柄とにつ
いての相対的な倍率および回転角度を求める機能を有す
る。このコンピュータ100は、実際には、汎用のコン
ピュータに専用のソフトウエアを組み込んだものである
が、図1では説明の便宜上、5つの機能ブロックからな
る装置として表現してある。エッジ検出部110は、画
像入力装置10から入力した画像データについて、濃度
値が急激に変化するエッジ部分を検出するエッジ検出処
理を行うものである。この実施例で用いる印刷原稿A
は、写真原稿であるが、この写真原稿から得られた画像
データにエッジ検出処理を施すことにより、濃度値が急
激に変化するエッジ部分、すなわち、絵柄の境界線のみ
を抽出した線画像データが得られる。このようなエッジ
検出処理としては、たとえば、3×3のラプラシアンオ
ペレータを用いたマスク処理など種々の方法が公知であ
るため、ここでは詳しい説明は省略する。
The computer 100 includes an image input device 10
And the line image data input from the line image input device 20, and performs various arithmetic processing described later on these data to obtain a first pattern drawn on the print original A and the layout designation sheet B. Has a function of calculating a relative magnification and a rotation angle with respect to the second pattern drawn in the above. Although the computer 100 is actually a general-purpose computer with dedicated software incorporated therein, in FIG. 1, for convenience of description, the computer 100 is represented as an apparatus including five functional blocks. The edge detection unit 110 performs an edge detection process for detecting an edge portion where a density value changes rapidly with respect to image data input from the image input device 10. Print manuscript A used in this embodiment
Is a photographic original. By performing edge detection processing on image data obtained from the photographic original, an edge portion in which the density value changes rapidly, that is, line image data obtained by extracting only the boundary line of the picture is obtained. can get. As such an edge detection process, for example, various methods such as a mask process using a 3 × 3 Laplacian operator are known, and a detailed description thereof will be omitted.

【0013】二値化処理部120は、エッジ検出部11
0によってエッジ検出処理が施された線画像データ(印
刷原稿Aの絵柄)および線画像入力装置20によって入
力された線画像データ(割付指定紙Bの絵柄)に対し
て、二値化処理を行う機能を有する。たとえば、これら
の線画像データが、縦横に配列された各画素について0
〜255の濃度値を定義したものとして与えられた場
合、所定のしきい値(たとえば、濃度値128)以上の
濃度値をもつ画素を白画素、しきい値未満の濃度値をも
つ画素を黒画素、と定義することにより二値化処理が行
われる。ここでは、線画の線の部分を構成する画素を黒
画素、背景の部分を構成する画素を白画素と呼ぶことに
する。
The binarization processing section 120 includes an edge detection section 11
The binarization processing is performed on the line image data (the pattern of the print original A) subjected to the edge detection processing by 0 and the line image data (the pattern of the layout designation paper B) input by the line image input device 20. Has functions. For example, the line image data is set to 0 for each pixel arranged in the vertical and horizontal directions.
When a density value of ~ 255 is defined, a pixel having a density value equal to or higher than a predetermined threshold value (for example, density value 128) is a white pixel, and a pixel having a density value lower than the threshold value is black. Binarization processing is performed by defining pixels. Here, the pixels forming the line portion of the line drawing are called black pixels, and the pixels forming the background portion are called white pixels.

【0014】輪郭線抽出部130は、二値化処理部12
0で二値化された線画像データについて、輪郭線を抽出
する機能を有し、倍率/角度演算部140は、抽出され
た輪郭線に基づいて2つの絵柄の倍率および角度を演算
する機能を有する。これら各部における処理は、本発明
における技術思想の中枢をなすものであり、以下、具体
例に即して詳述することにする。
The contour line extraction unit 130 includes a binarization processing unit 12
The line image data binarized with 0 has a function of extracting an outline, and the magnification / angle calculation unit 140 has a function of calculating the magnification and angle of two patterns based on the extracted outline. Have. The processing in each of these units is the center of the technical idea of the present invention, and will be described in detail below with reference to specific examples.

【0015】ここでは、より具体的に、図2(a) に示す
ような印刷原稿Aと、図2(b) に示すような割付指定紙
Bと、を用いた例について以下の説明を行うことにす
る。印刷原稿Aは、この実施例ではカラーのポジ写真で
あり、絵柄aが写っている。一方、割付指定紙Bは、実
際の印刷物と同じ大きさの紙であり、絵柄aの実際の割
付状態を示すための絵柄bが描かれている。図に示すよ
うに、通常、絵柄aと絵柄bとの相対倍率は異なり、向
き(相対的な回転角度)も異なる。図2の例では、絵柄
bは絵柄aを拡大したものとなっている。また、印刷原
稿Aの下辺A1および割付指定紙Bの下辺B1をそれぞ
れ基準辺と定義すると、絵柄bの下辺B2は基準辺B1
に平行(すなわち、回転角度は0)であるが、絵柄aの
下辺A2は基準辺A1に対して回転角度αだけ傾斜して
いる。本発明の目的は、絵柄aと絵柄bとの相対倍率お
よび相対角度(角度α)を自動的に求めることにある。
従来は、印刷原稿Aを投影機にセットし、絵柄aを割付
指定紙B上に投影し、絵柄aの投影像と絵柄bとが一致
するように、投影倍率と印刷原稿Aの向きを調節する処
理を手作業で行い、倍率および角度αを測定していた。
しかしながら、このような作業は負担が大きく、ミスも
発生しやすいことは既に述べたとおりである。
Here, more specifically, an example using a print original A as shown in FIG. 2A and an assignment designation sheet B as shown in FIG. 2B will be described below. I will. The printed document A is a color positive photograph in this embodiment, and a pattern a is shown. On the other hand, the layout designation paper B is the same size paper as the actual printed matter, and has a pattern b for indicating the actual layout state of the pattern a. As shown in the figure, usually, the relative magnification of the picture a and the picture b are different, and the directions (relative rotation angles) are also different. In the example of FIG. 2, the pattern b is an enlarged version of the pattern a. If the lower side A1 of the print document A and the lower side B1 of the layout designation paper B are defined as reference sides, respectively, the lower side B2 of the pattern b is defined as the reference side B1.
(That is, the rotation angle is 0), but the lower side A2 of the pattern a is inclined by the rotation angle α with respect to the reference side A1. An object of the present invention is to automatically determine a relative magnification and a relative angle (angle α) between a picture a and a picture b.
Conventionally, a print original A is set on a projector, a picture a is projected on an allocation designation sheet B, and a projection magnification and a direction of the print original A are adjusted so that a projected image of the picture a and a picture b coincide. Was performed manually, and the magnification and the angle α were measured.
However, as described above, such a work is heavy and an error is likely to occur.

【0016】図1に示す測定装置を用いれば、倍率およ
び角度の測定を、次のような簡単な作業で行うことがで
きるようになる。まず、作業者は、印刷原稿A上の絵柄
aを画像入力装置10(スキャナ装置)によって入力す
る。このとき、印刷原稿Aの向きは、たとえば、基準辺
A1を基準にとればよい(別言すれば、XY座標系の画
像データとして入力するのであれば、基準辺A1をX軸
方向とした入力を行えばよい)。続いて、作業者は、割
付指定紙B上の絵柄bを線画像入力装置20(スキャナ
装置)によって入力する。このとき、割付指定紙Bの向
きは、たとえば、基準辺B1を基準にとればよい(別言
すれば、XY座標系の画像データとして入力するのであ
れば、基準辺B1をX軸方向とした入力を行えばよ
い)。作業者の行う作業は、これですべて完了である。
あとは、コンピュータ100によって、倍率および角度
が自動的に求められる。以下、コンピュータ100内の
処理について詳細に説明する。
The use of the measuring apparatus shown in FIG. 1 makes it possible to measure the magnification and the angle by the following simple operations. First, the operator inputs a picture a on the print document A by the image input device 10 (scanner device). At this time, the orientation of the print document A may be based on, for example, the reference side A1 (in other words, if inputting as image data in the XY coordinate system, the input is performed with the reference side A1 as the X-axis direction). Should be done). Subsequently, the operator inputs the picture b on the layout designation paper B by the line image input device 20 (scanner device). At this time, the orientation of the layout designation paper B may be, for example, based on the reference side B1 (in other words, if input as image data in the XY coordinate system, the reference side B1 is set in the X-axis direction). Just enter it). The work performed by the worker is now completed.
After that, the computer 100 automatically determines the magnification and the angle. Hereinafter, processing in the computer 100 will be described in detail.

【0017】コンピュータ100に取り込まれた画像デ
ータは、二値化処理部120において二値化処理され
る。ただし、印刷原稿A上の絵柄aについての画像デー
タに対しては、まず、エッジ検出部110においてエッ
ジ検出処理が行われる。これは、図2に示すように、割
付指定紙B上の絵柄bが線画であるのに対し、印刷原稿
A上の絵柄aはいわゆる写真調の画像であるためであ
る。エッジ検出処理を行うことにより、この写真調の画
像から境界線の部分だけを抽出した線画が得られること
になる。二値化処理部120によって二値化処理を施す
と、絵柄a,bともに黒画素と白画素との2種類の画素
から構成される線画になる。図3は、こうして得られた
線画の一部を拡大して示したものである。コンピュータ
内では、各画素は「0」または「1」として表現される
ことになるが、本明細書では、上述したように、線画の
線の部分を構成する画素を黒画素、背景の部分を構成す
る画素を白画素と呼ぶ。図3に示す例では、ハッチング
を施した正方形が黒画素、白抜きの正方形が白画素とな
る。
The image data captured by the computer 100 is subjected to a binarization process in a binarization processing section 120. However, first, the edge detection unit 110 performs an edge detection process on the image data of the picture a on the print document A. This is because, as shown in FIG. 2, the design b on the layout designation paper B is a line drawing, whereas the design a on the print original A is a so-called photographic image. By performing the edge detection processing, a line image in which only the boundary line portion is extracted from the photograph-like image can be obtained. When the binarization process is performed by the binarization processing unit 120, each of the patterns a and b becomes a line drawing composed of two types of pixels, a black pixel and a white pixel. FIG. 3 is an enlarged view of a part of the line drawing thus obtained. In the computer, each pixel is represented as “0” or “1”. In this specification, as described above, a pixel constituting a line portion of a line drawing is a black pixel, and a background portion is a pixel. The constituent pixels are called white pixels. In the example shown in FIG. 3, hatched squares are black pixels, and white squares are white pixels.

【0018】二値化処理が施された線画データに対して
は、輪郭線抽出部130において輪郭線抽出処理が行わ
れる。ここでは、この輪郭線抽出処理の理解を容易にす
るため、図4に示すように、輪郭線抽出部130を更に
4つの機能ブロック(重心演算部131、輪郭画素決定
部132、輪郭距離演算部133、輪郭修正部134)
に分けて考える。
Contour line extraction processing is performed on the line drawing data that has been subjected to the binarization processing in the contour line extraction unit 130. Here, in order to facilitate understanding of this contour line extraction processing, as shown in FIG. 4, the contour line extraction unit 130 is further divided into four functional blocks (a centroid calculation unit 131, a contour pixel determination unit 132, and a contour distance calculation unit). 133, contour correction unit 134)
Think separately.

【0019】重心演算部131は、与えられた線画デー
タについて、黒画素の重心位置を演算する機能を有す
る。たとえば、各画素がXY座標系上でj行i列に配列
されており、各画素の濃度値f(i,j)が線画データ
として与えられている場合を考える。濃度値f(i,
j)は「0」または「1」のいずれかである。ここで、
画像のモーメントM(p,q)なるものを、 M(p,q)=Σi,j f(i,j)・i・j と定義すれば、重心の位置座標(X,Y)は、 X=M(1,0)/M(0,0) Y=M(0,1)/M(0,0) で与えられる。重心演算部131は、このような演算を
行って、重心Gの位置を求める機能を有する。たとえ
ば、絵柄aの線画データについては、図5に示すような
位置に黒画素の重心Gが求まる。
The center-of-gravity calculating section 131 has a function of calculating the position of the center of gravity of the black pixel for the given line drawing data. For example, consider a case where each pixel is arranged in j rows and i columns on an XY coordinate system, and the density value f (i, j) of each pixel is given as line drawing data. The density value f (i,
j) is either “0” or “1”. here,
Moment M (p, q) of the image becomes what, M (p, q) = Σ i, j f (i, j) · i If p · j q and definition, the position coordinates of the center of gravity (X G, Y G ) is given by X G = M (1,0) / M (0,0) Y G = M (0,1) / M (0,0) The center-of-gravity calculation unit 131 has a function of performing such a calculation to determine the position of the center of gravity G. For example, for the line drawing data of the picture a, the barycenter G of the black pixel is obtained at a position as shown in FIG.

【0020】輪郭画素決定部132は、こうして求めら
れた重心Gを用いて、輪郭画素を決定する機能を有す
る。いま、図6に示すように、絵柄aについて求められ
た重心Gを端点として、基準辺A1に平行な方向に半直
線Lを定義する。そして、この半直線Lの方向を角
度の基準0°とし、以下、反時計回りに角度を計ること
にし、360°までの角度を定義することにする。ここ
で、重心Gを端点として、任意の角度位置θに配置され
た半直線Lθを定義し、この半直線Lθ上において重心
Gから最も離れた位置にある黒画素を輪郭画素と決定す
るのである。図6の例では、半直線Lθ上には、2つの
黒画素Q1,Q2が存在するが、このうち重心Gから遠
い方の黒画素Q2が輪郭画素となる。線の太さが複数画
素分あるような場合は、図6に点Q2として示す位置に
複数の黒画素が含まれていることになる。この場合は、
その中で最も重心Gから遠い位置にある黒画素が輪郭画
素となる。たとえば、図7に示す例では、線の太さが約
3画素分あり、半直線Lθ上には、隣接して3つの黒画
素P1,P2,P3が存在するが、この中で最も遠い位
置にある黒画素P3が輪郭画素になる。
The contour pixel determining section 132 has a function of determining a contour pixel using the center of gravity G thus obtained. Now, as shown in FIG. 6, the center of gravity G obtained for pattern a as the end point, to define a semi-straight line L 0 in the direction parallel to the reference side A1. The direction of the half-line L 0 as a reference 0 ° angle, below, and to measure the angle counterclockwise, to defining an angle of up to 360 °. Here, with the center of gravity G as an end point, a half line L θ arranged at an arbitrary angular position θ is defined, and a black pixel at the position farthest from the center of gravity G on this half line L θ is determined as a contour pixel. It is. In the example of FIG. 6, on the half-line L theta is two black pixels Q1, Q2 exists, black pixel Q2 of these farther from the center of gravity G is the contour pixel. In the case where the thickness of the line is equal to a plurality of pixels, a plurality of black pixels are included in the position indicated by the point Q2 in FIG. in this case,
Among them, the black pixel farthest from the center of gravity G is the contour pixel. For example, in the example shown in FIG. 7, there are about 3 pixels line thickness, on a semi-straight line L theta is three black pixels adjacent P1, P2, P3 is present, the furthest in this The black pixel P3 at the position becomes a contour pixel.

【0021】図6において、角度位置θを所定角度Δθ
だけ変化させてゆくと、いずれも重心Gを端点とした半
直線が得られる。たとえば、Δθ=1°とすれば、半直
線L,L,…,L360というように、重心Gを中
心として、所定角度1°間隔で放射状に360本の半直
線が定義できる。そして、各半直線のそれぞれについ
て、輪郭画素が決定されることになる。こうして決定さ
れた360個の輪郭画素の集合によって輪郭線を構成す
れば、たとえば、図8に示すような輪郭線が得られるこ
とになる。なお、厳密な意味では、角度Δθを無限小に
設定しなければ完全な輪郭線は得られず、Δθ=1°程
度の粗さでは、輪郭線というよりは「大まかな外形位置
を示す点の集合」というべきものであるが、本明細書で
は便宜上、このような粗いものであっても輪郭線と呼ぶ
ことにする。図8では、任意の角度位置θにおける半直
線Lθと、この半直線Lθ上の輪郭画素Pθが示されて
いる。図6に示すもとの線画と比較すると、点Q1を通
る線分がなくなっていることがわかる。このように、輪
郭画素決定部132によって抽出された輪郭画素は、絵
柄の外側の輪郭だけを示すものとなる。なお、図7に示
す例のように、線の太さが複数画素分あるような場合
は、得られる輪郭線は、図9に示すように、ほぼ1画素
分の太さの線になる。
In FIG. 6, the angle position θ is set to a predetermined angle Δθ.
In each case, a semi-straight line having the center of gravity G as an end point is obtained. For example, if Δθ = 1 °, 360 half-lines can be defined radially at a predetermined angle of 1 ° about the center of gravity G, such as half-lines L 1 , L 2 ,..., L 360 . Then, an outline pixel is determined for each of the half lines. If a contour is constituted by a set of 360 contour pixels determined in this way, for example, a contour as shown in FIG. 8 will be obtained. In a strict sense, a complete outline cannot be obtained unless the angle Δθ is set to infinity. In the case of a roughness of about Δθ = 1 °, rather than an outline, “ Although it should be called a "set," in the present specification, such a rough one will be referred to as a contour line for convenience. FIG. 8 shows a half line L θ at an arbitrary angle position θ and a contour pixel P θ on the half line L θ . Compared to the original line drawing shown in FIG. 6, it can be seen that there is no line segment passing through the point Q1. As described above, the contour pixels extracted by the contour pixel determining unit 132 indicate only the contour outside the picture. In the case where the line has a thickness of a plurality of pixels as in the example shown in FIG. 7, the obtained contour is a line having a thickness of substantially one pixel as shown in FIG.

【0022】輪郭距離演算部133は、図8に示すよう
に、輪郭画素Pθと、重心Gとの距離rθを求める機能
を有する。前述のように、所定角度1°間隔で放射状に
360本の半直線を定義したとすると、各半直線のそれ
ぞれについて、r,r,…,r360といった輪郭
距離が求まることになる。
As shown in FIG. 8, the contour distance calculation unit 133 has a function of calculating a distance r θ between the contour pixel P θ and the center of gravity G. As described above, if 360 half-lines are defined radially at a predetermined angle of 1 °, a contour distance such as r 1 , r 2 ,..., R 360 is obtained for each half-line.

【0023】輪郭修正部134は、上述のようにして求
められた輪郭線に対する平滑処理を行うことにより、輪
郭画素の位置を修正する機能を有する。この輪郭修正機
能は、次のような場合に有効である。たとえば、図10
に示すように、本来の絵柄から得られる画像データに、
ノイズ画素P4が混入した場合を考える。このノイズ画
素P4が発生する要因としては、スキャナ装置で入力す
るときのノイズの混入や、印刷原稿Aの表面への塵埃の
付着など、種々のものが考えられる。さて、輪郭画素決
定部132は、前述したように、各角度位置で定義した
半直線Lθ上に存在する画素のうち、重心Gから最も遠
い画素を輪郭画素として決定する。したがって、図10
に示すようなパターンの場合、ノイズ画素P4が輪郭画
素に選ばれる可能性がある。このような場合、得られる
輪郭線は、図11に示すようなものとなり、輪郭線とし
ては欠陥を含んだものとなる。輪郭修正部134は、こ
のような輪郭線の欠陥を修正する処理を行う。すなわ
ち、輪郭線の平滑化を行うことにより、図11における
輪郭画素P4の位置を、画素P5の位置に修正すること
ができる。このような平滑化に基づく輪郭線の修正処理
としては、たとえばメディアンフィルタを用いた方法な
ど種々の方法が公知であるため、ここでは詳しい説明は
省略する。
The contour correcting section 134 has a function of correcting the position of a contour pixel by performing a smoothing process on the contour line obtained as described above. This contour correction function is effective in the following cases. For example, FIG.
As shown in the image data obtained from the original pattern,
Consider a case where the noise pixel P4 is mixed. Various factors can be considered as a cause of the generation of the noise pixel P4, such as mixing of noise at the time of input by the scanner device and adhesion of dust to the surface of the print document A. Now, the contour pixel determining unit 132, as described above, among the pixels existing on the half line L theta defined at each angular position, to determine the farthest pixel as a contour pixel from the center of gravity G. Therefore, FIG.
In the case of the pattern shown in (1), the noise pixel P4 may be selected as the contour pixel. In such a case, the contour obtained is as shown in FIG. 11, and the contour includes a defect. The contour correcting unit 134 performs a process of correcting such a contour defect. That is, by smoothing the outline, the position of the outline pixel P4 in FIG. 11 can be corrected to the position of the pixel P5. Since various methods such as a method using a median filter are known as the contour correction processing based on such smoothing, a detailed description thereof is omitted here.

【0024】以上、輪郭線抽出部130を4つの機能ブ
ロックに分け、各機能ブロックの個々の機能を説明した
が、続いて、この輪郭線抽出部130全体としての動作
を、図12の流れ図に基づいて説明する。まず、ステッ
プS1において、与えられた線画データについての重心
演算を行う。すなわち、重心演算部131によって重心
Gの位置が求められる。続くステップS2〜S7は、輪
郭画素決定部132および輪郭距離演算部133で行わ
れる処理である。すなわち、ステップS2において、角
度パラメータθが初期値θ=0°に設定され、次のステ
ップS3において、θが所定角度Δθだけ増加される。
そして、ステップS4で半直線Lθが定義され、ステッ
プS5において輪郭画素Pθが決定される。更に、ステ
ップS6において、輪郭距離rθが演算される。以上の
手順が、ステップS7において、θ≧360°となるま
で繰り返される。したがって、たとえば、Δθ=1°と
設定すれば、パラメータθが、1°,2°,…,360
°と更新されながら、同じ手順が360回繰り返される
ことになる。この繰り返し手順により、輪郭距離r
,…,r360が求まる。
The outline extracting unit 130 has been divided into four functional blocks, and the individual functions of each functional block have been described. Next, the operation of the outline extracting unit 130 as a whole will be described with reference to the flowchart of FIG. It will be described based on the following. First, in step S1, the center of gravity of the given line drawing data is calculated. That is, the position of the center of gravity G is obtained by the center of gravity calculation unit 131. Subsequent steps S2 to S7 are processes performed by the contour pixel determination unit 132 and the contour distance calculation unit 133. That is, in step S2, the angle parameter θ is set to the initial value θ = 0 °, and in the next step S3, θ is increased by the predetermined angle Δθ.
Then, the half line is defined in step S4, and the contour pixel is determined in step S5. Further, in step S6, the contour distance is calculated. The above procedure is repeated in step S7 until θ ≧ 360 °. Therefore, for example, if Δθ = 1 ° is set, the parameter θ becomes 1 °, 2 °,.
The same procedure will be repeated 360 times while being updated to °. By this repetition procedure, the contour distances r 1 ,
r 2 ,..., r 360 are obtained.

【0025】続くステップS8では、輪郭修正処理が行
われる。すなわち、輪郭線に欠陥がある場合には、輪郭
修正部134によって輪郭線の平滑化に基づく修正が行
われる。そして、ステップS9において、新しい重心が
演算される。前述したステップS1における重心演算
は、輪郭画素を決定する前のもとの線画(たとえば、図
5に示すような線画)についての重心であるが、このス
テップS9における重心演算は、輪郭画素についての重
心である。そして、ステップS10において、旧重心
(ステップS1で求めた重心)と新重心(ステップS9
で求めた重心)とのずれが、予め設定された許容範囲内
であるか否かが判断される。ずれが許容範囲内であれ
ば、そのまま輪郭線抽出部130による作業は終了す
る。この場合、旧重心に基づいて得られた輪郭距離
,r,…,r360がそのまま次の演算処理(倍
率/角度演算部140における処理)で用いられること
になる。ずれが許容範囲を越えている場合には、再びス
テップS2からの手順をやり直すことになる。ただし、
このやり直しの対象は、ステップS8において輪郭修正
処理を受けた輪郭線の画像である。図11に示す画素P
4のようなノイズ成分が多数含まれていた場合に、ステ
ップS8における修正処理を行うと、重心位置が著しく
変わる場合がある。このような場合は、ステップS10
からステップS2へと戻り、正しい重心に基づいて輪郭
距離rθを再度求める処理が行われることになる。
In the following step S8, a contour correction process is performed. That is, when there is a defect in the outline, the outline correction unit 134 performs correction based on the smoothing of the outline. Then, in step S9, a new center of gravity is calculated. The center of gravity calculation in step S1 described above is the center of gravity of the original line drawing (for example, the line drawing as shown in FIG. 5) before determining the contour pixels, but the center of gravity calculation in step S9 is The center of gravity. Then, in step S10, the old center of gravity (the center of gravity obtained in step S1) and the new center of gravity (step S9)
It is determined whether or not the deviation from the center of gravity obtained in (1) is within a preset allowable range. If the deviation is within the allowable range, the operation by the contour line extraction unit 130 ends as it is. In this case, the contour distances r 1 , r 2 ,..., R 360 obtained based on the old center of gravity are used as they are in the next calculation processing (processing in the magnification / angle calculation unit 140). If the deviation exceeds the allowable range, the procedure from step S2 is performed again. However,
The target of this redo is the image of the contour line that has been subjected to the contour correction processing in step S8. Pixel P shown in FIG.
If a large number of noise components such as No. 4 are included and the correction process is performed in step S8, the position of the center of gravity may change significantly. In such a case, step S10
Then, the process returns to step S2, and the process of obtaining the contour distance rθ again based on the correct center of gravity is performed.

【0026】さて、図1に示す装置において、輪郭線抽
出部130によって輪郭距離r,r,…,r360
が得られることは上述したとおりである。しかも、この
輪郭距離を求める処理は、図2(a) に示す印刷原稿A上
の第1の絵柄aに基づく線画を対象として行われるとと
もに、図2(b) に示す割付指定紙B上の第2の絵柄bに
基づく線画を対象としても行われる。ここでは、前者を
対象とした処理で得られた輪郭距離をraθ(ra
ra,…,ra360)と呼び、後者を対象とした処
理で得られた輪郭距離をrbθ(rb,rb,…,
rb360)と呼ぶことにする。図13は、横軸に角度
位置θを、縦軸にその角度位置について得られた輪郭距
離raθを、それぞれ定義することによって得られたグ
ラフである。図14は、輪郭距離rbθについて同様に
得られたグラフである。別言すれば、図13は図2(a)
に示す絵柄aに基づいて得られたグラフであり、図14
は図2(b) に示す絵柄bに基づいて得られたグラフであ
る。
Now, in the apparatus shown in FIG. 1, the contour line extracting section 130 performs the contour distances r 1 , r 2 ,.
Is obtained as described above. In addition, the process of obtaining the contour distance is performed for a line drawing based on the first pattern a on the print document A shown in FIG. 2A, and also on the layout designation paper B shown in FIG. This is also performed for a line drawing based on the second pattern b. Here, the contour distance obtained by the former process is represented by ra θ (ra 1 ,
ra 2, ..., ra 360) and calls, rb contour distance obtained by the processing for the latter θ (rb 1, rb 2, ...,
rb 360 ). FIG. 13 is a graph obtained by defining the angular position θ on the horizontal axis and the contour distance ra θ obtained for the angular position on the vertical axis. Figure 14 is a graph obtained in the same manner for the contour distance rb theta. In other words, FIG. 13 shows FIG.
14 is a graph obtained based on a pattern a shown in FIG.
Is a graph obtained based on the picture b shown in FIG.

【0027】ここで、両グラフの特徴を比べると、ほぼ
同じパターンが現れていることがわかる。これは、そも
そも絵柄bが、絵柄aを割り付けるべき位置、大きさ、
角度、を示す線画として描かれたものであるため、絵柄
aと絵柄bとは近似した特徴をもっているためである。
作業者が絵柄bを理想的に作図したとすれば、両絵柄は
相似形となり、大きさ(倍率)と向き(角度)のみを異
にする。そこで、倍率と角度の差が、両グラフ上でどの
ように現れるかを検討する。
Here, when the characteristics of both graphs are compared, it can be seen that almost the same pattern appears. This is because the position and size of the pattern b to which the pattern a should be allocated in the first place,
This is because the pattern a and the pattern b have similar characteristics because they are drawn as a line drawing indicating an angle.
Assuming that the operator has ideally drawn the pattern b, the two patterns have similar shapes and differ only in size (magnification) and direction (angle). Therefore, how the difference between the magnification and the angle appears on both graphs will be examined.

【0028】まず、倍率は、輪郭距離の比として現れる
ということが理解できよう。両絵柄が理想的な相似形で
あると考えれば、重心Gの位置も相似となる。したがっ
て、この重心Gと輪郭線との距離として定義された輪郭
距離には、両絵柄の相似比に基づく相違が現れるはずで
ある。たとえば、絵柄bが絵柄aの1.5倍であったと
すると、それぞれ対応する輪郭距離も1.5倍になると
考えてよい。したがって、図13に示すパターンを上下
方向に1.5倍したものが、図14に示すパターンにな
るはずである。結局、2つの絵柄の向きが合っていれ
ば、両グラフにおける各角度位置における輪郭距離の
比、rbθ/raθを演算すれば、これが求める両絵柄
の相対的な倍率となる。
First, it can be seen that the magnification appears as a ratio of the contour distances. Assuming that both patterns have an ideal similar shape, the position of the center of gravity G is also similar. Therefore, a difference based on the similarity ratio between the two patterns should appear in the contour distance defined as the distance between the center of gravity G and the contour line. For example, if the pattern b is 1.5 times the pattern a, the corresponding contour distance may be considered to be 1.5 times. Therefore, what is obtained by multiplying the pattern shown in FIG. 13 in the vertical direction by 1.5 times should be the pattern shown in FIG. After all, if there are two of the picture orientation, the ratio of the contour distance at each angular position in each graph, if calculating the rb theta / ra theta, the both the pattern of the relative magnification this finding.

【0029】一方、角度は、両グラフの位相差として現
れるということが理解できよう。図2において、絵柄b
に着目すれば、これに角度−αだけ回転を加えたもの
が、絵柄aに相当することがわかる。これは、両グラフ
の位相差として現れている。すなわち、図14に示す絵
柄bのグラフ(以下、グラフrbθと呼ぶ)に着目すれ
ば、このグラフrbθを角度−αだけ位相変位させてず
らしたものが、図13に示す絵柄aのグラフ(以下、グ
ラフraθと呼ぶ)に相当する。そこで、グラフrbθ
を横軸方向に所定のずれ量だけずらし、各同一横座標上
において両グラフの特徴が重なるか否かを調べてゆけ
ば、特徴が重なったときのずれ量が両グラフの位相差、
すなわち、求める両絵柄の相対的な回転角度となる。
On the other hand, it can be understood that the angle appears as a phase difference between the two graphs. In FIG. 2, the pattern b
Paying attention to, it can be understood that a rotation obtained by adding an angle −α to this corresponds to the pattern a. This appears as a phase difference between the two graphs. That is, pattern b in the graph (hereinafter, referred to as a graph rb theta) shown in FIG. 14 paying attention to, that shifting the graph rb theta by only the phase displacement angle -α is a graph of a picture a shown in FIG. 13 (Hereinafter, referred to as a graph ra θ ). Therefore, the graph rb θ
Is shifted in the horizontal axis direction by a predetermined shift amount, and if it is checked whether or not the features of both graphs overlap on the same abscissa, the shift amount when the features overlap is the phase difference between the two graphs.
That is, it is the relative rotation angle between the two pictures to be obtained.

【0030】これを図15および図16に示す具体例に
即して説明しよう。いま、グラフraθとグラフrbθ
とを同一の座標系上に重ねてみる。このとき、両グラフ
の位相差をいろいろと変えてみる。別言すれば、一方の
グラフを横軸方向に所定のずれ量だけずらして配置して
みる。この場合、ずれ量に応じて、両グラフの重なり具
合は変化する。たとえば、図15のような重なり具合に
なる場合もあるであろうし、図16のような重なり具合
になる場合もあるであろう。たまたま、図15では、両
グラフの特徴が横軸方向に関して重なっていることがわ
かる。このように、グラフの特徴が重なるような状態に
もってゆくためのずれ量が、両グラフの位相差、すなわ
ち、求める両絵柄の相対的な回転角度となる。この特定
のずれ量を求めるには、ずれ量を1°,2°,3°,…
と設定して両グラフの特徴の重なり具合を調べてゆけば
よい。
This will be described with reference to specific examples shown in FIGS. Now, the graph ra θ and the graph rb θ
Are superimposed on the same coordinate system. At this time, various changes are made to the phase difference between the two graphs. In other words, one of the graphs is shifted in the horizontal axis direction by a predetermined shift amount. In this case, the degree of overlap between the two graphs changes according to the shift amount. For example, the overlap may be as shown in FIG. 15 or the overlap may be as shown in FIG. As can be seen from FIG. 15, the characteristics of both graphs overlap in the horizontal axis direction. In this manner, the amount of shift for bringing the characteristics of the graphs into an overlapping state is the phase difference between the two graphs, that is, the relative rotation angle between the two pictures to be obtained. In order to obtain this specific shift amount, the shift amount is set to 1 °, 2 °, 3 °,.
Then, the degree of overlap between the characteristics of the two graphs may be checked.

【0031】本発明の要点は、両グラフの特徴の重なり
具合の判断に、輪郭距離比の分散値を用いるようにした
点にある。この方法を、図15および図16に基づいて
説明しよう。いま、図15に示すように、グラフraθ
とグラフrbθとの特徴が、横軸方向に関してピタリと
重なった状態を考えてみる。この場合、ある特定の角度
位置における輪郭距離の比(rbθ/raθ)を求めて
みると、どの角度位置においても、この比の値はほぼ一
定であることが理解できよう。図15に示す例では、9
0°,180°,270°の各角度位置における比の値
が、いずれも1.5であることが示されているが、他の
任意の角度位置においても、比の値はやはり1.5にな
る。もっとも、実際にはある程度のバラツキが生じるこ
とになるが、それでも各角度位置における比の値はほぼ
一定になるはずである。これに対して、図16に示すよ
うに、グラフraθとグラフrbθとの特徴が、横軸方
向に関してずれている状態を考えてみる。この場合に
も、ある特定の角度位置における輪郭距離の比(rbθ
/raθ)を求めてみると、この比の値は角度位置によ
って様々であることがわかる。図16に示す具体例で
は、90°,180°,270°の各角度位置における
比の値は、それぞれ、1.0,2.6,2.1となって
いる。ここで、この複数の角度位置における輪郭距離比
の分散を求めてみれば、図15に示すように両グラフの
特徴がピタリと重なった状態では、分散は非常に小さく
なるが、図16に示すように両グラフの特徴がずれてい
る状態では、分散は大きくなることがわかる。したがっ
て、あるずれ量を設定して両グラフを重ね、その状態で
の各角度位置における輪郭距離比の分散を求めれば、設
定したずれ量によって両グラフの特徴が重なったか否か
を判断することができる。本発明は、このような原理に
よって、両グラフの特徴を重ねることができるずれ量、
すなわち、両絵柄の相対的な回転角度を求めるのであ
る。なお、両絵柄の相対的な倍率は、両グラフの特徴が
重なった状態における輪郭距離比として求められる。具
体的には、図15のような状態における輪郭距離比1.
5(実際にはバラツキが生じるので平均値をとる)が求
める倍率となる。
The gist of the present invention is that the variance value of the contour distance ratio is used to determine the degree of overlap between the features of the two graphs. This method will be described with reference to FIGS. Now, as shown in FIG. 15, graph ra theta
Wherein the graph rb theta and is, consider the overlapping state somewhere south respect horizontal axis. In this case, when we seek the ratio of the contour distance in a certain angular position (rb θ / ra θ), at any angular position, the value of this ratio will be appreciated that substantially constant. In the example shown in FIG.
It is shown that the value of the ratio at each of the 0 °, 180 °, and 270 ° angular positions is 1.5, but the value of the ratio is also 1.5 at any other angular position. become. Although a certain degree of variation actually occurs, the value of the ratio at each angular position should be substantially constant. On the other hand, as shown in FIG. 16, let us consider a state in which the characteristics of the graphs ra θ and rb θ are shifted in the horizontal axis direction. Also in this case, the ratio (rb θ) of the contour distances at a certain specific angular position
/ Ra θ ), it can be seen that the value of this ratio varies depending on the angular position. In the specific example shown in FIG. 16, the ratio values at the respective angular positions of 90 °, 180 °, and 270 ° are 1.0, 2.6, and 2.1, respectively. Here, when the variance of the contour distance ratio at the plurality of angular positions is obtained, the variance becomes very small when the characteristics of both graphs overlap perfectly as shown in FIG. 15, but are shown in FIG. Thus, it can be seen that the variance is large when the characteristics of both graphs are shifted. Therefore, if a certain amount of deviation is set and both graphs are overlapped, and the variance of the contour distance ratio at each angular position in that state is obtained, it is possible to determine whether or not the characteristics of both graphs are overlapped by the set amount of deviation. it can. The present invention is based on such a principle, the amount of deviation that can overlap the characteristics of both graphs,
That is, the relative rotation angle between the two patterns is obtained. Note that the relative magnification of the two patterns is obtained as the contour distance ratio in a state where the features of both graphs overlap. Specifically, the contour distance ratio of 1. in the state as shown in FIG.
5 (actually, an average value is taken because there is variation) is the desired magnification.

【0032】倍率/角度演算部140は、こうした原理
に基づいて、倍率および角度の演算を行う。この倍率/
角度演算部140は、機能上、分散計算部141と倍率
/角度決定部142とに分けることができる。分散計算
部141は、第1の絵柄について求めたグラフra
θと、第2の絵柄について求めたグラフrbθとを、所
定のずれ量だけずらし、同一横座標上のグラフraθ
縦軸値とグラフrbθの縦軸値との比をそれぞれ異なる
複数の横座標位置について求め、求めた複数の比につい
ての分散を計算する機能を有する。また、倍率/角度決
定部142は、分散計算部に対して異なる複数のずれ量
を設定し、それぞれのずれ量ごとの分散を計算結果とし
て受け取り、最も分散が小さくなるずれ量を、2つの絵
柄の回転角度と決定し、このずれ量について得られた比
の平均値を、2つの絵柄の倍率として決定する機能を有
する。
The magnification / angle calculator 140 calculates the magnification and the angle based on such a principle. This magnification /
The angle calculation unit 140 can be functionally divided into a variance calculation unit 141 and a magnification / angle determination unit 142. The variance calculator 141 calculates the graph ra obtained for the first pattern.
theta and, a graph rb theta obtained for the second pattern, shifted by a predetermined shift amount, a plurality of different ratios respectively between the vertical axis value and the vertical axis values of the graph rb theta graphs ra theta on the same abscissa Has a function of calculating the abscissa position of, and calculating the variance of the obtained ratios. Further, the magnification / angle determination unit 142 sets a plurality of different shift amounts for the variance calculation unit, receives the variance for each of the shift amounts as a calculation result, and determines the shift amount that minimizes the variance by two picture patterns. And the function of determining the average value of the ratio obtained for the amount of deviation as the magnification of the two pictures.

【0033】続いて、この倍率/角度演算部140にお
ける演算を、より具体的に説明する。まず、倍率/角度
決定部142は、所定のずれ量jを設定し、このずれ量
jを分散計算部141に与えて分散の計算を行わせる。
分散計算部141は、与えられたずれ量jについて、 r(i,j)=rb((i+j)modM)/ra(i) なる式で現される輪郭距離比r(i,j)を求める。こ
こで、ra(i)は、i番目の輪郭距離raθの値であ
り、rb((i+j)modM)は、((i+j)mo
dM)番目の輪郭距離rbθの値である。また、Mは、
輪郭距離値の数であり、上述した実施例のように、Δθ
=1°として、それぞれ360個の輪郭距離値を求めた
場合には、M=360となる。iは、グラフの横座標値
に対応する角度位置であり、1≦i≦M、すなわち、i
=1,2,3,…,360なる値をとる。また、jは、
前述のように、倍率/角度決定部142において設定さ
れたずれ量であり、「一方のグラフを他方のグラフに対
してどれだけずらすか」を示すパラメータとなる。
Next, the calculation in the magnification / angle calculator 140 will be described more specifically. First, the magnification / angle determining unit 142 sets a predetermined shift amount j, and gives the shift amount j to the variance calculation unit 141 to calculate variance.
The variance calculation unit 141 obtains a contour distance ratio r (i, j) expressed by an expression of r (i, j) = rb ((i + j) mod M) / ra (i) for the given shift amount j. . Here, ra (i) is the value of the i-th contour distance ra θ , and rb ((i + j) modM) is ((i + j) mo
dM) th is a value of the contour distance rb theta. M is
Is the number of contour distance values, Δθ as in the previous embodiment.
= 1 °, and when 360 contour distance values are obtained, M = 360. i is an angular position corresponding to the abscissa value of the graph, and 1 ≦ i ≦ M, that is, i
= 1, 2, 3,..., 360. Also, j is
As described above, the shift amount set by the magnification / angle determination unit 142 is a parameter indicating "how much one graph is shifted with respect to the other graph".

【0034】たとえば、ずれ量j=1と設定された場
合、分散計算部141は、上述の式においてi=1〜3
60まで変化させ、 r(1,1)=rb(2)/ra(1) r(2,1)=rb(3)/ra(2) r(3,1)=rb(4)/ra(3) … … … … … r(359,1)=rb(360)/ra(359) r(360,1)=rb(1)/ra(360) なる360通りの演算を行い、360通りの比の値r
(1,1)〜r(360,1)を得る。
For example, if the shift amount j is set to 1, the variance calculation unit 141 calculates i = 1 to 3 in the above equation.
R (1,1) = rb (2) / ra (1) r (2,1) = rb (3) / ra (2) r (3,1) = rb (4) / ra (3)……… r (359,1) = rb (360) / ra (359) r (360,1) = rb (1) / ra (360) Performing 360 calculations: 360 The value of the ratio r
(1,1) to r (360,1) are obtained.

【0035】続いて、分散計算部141は、求めたM通
り(上述の例では360通り)の比の値についての平均
av(j)および分散σ(j)を、 rav(j)=(1/M) ・ Σ i=1〜M r(i,j) σ(j)=(1/M) ・ Σ i=1〜M (r(i,j)−rav(j)) なる式により計算し、この計算結果を倍率/角度決定部
142に報告する。
Subsequently, the variance calculation unit 141 calculates the average r av (j) and the variance σ (j) 2 for the obtained M (360 in the above example) ratio values by r av (j) = (1 / M) Σ i = 1 to M r (i, j) σ (j) 2 = (1 / M) Σ i = 1 to M (r (i, j) −r av (j) ) 2 consisting calculated by the formula, reports the calculation result to the magnification / angle determination unit 142.

【0036】倍率/角度決定部142は、jの設定値を
1〜360まで変化させ、各jの値ごとに、分散計算部
141から計算結果の報告を受ける。そして、得られた
360通りの分散σ(1)〜σ(360)のうち最
小のものを探す。そして、最小の分散を与えるずれ量j
=Jを、2つの絵柄の相対的な回転角度として出力し、
このずれ量j=Jについての比の平均rav(J)を、
2つの絵柄の相対的な倍率として出力する。
The magnification / angle determination unit 142 changes the set value of j from 1 to 360, and receives a report of the calculation result from the variance calculation unit 141 for each value of j. Then, the smallest one of the obtained 360 variances σ (1) 2 to σ (360) 2 is searched. Then, the shift amount j that gives the minimum variance
= J is output as the relative rotation angle of the two patterns,
The average r av (J) of the ratio for this shift amount j = J is
Output as the relative magnification of the two pictures.

【0037】なお、上述の実施例では、ずれ量j=Jを
決定するのに、「統計学上の分散」を用いているが、本
発明では必ずしも「統計学上の分散」を用いる必要はな
く、複数の値のばらつきの程度を示す値であればどのよ
うな値を用いてもかまわない。たとえば、 Σ i=1〜M (r(i,j)−rav(j)) なる値や、統計学上の標準偏差(分散の平方根)や、平
均偏差(各値と平均との差の絶対値の総和を平均した
値)を用いてもよい。このように本明細書において「分
散」という文言は、「統計学上の分散」のみに限定され
るものではなく、複数の値のばらつきの程度を示す値を
広く含むものである。
In the above-described embodiment, the "statistical variance" is used to determine the shift amount j = J. However, in the present invention, it is not always necessary to use the "statistical variance". Instead, any value may be used as long as the value indicates the degree of variation of a plurality of values. For example, 値 i = 1 to M (r (i, j) −r av (j)) 2 , a statistical standard deviation (square root of variance), and an average deviation (difference between each value and the average) (A value obtained by averaging the sum of the absolute values of As described above, the term “variance” in this specification is not limited to “statistical variance”, but broadly includes a value indicating the degree of variation of a plurality of values.

【0038】ところで、実際の測定では、輪郭線抽出部
130で求めた輪郭距離のデータに、極端に大きな誤差
が含まれている可能性がある。たとえば、図17には、
2つのグラフraθ,rbθを重ねた状態が示されてい
るが、グラフrbθを構成するデータの中に、誤差デー
タEが含まれているため、角度位置Eθにおけるグラフ
rbθの値だけ極端にはずれた値となってしまってい
る。このように大きな誤差をもったデータが1つでも存
在すると、分散計算部141において計算される分散は
大きく影響を受ける。すなわち、図17に示すように、
両グラフの特徴が横軸方向に関して重なった状態であれ
ば、本来なら、いずれの角度位置においても輪郭距離比
はほぼ一定になるはずである。ところが、角度位置Eθ
における輪郭距離比だけが、他の角度位置におけるほぼ
一定な輪郭距離比とかけ離れた値になっているため、予
想外に大きな分散値が得られてしまう結果となる。これ
は、正しい回転角度を決定する上で問題である。
Incidentally, in actual measurement, there is a possibility that extremely large errors are included in the data of the contour distance obtained by the contour line extracting unit 130. For example, in FIG.
Two graphs ra theta, but a laminated state rb theta is shown, in the data constituting the graph rb theta, since it contains error data E, the value of the graph rb theta in angular position E theta However, it has become an extremely outlier. If any data having such a large error exists, the variance calculated by the variance calculator 141 is greatly affected. That is, as shown in FIG.
If the characteristics of both graphs overlap in the horizontal axis direction, the contour distance ratio should be substantially constant at any angular position. However, the angular position E θ
Since only the contour distance ratio at is different from the substantially constant contour distance ratio at other angular positions, an unexpectedly large variance value is obtained. This is a problem in determining the correct rotation angle.

【0039】このような問題を解決するには、分散計算
部141において分散を求める場合、次のような2段階
のプロセスを実施すればよい。すなわち、まず1回目の
計算により第1の分散を求めた後、この分散の平方根
(標準偏差)の範囲内にある比の値のみを用いて2回目
の計算を行い第2の分散を求め、この第2の分散を倍率
/角度決定部142に対して報告する分散の値とするの
である。たとえば、所定の設定値jについて、360通
りの比の値r(1,j)〜r(360,j)を求めた場
合、 rav(j)=(1/360) ・ Σ i=1〜360 r(i,j) σ(j)=(1/360) ・ Σ i=1〜360 (r(i,j)−rav(j)) なる式により、まず、第1の分散σ(j)を計算す
る。続いて、上述の360通りの比の値r(1,j)〜
r(360,j)のそれぞれについて、第1の分散σ
(j)の範囲内にあるか否かを判断する。そして、r
av(j)±σ(j)の範囲外にある比の値について
は、これを除外するのである。これにより、図17に示
す角度位置Eθにおける比の値は除外されることにな
る。こうして、rav(j)±σ(j)の範囲内にある
比の値だけを用いて、再び平均および分散を計算し、こ
の第2の分散を倍率/角度決定部142へ報告するので
ある。このように、2段階のプロセスで分散を求めるよ
うにすれば、大きな誤差をもったデータが存在しても、
正しい分散を得ることが可能になる。
In order to solve such a problem, when calculating the variance in the variance calculation unit 141, the following two-stage process may be performed. That is, first, the first variance is obtained by the first calculation, and then the second calculation is performed by using only the value of the ratio within the range of the square root (standard deviation) of the variance to obtain the second variance. This second variance is used as the value of the variance reported to the magnification / angle determination unit 142. For example, when 360 values r (1, j) to r (360, j) are obtained for a predetermined set value j, r av (j) = (1/360) · Σi = 1 to 360 r (i, j) σ by (j) 2 = (1/360) · Σ i = 1~360 (r (i, j) -r av (j)) 2 made wherein first, the first dispersion σ (j) 2 is calculated. Subsequently, the above-described 360 values of the ratio values r (1, j) to
For each of r (360, j), the first variance σ
It is determined whether it is within the range of (j). And r
The ratio value outside the range of av (j) ± σ (j) is excluded. As a result, the value of the ratio at the angular position shown in FIG. 17 is excluded. Thus, the average and the variance are calculated again using only the ratio values within the range of r av (j) ± σ (j), and the second variance is reported to the magnification / angle determination unit 142. . In this way, if the variance is obtained in a two-step process, even if there is data having a large error,
It is possible to obtain the correct dispersion.

【0040】なお、上述の実施例では、誤差データを除
外するために、標準偏差を用いたが、その代わりに標準
偏差の整数倍の値や、平均偏差の値を用いても構わな
い。要するに、所定のばらつきの範囲を定義することが
できる値であればどのような値を用いてもかまわない。
In the above embodiment, the standard deviation is used to exclude the error data. However, a value of an integral multiple of the standard deviation or a value of the average deviation may be used instead. In short, any value may be used as long as it can define a predetermined range of variation.

【0041】こうして、倍率/角度演算部140によっ
て求められた倍率と角度がコンピュータ100から出力
されることになる。結局、作業者が、画像入力装置10
および線画像入力装置20から画像を入力する作業を行
うだけで、必要な倍率および角度が自動的に求められ
る。
In this way, the magnification and the angle obtained by the magnification / angle calculation unit 140 are output from the computer 100. Eventually, the worker inputs the image input device 10
Just by performing an operation of inputting an image from the line image input device 20, the necessary magnification and angle are automatically obtained.

【0042】以上、本発明を図示する実施例に基づいて
説明したが、本発明はこの実施例のみに限定されるもの
ではなく、この他にも種々の態様で実施可能である。た
とえば、上述の実施例では、Δθ=1°に設定すること
により、M=360としたが、Δθの設定値は任意であ
り、また必ずしも一定の値にする必要はない。たとえ
ば、Δθ=1°とΔθ=2°とを交互に繰り返してもよ
い。
Although the present invention has been described based on the illustrated embodiment, the present invention is not limited to this embodiment, but can be implemented in various other modes. For example, in the above-described embodiment, M is set to 360 by setting Δθ = 1 °. However, the set value of Δθ is arbitrary and does not necessarily have to be a constant value. For example, Δθ = 1 ° and Δθ = 2 ° may be alternately repeated.

【0043】また、上述の実施例では、コンピュータ1
00内の処理はすべて自動的に行われ、作業者が何らか
の手続きを行う必要は全くなかったが、必要に応じて作
業者によるチェックを行うようにしてもかまわない。た
とえば、絵柄aと絵柄bとの間での相対的な倍率および
角度がコンピュータ100内で求められたら、この倍率
および角度を直ちに出力する前に、作業者によるチェッ
クを行わせることもできる。具体的には、絵柄aを、求
めた倍率だけ拡大し求めた角度だけ回転させてディスプ
レイ上に表示させ、同じ画面上に絵柄bも表示させ、両
者が一致することを作業者に確認させればよい。また、
上述の実施例では、輪郭線の修正処理も自動的に行って
いるが、修正を行う必要があるか否かといった事項を作
業者の判断に委ねることも可能である。
In the above embodiment, the computer 1
All processes in 00 are automatically performed, and there is no need for the operator to perform any procedure. However, the operator may perform a check if necessary. For example, when the relative magnification and angle between the pattern a and the pattern b are determined in the computer 100, the operator can check the magnification and the angle before immediately outputting the magnification and the angle. Specifically, the image a is enlarged by the obtained magnification, rotated by the obtained angle and displayed on the display, and the image b is also displayed on the same screen, so that the operator can confirm that they match. I just need. Also,
In the above-described embodiment, the contour correction processing is also performed automatically, but it is also possible to leave the matters such as whether or not the correction is required to the judgment of the operator.

【0044】上述の実施例では、この装置を倍率/角度
を測定するための測定装置として説明した。このように
単独の測定装置として用いる場合には、コンピュータ1
00の後段にプリンタなどの印字装置を接続し、求めた
倍率や角度をプリントアウトすればよい。これに対し、
この装置を他の装置に接続して用いる場合には、コンピ
ュータ100の後段に、それぞれ必要なインターフェイ
スを接続すればよい。たとえば、コンピュータ100の
後段に、求めた倍率や角度を利用して製版情報を作成す
る装置を付加すれば、この装置を製版システムの一部に
組み込んで用いることができるようになる。具体的に
は、この装置をドラムスキャナ装置の一部に組み込むこ
とができる。すなわち、この装置における画像入力装置
10や線画像入力装置20を、プレスキャン装置として
利用し、印刷原稿Aをドラムスキャナ装置で入力すると
きの倍率や角度を求めるのである。コンピュータ100
の後段に接続した製版情報作成装置においては、求まっ
た倍率や角度に、スキャナ分解の範囲や集版時の位置合
わせに使用する特徴点の座標などを付加することもでき
る。
In the above embodiment, this apparatus has been described as a measuring apparatus for measuring a magnification / angle. When used as a single measuring device, the computer 1
A printing device such as a printer may be connected to the subsequent stage of 00, and the obtained magnification and angle may be printed out. In contrast,
When this device is used by connecting it to another device, it is only necessary to connect necessary interfaces to the subsequent stage of the computer 100. For example, if a device for creating plate making information using the obtained magnification and angle is added at the latter stage of the computer 100, this device can be incorporated into a part of the plate making system and used. Specifically, this device can be incorporated into a part of the drum scanner device. That is, the image input device 10 and the line image input device 20 in this device are used as a pre-scan device, and the magnification and the angle when the print document A is input by the drum scanner device are obtained. Computer 100
In the plate making information creating apparatus connected to the subsequent stage, the range of scanner disassembly and the coordinates of feature points used for alignment at plate collection can be added to the obtained magnification and angle.

【0045】あるいは、画像入力装置10自身を、十分
な解像度(拡大や縮小などの変倍処理や、回転処理を行
った後にも、実用に耐える品質をもつ程度の解像度)を
もったドラムスキャナ装置で構成しておけば、本装置を
全自動集版装置の一部として使用することもできる。こ
の場合、画像入力装置10はプレスキャン装置としてで
はなく、正式なスキャン装置としての機能を果たすこと
になり、印刷原稿Aに対するスキャナ入力作業は1回だ
けですむ。なお、この場合、演算によって求めた倍率や
角度の値に対して、最終的な仕上がりの体裁が整うよう
に微調整を行うのが好ましい。そこで、コンピュータ1
00の後段に接続する製版情報作成装置に、この微調整
を行う機能を追加するとよい。
Alternatively, the image input device 10 may be replaced by a drum scanner device having a sufficient resolution (a resolution sufficient for practical use even after performing scaling processing such as enlargement or reduction or rotation processing). In this case, the present apparatus can be used as a part of a fully automatic plate collecting apparatus. In this case, the image input device 10 functions not as a pre-scanning device but as a formal scanning device, and the scanner input operation for the print document A only needs to be performed once. In this case, it is preferable to make fine adjustments to the values of the magnification and the angle obtained by the calculation so that the appearance of the final finish is adjusted. So, computer 1
It is advisable to add a function for performing this fine adjustment to the plate making information creating apparatus connected to the stage subsequent to 00.

【0046】[0046]

【発明の効果】以上のとおり本発明に係る絵柄の倍率/
角度測定装置によれば、絵柄の重心から輪郭画素までの
輪郭距離を求め、各角度位置にこの輪郭距離をプロット
したグラフを作成し、2つの絵柄についてのグラフにお
ける輪郭距離比の分散を計算することにより、両絵柄の
相対的な倍率および角度を求めるようにしたため、絵柄
の倍率および角度を自動的に測定することができるよう
になる。
As described above, the magnification of the picture according to the present invention /
According to the angle measuring device, the contour distance from the center of gravity of the picture to the contour pixel is obtained, a graph in which this contour distance is plotted at each angular position is created, and the variance of the contour distance ratio in the graph for the two pictures is calculated. Thus, since the relative magnification and angle of both pictures are determined, the magnification and angle of the pictures can be automatically measured.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の一実施例に係る絵柄の倍率/角度測定
装置の基本構成を示すブロック図である。
FIG. 1 is a block diagram showing a basic configuration of a picture magnification / angle measuring apparatus according to one embodiment of the present invention.

【図2】図1に示す印刷原稿Aおよび割付指定紙Bの具
体例を示す図である。
FIG. 2 is a diagram showing a specific example of a print original A and a layout designation sheet B shown in FIG.

【図3】図2に示す絵柄aの部分拡大図である。FIG. 3 is a partially enlarged view of a picture a shown in FIG. 2;

【図4】図1に示す装置における輪郭線抽出部130の
機能を4つの機能ブロックに分解して示したブロック図
である。
FIG. 4 is a block diagram in which the function of a contour line extraction unit 130 in the apparatus shown in FIG. 1 is exploded into four functional blocks.

【図5】図4に示す重心演算部131によって求まった
重心Gを示す図である。
FIG. 5 is a diagram showing a center of gravity G obtained by a center of gravity calculation unit 131 shown in FIG.

【図6】図4に示す輪郭画素決定部132によって輪郭
画素を決定する方法を示す図である。
FIG. 6 is a diagram illustrating a method of determining a contour pixel by a contour pixel determining unit 132 illustrated in FIG. 4;

【図7】図6に示す絵柄aの部分拡大図である。FIG. 7 is a partially enlarged view of a picture a shown in FIG. 6;

【図8】図5に示す絵柄について求まった輪郭線を示す
図である。
FIG. 8 is a diagram showing an outline obtained for the picture shown in FIG. 5;

【図9】図8に示す輪郭線の部分拡大図である。9 is a partially enlarged view of the contour line shown in FIG.

【図10】ノイズ画素P4が存在する絵柄の一例を示す
図である。
FIG. 10 is a diagram showing an example of a picture in which a noise pixel P4 exists.

【図11】図10に示す絵柄に基づいて得られた輪郭線
を示す図である。
FIG. 11 is a view showing a contour obtained based on the picture shown in FIG. 10;

【図12】図1に示す装置における輪郭線抽出部130
の動作手順を示す流れ図である。
FIG. 12 shows a contour line extraction unit 130 in the apparatus shown in FIG.
6 is a flowchart showing the operation procedure of FIG.

【図13】図2(a) に示す絵柄aについて得られた輪郭
距離/角度位置の関係を示すグラフである。
FIG. 13 is a graph showing the relationship between the contour distance / angle position obtained for the picture a shown in FIG. 2 (a).

【図14】図2(b) に示す絵柄bについて得られた輪郭
距離/角度位置の関係を示すグラフである。
FIG. 14 is a graph showing the relationship between the contour distance / angle position obtained for the picture b shown in FIG. 2 (b).

【図15】図13に示すグラフraθと、図14に示す
グラフrbθと、をグラフの特徴部分の横軸方向位置が
一致するずれ量をもって重ねた状態を示す図である。
And graphs ra theta shown in FIG. 15 FIG. 13 is a diagram showing a state where the horizontal axis direction position is overlapped with the shift amount to match the characteristic portion of the graph rb theta shown in FIG. 14, a graph.

【図16】図13に示すグラフraθと、図14に示す
グラフrbθと、をグラフの特徴部分の横軸方向位置が
一致しないずれ量をもって重ねた状態を示す図である。
And graphs ra theta shown in FIG. 16 FIG. 13 is a diagram showing a state where the horizontal axis direction position is overlapped with the shift amount does not match the characteristic portion of the graph and chart rb theta shown in FIG. 14, a.

【図17】図15に示すグラフにおいて、大きな誤差を
もったデータEが含まれていた場合を示す図である。
FIG. 17 is a diagram showing a case where data E having a large error is included in the graph shown in FIG. 15;

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

10…画像入力装置 20…線画像入力装置 100…コンピュータ 110…エッジ検出部 120…二値化処理部 130…輪郭線抽出部 131…重心演算部 132…輪郭画素決定部 133…輪郭距離演算部 134…輪郭修正部 140…倍率/角度演算部 141…分散計算部 142…倍率/角度決定部 A…印刷原稿(写真) B…割付指定紙 E…誤差を含んだデータ G…重心 Lθ…半直線 P1〜P3,Q1,Q2…黒画素 P4…ノイズ画素 P5…白画素 Pθ…輪郭画素 a,b…絵柄 rθ…輪郭距離 raθ,rbθ…輪郭距離のグラフDESCRIPTION OF SYMBOLS 10 ... Image input device 20 ... Line image input device 100 ... Computer 110 ... Edge detection part 120 ... Binarization processing part 130 ... Contour line extraction part 131 ... Center of gravity calculation part 132 ... Contour pixel determination part 133 ... Contour distance calculation part 134 ... Contour correction unit 140 ... Magnification / angle calculation unit 141 ... Dispersion calculation unit 142 ... Magnification / angle determination unit A ... Printed manuscript (photograph) B ... Designated layout sheet E ... Data including error G ... Center of gravity ... Semi-straight line P1~P3, Q1, Q2 ... black pixels P4 ... noise pixel P5 ... white pixel Pshita ... contour pixels a, b ... picture R.theta ... contour distance ra θ, rb θ ... contour distance graph

フロントページの続き (56)参考文献 特開 平7−83633(JP,A) 特開 平6−265325(JP,A) 特開 昭62−186383(JP,A) 特開 平3−100777(JP,A) 特開 平2−158888(JP,A) 特開 平2−179401(JP,A) 特開 昭62−263578(JP,A) 特開 平2−91778(JP,A) 荒井、会津、工藤、高木、線画像のア フィン変換パラメータの推定,1993年電 子情報通信学会春季大会講演論文集 分 冊7,日本,社団法人 電子情報通信学 会 (58)調査した分野(Int.Cl.7,DB名) G01B 11/00 - 11/30 G03F 1/00 G06T 1/00 - 7/60 Continuation of front page (56) References JP-A-7-83633 (JP, A) JP-A-6-265325 (JP, A) JP-A-62-186383 (JP, A) JP-A-3-100777 (JP, A) JP-A-2-158888 (JP, A) JP-A-2-179401 (JP, A) JP-A-62-263578 (JP, A) JP-A-2-91778 (JP, A) Arai, Aizu , Kudo, Takagi, Estimation of affine transformation parameters for line images, Proc. Of the 1993 IEICE Spring Conference, Volume 7, Japan, The Institute of Electronics, Information and Communication Engineers (58). . 7, DB name) G01B 11/00 - 11/30 G03F 1/00 G06T 1/00 - 7/60

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 特徴が近似した2つの絵柄についての相
対的な回転角度を測定する装置であって、 測定対象となる絵柄を黒画素と白画素とで表現される二
値画像からなる線画データとして取り込む画像取込手段
と、 前記画像取込手段によって取込んだ線画データについ
て、黒画素の重心位置を演算する重心演算手段と、 前記重心位置を中心として、所定角度Δθ間隔で放射状
に複数の半直線を定義し、各半直線上において前記重心
位置から最も離れた位置にある黒画素を輪郭画素として
求める輪郭画素決定手段と、 前記重心位置と各輪郭画素との距離として定義される輪
郭距離を演算する輪郭距離演算手段と、 横軸に半直線の角度位置を、縦軸にその半直線について
得られた輪郭距離を、それぞれ定義することによって、
半直線の角度位置と輪郭距離との関係を示すグラフを作
成し、測定対象となる第1の絵柄に基づいて得られた第
1のグラフを、測定対象となる第2の絵柄に基づいて得
られた第2のグラフに対して前記横軸方向に所定のずれ
量だけずらし、同一横座標上の第1のグラフの縦軸値と
第2のグラフの縦軸値との比をそれぞれ異なる複数の横
座標位置について求め、求めた複数の比についての分散
を計算する分散計算手段と、 異なる複数のずれ量を設定して、前記分散計算手段によ
りそれぞれのずれ量ごとの分散を求め、最も分散が小さ
くなるずれ量を、前記第1の絵柄の前記第2の絵柄に対
する回転角度と決定する角度決定手段と、 を備えることを特徴とする絵柄の角度測定装置。
1. A device for measuring a relative rotation angle of two pictures having similar characteristics, wherein the picture to be measured is a line drawing data consisting of a binary image in which black and white pixels are expressed. Image capturing means for capturing, as for the line drawing data captured by the image capturing means, a center of gravity calculating means for calculating the position of the center of gravity of the black pixel, and a plurality of radially spaced at a predetermined angle Δθ around the center of gravity. Contour pixel determining means for defining a half-line, and determining a black pixel at the position farthest from the barycentric position on each half-line as a contour pixel; a contour distance defined as a distance between the barycentric position and each contour pixel By defining an angle position of a half line on the horizontal axis and a contour distance obtained for the half line on the vertical axis,
A graph showing the relationship between the angular position of the half line and the contour distance is created, and the first graph obtained based on the first pattern to be measured is obtained based on the second pattern to be measured. A predetermined amount of shift in the horizontal axis direction with respect to the obtained second graph, and different ratios between the vertical axis value of the first graph and the vertical axis value of the second graph on the same abscissa. And a variance calculating means for calculating the variance for the plurality of ratios obtained, and setting a plurality of different shift amounts, obtaining the variance for each of the shift amounts by the variance calculating means, Angle determining means for determining the amount of deviation that reduces the rotation angle of the first pattern with respect to the second pattern.
【請求項2】 特徴が近似した2つの絵柄についての相
対的な倍率を測定する装置であって、 測定対象となる絵柄を黒画素と白画素とで表現される二
値画像からなる線画データとして取り込む画像取込手段
と、 前記画像取込手段によって取込んだ線画データについ
て、黒画素の重心位置を演算する重心演算手段と、 前記重心位置を中心として、所定角度Δθ間隔で放射状
に複数の半直線を定義し、各半直線上において前記重心
位置から最も離れた位置にある黒画素を輪郭画素として
求める輪郭画素決定手段と、 前記重心位置と各輪郭画素との距離として定義される輪
郭距離を演算する輪郭距離演算手段と、 横軸に半直線の角度位置を、縦軸にその半直線について
得られた輪郭距離を、それぞれ定義することによって、
半直線の角度位置と輪郭距離との関係を示すグラフを作
成し、測定対象となる第1の絵柄に基づいて得られた第
1のグラフを、測定対象となる第2の絵柄に基づいて得
られた第2のグラフに対して前記横軸方向に所定のずれ
量だけずらし、同一横座標上の第1のグラフの縦軸値と
第2のグラフの縦軸値との比をそれぞれ異なる複数の横
座標位置について求め、求めた複数の比についての分散
を計算する分散計算手段と、 異なる複数のずれ量を設定して、前記分散計算手段によ
りそれぞれのずれ量ごとの分散を求め、最も分散が小さ
くなるずれ量について得られた比の平均値を、前記第1
の絵柄の前記第2の絵柄に対する倍率と決定する倍率決
定手段と、 を備えることを特徴とする絵柄の倍率測定装置。
2. An apparatus for measuring a relative magnification of two patterns having similar characteristics, wherein the pattern to be measured is line drawing data consisting of a binary image expressed by black pixels and white pixels. Image capturing means for capturing, centroid calculating means for calculating a barycentric position of a black pixel with respect to the line drawing data captured by the image capturing means, and a plurality of halves radially spaced at a predetermined angle Δθ around the barycentric position. A straight line is defined, and a contour pixel determining means for determining, as a contour pixel, a black pixel located at a position farthest from the barycenter position on each half line, a contour distance defined as a distance between the barycenter position and each contour pixel. By defining the contour distance calculating means to calculate, and the horizontal axis the angle position of the half line, and the vertical axis the contour distance obtained for the half line, respectively,
A graph showing the relationship between the angular position of the half line and the contour distance is created, and the first graph obtained based on the first pattern to be measured is obtained based on the second pattern to be measured. A predetermined amount of shift in the horizontal axis direction with respect to the obtained second graph, and different ratios between the vertical axis value of the first graph and the vertical axis value of the second graph on the same abscissa. And a variance calculating means for calculating the variance for the plurality of ratios obtained, and setting a plurality of different shift amounts, obtaining the variance for each of the shift amounts by the variance calculating means, The average value of the ratios obtained for the shift amount in which
And a magnification determining means for determining a magnification of the pattern with respect to the second pattern.
【請求項3】 請求項1または2に記載の測定装置にお
いて、 分散計算手段が、1回目の計算により第1の分散を求め
た後、この分散に基づいて定められる所定のばらつきの
範囲内にある比の値のみを用いて2回目の計算を行い第
2の分散を求め、回転角度決定手段または倍率決定手段
においては、前記第2の分散を用いた決定を行うように
したことを特徴とする絵柄の倍率/角度測定装置。
3. The measuring apparatus according to claim 1, wherein the variance calculating means obtains a first variance by a first calculation, and then calculates the first variance within a predetermined variation range determined based on the variance. A second calculation is performed by using only a value of a certain ratio to obtain a second variance, and the rotation angle determining means or the magnification determining means makes a determination using the second variance. To measure the magnification / angle of the picture.
JP30465393A 1993-11-10 1993-11-10 Picture magnification / angle measuring device Expired - Fee Related JP3242241B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30465393A JP3242241B2 (en) 1993-11-10 1993-11-10 Picture magnification / angle measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30465393A JP3242241B2 (en) 1993-11-10 1993-11-10 Picture magnification / angle measuring device

Publications (2)

Publication Number Publication Date
JPH07134014A JPH07134014A (en) 1995-05-23
JP3242241B2 true JP3242241B2 (en) 2001-12-25

Family

ID=17935623

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30465393A Expired - Fee Related JP3242241B2 (en) 1993-11-10 1993-11-10 Picture magnification / angle measuring device

Country Status (1)

Country Link
JP (1) JP3242241B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4945847B2 (en) * 2001-03-30 2012-06-06 大日本印刷株式会社 Cutting position control system
JP5365287B2 (en) * 2009-03-18 2013-12-11 カシオ計算機株式会社 Image processing apparatus, image processing program, image processing method, and image processing system
JP5365392B2 (en) 2009-07-22 2013-12-11 富士ゼロックス株式会社 Image defect diagnosis system, image forming apparatus, and program
CN112001888B (en) * 2020-07-21 2023-12-29 浙江大学 Impeller running state identification method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
荒井、会津、工藤、高木、線画像のアフィン変換パラメータの推定,1993年電子情報通信学会春季大会講演論文集 分冊7,日本,社団法人 電子情報通信学会

Also Published As

Publication number Publication date
JPH07134014A (en) 1995-05-23

Similar Documents

Publication Publication Date Title
US6791616B2 (en) Image lens distortion correcting method
EP1299850B1 (en) Merging images to form a panoramic image
US20040085256A1 (en) Methods and measurement engine for aligning multi-projector display systems
JP5445461B2 (en) Pixel position correspondence specifying system, pixel position correspondence specifying method, and pixel position correspondence specifying program
JP2008287426A (en) Distortion correction device and program
US20190104288A1 (en) Three-dimensional printing system and fabrication method thereof
JP2023075366A (en) Information processing apparatus, recognition support method, and computer program
WO2016204068A1 (en) Image processing apparatus and image processing method and projection system
WO2014156429A1 (en) Visual collation assistance device and method for controlling same
CN106851103A (en) Atomatic focusing method and device based on dual camera system
Finlayson et al. Color homography color correction
CN106952262A (en) A kind of deck of boat analysis of Machining method based on stereoscopic vision
CN110595738B (en) Laser detection method, device and equipment and depth camera
JP3242241B2 (en) Picture magnification / angle measuring device
CN110223356A (en) A kind of monocular camera full automatic calibration method based on energy growth
KR100808536B1 (en) Method for calibration using by pattern image
CN113038105A (en) Projector adjusting method and adjusting apparatus
CN112292577B (en) Three-dimensional measuring device and method
TWI424259B (en) Camera calibration method
JP3335729B2 (en) Picture contour line extraction device
CN113160259B (en) Edge detection method, edge detection device, computer equipment and storage medium
CN116109681A (en) Image fusion method, device, electronic equipment and readable storage medium
JPH09329440A (en) Coordinating method for measuring points on plural images
JP2010177832A (en) Image processing apparatus and image processing method
JPH06265325A (en) Design magnification/angle measuring apparatus

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees