JPH036674A - Picture distortion correcting device - Google Patents

Picture distortion correcting device

Info

Publication number
JPH036674A
JPH036674A JP1139253A JP13925389A JPH036674A JP H036674 A JPH036674 A JP H036674A JP 1139253 A JP1139253 A JP 1139253A JP 13925389 A JP13925389 A JP 13925389A JP H036674 A JPH036674 A JP H036674A
Authority
JP
Japan
Prior art keywords
coordinates
frame memory
memory
point
start point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1139253A
Other languages
Japanese (ja)
Inventor
Isao Horiba
堀場 勇夫
Koji Ueda
浩次 上田
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.)
Nagoya Electric Works Co Ltd
Original Assignee
Nagoya Electric Works 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 Nagoya Electric Works Co Ltd filed Critical Nagoya Electric Works Co Ltd
Priority to JP1139253A priority Critical patent/JPH036674A/en
Publication of JPH036674A publication Critical patent/JPH036674A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To correct a picture containing such distortion as distance, rotation, etc., into a desired form by setting the coordinates and the increment of a reading start point and controlling the address of the reading point of an input frame memory based on the addition arithmetic result using the set coordinates and increment. CONSTITUTION:The density value data obtained by quantizing the video image signal is stored in the coordinates corresponding to the position on an image pickup screen of an input frame memory Fi. The memories R and Rd store the reading point coordinates Xs and Ys given from the memory Fi and the increments DELTAx and DELTAy used for obtaining the next reading point coordinates based on the coordinates Xs and Ys. Then the memories R and Rd which reads successively the density value data out of the memory Fi based on the reading point coordinates obtained by the addition arithmetic using the coordinates Xs and Ys and the increments DELTAx and DELTAy to be stored. Thus it is possible to correct the distance distortion of photographed picture and the distortions of a rotary shift component, etc., and to reproduce a desired form.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、道路あるいは駐車場等の広範囲な領域を撮像
し、再生された画像によって各種の検知・解析処理を行
う場合などに好適な画像歪み補正装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention is suitable for capturing images of a wide range of areas such as roads or parking lots, and performing various detection and analysis processes using the reproduced images. The present invention relates to a distortion correction device.

〔従来の技術〕[Conventional technology]

一般に道路や駐車場あるいは生産ライン等をテレビカメ
ラで撮影し、その映像から交通流や駐車台数を検知した
り監視を行なう場合、撮像する範囲が広いことから、撮
影するテレビカメラの近傍では像が大きく写り、遠方に
なるほど像は小さく写る。
In general, when roads, parking lots, production lines, etc. are photographed with a television camera, and traffic flow or the number of parked cars is detected or monitored from the images, the imaged area is wide, so the image may not be visible near the television camera. The image appears larger, and the farther away it is, the smaller the image appears.

第2図(a)は駐車場を真上から見た場合の図であり、
図中の太線は個々の車両の駐車区域を示すための区画線
で、矢印は車両の入車方向で高速道路等のサービスエリ
アやパーキングエリアでは人出の効率を考えて図示のよ
うな斜めの駐車区域を指定する場合が多い。
Figure 2 (a) is a view of the parking lot viewed from directly above.
The thick lines in the figure are marking lines to indicate parking areas for individual vehicles, and the arrows indicate the direction of vehicle entry.In service areas such as expressways and parking areas, diagonal lines as shown in the figure are used to improve the efficiency of crowd flow. Parking areas are often designated.

同図(b)は上記の駐車場の一連の駐車区域■〜■を含
む駐車領域Eをその斜め上方から撮像したときの画像を
示すもので、いずれも手前が大きく遠方が小さく写る遠
近子を生じ、互いに平行な直線は収束点VP、、VP2
にそれぞれ収束しており、テレビカメラの設置位置によ
って回転移動成分も併せて生じている。
Figure (b) shows an image of the parking area E, which includes a series of parking areas ■ to ■, in the parking lot mentioned above, taken from diagonally above. The straight lines that occur and are parallel to each other are convergence points VP,, VP2
, and a rotational movement component also occurs depending on the installation position of the television camera.

このようにして道路あるいは駐車場を撮像して得られた
画像を観察して交通流や駐車場の管理を行なう場合には
、このような遠近子や回転移動成分によって画像の歪み
が生じる。
When managing traffic flows and parking lots by observing images obtained by photographing roads or parking lots in this manner, distortion of the images occurs due to such perspective factors and rotational movement components.

このような歪みを除去するためには、例えば見掛は上台
形のような歪んだ形状に撮像された駐車区域を矩形形状
として画像メモリおよび画面上に再生することが望まし
く、上記第2図(b)に示したような駐車区域■〜■か
らなる駐車領域Eの撮像画面を例えば同図(C)に示す
ように駐車区域■〜■がそれぞれ矩形領域として画像メ
モリおよび画面上に再生されるようにするのが望ましい
In order to remove such distortions, it is desirable to reproduce a parking area that has been imaged in a distorted shape, for example, an apparent upper trapezoid, on the image memory and screen as a rectangular shape. For example, the imaged screen of the parking area E consisting of the parking areas ■ to ■ as shown in b) is reproduced in the image memory and on the screen as each of the parking areas ■ to ■ as a rectangular area as shown in (C) of the same figure. It is desirable to do so.

このような処理を行うための従来の方法の一つは、道路
をその延長方向から撮像した第11図に示すように、撮
像された領域を画像の歪みの少ない近傍領域と画像の歪
みの大きい遠方領域とに分割して、歪みの大きい遠方領
域については処理対象領域の縁部に基準点A、、 A2
.−、、、−、、、 B、、 B2゜を設定し、これら
の基準点で囲まれる台形領域、例えば台形AI A2 
BI  B2が再生画像上で矩形となるように再生時の
ラスクースキャンを制御したりあるいは公知のアフィン
変換によって撮像画像上での台形領域を矩形状に変換す
ることが行われている。
One of the conventional methods for performing such processing is to divide the imaged area into a neighboring area with less image distortion and a neighboring area with more image distortion, as shown in Figure 11, which takes an image of a road from its extension direction. For the far region with large distortion, reference points A, A2 are placed at the edges of the processing target region.
.. -, , -, , B,, B2°, and create a trapezoidal area surrounded by these reference points, for example, trapezoid AI A2
Lascous scan during reproduction is controlled so that BI B2 becomes rectangular on the reproduced image, or a trapezoidal area on the captured image is converted into a rectangular shape by known affine transformation.

このような処理を行うと自動車などの被写体の形状など
に多少の変形を生じるけれども、交通管制や駐車場の管
理などを行う際にはこのような変形はさして問題となら
ず、画像の歪みを補正することによる処理の容易性を得
る効果の方が重視される。
Although such processing causes some deformation in the shape of objects such as cars, such deformation is not a big problem when performing traffic control or parking lot management, and image distortion can be avoided. More emphasis is placed on the effect of easing processing through correction.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、上記のようなフレームメモリを読出すた
めのスキャニングの動きを制御する場合には均一的なラ
スタースキャンが不可能となるので処理時間、処理の容
易性の面で障害となり、また、アフィン変換などを適用
して拡大処理を行う場合には一般的に浮動小数点による
行列演算が必要となるため、この演算をソフトウェアで
実行すると大きな処理時間を要し、ノ\−ドウエアによ
って実行しようとするとその構成が非常に複雑になると
いう欠点があった。
However, when controlling the scanning movement for reading the frame memory as described above, uniform raster scanning becomes impossible, which poses an obstacle in terms of processing time and ease of processing, and affine transformation Generally, floating-point matrix operations are required when performing enlargement processing by applying methods such as The disadvantage is that the configuration is extremely complex.

本発明は、撮像画像の遠近子、回転移動成分などの歪み
が簡単な加算演算結果を用いることによって補正が可能
となり、対象領域が例えば矩形などの所望の形状として
再生されるようにした画像歪み補正装置を得ることを目
的とする。
The present invention makes it possible to correct distortions such as perspective and rotation components of a captured image by using simple addition calculation results, and reproduces image distortions in a desired shape such as a rectangle. The purpose is to obtain a correction device.

〔課題を解決するための手段〕[Means to solve the problem]

第1図の原理図に示すように、撮像した画像データを蓄
積する入力フレームメモリFiと、該入力フレームメモ
リからの読出開始点の座標XS。
As shown in the principle diagram of FIG. 1, there is an input frame memory Fi that stores captured image data, and a coordinate XS of a reading start point from the input frame memory.

Ysおよびこの座標に基づいて次の読出点座標を得るた
めの増分Δx、Δyとをそれぞれ格納するメモリR,R
dと、該メモリが格納している読出開始点の座標と増分
とを用いた加算演算によって得た読出点座標により、上
記入力フレームメモリから順次濃度値データを読出すア
ドレス変換手段Cと、により画像歪み補正装置を構成し
た。
Memories R and R that store Ys and increments Δx and Δy for obtaining the next readout point coordinates based on these coordinates, respectively;
d, the readout point coordinates obtained by an addition operation using the coordinates of the readout start point stored in the memory, and the increment; An image distortion correction device was constructed.

また、別の実施態様として、出力フレームメモリにおけ
るスキャニング動作の範囲を規定するM。
In another embodiment, M defines the range of scanning operations in the output frame memory.

Nカウント設定部を備えた画像歪み補正装置を構成した
An image distortion correction device including an N count setting section was constructed.

なお、上記のアドレス変換手段Cは、第7図で説明する
マルチプレクサ11,12、加算器21゜22、xアド
レスレジスタ13.Yアドレスレジスタ14およびアド
レスデコーダ24から構成する。
Note that the above address conversion means C includes multiplexers 11 and 12, adders 21 and 22, x address register 13 . It consists of a Y address register 14 and an address decoder 24.

、〔作 用〕 本発明の原理を示す前記第1図には本発明の理解を容易
ならしめるために上記入力フレームメモリFiからの濃
度値データを出力フレームメモリFOに転送する際に画
像歪みの補正が行われるものとして示しである。この出
力フレームメモリからはラスタースキャンによって読出
しが行われる。
, [Function] In order to facilitate understanding of the present invention, FIG. 1, which shows the principle of the present invention, shows that image distortion occurs when the density value data from the input frame memory Fi is transferred to the output frame memory FO. It is shown that correction is performed. Reading from this output frame memory is performed by raster scanning.

また、入力フレームメモリおよび出力フレームメモリに
は撮像画像および歪み補正後の画像に対応するパターン
で濃度値データが格納されるものとしである。そして、
これら入力フレームメモリおよび出力フレームメモリの
アドレスは横軸座標および縦軸座標によって表されるも
のとして、この「アドレス」に代えて適宜「座標」の譜
を用いている。
It is also assumed that density value data is stored in the input frame memory and the output frame memory in a pattern corresponding to the captured image and the image after distortion correction. and,
The addresses of these input frame memories and output frame memories are represented by coordinates on the horizontal axis and coordinates on the vertical axis, and the notation of ``coordinates'' is used instead of ``address'' as appropriate.

なお、上記のように出力フレームメモ+JFoは理解を
容易ならしめるために例示したものであって、変換され
たアドレスによって入力フレームメモ+J F iから
読出された濃度値データを直接画像処理プロセッサなど
の処理装置に供給するようにしてもよい。
Note that as mentioned above, the output frame memo + JFo is shown as an example to make it easier to understand, and the density value data read from the input frame memo + JF i is directly input to an image processing processor, etc. using the converted address. It may also be supplied to a processing device.

先に引用した第2図(a)のように、例えば駐車場の複
数の駐車区域■〜■を含む駐車領域Eのビデオ画像信号
を量子化した濃度値データは、セレクタSを介して供給
されるビデオカメラの水平・垂直同期信号に基づいて生
成される書込アドレスによって入力フレームメモJFi
の撮像画面上の位置に対応する座標に格納されるが、こ
の入力フレームメモリ上の格納パターンを拡大して第3
図(a)に示す。
As shown in FIG. 2(a) cited above, the density value data obtained by quantizing the video image signal of a parking area E including a plurality of parking areas ■ to ■ of a parking lot, for example, is supplied via a selector S. The input frame memo JFi is determined by the write address generated based on the horizontal and vertical synchronization signals of the video camera
is stored at the coordinates corresponding to the position on the imaging screen, but by enlarging this storage pattern on the input frame memory, the third
Shown in Figure (a).

