JPS6297072A - Picture display device - Google Patents

Picture display device

Info

Publication number
JPS6297072A
JPS6297072A JP60238034A JP23803485A JPS6297072A JP S6297072 A JPS6297072 A JP S6297072A JP 60238034 A JP60238034 A JP 60238034A JP 23803485 A JP23803485 A JP 23803485A JP S6297072 A JPS6297072 A JP S6297072A
Authority
JP
Japan
Prior art keywords
picture
image pattern
relative position
coordinate value
pixel
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.)
Granted
Application number
JP60238034A
Other languages
Japanese (ja)
Other versions
JPH0685184B2 (en
Inventor
Kiyoshi Maenobu
前信 潔
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP60238034A priority Critical patent/JPH0685184B2/en
Publication of JPS6297072A publication Critical patent/JPS6297072A/en
Publication of JPH0685184B2 publication Critical patent/JPH0685184B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Processing Or Creating Images (AREA)

Abstract

PURPOSE:To produce a picture pattern at a high speed with conversion given to an original picture pattern just with addition, by adding the converted relative position vector to the picture elements on the picture pattern produced finally to obtain the next picture element. CONSTITUTION:An original picture pattern 101 is shown in the form of a train of adjacent picture elements starting at a certain picture element by an adjacent picture element detecting means 102. Then the conversion defined by the 2-dimensional affine transformation is applied only to some reference vectors showing the relative position relation between the adjacent picture elements. Then a picture pattern 109 to be produced is obtained in the form of a train of picture elements having the reference rector converted from the picture element corresponding to the start point after conversion at the relative position. An increment producing means 103 and an addition means 104 add the relative position displacement corresponding to the converted reference vector to the genuine coordinate value. A coordinate value replacement means 106 detects the over- digit of an error and changes the coordinates of the picture elements drawn in response to the detection of the over-digit. Then a drawing means 108 produces picture elements.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は画像パターンに対して拡大、縮小2回転などの
変換を施した画像パターンを生成する画像表示装置に関
する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an image display device that generates an image pattern by performing transformations such as enlargement, reduction, and two rotations on an image pattern.

従来の技術 一般に画像パターンに対して施す変換として2次元アフ
ィン変換がよく用いられる。2次元アフィン変換は次式
(1)で定義される。
2. Description of the Related Art In general, a two-dimensional affine transformation is often used as a transformation applied to an image pattern. The two-dimensional affine transformation is defined by the following equation (1).

x’abx (ア、)=(。d)(ア)     ・・・・・・・・
・・・・(1)(ad−be笑0) 標である。
x'abx (a,) = (.d) (a) ・・・・・・・・・
...(1) (ad-be lol 0) It's a sign.

例えば、原点の回りの角度θの回転は次式(2)で定義
される。
For example, rotation by angle θ around the origin is defined by the following equation (2).

X’CO3θ−5inθI ()−(、)()      ・・・・・・・・・・・
・(2)7’   SiH6cosθ y また、原点を中心とするI軸方向及びy軸方向へのに倍
の拡大(または縮小)は次式(3)で定義される。
X'CO3θ−5inθI ()−(,)() ・・・・・・・・・・・・
- (2) 7' SiH6 cos θ y Further, double expansion (or reduction) in the I-axis direction and the y-axis direction centering on the origin is defined by the following equation (3).

〆   ko    x (1)=(。k)(ア)    ・・・・・・・・・・
・・・・・(3)従来の画像の変換方式(例えばコンピ
ュータ(Computer)、 P24−P25 、 
 IEEE、 Tune 1983など)では変換対象
となる原画像パターンのすべての画素について式(1)
などの行列演算を行なっていた。
〆 ko x (1) = (.k) (a) ・・・・・・・・・
...(3) Conventional image conversion methods (e.g. Computer, P24-P25,
(IEEE, Tune 1983, etc.), formula (1) is used for all pixels of the original image pattern to be converted.
Performed matrix operations such as

発明が解決しようとする問題点 しかしながら式(1)などの演算においては1画素あた
り4回の乗算が必要であり処理の高速化が困難であった
。更に、画素は離散的な座標値をもつ正方格子上の点で
あるため拡大変換などにおいて生成される画像パターン
に画素の脱落が生じ画品質の点において問題があった。
Problems to be Solved by the Invention However, calculations such as equation (1) require four multiplications per pixel, making it difficult to speed up the processing. Furthermore, since pixels are points on a square grid having discrete coordinate values, pixels may be dropped in image patterns generated during enlargement conversion, resulting in problems in image quality.

本発明はかかる点に鑑み、画素ごとに式(1)などの演
算を用いることなく、簡単な加算のみで原画像パターン
に対して変換を施した画像パターンを、画品質の劣化を
避けながら高速に生成する画像表示装置を提供すること
を目的とする。
In view of this, the present invention has been developed to convert an image pattern into which an original image pattern is transformed by simple addition without using calculations such as equation (1) for each pixel, at high speed while avoiding deterioration of image quality. The purpose of the present invention is to provide an image display device that generates images.

問題点を解決するだめの手段 本発明は前記問題点を解決するため、原画像パターンか
ら互いに隣接する画素の列を検出し、隣接する2つの画
素間の相対位置情報を出力する隣接画素検出手段と、被
生成画像パターンの最後に生成された画素の座標値を保
持する座標値記憶手段と、上記座標値の丸め誤差を保持
する誤差記憶手段と、前記隣接画素検出手段が出力する
相対位置情報に応じた増分値を生成する増分生成手段と
、前記増分値を前記誤差記憶手段が保持する誤差に加算
する加算手段と、前記加算における加算結果を評価し前
記座標値記憶手段が保持する座標値を更新する座標値更
新手段と、前記座標値更新手段によって更新された座標
値の位置に被生成画像パターンの画素を生成する描画手
段とを備えた画像表示装置である。
Means for Solving the Problems In order to solve the above-mentioned problems, the present invention provides an adjacent pixel detection means for detecting rows of mutually adjacent pixels from an original image pattern and outputting relative position information between two adjacent pixels. , a coordinate value storage means for holding the coordinate value of the last generated pixel of the generated image pattern, an error storage means for holding the rounding error of the coordinate value, and relative position information outputted by the adjacent pixel detection means. an increment generating means for generating a corresponding increment value; an addition means for adding the increment value to the error held by the error storage means; and an addition means for evaluating the addition result in the addition to calculate the coordinate value held by the coordinate value storage means. The image display device includes a coordinate value updating means for updating, and a drawing means for generating pixels of a generated image pattern at the position of the coordinate values updated by the coordinate value updating means.

作  用 本発明は前記の構成により、隣接画素検出手段により原
画像パターンをある1つの画素から始まる隣接画素の列
として表現し、その隣接画素間の相対位置関係を示すい
くつかの基準ベクトルに対してのみ式(1)で定義され
る変換を施すことにより、変換後の始点に対応する画素
から変換された基準ベクトルを相対位置にもつ画素の列
として画像パターンを生成する。前記の座標値記憶手段
は変換された画素列の現在描画している画素の座標値を
保持し、前記誤差記憶手段は変換された画素列の真の座
標値と実際に描画した丸められた座標値の間の誤差を保
持し、前記増分生成手段及び加算手段は、前記の変換さ
れた基準ベクトルに応じた相対位置変位を真の座標値に
加算するだめの手段である。前記座標値更新手段は、前
記の誤差の桁あぶれを検出し、それに応じて描画する画
素の座標を更新し、前記描画手段は実際に画素を生成す
る。
According to the above configuration, the present invention expresses the original image pattern as a row of adjacent pixels starting from a certain pixel using the adjacent pixel detection means, and expresses the original image pattern as a row of adjacent pixels starting from a certain pixel, and expresses the original image pattern with respect to some reference vectors indicating the relative positional relationship between the adjacent pixels. By performing the transformation defined by Equation (1), an image pattern is generated as a string of pixels whose positions are relative to the transformed reference vector from the pixel corresponding to the transformed starting point. The coordinate value storage means holds the coordinate values of the currently drawn pixels of the converted pixel string, and the error storage means stores the true coordinate values of the converted pixel string and the rounded coordinates actually drawn. The increment generating means and addition means are means for holding the error between the values and adding the relative positional displacement according to the converted reference vector to the true coordinate value. The coordinate value updating means detects the digit deviation of the error and updates the coordinates of the pixel to be drawn accordingly, and the drawing means actually generates the pixel.

実施例 まず最初に本発明に依るところの原理について説明する
。いま原画像パターンが画素列P=(PQ + ” 1
r P2+ ”””r  ” n−11Pn )・・・
・・・・・・・・・・・・(4)で与えられるものとす
る。画素列の隣り合う2画素Pk−1とPk の間の相
対位置関係を示すベクトルを、 vk=PkPk−1(k−1,2,・・・−・・、n)
・・・・・・・・・・・・・・(6) と表わすと、原画像パターンP上の画素Pi はPt=
Pi−1+vt   (i=1.2. ・=”、n)・
・・・・・・・・・・・・・・(6)と表現できる。原
画像パターンに対して施す2次元アフィン変換行列をT
とすると、変換後の被生成画像パターンP′は式(4)
にTを乗じて、P /=T(Po、P、 、P2.−・
−・・、、 Pn−1,Pn)= (’rp0. TP
l、 TP2. 、=・−・、、 TPn−1,TPn
)・・・・・・・・・・・・・・・(7)で与えられる
。一方、式(6)を用いるとP′はP′−T(To、P
O+v1.P1+v2゜”’ ”・+  Pn−2+v
n −1+”n −1+vn )= (TP() 、T
P() +Tv1 、 TPl +Tv2 。
Embodiments First, the principle according to the present invention will be explained. The current original image pattern is pixel row P = (PQ + ” 1
r P2+ """r" n-11Pn)...
・・・・・・・・・・・・(4) shall be given. A vector indicating the relative positional relationship between two adjacent pixels Pk-1 and Pk in a pixel column is expressed as vk=PkPk-1(k-1, 2,...-...,n)
・・・・・・・・・・・・・・・(6) When expressed as, the pixel Pi on the original image pattern P is Pt=
Pi-1+vt (i=1.2. ・=”, n)・
It can be expressed as ・・・・・・・・・・・・・・・(6). The two-dimensional affine transformation matrix applied to the original image pattern is T
Then, the generated image pattern P' after conversion is expressed by equation (4)
is multiplied by T, P/=T(Po, P, , P2.-・
-...,, Pn-1, Pn) = ('rp0. TP
l, TP2. ,=・-・,, TPn-1, TPn
)・・・・・・・・・・・・・・・(7) is given. On the other hand, using equation (6), P' becomes P'-T(To, P
O+v1. P1+v2゜”' ”・+Pn-2+v
n −1+”n −1+vn )=(TP() , T
P() +Tv1, TPl +Tv2.

・・・・・・、TPn−2十Tvn−1,TPn−1十
Tvn)・・・・・・・・・・・・・・・(8)と表現
できる。いま、 Pに=TP、   (t=1.2.−・−・、n )・
・・・・・・・・・・・・・・(9)とおくと、式(8
)から Pi’ =T P i −1+ T v i=P、’ 
 +Tv、      ・・・・・・・・・・・・・・
・(10)となる。
..., TPn-20Tvn-1, TPn-10Tvn) ...... (8). Now, P = TP, (t = 1.2.-・-・, n )・
・・・・・・・・・・・・・・・ (9) Then, the formula (8
) from Pi' = T P i -1+ T v i=P,'
+Tv, ・・・・・・・・・・・・・・・
・It becomes (10).

ここで式(9)は原画像パターンのすべての画素につい
てアフィン変換を行ない、被生成画像パターン中の対応
する画素を求めるという前記の従来の方法を表わす式で
ある。一方、式(10)は本発明が依るところの原理を
表わす漸化式であり、最後に生成した被生成画像パター
ン上の画素に、変換された相対位置ベクトルを加えるこ
とにより次の画素を求めるという方法を表わしている。
Here, equation (9) represents the above-mentioned conventional method of performing affine transformation on all pixels of the original image pattern and finding corresponding pixels in the generated image pattern. On the other hand, equation (10) is a recurrence equation that expresses the principle on which the present invention is based, and the next pixel is calculated by adding the converted relative position vector to the pixel on the last generated image pattern. It represents the method.

一般に式(4)で与えられる画素列Pに制約がない場合
には、相対位置ベクトルVk もまたあらゆるベクトル
をとりうるため、式(10)における相対位置ベクトル
へのTの乗算処理がすべての相対位置べzトルについて
必要となり、前記の従来の方法と計算量における優位性
はない。しかし、画素列P中の隣り合う2画素Pk−1
とPkO間の相対位置関係に「互いに8連結の・意味に
おいて隣接している(即ち、一方の画素が他方の画素の
8近傍にある)こと」という制約を設けることにより、
相対位置ベクトルは第2図に示すU。からu7の8通り
に限定される。更に、これら8通シのベクトルから選ん
だ任意の2つのベクトルは互いに一次独立であることか
ら、実際に2次元アフィン変換行列を乗じる必要のある
相対位置ベクトルはU。からu7のうちの2つのみでよ
い。いま、第2図のベクトルu0とu2を選び、 b T−()    (ad−bcキ0)・・・・・・・・
・(11)ad とし、8つのベクトル各々にTを乗じたベクトルをU。
In general, if there are no constraints on the pixel sequence P given by equation (4), the relative position vector Vk can also take any vector, so the multiplication process of the relative position vector by T in equation (10) This method requires a position vector, and is not superior to the conventional method in terms of calculation amount. However, two adjacent pixels Pk-1 in the pixel row P
By setting a constraint on the relative positional relationship between PkO and PkO, "they are adjacent to each other in the sense of 8-connection (that is, one pixel is in the 8-neighborhood of the other pixel)",
The relative position vector is U shown in FIG. It is limited to 8 ways from u7. Furthermore, since any two vectors selected from these eight vectors are linearly independent of each other, the relative position vector that actually needs to be multiplied by the two-dimensional affine transformation matrix is U. Only two of u7 are required. Now, select vectors u0 and u2 in Figure 2, and write b T-() (ad-bc key 0)...
・(11) Let ad be the vector obtained by multiplying each of the eight vectors by T.

′からu7′とすると、 なる関係が成立し、以下同様に、 となる。式(12)及び式(13)から明らかなように
、uolからu7′まで求めるには乗算は不要であり、
単に2次元アフィン変換行列Tの要素の加減算のみとな
る。但しも′の決定に要する演算は除く0以上述べたこ
とから原画像パターンを構成する画素列に対して、8連
結画素列であるという制約を設けることにより、原画像
パターンに対して2次元アフィン変換を施した画像パタ
ーン上の画素列は漸化式(10)によって求められ、そ
れに要する演算は加減算のみでよいことがわかる。
′ to u7′, the following relationship holds true, and similarly below. As is clear from equations (12) and (13), no multiplication is necessary to obtain from uol to u7'.
It simply involves adding and subtracting elements of the two-dimensional affine transformation matrix T. However, the calculation required to determine ' is excluded. 0 From the above, by setting a constraint that the pixel strings that make up the original image pattern are 8 connected pixel strings, two-dimensional affine is applied to the original image pattern. It can be seen that the pixel string on the transformed image pattern is obtained by the recurrence formula (10), and that only addition and subtraction are required.

以下、本発明の実施例を原画像パターンの回転した画像
パターンを生成する場合を例にして説明する。第1図は
本発明の画像表示装置の実施例を示すブロック図である
。101は原画像パターン、102は隣接画素検出手段
、103は増分生成手段、104は加算手段、106は
誤差記憶手段、106は座標値更新手段107は座標値
記憶手段、108は描画手段、109は生成された画像
ノ(ターンである。加算手段104と誤差記憶手段10
5と座標値記憶手段107はそれぞれI座標用とy座標
用の対で構成される。
Embodiments of the present invention will be described below, taking as an example a case where an image pattern obtained by rotating an original image pattern is generated. FIG. 1 is a block diagram showing an embodiment of an image display device of the present invention. 101 is an original image pattern, 102 is an adjacent pixel detection means, 103 is an incremental generation means, 104 is an addition means, 106 is an error storage means, 106 is a coordinate value updating means 107 is a coordinate value storage means, 108 is a drawing means, 109 is a The generated image is a turn. Adding means 104 and error storage means 10
5 and the coordinate value storage means 107 are each configured as a pair for I coordinate and y coordinate.

以上のように構成された本発明の実施例の画像表示装置
が実現する変換された画像)くターンの生成方法の概要
を説明する。
An outline of a method for generating a converted image pattern realized by the image display device according to the embodiment of the present invention configured as described above will be explained.

いま原画像パターン101の例として第3図301に示
す画像パターンを考える。この原画像パターンを原点を
中心に反時計回りに600回転する場合を考える。隣接
画素検出手段102は前述の制約のもとに8連結画素列
P P=(P P ・・・・・・、Pll)  ・・・・・
・・・・・・・(14)()l   11 を検出し、互いに隣接する2つの画素間の相対位置は関
する情報を出力する。本例では相対位置ベクトル列V=
(vl、v2.・・・・・・、vll)は■=(uOl
 uOl uOl uOl uOl u31 u2 j
u 3. u s r u 4. u s )  ・・
・・・・・・・・・・(15)となる。但しU ・・・
・・・+ u7は第2図に示すペク0ν トルとする。次に増分生成手段103では原画像パター
ン101に施すべき2次元アフィン変換に応じてuO′
、・・・・・・、u7′ を算出しテーブル化しておく
。本例では勺′、・・・・・・、u7′は第4図に示す
ようになる。増分生成手段103では、隣接画素検出手
段102から入力されてくる相対位置情報に応じてそれ
に対応するベクトルの成分をu0′からu7′までの中
から選びだして、誤差記憶手段105に対す・る増分と
して出力し、加算手段104において加算される。
Now consider the image pattern shown in FIG. 3 301 as an example of the original image pattern 101. Consider the case where this original image pattern is rotated 600 times counterclockwise around the origin. The adjacent pixel detection means 102 uses the 8-connected pixel array P P = (P P . . . , Pll) under the above-mentioned constraints.
(14) ()l 11 is detected, and information regarding the relative position between two adjacent pixels is output. In this example, relative position vector sequence V=
(vl, v2....., vll) is ■=(uOl
uOl uOl uOl uOl u31 u2 j
u3. u s r u 4. us)...
・・・・・・・・・(15) However, U...
...+u7 is the vector 0ν tor shown in FIG. Next, the incremental generation means 103 uses uO′ according to the two-dimensional affine transformation to be applied to the original image pattern 101.
,..., u7' is calculated and made into a table. In this example, U7', . . . , U7' are as shown in FIG. The increment generation means 103 selects the corresponding vector component from u0' to u7' according to the relative position information inputted from the adjacent pixel detection means 102, and stores it in the error storage means 105. It is output as an increment and added in the adding means 104.

さて一般に、前記増分生成手段103から出力される増
分は整数値をとるとは限らない。従って原画像パターン
1o1上の画素に対応する変換後の画素の座標値(これ
を真の座標値と呼ぶことにする。)もまた整数値をとる
とは限らないため、座標値を丸める必要が生じる。丸め
処理は、真の座標値(Xo、YO)と丸められた座標値
(x、y )が次式(16)を満足するように行なうも
のとする。
Generally, the increment output from the increment generating means 103 does not necessarily take an integer value. Therefore, the coordinate value of the pixel after conversion (hereinafter referred to as the true coordinate value) corresponding to the pixel on the original image pattern 1o1 does not necessarily take an integer value, so it is necessary to round the coordinate value. arise. It is assumed that the rounding process is performed so that the true coordinate values (Xo, YO) and the rounded coordinate values (x, y) satisfy the following equation (16).

このとき、丸め誤差Rx、RYを次式(17)と定義す
る。
At this time, rounding errors Rx and RY are defined as the following equation (17).

前記の丸められた座標値(x、y)を座標値記憶手段1
07に保持し、丸め誤差(Rx、RY)を誤差記憶手段
105に保持する。座標値更新手段106は、前記加算
手段1 ’04における加算の結果、丸め誤差(RX、
RY)が式(17)を満足するように座標値記憶手段1
07が保持する座標値(x。
The rounded coordinate values (x, y) are stored in the coordinate value storage means 1.
07, and the rounding error (Rx, RY) is held in the error storage means 105. The coordinate value updating means 106 calculates the rounding error (RX,
coordinate value storage means 1 so that RY) satisfies equation (17).
The coordinate value held by 07 (x.

Y)を更新するとともに描画手段108に対して更新さ
れた座標値の位置に画素を生成するように指示する。
Y) and instructs the drawing means 108 to generate a pixel at the position of the updated coordinate values.

以上述べた方法を第3図301の原画像パターンを用い
て確める。本例における画像パターン生成過程を第6図
に示す。欄601は原画像パターン301から隣接画素
検出手段10’2によって検出される画素列の座標値を
、欄501は隣接画素検出手段102によって出力され
る隣接画素間の相対位置に関する情報(本例では相対位
置ベクトルの番号もしくは相対位置ベクトルの成分その
もの)を、欄503は増分生成手段103によって生成
される増分値(本例では隣接画素検出手段102から入
力された相対位置ベクトルr、対して変換を施したベク
トルの成分)を、欄504は加算手段104において行
なわれた前記増分値と誤差記憶手段105が保持する誤
差の加算結果を、欄506及び欄505は前記加算結果
604がら座標値更新手段106によって前記式(17
)を満足するように丸められた座標値と誤差をそれぞれ
示す。欄506に与えられた座標値が生成された画  
  ′像パターンの画素列を示している。第3図302
(破線部)に生成された画像パターンを示す。
The method described above will be confirmed using the original image pattern 301 in FIG. FIG. 6 shows the image pattern generation process in this example. Column 601 contains coordinate values of pixel rows detected by adjacent pixel detection means 10'2 from original image pattern 301, and column 501 contains information regarding relative positions between adjacent pixels output by adjacent pixel detection means 102 (in this example, The column 503 shows the increment value generated by the increment generating means 103 (in this example, the relative position vector r input from the adjacent pixel detecting means 102). Column 504 shows the addition result of the increment value performed in addition means 104 and the error held in error storage means 105, and column 506 and column 505 show the coordinate value updating means based on the addition result 604. 106, the above formula (17
) The coordinate values and errors rounded to satisfy the following are shown. The coordinate values given in column 506 are the generated image.
' indicates the pixel row of the image pattern. Figure 3 302
(The broken line part) shows the generated image pattern.

303(実線部)は真の変換された画像パターンを示す
303 (solid line portion) shows the true converted image pattern.

ここで座標値更新手段106における処理について具体
的に説明する。例えばも′からP1′を求める場合P′
における誤差(欄SO6第1行)0.267 ()に対して増分値(欄503第1行)−〇 、072 0.6 ()が加算され、加算結果(欄504第10.866 0.768   。
Here, the processing in the coordinate value updating means 106 will be specifically explained. For example, when calculating P1' from P'
The increment value (column 503, first line) -〇 , 072 0.6 () is added to the error (column SO6, first line) of 0.267 (), and the addition result (column 504, first line of 10.866 0. 768.

行)()か得られる。この値を仮の誤差0.794 ように補正を加える。いまRX/及びRY / とも1
減算することにより、 となり式(17)を満足する。この結果補正されたRx
′、RY′がP1′における誤差として誤差記憶手段1
06に格納され、補正相当分が座標値記憶手段107が
保持する座標値に加算される(仮の誤差の補正と座標値
の補正における補正相当分の加減算が逆となることに注
意する)。このとき座標値の更新が生じたため描画手段
108は更新された座標値の位置に画素を生成する。以
下同様の処理によりP2′、P3′、・・・・・・1P
11’ を求めていく。
row)() or obtained. This value is corrected so that the error is 0.794. Now RX/and RY/Tomo 1
By subtracting, the equation (17) is satisfied. As a result, the corrected Rx
', RY' is the error storage means 1 as the error in P1'.
06, and the amount equivalent to the correction is added to the coordinate values held by the coordinate value storage means 107 (note that the addition and subtraction of the amount equivalent to the correction in the correction of the temporary error and the correction of the coordinate values are reversed). At this time, since the coordinate values have been updated, the drawing means 108 generates a pixel at the position of the updated coordinate values. Following the same process, P2', P3',...1P
11' is sought.

本例ではP3′とP4′及びp6/とP71がそれぞれ
重複しているが、前述のように座標値更新手段107に
おいて実際に更新が生じた時にのみ画素を生成する(こ
の場合P4′とP7′は生成されない)としたが、重複
して生成してもよいことはいうまでもない。
In this example, P3' and P4' and p6/ and P71 overlap, but as described above, pixels are generated only when updating actually occurs in the coordinate value updating means 107 (in this case, P4' and P7 ' is not generated), but it goes without saying that it may be generated repeatedly.

次に生成された画品質について説明する。第3図302
で示された画像パターンを構成する画素列は必ずしも8
連結とはなっていない。即ち、P6′と267間、P7
′と287間及びPl。′と2117間において連結性
がなくなっており画品質の点からは画素が脱落している
と考えられる。画素の脱落を避ける方法について説明す
る前に、まず何故画素が脱落となる。式(17)から という関係が成シ立つ。y成分についてはX成分と同様
に考えられるためX成分のみについて以下の説明を行な
う。いま、(a)1Δxi+11く1の場合と、(b)
1ΔXt+IDfの場合に分けて考える。
Next, the generated image quality will be explained. Figure 3 302
The pixel rows that make up the image pattern shown in are not necessarily 8.
It is not connected. That is, between P6' and 267, P7
' and 287 and Pl. There is no connectivity between ' and 2117, and from the point of view of image quality, it is considered that pixels are missing. Before explaining how to avoid pixel dropouts, first of all, why do pixels drop out? The following relationship holds true from equation (17). Since the y component can be considered in the same way as the X component, only the X component will be described below. Now, (a) 1Δxi+11×1 and (b)
Let us consider the case of 1ΔXt+IDf separately.

(a)の場合、式(21)は次のように書き換えられる
In the case of (a), equation (21) can be rewritten as follows.

−1、5<:RX 、 ’  (1、6(22)1+1 正の絶対値は1以下となシ、Pi+1 の更新された座
標値xi+1は、 xi+1=xi±n   (n=o、1)   ・・・
・・・・・・(23)となり、Pi′とPi41のX成
分の連結性は保持される。一方(b)の場合、式(21
)は %式%(24) となりうる。このときRx、 /に加えるべき補正の!
+1 絶対値は1よりも大きくなり、Pi+1 の更新された
座標値xi+1は、 xi+1””xi士n(n=2,3,4.・・曲)・・
川・(25)となるためP、′とPi+4のX成分の連
結性は保持さなる条件が成シ立たなければならないこと
がわかる。
-1,5<:RX,' (1,6(22)1+1 The positive absolute value must be less than or equal to 1.) The updated coordinate value xi+1 of Pi+1 is xi+1=xi±n (n=o, 1) ...
(23), and the connectivity of the X components of Pi' and Pi41 is maintained. On the other hand, in the case of (b), equation (21
) can be the % expression %(24). At this time, the correction to be added to Rx, /!
+1 The absolute value becomes larger than 1, and the updated coordinate value xi+1 of Pi+1 is xi+1""xi2n(n=2,3,4...song)...
It can be seen that a condition must be satisfied that the connectivity of the X component of P,' and Pi+4 is maintained because the following equation holds: (25).

第5図に示した例では増分値として、変換された相対位
置ベクトルの成分をそのまま採用しているため、P6/
、P8′、P9′、P11′を求める際の増分値が式(
26)を満足しておらず、P6’ l P8’ l P
ll ’を求める際の補正の絶対値が2となり、これら
の間で画素の脱落が生じたのである。
In the example shown in Fig. 5, the component of the converted relative position vector is used as the increment value, so P6/
, P8', P9', and P11' are calculated using the formula (
26) is not satisfied, and P6' l P8' l P
The absolute value of the correction when determining ll' was 2, and pixels were dropped between these values.

そこで画素の脱落を避けるためには、増分生成手段10
3において増分値を生成する際に変換された相対位置ベ
クトルの成分をそのまま増分値として用いるのではなく
、相対位置ベクトルを、各ベクトルの成分の絶対値が1
を超えないようないくつかのベクトルの和に分割し、分
割されたベクトルの成分を増分値として加算手段104
に供給すればよい。変換された相対位置ベクトルの最も
簡単な分割方法は、分割されたベクトルの成分の絶対値
が1以下になるまで2分割を繰り返す方法である。この
方法は成分の除算を伴うが実際の処理は成分を示すデー
タのシフト処理となり除算を行なう必要がない。例えば
第4図で示した例では8つのベクトルのうち、u1’+
u31u61u7  はそれぞれ2分割したベクトルの
和に置き換え、分割したベクトルの成分を2回加算出段
104に供給すればよい。このように増分生成手段10
3を修4   。
Therefore, in order to avoid pixel dropout, the incremental generation means 10
When generating the increment value in step 3, instead of using the converted components of the relative position vector as the increment value, the relative position vector is changed so that the absolute value of each vector component is 1.
Means 104 divides the sum of several vectors such that the sum does not exceed , and adds the components of the divided vectors as increment values.
It should be supplied to The simplest method for dividing the converted relative position vector is to repeat the division into two until the absolute value of the component of the divided vector becomes 1 or less. Although this method involves division of components, the actual processing involves shifting the data representing the components and there is no need to perform division. For example, in the example shown in FIG. 4, among the eight vectors, u1'+
u31u61u7 may be replaced with the sum of vectors divided into two, respectively, and the components of the divided vectors may be supplied to the addition stage 104 twice. In this way, the incremental generation means 10
Fix 3 to 4.

正すると、P6′とP6′の間に画素(12)か、P7
12   。
If correct, there is a pixel (12) between P6' and P6', or P7
12.

とP8′の間に画素(12)か、P1己とP11′の間
に画素(1)が補われる。
Pixel (12) is added between P1 and P8', or pixel (1) is added between P1 and P11'.

なお本実施例の画像表示装置の動作説明の例として原画
像パターンを原点を中心として反時計回りに6oo回転
する場合を述べたが、増分生成手段103におやて増分
値を生成する際に用いる2次元アフィン変換行列のみを
変更することにより、原画像パターンを拡大、・縮小9
反転、せん断およびそれらを複合した画像パターンが生
成できることは言うまでもない。
Incidentally, as an example for explaining the operation of the image display device of this embodiment, a case has been described in which the original image pattern is rotated 60 degrees counterclockwise around the origin. Enlarging/reducing the original image pattern by changing only the two-dimensional affine transformation matrix used9
It goes without saying that inverted, sheared, and composite image patterns can be generated.

また本実施例の説明では原画像パターンの例として閉曲
線を用いたが、一般の画像パターンについては、いくつ
かの部分画像パターンに分割することにより複数の8連
結画素列として処理することも可能であシ、また画素の
重複を許せばどのような画像パターンも1つの8連結画
素列として処理することも可能であることから、隣接画
素検出手段102において隣接画素列を検出する際に課
した「8連結の意味において隣接していること」という
制約は、本発明の適用できる画像パターンの形状に対し
て何らの制約とはならないことを付は加えておく。
Furthermore, although a closed curve was used as an example of the original image pattern in the explanation of this embodiment, it is also possible to process a general image pattern as a plurality of 8-connected pixel sequences by dividing it into several partial image patterns. Furthermore, if pixel overlap is allowed, it is possible to process any image pattern as one 8-connected pixel string. It should be added that the constraint that "the patterns are adjacent in the sense of 8-connection" does not impose any constraints on the shape of the image pattern to which the present invention can be applied.

更に座標値更新手段106における加算結果の評価基準
として式(17)を用いたが、予め誤差記憶手段105
に初期値として0.5ずつを設定しておくことにより、
式(17)は、 と置き換えることができ、加算手段104における桁あ
ぶれの検出を行なうことで式(27)の評価が行なえハ
ードウェア化が容易である。
Furthermore, although equation (17) was used as an evaluation criterion for the addition result in the coordinate value updating means 106, the error storage means 105
By setting 0.5 each as the initial value,
Equation (17) can be replaced with: Equation (27) can be evaluated by detecting digit errors in addition means 104, and can be easily implemented in hardware.

発明の効果 以上のように本発明によれば、行列乗算という複雑な演
算手段を用いずに原画像パターンに対して2次元アフィ
ン変換を施した画像パターンを生成することができ、画
像表示装置における画像パターン変換処理の高速化及び
ハードウェア化に対する寄与が大である。
Effects of the Invention As described above, according to the present invention, it is possible to generate an image pattern by performing two-dimensional affine transformation on an original image pattern without using complicated calculation means such as matrix multiplication. It has greatly contributed to speeding up image pattern conversion processing and implementing it in hardware.

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

第1図は本発明の一実施例のブロック図、第2図は相対
位置ベクトルを示す説明図、第3図は本実施例の動作を
説明するだめの画像パターンの例を示す説明図、第4図
は第2図の相対位置ベクトルに対して第3図に示す変換
例を適用した結果を示す説明図、第6図は第3図に示す
変換例における画像パターン生成過程を示す説明図であ
る。 102・・・・・・隣接画素検出手段、103・・・・
・・増分生成手段、104・・・・・・加算手段、10
6・・・・・・誤差記憶手段、106・・・・・・座標
値更新手段、107・・・・・・座標値記憶手段、10
8・・・・・・描画手段。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第2
図 第3図 第4図
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is an explanatory diagram showing relative position vectors, FIG. 3 is an explanatory diagram showing an example of an image pattern for explaining the operation of this embodiment, and FIG. Fig. 4 is an explanatory diagram showing the result of applying the conversion example shown in Fig. 3 to the relative position vector in Fig. 2, and Fig. 6 is an explanatory diagram showing the image pattern generation process in the conversion example shown in Fig. 3. be. 102... Adjacent pixel detection means, 103...
... Increment generating means, 104 ... Adding means, 10
6...Error storage means, 106...Coordinate value updating means, 107...Coordinate value storage means, 10
8...Drawing means. Name of agent: Patent attorney Toshio Nakao and 1 other person 2nd
Figure 3 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 原画像パターンから互いに隣接する画素の列を検出し、
隣接する2つの画素間の相対位置情報を出力する隣接画
素検出手段と、被生成画像パターンの最後に生成された
画素の座標値を保持する座標値記憶手段と、上記座標値
の丸め誤差を保持する誤差記憶手段と、前記隣接画素検
出手段が出力する相対位置情報に応じた増分値を生成す
る増分生成手段と、前記増分値を前記誤差記憶手段が保
持する誤差に加算する加算手段と、前記加算における加
算結果を評価し、前記座標値記憶手段が保持する座標値
を更新する座標値更新手段と、前記座標値更新手段によ
って更新された座標値の位置に被生成画像パターンの画
素を生成する描画手段とを具備することを特徴とする画
像表示装置。
Detect rows of pixels adjacent to each other from the original image pattern,
Adjacent pixel detection means for outputting relative position information between two adjacent pixels, coordinate value storage means for holding the coordinate values of the last generated pixel of the generated image pattern, and holding rounding errors of the coordinate values. an error storage means; an increment generation means for generating an increment value according to the relative position information outputted by the adjacent pixel detection means; an addition means for adding the increment value to an error held by the error storage means; coordinate value updating means for evaluating the addition result in and updating the coordinate values held by the coordinate value storage means; and drawing for generating pixels of a generated image pattern at the positions of the coordinate values updated by the coordinate value updating means. An image display device comprising: means.
JP60238034A 1985-10-24 1985-10-24 Image display device Expired - Lifetime JPH0685184B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60238034A JPH0685184B2 (en) 1985-10-24 1985-10-24 Image display device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60238034A JPH0685184B2 (en) 1985-10-24 1985-10-24 Image display device

Publications (2)

Publication Number Publication Date
JPS6297072A true JPS6297072A (en) 1987-05-06
JPH0685184B2 JPH0685184B2 (en) 1994-10-26

Family

ID=17024185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60238034A Expired - Lifetime JPH0685184B2 (en) 1985-10-24 1985-10-24 Image display device

Country Status (1)

Country Link
JP (1) JPH0685184B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5991572A (en) * 1982-11-17 1984-05-26 Ricoh Co Ltd Method for forming picture with variable power
JPS59229669A (en) * 1983-06-10 1984-12-24 Matsushita Electric Ind Co Ltd Picture data processor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5991572A (en) * 1982-11-17 1984-05-26 Ricoh Co Ltd Method for forming picture with variable power
JPS59229669A (en) * 1983-06-10 1984-12-24 Matsushita Electric Ind Co Ltd Picture data processor

Also Published As

Publication number Publication date
JPH0685184B2 (en) 1994-10-26

Similar Documents

Publication Publication Date Title
US4635292A (en) Image processor
US4667236A (en) Television perspective effects system
US7764285B2 (en) Computer graphics systems and methods for encoding subdivision triangular surfaces
JPS62297984A (en) Visual display generator for curved image
JPH03127282A (en) Radon transforming method of digital image
US4479192A (en) Straight line coordinates generator
JPS6297072A (en) Picture display device
JP2000003446A (en) Missing value estimating method, three-dimensional data input device and recording medium
JPH01265332A (en) Production of determinant of crc parallel arithmetic circuit
JP4170173B2 (en) Block matching arithmetic unit
JPS6232519B2 (en)
JP2013191181A (en) Image matching method, image matching device employing the same and program
JP2713400B2 (en) Projection information generation device
KR20180002585A (en) Pattern correction amount calculation device, Pattern correction amount calculation method, and recording medium
JP2940294B2 (en) Drafting equipment
JPH04167082A (en) Polygonal approximation system for curved section
US20030174250A1 (en) Digital signal processor and digital signal processing method
JPS5813916B2 (en) Arc signal generation method
JPH05300378A (en) Dot threshold level generating method
JP3710208B2 (en) Image processing method and apparatus
JPS6326781A (en) Projected information parallel generating method
JPH04260982A (en) Device and method for forming linear pixel
JPS60136871A (en) Processing unit
JPS63262745A (en) Address forming circuit
JPH0664618B2 (en) Clipping circuit