JPS61163473A - Picture geometry correcting method - Google Patents
Picture geometry correcting methodInfo
- Publication number
- JPS61163473A JPS61163473A JP60004268A JP426885A JPS61163473A JP S61163473 A JPS61163473 A JP S61163473A JP 60004268 A JP60004268 A JP 60004268A JP 426885 A JP426885 A JP 426885A JP S61163473 A JPS61163473 A JP S61163473A
- Authority
- JP
- Japan
- Prior art keywords
- picture
- image
- points
- processing
- 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
Links
Landscapes
- Image Processing (AREA)
Abstract
Description
【発明の詳細な説明】 〔技術分野〕 本発明は、画像の幾何補正を行う方法に関する。[Detailed description of the invention] 〔Technical field〕 The present invention relates to a method for geometrically correcting an image.
画像処理の分野、例えばCADシステムなどにおいては
、歪んだ画像を整形するなど1画像の幾何補正処理を行
いたい場合が多々ある。In the field of image processing, for example, in CAD systems, there are many cases where it is desired to perform geometric correction processing on a single image, such as shaping a distorted image.
本発明の目的は1画像の4つの点の座標値と。The purpose of the present invention is to obtain the coordinate values of four points in one image.
それに対応する正規の点の座標値を指定するだけで、そ
のような画像の幾何補正を実行できる画像幾何補正法を
提供することにある。An object of the present invention is to provide an image geometric correction method that can perform geometric correction of such an image simply by specifying the coordinate values of the corresponding regular points.
本発明の画像幾何補正法によれば、処理対象の画像の指
定された4つの点Q+(x+*yq+)、Q 7cXq
t+ yqz)−Qa(Xqt+ Vq+)。According to the image geometric correction method of the present invention, four specified points Q+(x+*yq+), Q7cXq of the image to be processed
t+yqz)-Qa(Xqt+Vq+).
Q、Cxq□wY11g)が、それぞれに対応する指定
された正規の4つの点PL(Xp t + Vp I)
、Pz (Xp t + Vp 、)−P3(IP a
* Np *)、Pa(xpa+Ypa)に補正され
る。また、上記各座標値を用いて1次の2つの4元連立
方程式(1)、(■)の係数が解かれる。Q, Cxq□wY11g) are the corresponding four specified normal points PL (Xp t + Vp I)
, Pz (Xp t + Vp ,) - P3 (IP a
*Np*), Pa (xpa+Ypa). Furthermore, the coefficients of the two linear four-dimensional simultaneous equations (1) and (■) are solved using each of the above coordinate values.
A−xp、’YP++B−xpl+C’Yp++D=X
q+A’XP? ’ypt+Box、、+C*ypz+
D=xt2A’ Xys * ’ Vwp * +B
” Xp H+C”Ip 3 +D=Xq xA’ X
p a ” Np a +B ” Xp 4 +C’
Yp 4 +D=)Cl a・・・(1)
E’XPI ”Vwp+ +F’Xp++G’Yp++
H=Yq+E”x、t ”y、、+Fax、、+G”y
wpt+H=yq、。A-xp,'YP++B-xpl+C'Yp++D=X
q+A'XP? 'ypt+Box,,+C*ypz+
D=xt2A' Xys * ' Vwp * +B
"Xp H+C"Ip 3 +D=Xq xA' X
p a ” Np a +B ” Xp 4 +C'
Yp 4 +D=)Cl a...(1) E'XPI "Vwp+ +F'Xp++G'Yp++
H=Yq+E"x,t"y,,+Fax,,+G"y
wpt+H=yq,.
E’ X1p 3 ” 7p * +F ’ Xp i
+G” ’ip * +H=71 zE ” Xp
4 ’ 7p 4 +F ’ Xp a +G ’ Y
p a +H=Vq a・・・(■)
そして、上記画像の他の各点の座標値(x+y)は1次
の式(III) 、 (rV)によって正規の座標値
(x’ + y’ )に補正される。E' X1p 3'' 7p * +F' Xp i
+G” 'ip * +H=71 zE ”Xp
4' 7p 4 +F' Xp a +G' Y
p a +H=Vq a...(■) Then, the coordinate values (x+y) of each other point in the above image are determined by the normal coordinate values (x' + y') using the linear equation (III) and (rV). ) is corrected.
x’ =Axy+Bx+Cy+D ・−・(m
)y’ =Exy+Fx+Gy+H−(IV)以下1図
面を用いて1本発明の一実施例につき説明する。x' =Axy+Bx+Cy+D ・-・(m
)y'=Exy+Fx+Gy+H-(IV) An embodiment of the present invention will be described below using one drawing.
第1図は処理の概略を示すフローチャートであり、第2
図は処理システムの概略構成を示すブロック図である。FIG. 1 is a flowchart showing an outline of the process;
The figure is a block diagram showing a schematic configuration of a processing system.
ここに示す処理システムは、演算制御部、データメモリ
、プログラムメモリ、入出力インターフェイスなどを含
む一般的な構成のマイクロコンピュータ1を中心に構成
されている。The processing system shown here is mainly configured with a microcomputer 1 having a general configuration including an arithmetic control section, data memory, program memory, input/output interface, etc.
画像の幾何補正処理は、マイクロコンピュータ1におい
てプログラムに基づき実行されるが、特定の処理を専用
のハードウェアまたはファームウェアに委ねることも当
然可能である。2は処理対象の画像(M画像)と、処理
途中と処理後の画像データが格納される画像メモリであ
り、システムバス3を介して、マイクロコンピュータ1
側でアクセスし得る。4はディスプレイ装置であり物理
的にキーボードなどの入力装置5と一体化されている。The image geometric correction processing is executed in the microcomputer 1 based on a program, but it is of course possible to entrust specific processing to dedicated hardware or firmware. 2 is an image memory in which an image to be processed (M image) and image data during and after processing are stored;
Can be accessed from the side. A display device 4 is physically integrated with an input device 5 such as a keyboard.
6はプリンタ装置である。7はスキャナなどの画像入力
装置であり、これにより入力された画像データは画像メ
モリ2に格納される。6 is a printer device. 7 is an image input device such as a scanner, and image data inputted by this device is stored in the image memory 2.
次に処理を順に説明する。まず5人力装置5からマイク
ロコビュータに指令を入力し1画像メモI72に格納さ
れている処理対象の画像(原画と称する)をディスプレ
イ装置4の画面に表示させる(ステップ10)6例えば
、第31!Iの実線の図形がMiilとして表示される
0次に、原画の基準となる4つの点、例えば第3図にお
けるQ、、Q、、Q3、Q4を指定する(ステップ11
)、具体的には、入力装置5を通じ2画面上のカーソル
をQ。Next, the processing will be explained in order. First, a command is input from the human-powered device 5 to the microcomputer to display the image to be processed (referred to as an original image) stored in the 1-image memo I72 on the screen of the display device 4 (step 10). ! The solid line figure of I is displayed as Miil. Next, specify the four reference points of the original image, for example, Q, , Q, , Q3, and Q4 in Fig. 3 (step 11).
), specifically, move the cursor on two screens through the input device 5.
〜Q4のそれぞれに順次移動させ、その座標値(Xqt
*)’qt)〜(XqatVqa)の読み取りをマイク
ロコンピュータ1に指示する。読み取られた座標値はマ
イクロコンピュータのデータメモリに記憶される6次に
、同様にQ、〜Q1のそれぞれに対応する正規の4つの
点P、〜P4(第3図参照)にカーソルを順次セットし
、それぞれの座標値(Xp1*7pl)〜(Xpa*Y
Pa)の読み取りをマイクロコンピュータlに指示する
(ステップ12)、これら座標値も、マイクロコンピュ
ータ内のデータメモリーに記憶される。〜Q4, and calculate its coordinate value (Xqt
*) Instructs the microcomputer 1 to read 'qt) to (XqatVqa). The read coordinate values are stored in the data memory of the microcomputer.Next, the cursor is sequentially set at four regular points P, ~P4 (see Figure 3) corresponding to Q, ~Q1, respectively. and each coordinate value (Xp1*7pl) ~ (Xpa*Y
These coordinate values are also stored in the data memory within the microcomputer.
こぎで、ディスプレイ装置4の画面には、第3図に破線
で示すようなP、〜P4を頂点とする図形が、原画と重
ねて表示される。As a result, on the screen of the display device 4, a figure whose vertices are P, -P4 as shown by broken lines in FIG. 3 is displayed superimposed on the original image.
以後、実際の幾何補正処理がマイクロコンピュータ1に
よって実行されるが、途中の画像データは画像メモリ2
の特定エリアに格納され、また処理の進行にしたがって
、処理途中の補正画像もディスプレイ装置4の画面上に
原画と重ねられて逐次表示される。Thereafter, actual geometric correction processing is executed by the microcomputer 1, but the intermediate image data is stored in the image memory 2.
As the process progresses, the corrected image that is being processed is also sequentially displayed on the screen of the display device 4, superimposed on the original image.
まずマイクロコンピュータ1は、原画の点Q。First, microcomputer 1 is the point Q of the original drawing.
〜Q4を対応する正規の点p、−p、、に重ねるように
補正する(ステップ13)0次に前出の2つの4元連立
方程式(I)、(II)を掃き出し法によって解いて、
各係数A−Hを求める(ステップ14)0次に、原画の
他の各点を正規の点に移行させる(ステップ15〜17
)、原画の点の座標値(x、y)の移行先の正規の点の
座標値(X′。~Correct Q4 so that it overlaps the corresponding normal points p, -p, (Step 13) Next, solve the two four-dimensional simultaneous equations (I) and (II) by the sweep method,
Calculate each coefficient A-H (Step 14) Next, shift each other point of the original image to a regular point (Steps 15 to 17)
), the coordinate value (X') of the regular point to which the coordinate value (x, y) of the original point is transferred.
y’)は、前出の式(m)、(TV)によって計算され
る(ステップ15)、正規の点(x’ + y’ )の
濃度Nは、ステップ16において次のような線形補間に
よって求められる。第4図に示すように。y') is calculated by the above equations (m) and (TV) (step 15), and the density N of the normal point (x' + y') is calculated in step 16 by linear interpolation as follows: Desired. As shown in Figure 4.
正規の点(x’+y’)の近傍の4つの点p、(x。Four points p, (x.
y)、Pz(X+1+ y)、P?(XI y+1)。y), Pz(X+1+y), P? (XI y+1).
p、(x+1.y)の濃度をN I* N t * N
−4tN4とする。正規の点(x’ + y’ )から
p1〜p4までのX方向とY方向の距離を図示のように
” K I * Q II! ? −Q y l +
QV ?とする。まず。Let the concentration of p, (x+1.y) be N I* N t * N
-4tN4. The distances in the X direction and Y direction from the regular point (x' + y') to p1 to p4 as shown in the figure "K I * Q II!? -Q y l +
QV? shall be. first.
P+ 、P7間でX方向についての濃度勾配による補間
を行い、濃度NX、を求める。Interpolation is performed between P+ and P7 using the concentration gradient in the X direction to obtain the concentration NX.
NX、=Q、、 ・N、+Q、、・N。NX, = Q, ・N, +Q, ・N.
同様にP、、P、間でX方向についての濃度勾配による
補間を行い、濃度N)I7を求める。Similarly, interpolation is performed between P, , P and the density gradient in the X direction to obtain the density N)I7.
NX、=flや、・N、+QX□・N。NX, = fl, ・N, +QX□・N.
Y方向についての補間は濃度NXl+NX2を用いて行
う、しかして、正規の点(x’ + y−’ )の濃度
Nは、次式(V)によって求められる。Interpolation in the Y direction is performed using the density NXl+NX2. Therefore, the density N at the normal point (x' + y-') is determined by the following equation (V).
N=fi、−N、、+Q、、、 ・NX I=Qv
l (QX、・N、+Qx、 ・N、)+Qv、
(Q、、 ・N、+QX、−N、)・・・(V)
なお、近傍の4点をとれない場合は、点p、の濃度をそ
のままNとして採用する6また、本実施例においては5
12X512の画面外にでる場合は、濃度をOとする。N=fi, -N,,+Q,,, ・NX I=Qv
l (QX, ・N, +Qx, ・N,)+Qv,
(Q,, ・N, +QX, -N,)...(V) Note that if the four neighboring points cannot be taken, the density of point p is directly adopted as N.6 Also, in this example, 5
When the image appears outside the 12×512 screen, the density is set to O.
ステップ17で原画の全点の補正処理を完了したことが
確認されると、処理を終了する。処理結果は画像メモリ
2に得られ、これは必要に応じてプリンタ装置6で印刷
させたり、あるいは図示しない外部記憶装置へ転送する
ことができる。When it is confirmed in step 17 that the correction processing for all points on the original image has been completed, the processing ends. The processing results are obtained in the image memory 2, and can be printed by the printer device 6 or transferred to an external storage device (not shown) if necessary.
本発明は以上に説明したように、原画の4点と。 As explained above, the present invention includes four original drawings.
それ対応する正規の4点を指定するだけで1画像幾何補
正が可能であり、画像処理システムに導入すれば大きな
効果が得られる。Geometric correction of one image is possible by simply specifying four corresponding regular points, and great effects can be obtained if it is introduced into an image processing system.
第1図は本発明の一実施例における処理の流九を示すフ
ローチャート、第2図は同実施例に係る処理システムの
概略構成を示すブロック図、第3図は点指定の説明図、
第4図は線形補間法による濃度決定の説明図である。
111.マイクロコンピュータ、 2・・・画像メモ
リ。
4・・・ディスプレイ装置、 5・・・入力装置。
6・・・プリンタ装置、 7・・・画像入力装置。
第 1 図
第 3 図
第 4 図FIG. 1 is a flowchart showing the flow of processing in an embodiment of the present invention, FIG. 2 is a block diagram showing a schematic configuration of a processing system according to the embodiment, FIG. 3 is an explanatory diagram of point specification,
FIG. 4 is an explanatory diagram of concentration determination using the linear interpolation method. 111. Microcomputer, 2... image memory. 4...Display device, 5...Input device. 6... Printer device, 7... Image input device. Figure 1 Figure 3 Figure 4
Claims (1)
_p_1)、Q_2(x_q_2、y_q_2)、Q_
3(x_q_3、y_q_3)、Q_4(x_q_4、
y_q_4)を、それぞれに対応する指定した正規の4
つの点P_1(x_p_1、y_p_1)、P_2(x
_p_2、y_p_2)、P_3(x_p_3、y_p
_3)、P_4(x_p_4、y_p_4)に補正し、
次の2つの4元連立方程式[1]、[2]の係数A、B
、C・D、E、F、G、Hを解き、 A・x_p_1・y_p_1+B・x_p_1+C・y
_p_1+D=x_q_1A−x_p_2・y_p_2
+B・x_p_2+C・y_p_2+D=x_q_2A
・x_p_3・y_p_3+B・x_p_3+C・y_
p_3+D=x_q_3A・x_p_4・y_p_4+
B・x_p_4+C・y_p_4+D=x_q_4…[
1] E・x_p_1・y_p_1+F・x_p_1+G・y
_p_1+H=y_q_1E・x_p_2・y_p_2
+F・x_p_2+G・y_p_2+H=y_q_2E
・x_p_3・y_p_3+F・x_p_3+G・y_
p_3+H=y_q_3E・x_p_4・y_p_4+
F・x_p_4+G・y_p_4+H=y_q_4…[
2] 該画像の他の各点の座標値(x、y)を次の式[3]、
[4]によって座標値(x′、y′)に補正する。 x′=Axy+Bx+Cy+D…[3] y′=Exy+Fx+Gy+H…[4] ことにより、該画像の幾何補正画像を得ることを特徴と
する画像幾何補正法。(1) Four specified points Q_1 (x_q_1, y
_p_1), Q_2(x_q_2, y_q_2), Q_
3(x_q_3, y_q_3), Q_4(x_q_4,
y_q_4) to the corresponding specified regular 4
two points P_1(x_p_1, y_p_1), P_2(x
_p_2, y_p_2), P_3(x_p_3, y_p
_3), corrected to P_4 (x_p_4, y_p_4),
Coefficients A and B of the following two four-dimensional simultaneous equations [1] and [2]
, C, D, E, F, G, H, solve A・x_p_1・y_p_1+B・x_p_1+C・y
_p_1+D=x_q_1A-x_p_2・y_p_2
+B・x_p_2+C・y_p_2+D=x_q_2A
・x_p_3・y_p_3+B・x_p_3+C・y_
p_3+D=x_q_3A・x_p_4・y_p_4+
B・x_p_4+C・y_p_4+D=x_q_4...[
1] E・x_p_1・y_p_1+F・x_p_1+G・y
_p_1+H=y_q_1E・x_p_2・y_p_2
+F・x_p_2+G・y_p_2+H=y_q_2E
・x_p_3・y_p_3+F・x_p_3+G・y_
p_3+H=y_q_3E・x_p_4・y_p_4+
F・x_p_4+G・y_p_4+H=y_q_4…[
2] The coordinate values (x, y) of each other point in the image are calculated using the following formula [3],
Correct the coordinate values (x', y') using [4]. x'=Axy+Bx+Cy+D...[3] y'=Exy+Fx+Gy+H...[4] An image geometric correction method characterized by obtaining a geometrically corrected image of the image.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60004268A JPS61163473A (en) | 1985-01-14 | 1985-01-14 | Picture geometry correcting method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60004268A JPS61163473A (en) | 1985-01-14 | 1985-01-14 | Picture geometry correcting method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS61163473A true JPS61163473A (en) | 1986-07-24 |
Family
ID=11579792
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60004268A Pending JPS61163473A (en) | 1985-01-14 | 1985-01-14 | Picture geometry correcting method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61163473A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH036674A (en) * | 1989-06-02 | 1991-01-14 | Nagoya Denki Kogyo Kk | Image distortion correction device |
| JPH04215193A (en) * | 1990-12-12 | 1992-08-05 | Nec Corp | Picked-up image corrector |
| US5497245A (en) * | 1992-07-21 | 1996-03-05 | Ricoh Company, Ltd. | Facsimile machine including a power source adaptor used therein |
| WO2004079653A1 (en) * | 2003-03-05 | 2004-09-16 | 3D Media Co. Ltd. | Image processing method, image processing system, image processing device, and computer program |
-
1985
- 1985-01-14 JP JP60004268A patent/JPS61163473A/en active Pending
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH036674A (en) * | 1989-06-02 | 1991-01-14 | Nagoya Denki Kogyo Kk | Image distortion correction device |
| JPH04215193A (en) * | 1990-12-12 | 1992-08-05 | Nec Corp | Picked-up image corrector |
| US5497245A (en) * | 1992-07-21 | 1996-03-05 | Ricoh Company, Ltd. | Facsimile machine including a power source adaptor used therein |
| WO2004079653A1 (en) * | 2003-03-05 | 2004-09-16 | 3D Media Co. Ltd. | Image processing method, image processing system, image processing device, and computer program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1145568B1 (en) | Software correction of image distortion in digital cameras | |
| JP2972654B2 (en) | Data creation calculation device and computer-readable recording medium in finite element method | |
| JP4119529B2 (en) | Virtual environment generation method and apparatus, and recording medium on which virtual environment generation program is recorded | |
| JP2009134509A (en) | Mosaic image generating apparatus and mosaic image generating method | |
| JPS61163473A (en) | Picture geometry correcting method | |
| JP2913814B2 (en) | Map database creation and correction system | |
| JPH05269956A (en) | Electronic composition device for composing along optional line | |
| JPH02130404A (en) | Image processing | |
| JP2721344B2 (en) | Image processing method | |
| JP3327961B2 (en) | Image processing device | |
| JP3096112B2 (en) | IC pattern design system | |
| JPS63223872A (en) | Facility drawing input/display device | |
| JP2002197452A (en) | Processor for correcting image distortion | |
| JP4184704B2 (en) | Image correction method and system | |
| JPS6061866A (en) | Chamfering system of graphic processing system | |
| JP2963320B2 (en) | Drawing display device | |
| JP3130948B2 (en) | Registration correction device and video camera | |
| JPH07200875A (en) | How to change the display position of the 3D model | |
| JPS6134676A (en) | Image processing system | |
| JPS61219806A (en) | Image processing method | |
| JPH01124069A (en) | Affin conversion method | |
| JP2636014B2 (en) | Figure connection control method | |
| JP2784591B2 (en) | Drawing method | |
| JPH0816929B2 (en) | Image processing device | |
| JPH07296029A (en) | Dimension line editing method |