本発明による処理の基準となるハツチングして示した区
分線の濃度値データは固定したビデオカメラで撮像され
ていることから入力フレームメモリ上の一定の画素に格
納される。
Since the density value data of the hatched dividing line, which serves as a reference for processing according to the present invention, is captured by a fixed video camera, it is stored in a fixed pixel on the input frame memory.

このことから本発明で用いる読出開始点の座標および次
の読出点座標を得るための増分は、同一領域と撮像する
場合においては当然同じとなり、後述する計算によって
実際の画像に合わせて各々のメモリ上に設定するもので
ある。
From this, the coordinates of the readout start point and the increment for obtaining the next readout point coordinates used in the present invention are naturally the same when imaging the same area, and the calculations described later will adjust the readout start point coordinates and the increment for obtaining the next readout point coordinates to match the actual image. It is set above.

この出力フレームメモリF○が格納している濃度値デー
タをラスタースキャン動作によって読出したときに上記
の駐車区域などに相当する第3図(a)の対象区域p1
〜p、を同図(b)のp1′〜p。
When the density value data stored in this output frame memory F○ is read out by raster scanning operation, the target area p1 in FIG. 3(a) corresponding to the above-mentioned parking area etc.
~p, and p1'~p in the same figure (b).

のように矩形状などの所望の形状として再生する。It is reproduced as a desired shape such as a rectangle as shown in the figure.

そのために、上記入力フレームメモリ F iに例えば
この第3図(a)のようなパターンで格納されている濃
度値データを出力フレームメモリFOに転送する際に、
第1図に示すアドレス変換手段によって決定される入力
フレームメモリFiの読出アドレスから読出された濃度
値データがこの出力フレームメモリの当該アドレスに格
納されるようにする。
For this purpose, when transferring the density value data stored in the input frame memory F i in the pattern shown in FIG. 3(a) to the output frame memory FO, for example,
The density value data read from the read address of the input frame memory Fi determined by the address conversion means shown in FIG. 1 is stored at the corresponding address of the output frame memory.

なお、この第3図において、○および・は入力フレーム
メモリ上の画素に相当し、この・はハツチングして示し
た駐車区域を区分する線の濃度値データが格納されてい
る画素を示している。
In this figure, ○ and * correspond to pixels on the input frame memory, and this * indicates a pixel in which the density value data of the line dividing the parking area shown by hatching is stored. .

このようなパターンの変換を行うため、第4図に示すよ
うなラスタースキャンによる出力フレームメモリの書込
アドレスに対応して読出開始点座標メモリRに格納され
ている読出開始点座標(Xs、Ys)および増分メモリ
 Rdに格納されている増分Δx、Δyを用いて入力フ
レームメモリの読出アドレスに変換するアドレス変換手
段Cとを設ける。
In order to convert such a pattern, the read start point coordinates (Xs, Ys ) and an address conversion means C for converting into a read address of the input frame memory using the increments Δx and Δy stored in the incremental memory Rd.

次に、上記の読出開始点座標(Xs、Ys)および増分
Δx、Δyについてこの第3図を用いて説明する。
Next, the readout start point coordinates (Xs, Ys) and the increments Δx, Δy will be explained using FIG. 3.

画像中で補正を行うべき対象領域、この例では駐車区域
■の処理開始点を設定するが、この開始点°は上記のラ
スタースキャン動作を考慮して、出力フレームメモ’J
Fo上に最初に濃度値データの書込みが行われる点、す
なわちM=1. N=iである原点に書込まれる濃度値
データが読出される入力フレームメモリFI上の座標(
8,1)にあるpの点を対象領域■の処理開始点として
定める。
Set the processing start point for the target area to be corrected in the image, in this example the parking area ■.This starting point ° is determined by the output frame memo 'J' in consideration of the raster scan operation described above.
At the point where density value data is first written on Fo, that is, M=1. The coordinates (
8. The point p located at 1) is determined as the processing start point for the target area (■).

そして第3図(b)に示すように、この91点の濃度値
データが出力フレームメモリ F oのM=1゜N=1
である原点に書込まれ、また、この対象領域■を囲む線
分の端部である92点、93点および94点は、出力フ
レームメモリFoの座標M8、N=1であるM軸上の9
27点、座標M−1゜N=11であるN軸上の937点
および座標M=8、N=11であるp、′点にそれぞれ
書込まれるようにする。
As shown in FIG. 3(b), the density value data of these 91 points is stored in the output frame memory F o M=1°N=1
Points 92, 93, and 94, which are the ends of the line segment that surrounds this target area ■, are written at the origin, which is the coordinate M8 of the output frame memory Fo, on the M axis where N=1. 9
27 points, 937 points on the N axis with coordinates M-1°N=11, and points p and ' with coordinates M=8, N=11, respectively.

このため、入力フレームメモリF1から出力フレームメ
モリ F oへ濃度値データを転送する際、出力フレー
ムメモリFoの書込アドレス(m、n)に下記の(1)
式のような加算演算を行って入力フレ−ムメモリFiの
読出アドレス(x、  y)を算出する。
Therefore, when transferring the density value data from the input frame memory F1 to the output frame memory Fo, the following (1) is written to the write address (m, n) of the output frame memory Fo.
The read address (x, y) of the input frame memory Fi is calculated by performing an addition operation as shown in the equation.

x = INT (Xs (n)  +Δx (n) 
 ・(m−1) )3’ = INT (Y s (n
)  +△y(n)  ・(m−1))(1) ここで、INTは小数点以下を切り捨てる整数化関数で
あって、メモリの記憶素子は整数のアドレスにしか存在
しないことに基づくものである。
x = INT (Xs (n) +Δx (n)
・(m-1) )3' = INT (Y s (n
) +△y(n) ・(m-1)) (1) Here, INT is an integer function that truncates the fraction below the decimal point, and is based on the fact that memory storage elements exist only at integer addresses. be.

また、この整数化関数は(1)式右辺の括弧内の演算結
果が小数点以上に桁上げを生じない限り座標上の値は変
化せず同一となるような操作も合わせ持っている。
This integerization function also has an operation in which the values on the coordinates do not change and remain the same unless the calculation result in the parentheses on the right side of equation (1) is carried beyond the decimal point.

次に、上記の式について説明すると、mは出力フレーム
メモ1JFoO書込アドレスのM軸の値であって、この
メモリの原点(1,1)から第4図の走査線上で書込み
が既に行われた画素数をZとすると、 m=Mod  (Z/Mmax ) (なお、Modは剰余、Mmaxは第4図に示したよう
にM軸の最大値、換言すれば1本の走査線上の画素数)
である。
Next, to explain the above formula, m is the value of the M axis of the output frame memo 1JFoO write address, and writing has already been done on the scanning line in Figure 4 from the origin (1, 1) of this memory. If the number of pixels is Z, then m = Mod (Z/Mmax) (Mod is the remainder, and Mmax is the maximum value of the M axis as shown in Figure 4, in other words, the number of pixels on one scanning line. )
It is.

また、出力フレームメモリの書込アドレスのN軸の値n
は括弧内に示されているnに相当するものであり、その
値nは n= I NT (Z/Mmax ) + 1であって
、出力フレームメモリF○のM軸を#1として下から数
えた走査線の番号である。
Also, the N-axis value n of the write address of the output frame memory
corresponds to n shown in parentheses, and the value n is n=I NT (Z/Mmax) + 1, counting from the bottom with the M axis of output frame memory F○ being #1. is the number of the scan line.

したがって、X s (n)およびY s (n)は出
力フレームメモリの座標(L n>に書込む濃度値デー
タを読出す入力7レームメモリ F i上の読出開始点
の座標である。以下、この出力フレームメモリの座標(
1,n)に相当する点を書込開始点、この書込開始点に
書込む濃度値データを読出す入力フレームメモリの座標
に相当する点を読出開始点という。
Therefore, X s (n) and Y s (n) are the coordinates of the reading start point on the input 7 frame memory F i from which the density value data to be written to the coordinates (L n >) of the output frame memory are read. The coordinates of this output frame memory (
1, n) is called a write start point, and a point corresponding to the coordinates of the input frame memory from which density value data to be written to this write start point is read is called a read start point.

なお、この書込開始点のn値は、前述のm、  nの式
より分かるようにMmaxの値を規定すればm=1 (
座標の原点)を開始点とする場合にはスキャニング動作
によって自動的に設定される。
Note that the n value of this writing start point is m = 1 (
If the starting point is the origin of the coordinates, it is automatically set by the scanning operation.

また、増分Δx (n)およびΔy (n)は上記読出
開始点X s (n) 、 Y s (n)に続いてこ
の書込開始点の属する走査線上の画素に順次書込むべき
濃度値データを順次読出すために、出力フレームメモリ
の書込点のM軸座標の値が1増加したときに入力フレー
ムメモリFl上での読出点が読出開始点からの移動する
時のN軸およびY軸の座標の増分を示す。(この増分は
ΔXとΔyの比によって求まる直線の傾きを意味する。
Further, the increments Δx (n) and Δy (n) are the density value data to be sequentially written to the pixels on the scanning line to which the write start point belongs following the read start points X s (n) and Y s (n). In order to read sequentially, when the value of the M-axis coordinate of the write point of the output frame memory increases by 1, the N-axis and Y-axis when the read point on the input frame memory Fl moves from the read start point. indicates the increment of the coordinates. (This increment means the slope of the straight line determined by the ratio of ΔX and Δy.

) これらの増分を求めるためには比カフレームメモ+J−
F oON軸上にある各書込開始点に対応するm=8の
線上にある対向点に対応する入力フレームメモリ上の点
を定めなければならない。
) To find these increments, compare frame memo + J-
Points on the input frame memory must be determined that correspond to opposing points on the m=8 line corresponding to each write start point on the F oON axis.

すなわち、第3図(a)の線分り+  p3上の画素数
と線分1)21)4上の画素数とは一般に相違するから
、線分1)+  p3上のそれぞれの画素に対応する線
分1)2 ps上の画素を実存する画素として規定する
ことができない。
In other words, since the number of pixels on line segment + p3 in Fig. 3(a) and the number of pixels on line segment 1)21)4 are generally different, the number of pixels on line segment 1) + p3 corresponds to each pixel on line segment 1) + p3. Line segment 1) A pixel on 2 ps cannot be defined as an existing pixel.

そこで、線分p+  ps上の画素数を基準画素数とし
てAで、また、線分p2 p4上の画素数を拡大画素数
としてBで表し、点p1とp31点p2とp4 とのそ
れぞれのX軸上の座標の差により近似的にそれぞれの画
素数が定まるものとすると、各々X軸上の画素数の比は A   (Xp3−XI)l)   基準画素数   
(2)となる。
Therefore, the number of pixels on the line segment p + ps is expressed as the reference pixel number by A, and the number of pixels on the line segments p2 to p4 is expressed as the enlarged pixel number by B, and the respective X of points p1 and p31 and points p2 and p4 are Assuming that each number of pixels is approximately determined by the difference in coordinates on the axis, the ratio of the number of pixels on each X axis is A (Xp3-XI)l) Standard number of pixels
(2) becomes.

ここで、B/A=にとおいてこれを拡大率とすると、こ
の拡大率は線分p+  p3上の画素数と線分pi I
)4上の画素数を同一とするための線分p2 p<の画
素についてのX軸増分となり、これは、線分pI  1
)3上のX軸方向の画素間の増分を1としたとき、線分
1)2  ps上のX軸方向の画素間の増分をKとする
ことによって線分pI  p3上のそれぞれの画素に対
応する線分p2 p<上の点を見掛は上1対1で作り出
すことができる。
Here, if B/A= and this is the magnification rate, this magnification rate is the number of pixels on the line segment p+ p3 and the line segment pi I
) 4 to make the number of pixels the same, the line segment p2 is the X-axis increment for pixels p<;
) 3 in the X-axis direction, then by setting the increment between pixels in the X-axis direction on line segment 1) 2 ps to K, each pixel on line segment pI p3 The appearance of points on the corresponding line segment p2 p< can be created in a one-to-one ratio.

また、上記のように、線分p+  p3上の画素に対応
する線分1)2 p4上の点を見掛は上作り出すことで
、各々対応する点間の幅(画素数)も近似的に求めるこ
とが可能になる。
In addition, as mentioned above, by making the points on the line segment 1)2 p4 corresponding to the pixels on the line segment p+ p3 appear better, the width (number of pixels) between each corresponding point can also be approximated. It becomes possible to ask for it.

つまり、上記と同様にX軸上の座標の差によりそれぞれ
線分p+  +)3および線分1)2 ps上の対応す
る点間の画素数が求まるものとすれば、点pとp2との
間の画素数は(Xp2Xp+)となる。
In other words, if we assume that the number of pixels between corresponding points on line segment p+ +)3 and line segment 1)2 ps can be determined by the difference in coordinates on the X axis as above, then the number of pixels between points p and p2 is The number of pixels in between is (Xp2Xp+).

そこで、この画素数を上記(2)式の基準画素数とする
と、点p3.p4間の画素数は(Xp4−Xp3) i
:なる。そして、この(XI)4−Xp3)の画素数を
拡大画素数とすると、その両者の比(xp4  Xp3
)/(Xp2Xp+)は、線分p+  p2上の画素数
と線分p3p4上の画素数を同一とするだめの線分p3
  p4の画素についてのX軸増分ΔXとなる。
Therefore, if this number of pixels is used as the reference number of pixels in equation (2) above, then point p3. The number of pixels between p4 is (Xp4-Xp3) i
:Become. Then, if the number of pixels of (XI)4-Xp3) is the number of enlarged pixels, the ratio of both (xp4
)/(Xp2Xp+) is a line segment p3 that makes the number of pixels on line segment p+ p2 and the number of pixels on line segment p3p4 the same.
This is the X-axis increment ΔX for the pixel p4.

もちろん、ここでは例として、線分p3  p<のみを
取り上げたが、先に求めた線分1)2 p<上の対応点
く以後、仮想点と呼ぶ)毎に線分p+  l)2の画素
数を基準としてこのΔXを求める。
Of course, we have taken only the line segment p3 p< as an example here, but for each corresponding point on the previously calculated line segment 1)2 p< (hereinafter referred to as a virtual point), the line segment p+ l)2 This ΔX is determined based on the number of pixels.

ただし、この各々のΔXをX方向の増分とすることによ
って各線分は見掛は上、基準画素数と同一の画素数とな
るため、ここではΔXを拡大率として扱っている。
However, by setting each ΔX as an increment in the X direction, each line segment appears to have the same number of pixels as the reference pixel number, so ΔX is treated as an enlargement ratio here.

さらに、線分p+  p3上の画素に対応する線分p2
p4上の点を見掛は上1対1で作り出したことで各々の
対応する点間における直線を規定することができる。こ
の各々の直線に沿って読出点を進めることで、例えば線
分p+  p2は第3図(b)の線分p1′ p2′の
ように入力フレームメモリF1」−で斜めの線であった
ものを直線として出力フレームメモリFo上に書込むこ
とができる。
Furthermore, the line segment p2 corresponding to the pixel on the line segment p+ p3
By creating the points on p4 in an apparent 1:1 ratio, it is possible to define a straight line between each corresponding point. By advancing the readout point along each of these straight lines, for example, line segment p+ p2 can be changed to line segment p1'p2' in FIG. 3(b), which was a diagonal line in input frame memory F1'-. can be written as a straight line on the output frame memory Fo.

この各々の直線に沿って入力フレームメモ’JFl上の
データを読出すことは、各々の直線の傾きでx、yの座
標値を増加させることに等しい。
Reading the data on the input frame memo 'JFl along each of these straight lines is equivalent to increasing the x and y coordinate values with the slope of each straight line.

つまり、この直線の傾きが上記(1)式中のΔXとΔy
の関係として△X/ΔyとなるようにΔXと△yを選ぶ
ことで、この直線に沿った濃度値データの読出しが可能
になる。
In other words, the slope of this straight line is ΔX and Δy in equation (1) above.
By selecting ΔX and Δy so that the relationship is ΔX/Δy, it becomes possible to read density value data along this straight line.

したがって、第3図(a)で点p1をn=1の読出開始
点とすれば、X軸増分ΔX(1)は点p、およびp2の
X軸の差分画素数つまり拡大画素数(Xp2Xp+)を
出力フレームメモリ上でこの点p1 とp2に対応する
p1′とp2′との間の画素の間隔数7 (基準画素数
)で割った値となる。
Therefore, if point p1 is the readout starting point for n=1 in FIG. 3(a), the X-axis increment ΔX(1) is the difference in the number of pixels on the X-axis between point p and p2, that is, the number of enlarged pixels (Xp2Xp+) is divided by the number of pixel intervals 7 (reference number of pixels) between p1' and p2' corresponding to points p1 and p2 on the output frame memory.

また、Y軸増分△yは、線分Ill  +)2の傾きが
△y(1)/Δx(1)=(1−5)/(8−15) 
= 4/ 7であることから Δy(1)=4/7xΔX(1)となる。
In addition, the Y-axis increment △y has the slope of the line segment Ill +)2 as △y(1)/Δx(1) = (1-5)/(8-15)
= 4/7, so Δy(1)=4/7xΔX(1).

換言すれば、この増分△X、Δyは入力フレームメモ1
JFi上の読出開始点に続いて順次読出されるべき画素
の読出座標の移動方向のベクトルに相当する。ただし、
上述したところから判るように、増分Δx、Δyは一般
に小数を含む値となるため、前記(1)式に示したよう
な整数化を行わないとメモリに実在する記憶素子にアク
セスするための座標を得ることができない。
In other words, these increments △X, Δy are input frame memo 1
This corresponds to a vector in the moving direction of the readout coordinates of pixels to be sequentially read out following the readout start point on JFi. however,
As can be seen from the above, the increments Δx and Δy are generally values that include decimals, so unless they are converted into integers as shown in equation (1) above, the coordinates for accessing the storage elements that actually exist in the memory will be can't get it.

次頁の第1表は第3図に示した例についての書込開始点
の番号およびその座標と、この書込開始点に対応する読
出開始点のX軸座標Xs、Y軸座標Ys、X軸増分ΔX
およびY軸増分△yとを示したもので、これらの値によ
って定められる出力フレームメモリ上での書込点のM軸
の値mに対応する入力フレームメモリ上での読出点の座
標も示しである。
Table 1 on the next page shows the write start point number and its coordinates for the example shown in Figure 3, and the X-axis coordinates Xs, Y-axis coordinates Ys, and Axis increment ΔX
and Y-axis increment Δy, and also shows the coordinates of the read point on the input frame memory corresponding to the M-axis value m of the write point on the output frame memory determined by these values. be.

なお、第1図に示した読出開始点メモリ Rには上記読
出開始点のX軸座標XsおよびY軸座標YSが、また、
増分メモリRdには上記X軸増分ΔXおよびY軸増分Δ
yが格納されるものであり、本発明によって上記読出点
座標はこれらの値を用いた前記(1)式の加算演算によ
って算出される。
Note that the read start point memory R shown in FIG. 1 contains the X-axis coordinate Xs and Y-axis coordinate YS of the read start point, and
Incremental memory Rd stores the above X-axis increment ΔX and Y-axis increment Δ
y is stored, and according to the present invention, the readout point coordinates are calculated by the addition operation of equation (1) using these values.

この第1表の最初の欄は読出開始点の番号、■瀾は書込
開始点の座標、■欄および■(閑は読出開始点のX軸座
標およびY軸座標、■欄および■欄はこの読出開始点か
らのX軸増分およびY軸増分であり、■欄である「M座
標の値」はこれらの値によって定められる出力フレーム
メモリでの書込点のM軸の値がm=lからラスタースキ
ャンによって逐次増加してm=8になるまでのそれぞれ
のmの値に対応する入力フレームメモリの読出点の座標
(x、  y)であって、本発明によって上記読出点座
標はXs、 Ys、 △X、Δyの値を用いた(1)式
の加算演算によって算出されることは前述のとおりであ
る。
The first column of this Table 1 is the number of the reading start point, the ■ column is the coordinate of the writing start point, the ■ column and These are the X-axis increment and Y-axis increment from this reading start point, and the "M-coordinate value" in the column (■) indicates that the M-axis value of the write point in the output frame memory determined by these values is m=l. The coordinates (x, y) of the readout point of the input frame memory corresponding to each value of m sequentially increased from 1 to 8 by raster scanning until m=8, and according to the present invention, the readout point coordinates are Xs, As described above, it is calculated by the addition operation of equation (1) using the values of Ys, ΔX, and Δy.

第3図(a)には細い点線によって第1表にしたがって
読出される入力フレームメモリ上の読出点の軌跡を示し
てあり、第3図ら)に示した出力フレームメモリF○の
原点座標(1,1)が第4図に示したようなラスタース
キャンによる最初の書込点となり、この点に同図(a)
にplで示した#1の読出開始点X5(1)、Ys(1
) の濃度値データp+’点に書込む。なお、この#1
読出開始点の座標が読出開始点メモリ Rから読出され
ることはいうまでもない。
In FIG. 3(a), the trajectory of the readout point on the input frame memory read out according to Table 1 is shown by a thin dotted line, and the origin coordinates (1) of the output frame memory F○ shown in FIG. , 1) becomes the first writing point by raster scanning as shown in Fig. 4, and the point shown in Fig. 4(a) is
#1 readout start point X5(1), Ys(1
) is written in the density value data at point p+'. Furthermore, this #1
It goes without saying that the coordinates of the read start point are read out from the read start point memory R.

続く次の書込座標(2,1)においてはN軸の値“1”
は変らないがM座標の値が2になるので、増分ΔX =
1.00.  △y =0.71を上記入力フレームメ
モリの読出開始点座標(8,1)に加算することによっ
て得られる座標値x = 8 +1.00=9. ’l
 = 1 +Q。
At the next writing coordinate (2, 1), the value of the N axis is “1”
does not change, but the value of the M coordinate becomes 2, so the increment ΔX =
1.00. Coordinate value x = 8 + 1.00 = 9.0 obtained by adding Δy = 0.71 to the reading start point coordinates (8, 1) of the input frame memory. 'l
= 1 +Q.

71=1.71によって与えられる座標で読出しを行う
ことになるが、座標の値はフレームメモリのアドレスで
あるから整数でなければ該当する記憶素子はないので、
整数ではないY軸の値1.71については小数以下を切
り捨てて座標(9,1)から読出すようにするので、上
記第1表の#1行のM座標の値m=2の欄にはこの入力
フレームメモリの座標(9、l)が示されている。
Reading will be performed at the coordinates given by 71=1.71, but since the coordinate values are frame memory addresses, unless they are integers, there is no corresponding storage element.
For the Y-axis value 1.71, which is not an integer, the decimal part is rounded down and read from the coordinates (9, 1), so the value m = 2 of the M coordinate in row #1 of Table 1 above is indicates the coordinates (9, l) of this input frame memory.

ラスタースキャンによって出力フレームメモリの書込座
標が(3,1)になると、入力フレームメモリの読出座
標のX軸の値Xは、X=8+2XΔX−8+ 2 =1
0に、またY軸の値yはV=1+2X△y = 1 +
 2 xO,71= 1 +1.42=2.42となる
が、このY軸の値は上述の場合と同様に小数点以下を切
り捨てて2となる。
When the write coordinates of the output frame memory become (3, 1) due to raster scanning, the value X of the X-axis of the read coordinates of the input frame memory is X=8+2XΔX-8+2=1
0, and the value y on the Y axis is V = 1 + 2X△y = 1 +
2 x O, 71 = 1 + 1.42 = 2.42, but the value of this Y axis is rounded down to 2 as in the above case.

このようにして、上側の書込開始点の座標が(1,1)
の場合を例にとれば、入力フレームメモリの座標(8,
1) −(9,1)→(10,2)→(11,3) −
(12,3)→(13,4)→(14,5) −(15
,5)の順に8つの画素についての濃度値データが順次
読出され、これらの濃度値データは出力フレームメモリ
のM軸の座標が1ずつ増加していることから(1,1)
→(2,1) −(3゜1)−(4,1)→(5,1)
 −(6,1)→(7,1) −(8,1)の8つの座
標に順次書込まれることになる。
In this way, the coordinates of the upper writing start point are (1, 1)
For example, if the input frame memory coordinates (8,
1) −(9,1)→(10,2)→(11,3) −
(12,3)→(13,4)→(14,5) −(15
, 5), the density value data for the eight pixels are sequentially read out, and since the coordinates of the M axis of the output frame memory increase by 1, these density value data are (1, 1).
→(2,1) −(3゜1)−(4,1)→(5,1)
It will be sequentially written to eight coordinates: -(6,1)→(7,1) -(8,1).

このようにして、この走査線の最後の画素まで書込みが
行われると、第4図のラスタースキャンの図から明らか
なようにN軸の値に“l”が加算されてこの出力フレー
ムメモリのN軸の値nは2となり、M軸の値mは1にリ
セットされるので、この(1,2)の座標を書込開始点
とする#2の読出開始点に移る。このときMmax=3
と規定すれば第3図(b)のm=l〜8のスキャニング
動作が実行される。
In this way, when writing is performed up to the last pixel of this scanning line, "l" is added to the value of the N axis, as is clear from the raster scan diagram in FIG. Since the value n of the axis becomes 2 and the value m of the M axis is reset to 1, the writing starts at the coordinates (1, 2) and moves to the reading start point #2. At this time Mmax=3
If this is specified, the scanning operation of m=1 to 8 in FIG. 3(b) will be executed.

これによって、この書込開始点座標(1,2)に対応す
る入力フレームメモリの読出開始点座標X5(2) =
7. Ys(2) −2が読出開始点メモリRから、ま
た、増分メモリRdから増分Δx(2> =1゜00お
よび△y(2) =O167が読出されて上記の第1行
におけると同様に入力フレームメモリの該当する座標か
ら順次読出しが行われるが、整数化演算によって第1表
に示されるように、入力フレームメモリの座標(7,2
)からは(8,2)→(9,3)→(10゜4)→(1
1,4)→(12,5)→(13,6)→(14,6)
の順に8つの画素についての濃度値データが順次読出さ
れて出力フレームメモリFOの(1,2)から(2,2
)−(3,2)→(4,2)→(5,2)→(6,2)
→(7,2)→(8,2)の8つの座標に順次書込まれ
る。
As a result, the read start point coordinates of the input frame memory corresponding to the write start point coordinates (1, 2) X5 (2) =
7. Ys(2) -2 is read from the read start point memory R and the increment Δx(2> = 1°00 and Δy(2) = O167 is read from the increment memory Rd, as in the first line above. Reading is performed sequentially from the corresponding coordinates of the input frame memory, but as shown in Table 1, the input frame memory coordinates (7, 2
) from (8,2) → (9,3) → (10°4) → (1
1,4) → (12,5) → (13,6) → (14,6)
The density value data for the eight pixels are sequentially read out from (1, 2) to (2, 2) in the output frame memory FO
) − (3, 2) → (4, 2) → (5, 2) → (6, 2)
→ (7, 2) → (8, 2) are sequentially written to eight coordinates.

しかしながら、#3の読出開始点(Xs(3)。However, the reading start point of #3 (Xs(3).

YS(3))である入力フレームメモリの座標(7゜3
)からの読出しの場合には、第3図(a)にこの座標か
ら始まる読出点の軌跡上の画素数を数えれば判るように
読出点が7つしかなく、このため座標(7゜3)の濃度
値データを出力フレームメモリ F oの(1、”3)
および(2,3)の2つの画素に書込み、これによって
出力フレームメモリ上での書込画素数を#1および#2
の読出開始点のときと同様に8つとしてこの出力フレー
ムメモリ上で矩形状のパターンが保たれるようにしてい
る。
The input frame memory coordinates (7°3
), as can be seen by counting the number of pixels on the trajectory of the readout points starting from this coordinate in Figure 3(a), there are only seven readout points, so the coordinate (7°3) Output the density value data of frame memory F o (1, “3)
and (2, 3), thereby increasing the number of writing pixels on the output frame memory to #1 and #2.
As in the case of the reading start point, eight frames are set so that a rectangular pattern is maintained on this output frame memory.

このことは前記(1)式におけるX、Y軸の増分Δx、
Δyの数値を前記のように選ぶことで、これらを用いた
加算演算結果が小数点以上への桁上げをするまでは同一
点を読出す操作が生じる。それによって見掛は上の読出
し画素数が同一となり矩形状とすることができる。
This means that the increment Δx of the X and Y axes in equation (1) above,
By selecting the numerical values of Δy as described above, an operation of reading out the same point occurs until the result of the addition operation using these values is carried beyond the decimal point. As a result, the number of read pixels on the top side becomes the same, making it possible to form a rectangular shape.

また、#4以降の読出開始点から始まる読出しの場合も
同様であって、#11の読出開始点の場合には入力フレ
ームメモリの座標(2,11)および(4゜12)から
はいずれも出力フレームメモリの2つの画素に書込みを
行っている。
The same applies to the case of reading starting from the reading start point after #4, and in the case of the reading start point #11, there is no data from the coordinates (2, 11) and (4°12) of the input frame memory. Two pixels in the output frame memory are being written to.

そして第3図(a)と(′b)とを対比することによっ
て明らかなように、斜めの線として入力フレームメモリ
に格納されていた駐車区域■の区分線が出力フレームメ
モリ上では垂直あるいは水平の線として格納されるばか
りでなく、この図(a)に示したように読出開始点が直
線上にない場合であっても同図(b)に示すように直線
として格納され、これによって歪んだ形状として入力フ
レームメモリに格納されていた駐車区域■が出力フレー
ムメモリ上では矩形として格納されるという効果が達成
されている。
As is clear from comparing Figure 3 (a) and ('b), the marking line of the parking area ■, which was stored in the input frame memory as a diagonal line, appears vertically or horizontally in the output frame memory. In addition to being stored as a straight line as shown in Figure (a), even if the readout start point is not on a straight line, it is stored as a straight line as shown in Figure (b), which causes distortion. The effect has been achieved that the parking area ■, which was stored as a rectangle in the input frame memory, is stored as a rectangle in the output frame memory.

また、前記のN軸の増分ΔXが拡大率に相当するもので
あることは前述のとおりであるが、仮にこの増分ΔX=
0.1とした場合、すなわち前記(1)式でX−INT
 (Xs(n)+0.IX’ (m−1))とした場合
にはmが11増加することによって始めて桁上げが生じ
ることになる。そして、この桁上げが生じるまではIN
T関数による小数以下の切捨てによって入力フレームメ
モリFiのN軸の読出座標は進まずに同一の値となるた
め、二の間の出力フレームメモリ F iOM軸上の1
0画素については同じデータが次々に書き込まれること
になり、結局入力フレームメモリ上の1つの画素の濃変
位データが出力フレームメモリ上では10の画素に拡大
されたことになる。
Furthermore, as mentioned above, the increment ΔX on the N-axis corresponds to the magnification ratio, but if this increment ΔX=
When set to 0.1, that is, in the above formula (1), X-INT
In the case of (Xs(n)+0.IX' (m-1)), a carry occurs only when m increases by 11. Then, until this carry occurs, IN
Due to the truncation by the T function, the read coordinates of the N axis of the input frame memory Fi do not advance and become the same value, so the output frame memory F between 2 and 1 on the iOM axis does not advance.
As for the 0 pixel, the same data is written one after another, and in the end, the dark displacement data of one pixel on the input frame memory is expanded to 10 pixels on the output frame memory.

また、逆にΔXの値が1以上になれば、入力フレームメ
モリ上の画素の中で読出しが行われない画素を生じるの
で、出力フレームメモリ上ではパターンが縮小されるこ
とになり、このように増分ΔXの値を適当に選ぶことに
よって入力フレームメモリFl上の線分を出力フレーム
メモリ上あるいは再生された画像上では拡大・縮小する
ことが可能となる。
Conversely, if the value of ΔX becomes 1 or more, some pixels on the input frame memory will not be read out, so the pattern will be reduced on the output frame memory. By appropriately selecting the value of the increment ΔX, it is possible to enlarge or reduce the line segment on the input frame memory Fl on the output frame memory or on the reproduced image.

ここで、Δx、Δyの設定方法および(1)式を用いた
読出点の算出方法を詳細に説明するために、計算による
算出方法について説明する。
Here, in order to explain in detail the method of setting Δx and Δy and the method of calculating the readout point using equation (1), a calculation method will be described.

第3図(a)および(b)における区分線の形状を比較
すると、(a)図のpl  1)2 T)41)3で囲
まれた領域から)図の出力フレームメモリ上のパターン
p1′p2′ p4′ p3′においては8×11画素
の矩形状のパターンとして格納されており、したがって
入力フレームメモリ上でpl  p2 1:)4  p
3で囲まれている領域の対向する辺、例えば直線pIp
3上と直線p21)4上での画素数が等しくなるように
して出力フレームメモリ上に転送しなければならない。
Comparing the shapes of the dividing lines in FIGS. 3(a) and (b), we find that the pattern p1' on the output frame memory in FIG. p2'p4'p3' is stored as a rectangular pattern of 8 x 11 pixels, so pl p2 1:)4 p is stored on the input frame memory.
Opposite sides of the area surrounded by 3, for example, the straight line pIp
The number of pixels on the line p21) and the line p21) must be made equal before transferring it to the output frame memory.

そこで、直線1)+  p3上の画素数を前記第1表に
示すように11、直線1)21)4上での画素数を9と
すると、直線りl  p3上の11の画素のそれぞれの
間隔を1としたときにはこれら画素に対応する直線1)
2 pa上での画素の間隔には9/11−0.82であ
ればよく、また、この直線り2 1)4はy=−X+2
0になっていることから読出開始点(Xs(1) 、 
Ys(1)) 〜(Xs(11) 、Ys(11))で
あるこれら直線p+  p3上の11の画素に対応する
直線p21)4に想定した仮想点は次の第2表に示すよ
うになる。
Therefore, if the number of pixels on straight line 1) + p3 is 11 as shown in Table 1 above, and the number of pixels on straight line 1)21)4 is 9, then each of the 11 pixels on straight line l p3 When the interval is 1, the straight line 1) corresponding to these pixels
The pixel spacing on 2 pa should be 9/11-0.82, and this straight line 21)4 is y=-X+2
Since it is 0, the reading start point (Xs(1),
The virtual points assumed on the straight line p21)4 corresponding to the 11 pixels on these straight lines p+ p3, which are Ys(1)) ~ (Xs(11), Ys(11)), are as shown in Table 2 below. Become.

第2表 第3表 なお、仮想点のX座標X i (n)およびY座標Yi
 (n) における括弧の中のnは読出開始点の括弧中
に示した読出開始点番号であり、読出開始点(Xs(5
)、Ys(5)) に対応する仮想点ハ(Xi(5) 
、  Y 1(5) )である。
Table 2 Table 3 In addition, the X coordinate X i (n) and Y coordinate Yi of the virtual point
n in parentheses in (n) is the readout start point number shown in the parentheses of the readout start point, and the readout start point (Xs(5
), Ys(5)), the virtual point C(Xi(5)
, Y1(5)).

そこでこの読出開始点とこの読出開始点に対応する仮想
点との間を結ぶ線分の傾きを求めると、その傾きf’(
n) は、 f’ (n) =(Ys(n)−Yi(n))/(Xs
(n)−xi(n))によって求められるので、これを
下記の第3表に示す。
Therefore, if we calculate the slope of the line segment connecting this readout start point and the virtual point corresponding to this readout start point, we can find the slope f'(
n) is f' (n) = (Ys(n)-Yi(n))/(Xs
(n)-xi(n)), which is shown in Table 3 below.

次に入力フレームメモリの直線p+  p2上の画素数
を基準にして直線p3 p4の画素数をこれと同数に拡
大するとともに歪みの補正を行うものとすると、各読出
開始点から対応する仮想点との間の画素数とこれによっ
て求まるX軸方向の増分ΔXは次の第4表のようになる
Next, if we expand the number of pixels on the straight lines p3 and p4 to the same number as the number of pixels on the straight line p+p2 of the input frame memory and correct the distortion, we will calculate the corresponding virtual point from each reading start point. The number of pixels in between and the increment ΔX in the X-axis direction determined based on the number of pixels are as shown in Table 4 below.

第4表 第5表 先に第3表で示したように読出開始点から対応する仮想
点を結ぶ傾きが既に判っているから、このようにしてX
軸方向の増分ΔXが求まるとY軸方向の増分Δyは下式
によって算出することができる。
Table 4 Table 5 As shown in Table 3 above, since the slope connecting the reading start point to the corresponding virtual point is already known,
Once the increment ΔX in the axial direction is determined, the increment Δy in the Y-axis direction can be calculated using the following formula.

△y(n)=Δx (n)  ・f’(n)このように
して得られた、各読出開始点からのY軸方向の増分Δy
を次の第5表に示す。
Δy(n) = Δx (n) ・f'(n) Increment Δy in the Y-axis direction from each reading start point obtained in this way
are shown in Table 5 below.

なお、この増分ΔXあるいは△yが1より大きい数であ
れば入力フレームメモリの画素がとびとびに読出されて
上記の場合とは逆に縮小が行われることになり、−船釣
に、これらの増分の漉を適当に選定することによって入
力フレームメモリ上でのパターンが出力フレームメモリ
上で所要の形状が得られるように変形することができる
Note that if this increment ΔX or Δy is a number larger than 1, the pixels of the input frame memory will be read out intermittently and the reduction will be performed in the opposite way to the above case. By appropriately selecting the filter, the pattern on the input frame memory can be transformed so as to obtain the desired shape on the output frame memory.

また、この第3図(a)では入力フレームメモリの座標
(8,3)、 (10,6)などの画素については読出
しが行われていないけれども、本発明を駐車場の管理な
どに適用する場合などには1つの画素だけにしか濃度値
データが格納されないような小さな物を対象とする必要
はなく、また同様に被写体の形状に多少の変形があって
もマクロ的に濃度値の変化をとらえる場合には実用上問
題はなく、上記のような簡単な演算によって撮像画像の
歪みを高速に処理しラスタースキャンの容易な矩形状に
補正ができることの効果が極めて大きい。
Furthermore, although the pixels at coordinates (8, 3), (10, 6), etc. of the input frame memory are not read out in FIG. 3(a), the present invention can be applied to parking lot management, etc. In some cases, it is not necessary to target a small object where density value data is stored in only one pixel, and similarly, even if there is some deformation in the shape of the subject, changes in density value can be detected macroscopically. There is no practical problem when capturing an image, and the effect of being able to quickly process the distortion of a captured image and correct it to a rectangular shape that is easy to raster scan using simple calculations as described above is extremely large.

なお、以上の説明では第2図ら〕の駐車区域■の処理に
ついてのみ述べたが、駐車区域■〜■についても駐車区
域■〜■を1つの区域としてとらえ■と同様の処理を行
うことで第2図(C)に示す画像に再生することができ
る。また、再生した■〜■の駐車区域を同一とする場合
には第3図(a)の座標(15,6)から(7,14)
を結ぶ線上の画素を読出開始点として上記の駐車区域■
と同様の処理を行えばよく、このときには入力フレーム
メモリの座標(15゜6)が読出開始点となって出力フ
レームメモリの例えば(9,1)の座標に書込まれるよ
うにする。前記の表では#12に書込開始点としてn−
1,m=9を、またΔXおよびΔyとして計算あるいは
実際に合わせた数値が入るようにすればよく、これらの
データを読出開始点メモリおよび増分メモリにそれぞれ
格納し、スキャニング動作(書込)範囲を予め設定すれ
ばよい。
In addition, in the above explanation, only the processing of the parking area ■ in Figure 2 etc.] was described, but the parking areas ■ to ■ can also be treated as one area and the same processing as ■ The image can be reproduced as shown in FIG. 2(C). In addition, if the reproduced parking areas of ■ to ■ are the same, the coordinates (15, 6) to (7, 14) in Figure 3 (a)
The above parking area ■
The same processing as above may be performed, and in this case, the coordinates (15°6) of the input frame memory are set as the reading start point, and the data is written to the coordinates (9, 1) of the output frame memory, for example. In the above table, #12 is set as the writing start point n-
1, m = 9, and calculated or actual values as ΔX and Δy. Store these data in the read start point memory and incremental memory, respectively, and set the scanning operation (write) range. may be set in advance.

また、以上の説明では説明を容易にするために第2図(
a)に示した片側の駐車領域Eのみに注目したが、両側
の駐車領域を処理する場合には上記同様の出力フレーム
メモリでの次の書込開始点く例えばn=21.m=1)
を設定し、この各書込開始点に対応する入力フレームメ
モ1JFi上の読出開始点の座標と、この読出開始点か
らの増分ΔX。
In addition, in the above explanation, in order to make the explanation easier, Figure 2 (
Although we focused only on the parking area E on one side shown in a), when processing the parking areas on both sides, the next writing start point in the same output frame memory as above, for example, n=21. m=1)
and the coordinates of the read start point on input frame memo 1JFi corresponding to each write start point, and the increment ΔX from this read start point.

△yとをメモリに記憶させておくことによって、面領域
に対して補正が可能となることは容易に理解できるであ
ろう。
It will be easily understood that by storing Δy in memory, it is possible to correct the surface area.

〔実施例〕〔Example〕

第7図は本発明による画像歪み補正装置の実施例を示す
ものである。なお、点線で示したM、 Nカウント設定
部30については後述する。
FIG. 7 shows an embodiment of an image distortion correction device according to the present invention. Note that the M and N count setting sections 30 indicated by dotted lines will be described later.

ビデオカメラによって撮像されたビデオ信号は折り返し
雑音を防止するためのローバスフィルタ1を通過した後
、影像信号分離回路2および同期分離回路3により輝度
信号および同期信号にそれぞれ分離され、輝度信号はA
D変換器4により量子化されて入力フレームメモリ5の
濃度値デーク入力端に供給され、また、同期信号はアド
レスカウンタ6およびタイミング信号発生器7に供給さ
れる。
A video signal captured by a video camera passes through a low-pass filter 1 for preventing aliasing noise, and then is separated into a luminance signal and a synchronization signal by an image signal separation circuit 2 and a synchronization separation circuit 3, and the luminance signal is
The signal is quantized by the D converter 4 and supplied to the density value data input terminal of the input frame memory 5, and the synchronization signal is supplied to the address counter 6 and timing signal generator 7.

このアドレスカウンタ6ではこの同期信号の水平同期信
号および垂直同期信号を計数して入力フレームメモリ5
への書込アドレスを算出し、セレクタ8を介して入力フ
レームメモリ5のアドレス入力端子にこの算出されたア
ドレスを供給することによって、このアドレスに上記A
D変換器4からの量子化された濃度値データを前述の第
3図(a)のようなパターンで書込む。
This address counter 6 counts the horizontal synchronizing signal and vertical synchronizing signal of this synchronizing signal, and counts the horizontal synchronizing signal and vertical synchronizing signal of this synchronizing signal,
By calculating the write address to and supplying this calculated address to the address input terminal of the input frame memory 5 via the selector 8, the above A is written to this address.
The quantized density value data from the D converter 4 is written in a pattern as shown in FIG. 3(a).

上記タイミング信号発生器7は、上記同期分離回路3か
らの水平同期信号および垂直同期信号を計数することに
よって1画面分のAD変換および入力フレームメモリ5
への書き込みが終了したことを検出すると、AD変換器
4およびアドレスカウンタ6に対して処理を禁止する禁
止信号を出力して入力フレームメモリ5への書込みが行
われないようにする。
The timing signal generator 7 performs AD conversion for one screen and input frame memory 5 by counting the horizontal synchronization signal and vertical synchronization signal from the synchronization separation circuit 3.
When it is detected that writing to the input frame memory 5 is completed, an inhibit signal is outputted to the AD converter 4 and the address counter 6 to inhibit processing, thereby preventing writing to the input frame memory 5.

このようにして書込みが行われた入力フレームメモリ5
からの読出しおよびこの読出された濃度値データの出力
フレームメモリ9への書込みは次のような手順で行われ
る。
Input frame memory 5 written in this way
The read density value data is read from the output frame memory 9 and the read density value data is written to the output frame memory 9 according to the following procedure.

前記タイミング信号発生器7は上記の禁止信号の送出と
同時にリセット信号をメモリアドレスコントローラ15
に供給するとともに、このリセット信号を○R回路10
を介して第1、第2のマルチプレクサ11.12、Xア
ドレスレジスタ13およびYアドレスレジスフ14に供
給し、このマルチプレクサ11.12を図示の位置に切
換えるとともに上記アドレスレジスタ13.14を“0
”にリセットする。
The timing signal generator 7 sends a reset signal to the memory address controller 15 at the same time as sending out the above prohibition signal.
At the same time, this reset signal is supplied to the ○R circuit 10.
is supplied to the first and second multiplexers 11.12, the X address register 13, and the Y address register 14 through
”.

また、メモリアドレスコントローラ15は、m=l、7
1==1のように座標の原点を起点とする場合には後述
するクロック発生器からのクロックを計数し、その値が
Mmaxの値に一致しn値が自動桁上げされる毎にアド
レスバス20を介してメモリ16〜19に読出アドレス
を送りこれらメモリの読出アドレスを順次進めて予め記
憶している読出開始点の座標Xs、Ysおよび増分Δx
、Δyの値が順次出力させる。
Further, the memory address controller 15 has m=l, 7
When the origin of the coordinates is used as the starting point, as in 1==1, the clock from the clock generator described later is counted, and each time the value matches the value of Mmax and the n value is automatically carried over, the address bus is The read address is sent to the memories 16 to 19 via the memory 20, and the read addresses of these memories are sequentially advanced to obtain the pre-stored coordinates Xs, Ys and increment Δx of the read start point.
, Δy are sequentially output.

上記第1、第2のマルチプレクサ11.12は上記リセ
ット信号によって上記Xsメモリ16およびYsメモリ
17の出力を加算器21.22へそれぞれ選択接続して
いるの゛で、これらのメモリ16.17に格納された上
記読出開始点の座標Xs、Ysは加算器21.22の一
方の入力端子にそれぞれ供給される。
The first and second multiplexers 11.12 selectively connect the outputs of the Xs memory 16 and Ys memory 17 to the adder 21.22 by the reset signal, so that the outputs of the Xs memory 16 and Ys memory 17 are selectively connected to the adder 21.22. The stored coordinates Xs and Ys of the reading start point are respectively supplied to one input terminal of adders 21 and 22.

上記のようにXアドレスレジスタ13およびYアドレス
レジスタ14はタイミング信号発生器7からの前記リセ
ット信号により“0”にリセットされているため、加算
器2’1.22のこれらレジスタ13.14の出力端子
に接続されている他方の入力端子の値はいずれも“0”
であるから、この加算器21.2’2の出力はそれぞれ
Xsメモリ16およびYsメモリ17の出力であるXs
、YSに等しくなり、Xアドレスレジスタ13、Yアド
レスレジスタ14にはそれぞれ入力フレームメモリ5上
の前記開始点aのXsおよびYsが格納されることにな
る。
As mentioned above, since the X address register 13 and the Y address register 14 are reset to "0" by the reset signal from the timing signal generator 7, the outputs of these registers 13.14 of the adder 2'1.22 The value of the other input terminal connected to the terminal is “0”
Therefore, the output of this adder 21.2'2 is the output of Xs memory 16 and Ys memory 17, respectively.
, YS, and Xs and Ys of the starting point a on the input frame memory 5 are stored in the X address register 13 and the Y address register 14, respectively.

前記タイミング信号発生器7は以上の操作が十分終了す
る程度の時間経過後にリセット信号の出力を停止するこ
とによってマルチプレクサ11゜12の入力端をΔXメ
モリ18.Δyメモリ19側にそれぞれ切換え接続し、
その後、クロック発生器23に対してり゛ロック開始信
号を出力するとともに、入力フレームメモリ5のアドレ
ス入力を切換えるセレクタ8をアドレスデコーダ24側
に切換える。
The timing signal generator 7 stops outputting the reset signal after a sufficient amount of time has elapsed to complete the above operations, thereby inputting the input terminals of the multiplexers 11 and 12 to the ΔX memory 18. Switch and connect each to the Δy memory 19 side,
Thereafter, a lock start signal is output to the clock generator 23, and the selector 8 for switching the address input of the input frame memory 5 is switched to the address decoder 24 side.

このクロック開始信号を受は取ったクロック発生器23
は、加算器21.22による演算および入力フレームメ
モリ5からの読出しおよび出力フレームメモリ9の書込
み基準となるクロックを出力する。
A clock generator 23 receives this clock start signal.
outputs a clock that serves as a reference for calculations by the adders 21 and 22, reading from the input frame memory 5, and writing to the output frame memory 9.

このクロック信号はその1クロツクごとに出力フレーム
メモリのM軸方向の書込座標を1つずつ増加させるラス
タースキャンアドレスに相当する。
This clock signal corresponds to a raster scan address that increases the write coordinate in the M-axis direction of the output frame memory by one every clock.

そこで、Xアドレスレジスタ13およびYアドレスレジ
スタ14にそれぞれ格納されている読出開始点の座標の
アドレスXs、Ysはこのクロック発生器23からのク
ロックによって読出される。
Therefore, the addresses Xs and Ys of the coordinates of the read start point stored in the X address register 13 and the Y address register 14, respectively, are read out by the clock from the clock generator 23.

そして、アドレスデコーダ24により後述の整数化処理
が実行されると共に入力フレームメモリ5の読出アドレ
スに変換されてから、前記のようにタイミング信号発生
器7の出力によって切換えられているセレクタ8を介し
て入力フレームメモリ5のアドレス入力端子に供給され
る。
Then, the address decoder 24 executes integerization processing, which will be described later, and converts it into a read address of the input frame memory 5. It is supplied to the address input terminal of the input frame memory 5.

したがって、タイミングコントローラ25からのイネー
ブル信号がこの入力フレームメモリ5のリードイネーブ
ル端子REに供給されると、この入力フレームメモリ5
からは読出開始点の濃度値データが読出される。
Therefore, when the enable signal from the timing controller 25 is supplied to the read enable terminal RE of this input frame memory 5, this input frame memory 5
The density value data at the reading start point is read out from.

このとき、アドレスカウンタ26においては、上記のよ
うな最初のクロックを計数することによって出力フレー
ムメモリ9の最初の書込点であるM=1.N=1、すな
わち第3図ら)のMN軸の原点である左下隅の点のアド
レスが出力されており、入力フレームメモリ5からの読
出しに合わせたタイミングで出力されるタイミングコン
トローラ27からのイネーブル信号がこの出力フレーム
メモリ9のライトイネーブル端子WEに供給されると上
記読出開始点の濃度値データは出力フレームメモリ9の
座標(1,1)の点である左下隅に書込まれる。
At this time, in the address counter 26, by counting the first clock as described above, M=1, which is the first writing point of the output frame memory 9. The address of the lower left corner point, which is the origin of the MN axis of N=1, that is, the origin of the MN axis in FIG. is supplied to the write enable terminal WE of the output frame memory 9, the density value data at the reading start point is written to the lower left corner of the output frame memory 9, which is the point at coordinates (1, 1).

一方、前記のようにXアドレスレジスタ13゜Yアドレ
スレジスタ14からそれぞれ読出された読出開始点の座
標Xs、YsO値が上記加算器21.22の他方の入力
端子に供給されるが、このときにはタイミング信号発生
器7がマルチプレクサ11.12の入力側をΔXメモリ
18.Δyメモリ19の側にそれぞれ切換え接続してい
るために、これらの加算器21.22はこれらの読出開
始点の座標値Xs、YsにΔXメモリ18.△yメモリ
19からの増分Δx、△yを加算した(XS+ΔX)お
よび(Ys+△y)を出力し、これらの値によってXア
ドレスレジスタ13およびYアドレスレジスタ14に格
納されている値が更新さ°れる。
On the other hand, the coordinates Xs and YsO of the reading start point read out from the X address register 13 and the Y address register 14 as described above are supplied to the other input terminal of the adder 21 and 22, but at this time A signal generator 7 connects the input side of the multiplexer 11.12 to the ΔX memory 18. Since these adders 21 and 22 are switched and connected to the Δy memory 19 side, respectively, the adders 21 and 22 add the coordinate values Xs and Ys of the reading start point to the ΔX memory 18 . The increment Δx and Δy from the Δy memory 19 are added together to output (XS+ΔX) and (Ys+Δy), and the values stored in the X address register 13 and the Y address register 14 are updated by these values. It will be done.

なお、前記の表1の#2以降の動作についてはメモリア
ドレスコントローラ15はM m a xのクロック数
の計数によってリセット信号をOR回路10を介してマ
ルチプレクサ11.12およびアドレスレジスタ13.
Yアドレスレジスタ14にリセット信号を供給し、マル
チプレクサ11.12を再び図示の位置に切換えるとと
もにレジスタ13.14を“0”にリセットする。また
メモリアドレスコントローラ15はアドレスバス20を
介してメモリ16〜19に読出アドレスを送り、XS、
Δx、Ys、  Δyの値を更新する。
Regarding the operations after #2 in Table 1, the memory address controller 15 outputs a reset signal to the multiplexer 11.12 and address register 13.12 via the OR circuit 10 by counting the number of clocks of Mmax.
A reset signal is supplied to the Y address register 14 to switch the multiplexer 11.12 again to the illustrated position and reset the register 13.14 to "0". The memory address controller 15 also sends read addresses to the memories 16 to 19 via the address bus 20,
Update the values of Δx, Ys, and Δy.

そして、メモリアドレスコントローラ15は次のクロッ
ク(Mmax + 1)を計数することによってリセッ
ト信号を再度出力しマルチプレクサ11゜12をΔXメ
モリ18、Δyメモリ19側に切換えることによって上
記の加算演算を繰り返し行う。
Then, the memory address controller 15 outputs the reset signal again by counting the next clock (Mmax + 1), and repeats the above addition operation by switching the multiplexers 11 and 12 to the ΔX memory 18 and Δy memory 19 sides. .

このときアドレスカウンタ26はクロックを計数しlv
Imaxによってn値を自動桁上げする第4図に示す動
作を行うが、M値とN値を予め設定することで第3図(
b)に示す(8,11)の範囲のみのスキャニング動作
を実行することも可能である。
At this time, the address counter 26 counts the clock lv
The operation shown in Figure 4, which automatically carries up the n value using Imax, is performed, but by setting the M value and N value in advance, the operation shown in Figure 3 (
It is also possible to perform the scanning operation only in the range (8, 11) shown in b).

また、第1表に示した最初の書込開始点をMN軸の原点
以外に設定する場合には、例えばアドレスカウンタ26
に各書込開始点を記憶しておき、設定したM値は相当す
るクロックを計数した時に次の書込開始点の書込アドレ
スを出力フレームメモリ9に対して順次出力するように
しても良い。
In addition, when setting the first writing start point shown in Table 1 to a location other than the origin of the MN axis, for example, the address counter 26
Each write start point may be stored in memory, and the write address of the next write start point may be sequentially output to the output frame memory 9 when the set M value counts the corresponding clocks. .

この加算演算においては前述のように小数点以下を切捨
てる整数化処理が必要であるが、第8図に示したように
、Xアドレスレジスタ13およびYアドレスレジスタ1
4において小数点の位置を図のように固定し、上位ビッ
トを小数点以上に、下位ビットを小数点以下に割り付け
る固定小数点の形をとることによって格別の演算処理を
行わないでも上記のような構成によって容易に実行する
ことができる。
In this addition operation, as mentioned above, it is necessary to convert the numbers below the decimal point into integers, but as shown in FIG.
In 4, the position of the decimal point is fixed as shown in the figure, and the upper bits are allocated above the decimal point, and the lower bits are allocated below the decimal point.By adopting a fixed-point format, the above configuration can easily be used without special arithmetic processing. can be executed.

いま、補正対象となる画面の画素数を256×256画
素と仮定すると、入力フレームメモリ F1Ly)X軸
、Y軸の最大アドレスもO〜255となり、上位ビット
、つまり小数点以上の部分は8ビツトあればすべてのア
ドレスを表現できることになる。
Now, assuming that the number of pixels on the screen to be corrected is 256 x 256 pixels, the maximum addresses of the input frame memory (F1Ly) This means that all addresses can be expressed.

また、下位ビットは小数点以下を示すもので増分△X、
Δyによって定まる読出しアドレスの移動間隔を指定す
ることになるが、最大画素数を256としたことがら撮
像画面の1つの画素を最大に拡大しても256倍にする
のが限度であるから、小数点以下についても256倍し
たときに始めて1に繰り上がる1/256が表せる8ビ
ツトの構成をとれば十分であり、この1/256が増分
△X、Δyの最小単位となる。
Also, the lower bits indicate the decimal point and the increment △X,
The movement interval of the readout address determined by Δy is specified, but since the maximum number of pixels is set to 256, even if one pixel of the image capture screen is enlarged to the maximum, the limit is 256 times, so the decimal point is For the following, it is sufficient to use an 8-bit configuration that can represent 1/256, which is carried to 1 only when multiplied by 256, and this 1/256 becomes the minimum unit of the increments ΔX and Δy.

実際の数値によって例を挙げると、△X=0.1とした
場合には出力フレームメモリ9上では入力フレームメモ
リ5に格納されていたときの10倍の大きさで格納され
ることになるが、読出開始点のX軸の座標Xsを100
とすると、このレジスタの上位ビットには第9図(a)
に示すように10進数の100を示す2進数“0110
0100”が格納される。
To give an example using actual numerical values, if △X = 0.1, the size of the data stored in the output frame memory 9 will be 10 times that of the size stored in the input frame memory 5. , the coordinate Xs of the X-axis of the reading start point is 100
Then, the upper bits of this register are as shown in Fig. 9(a).
The binary number “0110” representing the decimal number 100 as shown in
0100'' is stored.

また、△X=O,lは、0〜1.0を0〜256に量子
化することから25.6になり、小数点以下を切り捨て
て25、すなわち16進数で198(2進数で’000
11001”)になることから、加算器21あるいは2
2てこの△X=0.1の値が上記の上位ビットが格納さ
れているレジスタの値に加算されると同図(b)のよう
になる。
Also, △X=O,l becomes 25.6 by quantizing 0 to 1.0 to 0 to 256, and 25 is obtained by rounding down the decimal part, which is 198 in hexadecimal ('000 in binary)
11001''), adder 21 or 2
When the value of ΔX=0.1 of the second lever is added to the value of the register in which the above-mentioned upper bit is stored, the result is as shown in FIG. 2(b).

前記のように、このΔXを順次に加算していくことは次
々に下位ビットに198を加えることになり、11回の
加算が行われたときに始めて上位ビットへ桁上げが生じ
ることになるが、この上位ビットは入力フレームメモリ
5の読出しアドレスを規定するものであるから、アドレ
スデコーダ24はアドレスレジスタ13.14の上位ビ
ットのみをアドレスとして用いれば前記式(1)のIN
T関数と同様の整数化処理をしたことになり、整数化処
理手段を必要とせず、ハードウェア構成を簡易なものに
することができる。
As mentioned above, adding ΔX sequentially means adding 198 to the lower bits one after another, and a carry to the upper bits occurs only after 11 additions. , these upper bits define the read address of the input frame memory 5, so if the address decoder 24 uses only the upper bits of the address registers 13 and 14 as addresses, IN of the above equation (1)
This means that the same integer conversion processing as the T function is performed, so an integer conversion processing means is not required, and the hardware configuration can be simplified.

このようにして更新された読出座標の値はXアドレスレ
ジスタ13およびYアドレスレジスタ14から読出され
、上述のようにアドレスデコーダ24によってデコード
されてからセレクタ8を経て入力フレームメモリ5に読
出アドレスとして供給され、読出開始点に続いて読出し
が行われるべき記憶素子にアクセスして読出しが行われ
る。
The values of the read coordinates updated in this way are read from the X address register 13 and the Y address register 14, decoded by the address decoder 24 as described above, and then supplied to the input frame memory 5 as a read address via the selector 8. Then, following the read start point, the memory element to be read is accessed and read.

このようにして出力フレームメモリFOへの1画面分の
書込みがすべて終了したとき、メモリアドレスコントロ
ーラ15はクロックを計数することによって出力フレー
ムメモリへの1画面分の書込みが終了したことを検出し
、タイミング信号発生器7に対して1画面終了信号を出
力して補正終了を知らせるとともにMPU29に対して
処理開始信号を出力し、このMPUは画像処理プロセッ
サ28を通じて出力フレームメモリ9からの読出された
データに対して所定の処理を行う。
When all writing for one screen to the output frame memory FO is completed in this way, the memory address controller 15 detects that writing for one screen to the output frame memory is completed by counting clocks, A one-screen end signal is output to the timing signal generator 7 to notify the end of correction, and a processing start signal is output to the MPU 29. This MPU receives the data read from the output frame memory 9 through the image processing processor 28. A predetermined process is performed on the .

さらに、上記のように1画面終了信号を受は取ったタイ
ミング信号発生器7は、水平同期信号および垂直同期信
号を監視して映像信号の始点を検知すると前記禁止信号
を解除してAD変換器4およびアドレスカウンタ6の動
作を再開させ、次の画像データをフレームメモリ5に入
力させて上記した処理を次の画像について行う。
Furthermore, the timing signal generator 7 that has received the one-screen end signal as described above monitors the horizontal synchronization signal and the vertical synchronization signal, and when it detects the start point of the video signal, cancels the prohibition signal and outputs the signal to the AD converter. 4 and the address counter 6 are restarted, the next image data is input into the frame memory 5, and the above-described processing is performed on the next image.

次に第7図の実施例のブロック図に点線で示したM、N
カウント設定部30をさらに設けた別の実施例について
説明する。
Next, M and N are indicated by dotted lines in the block diagram of the embodiment shown in FIG.
Another embodiment in which a count setting section 30 is further provided will be described.

第10図はこの実施例における出力フレームメモリ F
 oのスキャニング動作の態様を示すもので実線は走査
線、点線は帰線であって、第2図の駐車区域■に相当す
る区域■についてのラスタースキャンが終了してから次
に同様な区域■についてラスタースキャンを行うように
区域ごとにスキャンを行うようにしたものであり、上記
設定部30はこのようにスキャニング動作の範囲を定め
るためにこれら区域の走査開始点を基準として当該区域
の走査終了点の横軸のカウント数Uおよび縦軸のカウン
ト数Vが格納されるものであり、この第1O図図示の例
ではu=8.v=11である。
Figure 10 shows the output frame memory F in this embodiment.
The solid line is the scanning line, and the dotted line is the return line, and after the raster scan of area ■ corresponding to parking area ■ in Figure 2 is completed, the next similar area ■ is shown. In order to determine the range of the scanning operation, the setting unit 30 uses the scanning start point of these areas as a reference and determines the end of scanning of the area. The count number U on the horizontal axis and the count number V on the vertical axis of the points are stored, and in the example shown in FIG. 1O, u=8. v=11.

なお、この実施例のアドレスカウンタ26には、スキャ
ニング動作の各走査開始点(第10図において(1,1
)、 (9,1) )と設定部30に設定したカウ/ト
数U、Vのクロックを計数するカウンタ機能を備え、各
開始点を始点としてu、  V’の範囲のスキャニング
動作を行う信号を出力する。
Note that the address counter 26 of this embodiment has each scan start point of the scanning operation ((1, 1 in FIG. 10)
), (9, 1) ) and a counter function for counting clocks of count/count numbers U and V set in the setting section 30, and a signal that performs a scanning operation in the range of u and V' with each starting point as the starting point. Output.

以下””8+  v=ttの値によって具体的に説明す
る。この出力フレームメモリへの書込みのためのスキャ
ニング動作が開始されたときの書込開始点の座標は(1
,1)であり、このときには先の第1表の第1行#1が
読出されてこの座aXs、YSによって入力フレームメ
モ+JFiからの濃度値データが読出されてこの出力フ
レームメモリF。
A specific explanation will be given below using the value of "8+v=tt". The coordinates of the writing start point when the scanning operation for writing to the output frame memory is started are (1
, 1), and at this time, the first row #1 of the first table is read out, and the density value data from the input frame memo + JFi is read out by the aXs and YS, and the density value data is read out from the output frame memory F.

の座標(1,1)に書込まれる。is written to the coordinates (1, 1) of

次のクロック発生器23からのクロックによって書込点
は(2,1)に移り、入力フレームメモリでの読出しは
第1表の#1行のm=2の欄に示されているように座標
(9,l)から行われてこの書込点(2,1)に書込ま
れ、以下同様にして書込点が(8゜1)になったとき、
クロックを計数しているメモリアドレスコントローラ1
5およびアドレスカウンタ26においてはMの値mが8
になったことが識別される。
The write point moves to (2, 1) by the next clock from the clock generator 23, and the readout in the input frame memory follows the coordinates shown in the m=2 column of the #1 row in Table 1. It is performed from (9, l) and written to this writing point (2, 1), and in the same way, when the writing point becomes (8° 1),
Memory address controller 1 counting clocks
5 and address counter 26, the value m of M is 8.
It is identified that it has become

このmの値は上記M、 Nカウント設定部30が格納し
ているM軸の値u=3と等しいので、この設定値をチエ
ツクしているメモリアドレスコントローラ15はリセッ
ト信号を出力し、先に説明したと同様に、このリセット
信号によってセレクタ11および12を第3図図示の位
置に切換えるとともにXアドレスレジスタ13およびY
アドレスレジスタ14をリセットして“0”にする。
Since this value of m is equal to the M-axis value u=3 stored in the M and N count setting section 30, the memory address controller 15 checking this set value outputs a reset signal and first As explained above, this reset signal switches the selectors 11 and 12 to the positions shown in FIG.
The address register 14 is reset to "0".

同時にXsメモリ16およびYsメモリ17に読出アド
レスを1増加させるようなアドレスをアドレスバス20
を介してこれらメモ’、116.17に出力するので、
第1表の#2行に移り、この行の読出開始点ひX5(2
)、Ys(2)の座標X5−7、Ys=2をXsメモリ
16およびYsメモリ17から読出してXアドレスレジ
スタ13およびYアドレスレジスタ14にそれぞれセッ
トする。
At the same time, an address that increases the read address by 1 to the Xs memory 16 and Ys memory 17 is sent to the address bus 20.
These notes are output via ', 116.17, so
Move to line #2 in Table 1 and start reading from this line x5(2
), Ys(2) coordinates X5-7, Ys=2 are read from the Xs memory 16 and Ys memory 17 and set in the X address register 13 and Y address register 14, respectively.

なお、この実施例においては上述のように書込点のM軸
の座標mがM、 Nカウント設定部30に格納されてい
るM軸のカウント数Uと等しくなったときに次の読出開
始点の座標Xs、Ysと増分△X、Δyを読出す。
In this embodiment, as mentioned above, when the M-axis coordinate m of the write point becomes equal to the M-axis count number U stored in the M,N count setting section 30, the next reading start point is determined. The coordinates Xs, Ys and the increments ΔX, Δy are read out.

次のクロックでは、この読出開始点から始まる第2の読
出点であるm=2の列に示されている座標(8,2)に
よって入力フレームメモリFiかう読出された濃度値デ
ータが出力フレームメモリの座標(2,2)に書込まれ
る。
At the next clock, the density value data read out from the input frame memory Fi is transferred to the output frame memory at the coordinates (8, 2) shown in the column m=2, which is the second readout point starting from this readout start point. is written at the coordinates (2, 2).

このようにしてp、′に相当するp4、すなわち出力フ
レームメモリFoの座標(8,11)までのラスタース
キャンが終了したとき、メモリアドレスコントローラ1
5およびアドレスカウンタ26はM、 Nカウント設定
部30に設定されているM軸のカウント数UとN軸のカ
ウント数Vとがともにこの座標(8,11)に一致して
いることを識別する。
In this way, when the raster scan to p4 corresponding to p,', that is, the coordinates (8, 11) of the output frame memory Fo is completed, the memory address controller 1
5 and the address counter 26 identify that the M-axis count number U and the N-axis count number V set in the M and N count setting section 30 both match these coordinates (8, 11). .

これと同時にメモリアドレスコントローラ15はXアド
レスレジスタ13右よびYアドレスレジスタ14をリセ
ットして0″にし同時にXsメモリ16およびYsメモ
リ17の読出アドレスを1増加させて第1表には示して
いない次の読出開始点X s (12> 、 Y s 
(12)の座標をχSメそり16およびYsメモリ17
から読出してXアドレスレジスタ13およびYアドレス
レジスタ14にそれぞれセットするので、入力フレーム
メモリの上記読出開始点(X s (12) 、 Y 
s (12) )から読出しが行われ、読出された濃度
値データは出力フレームメモ1JFoの座標(9,1)
に書込まれる。
At the same time, the memory address controller 15 resets the X address register 13 right and the Y address register 14 to 0'', and at the same time increases the read addresses of the Xs memory 16 and Ys memory 17 by 1. reading start point X s (12> , Y s
(12) coordinates in χS mesori 16 and Ys memory 17
Since the reading start point (X s (12) , Y
s (12)), and the read density value data is at the coordinates (9, 1) of the output frame memo 1JFo.
written to.

そして、アドレスカウンタ26は、書込開始点(9,1
)を始点としたu’=8.v=11のスキャニング動作
を行うアドレスを出力フレームメモリ9に対して出力す
る。
Then, the address counter 26 receives the write start point (9, 1
) with u'=8. The address for performing the scanning operation of v=11 is output to the output frame memory 9.

この第2の実施例によれば、M軸の値およびN軸の値が
M、Nカウント設定部30に格納されているカウント数
U、Vと一致したときに新しい開始点に移動するととも
に、次の読出開始点の座標χs、YsおよびΔx、Δy
を読出すことにより処理上扱う領域の大きさを全て同一
に補正することが可能となり、均一の処理が可能となる
ため画像処理の効率が一層向上する。
According to this second embodiment, when the M-axis value and the N-axis value match the count numbers U and V stored in the M and N count setting section 30, the movement is made to a new starting point, and Coordinates of the next reading start point χs, Ys and Δx, Δy
By reading out the image data, it becomes possible to correct the size of all the areas to be processed to be the same, and uniform processing becomes possible, which further improves the efficiency of image processing.

したがって、入力フレームメモリFl上で第5図(a)
に示すようにそれぞれ大きさも形状も異なるpl+  
pz、l)3.T)4 の4点で囲まれている領域■お
よびQ+ 、Q2.Q3.  q4の4点で囲まれてい
る領域■を出力フレームメモ+J F o上に同一の大
きさとして同図0:1)のように隣接して配置するため
にはpI′p4′上の画素数を上記M、 Nカウント設
定部30のMの値M。として、またp′p2′上の画素
数をNの値N。とじて設定しておき、ラスタースキャン
による座標が937点である(Mo 、 No )にな
ったときにスキャニングの次の始点をq1′に戻るよう
にしておけば、この図(b)に示すような補正された同
一の形状の画像が得られる。
Therefore, on the input frame memory Fl, as shown in FIG.
As shown in the figure, the pl+ has different sizes and shapes.
pz,l)3. T) 4 The area surrounded by the four points ■ and Q+, Q2. Q3. In order to arrange the area ■ surrounded by the four points of q4 on the output frame memo + JF o with the same size and adjacent to each other as shown in the figure 0:1), the number of pixels on pI'p4' must be is the above M, and the value M of M in the N count setting section 30. Also, the number of pixels on p'p2' is the value of N. If you set the coordinates as 937 points (Mo, No) by raster scanning, the next starting point of scanning will return to q1', as shown in this figure (b). A corrected image with the same shape is obtained.

また、ラスタースキャンによる座標が937点である<
MO、No )になったときにスキャニングの次の始点
をql“に戻るようにしておけば、この第5図(C)に
示すように領域■および■が離れた補正された画像が得
られる。
Also, the coordinates by raster scan are 937 points.
If the next starting point of scanning is set to return to ql" when MO, No. .

なお、上記q+ およびq1′の値は前述のように予め
アドレスカウンタ26で記憶しておく。
Note that the values of q+ and q1' are stored in advance in the address counter 26 as described above.

また、第6図のようにカーブした道路での交通流をとら
えるような場合でも、道路の一方の縁に沿ってX5(0
)、Ys(0) 〜X5(n)、Ys(n)の読出開始
点を設定し、道路幅Aを出力フレームメモリのM軸方向
の適宜の画素数に対応させ、各々の読出開始点に対する
Δx、Δyを設定することによって上記同様にこのカー
ブした道路が一定幅の形状になるように歪みの補正を行
うことができることは明らかであろう。
Furthermore, even when capturing traffic flow on a curved road as shown in Figure 6, it is possible to
), Ys(0) to It is clear that by setting Δx and Δy, the distortion can be corrected so that the curved road has a constant width in the same manner as described above.

〔発明の効果〕〔Effect of the invention〕

以上に詳細に説明したように、出力フレームメモリの書
込みアドレスに対応して読出開始点の座標および増分を
設定し、これを用いて加算器による前述のような加算演
算結果により入力フレームメモリの読出点のアドレスを
コントロールすることによって、遠近、回転などの歪み
を持った画像を長方形状などの所望の形状へ補正するこ
とができる。
As explained in detail above, the coordinates and increment of the read start point are set corresponding to the write address of the output frame memory, and these are used to read the input frame memory based on the result of the addition operation as described above by the adder. By controlling the address of the points, it is possible to correct an image with distortions such as perspective or rotation into a desired shape such as a rectangle.

このように基本的に加算演算とメモリ間の読出し、書込
み操作だけで補正が実行できることからハードウェアに
掛かる負担が小さく、処理速度も非常に高速なものとす
ることができ、ビデオレートに追従した画像補正処理も
簡単に実現可能となる。
In this way, corrections can basically be performed using only addition operations and memory read and write operations, which reduces the burden on the hardware and allows for extremely high processing speeds, allowing it to keep up with the video rate. Image correction processing can also be easily realized.

また、対象の領域の大きさがすべて同一となるような補
正、あるいは表示位置の選択も可能となるとともに、ソ
フトウェア上の処理の都合に合わせて形状をコントロー
ルすることができるため、ソフトウェア処理の効率も著
しく向上するという格別の効果を達成することができる
In addition, it is possible to correct the size of all target areas or select the display position, and the shape can be controlled to suit the convenience of software processing, increasing the efficiency of software processing. It is possible to achieve a special effect of significantly improving the performance.

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

第1図は本発明の原理を示すブロック図、第2図は本発
明を説明するための例としての駐車場に関する図、 第3図は入力フレームメモリおよび出力フレームメモリ
上でのパターンを示す図、 第4図は出力フレームメモリに適用されるラスタースキ
ャンを説明するための図、 第5図は第3図とは異なる撮像画面についてのフレーム
メモリ上のパターンを示す図、 第6図は曲がった道路に本発明を適用した例を示す図、 第7図は本発明の実施例を示すブロック図、第8図ない
し第9図はアドレスレジスタの構成と格納されるデータ
の例を示す図、 第10図は第2の実施例の動作を説明するための出力フ
レームメモリ上でのパターンを示す図、 第11図は従来の処理の例を説明するための図である。
FIG. 1 is a block diagram showing the principle of the present invention, FIG. 2 is a diagram regarding a parking lot as an example for explaining the present invention, and FIG. 3 is a diagram showing patterns on input frame memory and output frame memory. , Fig. 4 is a diagram for explaining raster scanning applied to the output frame memory, Fig. 5 is a diagram showing a pattern on the frame memory for an imaging screen different from Fig. 3, and Fig. 6 is a diagram for explaining the raster scan applied to the output frame memory. FIG. 7 is a block diagram showing an embodiment of the present invention; FIGS. 8 and 9 are diagrams showing an example of the structure of an address register and stored data; FIG. 10 is a diagram showing a pattern on the output frame memory for explaining the operation of the second embodiment, and FIG. 11 is a diagram for explaining an example of conventional processing.

Claims (2)

【特許請求の範囲】[Claims] (1)撮像した画像データを蓄積する入力フレームメモ
リ(Fi)と、 該入力フレームメモリからの読出開始点の座標(Xs、
Ys)およびこの座標に基づいて次の読出点座標を得る
ための増分(Δx、Δy)とをそれぞれ格納するメモリ
(R、Rd)と、該メモリが格納している読出開始点の
座標と増分とを用いた加算演算によって得た読出点座標
により、上記入力フレームメモリから順次濃度値データ
を読出すアドレス変換手段(C)と、を備えることを特
徴とする画像歪み補正装置。
(1) An input frame memory (Fi) that stores captured image data, and coordinates (Xs,
Memories (R, Rd) that store the coordinates (Ys) and increments (Δx, Δy) for obtaining the next readout point coordinates based on these coordinates, and the coordinates and increments of the readout start point stored in the memories. An image distortion correction apparatus characterized by comprising: address conversion means (C) for sequentially reading out density value data from the input frame memory based on readout point coordinates obtained by an addition operation using the above.
(2)出力フレームメモリにおけるスキャニング動作の
範囲を規定するM、Nカウント設定部を備え、形状の異
なる複数の領域を同一の形状に補正することを特徴とす
る請求項1記載の画像歪み補正装置。
(2) The image distortion correction device according to claim 1, further comprising an M and N count setting section that defines a range of scanning operation in the output frame memory, and corrects a plurality of regions having different shapes into the same shape. .
JP1139253A 1989-06-02 1989-06-02 Picture distortion correcting device Pending JPH036674A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1139253A JPH036674A (en) 1989-06-02 1989-06-02 Picture distortion correcting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1139253A JPH036674A (en) 1989-06-02 1989-06-02 Picture distortion correcting device

Publications (1)

Publication Number Publication Date
JPH036674A true JPH036674A (en) 1991-01-14

Family

ID=15241003

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1139253A Pending JPH036674A (en) 1989-06-02 1989-06-02 Picture distortion correcting device

Country Status (1)

Country Link
JP (1) JPH036674A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5537882A (en) * 1993-10-05 1996-07-23 Ugai; Seiichi Semiconductor sensor for detecting physical amount without thermal hypsteresis where output wiring is disposed in a stress insensitive direction
JPH11211659A (en) * 1998-01-23 1999-08-06 Nagoya Denki Kogyo Kk Road surface state discrimination method and device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54127230A (en) * 1978-03-27 1979-10-03 Nippon Telegr & Teleph Corp <Ntt> Picture shape converter
JPS5622162A (en) * 1979-07-31 1981-03-02 Fujitsu Ltd Rotational distortion compensation processing system for input pattern
JPS57129080A (en) * 1981-02-03 1982-08-10 Toshiba Corp Picture normalizing device
JPS5822473A (en) * 1981-08-03 1983-02-09 Nippon Telegr & Teleph Corp <Ntt> Picture processor
JPS5886658A (en) * 1981-11-18 1983-05-24 Toshiba Corp Compensating device for geometric distortion of picture
JPS59109970A (en) * 1982-12-15 1984-06-25 Toshiba Corp Device for correcting distortion
JPS59157764A (en) * 1983-02-25 1984-09-07 Hitachi Ltd Picture resampling processing method
JPS61163473A (en) * 1985-01-14 1986-07-24 Ricoh Co Ltd Picture geometry correcting method
JPS63161941A (en) * 1986-12-25 1988-07-05 株式会社島津製作所 Automatic reregistration of x-ray image
JPS6468059A (en) * 1987-09-08 1989-03-14 Fuji Photo Film Co Ltd Electronic copying device
JPH01116401A (en) * 1987-10-30 1989-05-09 Fanuc Ltd Parallax correction system for visual sensor

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS54127230A (en) * 1978-03-27 1979-10-03 Nippon Telegr & Teleph Corp <Ntt> Picture shape converter
JPS5622162A (en) * 1979-07-31 1981-03-02 Fujitsu Ltd Rotational distortion compensation processing system for input pattern
JPS57129080A (en) * 1981-02-03 1982-08-10 Toshiba Corp Picture normalizing device
JPS5822473A (en) * 1981-08-03 1983-02-09 Nippon Telegr & Teleph Corp <Ntt> Picture processor
JPS5886658A (en) * 1981-11-18 1983-05-24 Toshiba Corp Compensating device for geometric distortion of picture
JPS59109970A (en) * 1982-12-15 1984-06-25 Toshiba Corp Device for correcting distortion
JPS59157764A (en) * 1983-02-25 1984-09-07 Hitachi Ltd Picture resampling processing method
JPS61163473A (en) * 1985-01-14 1986-07-24 Ricoh Co Ltd Picture geometry correcting method
JPS63161941A (en) * 1986-12-25 1988-07-05 株式会社島津製作所 Automatic reregistration of x-ray image
JPS6468059A (en) * 1987-09-08 1989-03-14 Fuji Photo Film Co Ltd Electronic copying device
JPH01116401A (en) * 1987-10-30 1989-05-09 Fanuc Ltd Parallax correction system for visual sensor

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5537882A (en) * 1993-10-05 1996-07-23 Ugai; Seiichi Semiconductor sensor for detecting physical amount without thermal hypsteresis where output wiring is disposed in a stress insensitive direction
JPH11211659A (en) * 1998-01-23 1999-08-06 Nagoya Denki Kogyo Kk Road surface state discrimination method and device

Similar Documents

Publication Publication Date Title
KR101798010B1 (en) Raster output of rotated interpolated pixels optimized for digital image stabilization
JP3278881B2 (en) Image signal generator
JP3532781B2 (en) Image processing circuit of image input device
US6756985B1 (en) Image processor and image display
US7986858B2 (en) Image processing apparatus and image processing method
JPS63266982A (en) Interpolating method for picture signal and picture signal processor executing it
JPH036674A (en) Picture distortion correcting device
JP4008333B2 (en) Multi-image projection method using a plurality of projectors, projector apparatus for using the method, program, and recording medium
JPH08307760A (en) Video device with image memory function
US20050226539A1 (en) Zoom algorithm
JPH0224073B2 (en)
KR20120069543A (en) Device for processing image, method thereof and imaging device
JP3405302B2 (en) Image distortion correction device
JPS63166369A (en) Mobile vector detection circuit
JP3154741B2 (en) Image processing apparatus and system
JP3176718B2 (en) Image processing device
JP3327961B2 (en) Image processing device
JP3748446B2 (en) Image processing circuit of image input device
JP2002056385A (en) Image correcting method and image correcting device
JP3221004B2 (en) Video camera
JP2017017672A (en) Image processing device, image processing method and image processing program
JP2004153848A (en) Image processing circuit for image input apparatus
JPH10161633A (en) Picture element interpolating device
JPH0348584A (en) Electronic zooming device
JPH01222588A (en) Picture correcting device