JPS59229669A - Picture data processor - Google Patents

Picture data processor

Info

Publication number
JPS59229669A
JPS59229669A JP58104444A JP10444483A JPS59229669A JP S59229669 A JPS59229669 A JP S59229669A JP 58104444 A JP58104444 A JP 58104444A JP 10444483 A JP10444483 A JP 10444483A JP S59229669 A JPS59229669 A JP S59229669A
Authority
JP
Japan
Prior art keywords
point
increment
axis direction
holding part
replacement
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
JP58104444A
Other languages
Japanese (ja)
Inventor
Katsura Kawakami
桂 川上
Shigeo Shimazaki
島崎 成夫
Etsuko Hiroue
広上 悦子
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 JP58104444A priority Critical patent/JPS59229669A/en
Priority to US06/612,010 priority patent/US4602346A/en
Priority to DE19843418624 priority patent/DE3418624A1/en
Publication of JPS59229669A publication Critical patent/JPS59229669A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • G06T3/608Rotation of whole images or parts thereof by skew deformation, e.g. two-pass or three-pass rotation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To rotate a picture rapidly by a simple operation by adding a displaced variable from the preceding processing point to an increased value between respective processing points and finding out a grading point corresponding to a current processing point from the added result. CONSTITUTION:An operating means 5 adds replacement Rx from a grating line KXn of the x-axis direction held by a replacement variable holding part 1 to increment DELTAX of the X-axis direction held by an increment holding part 2. In addition, the operating part 5 adds also replacement RY from a grating line KYn of the Y-axis direction held by the replacement variable holding part 1 to the increment DELTAY lof the Y-axis direction held by the increment holding part 2. The operating means 5 subtracts the reference length (l) of the grating from the added result. The subtracted result is stored and updated as a new replacement variable in the replacement variable holding means 1. The operating means 5 allows a grating point position holding part 4 to execute adding operation and stores a new grating line in a grating point position holding part 4.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は画像の回転処理を行なう画像データ処理装置に
関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an image data processing device that performs image rotation processing.

従来例の構成とその問題点 近年、超小型計算機の普及に伴なって、画像情報の計算
機による処理も、その応用分野が急速に拡大しつつある
Conventional configurations and their problems In recent years, with the spread of microcomputers, the field of application of image information processing by computers is rapidly expanding.

以下、ある第1の領域に存在する画像情報を角度θだけ
回転し、第2の領域に移す画像処理方法について説明す
る。
Hereinafter, an image processing method will be described in which image information existing in a certain first area is rotated by an angle θ and transferred to a second area.

第1図のように領域11の画像情報(以下、原画と呼ぶ
。)を角度θだけ傾けて点Aが点Bへ対応するように領
域12へ移動する場合の回転作業は、領域11を座標軸
(例えばX軸)と平行な線分の要素に分解し、各線分を
角度θだけ傾けて領域12の対応する位置へ移動してや
れば良い。すなわち第2図に示すように、格子点p1〜
p6の濃度を点q、〜q6へ移す作業に帰着する0なお
画像を格子状の画素に分割して処理する場合、格子点に
しか画素は存在しない。点91〜q6は格子点ではない
ため、各点の座標値を丸めて得られた点r1〜r6によ
って近似するのが一般的である。
As shown in FIG. 1, the rotation work when tilting the image information of area 11 (hereinafter referred to as the original image) by an angle θ and moving it to area 12 so that point A corresponds to point B is performed using area 11 as the coordinate axis. (For example, the X axis) may be broken down into elements of line segments, each line segment may be tilted by an angle θ and moved to a corresponding position in the area 12. That is, as shown in FIG. 2, the lattice points p1~
This results in the task of moving the density of p6 to points q, ~q6. Note that when an image is divided into grid-like pixels and processed, pixels exist only at grid points. Since the points 91 to q6 are not lattice points, they are generally approximated by points r1 to r6 obtained by rounding the coordinate values of each point.

さて点pn、qnの座標をそれぞれ(Xpn。Now, the coordinates of points pn and qn are respectively (Xpn.

Y p n ) # (Xq n ’ Yq” )とす
ると、なる関係が存在する。但しXb、Ybは平行移動
のための定数である。そして従来はq1〜q5の各点の
座標を求めるために、個別に第(1)式の計算を行なっ
ていたため、1点につき4回、すなわち合計20回の乗
算を必要とした。
Y p n ) # (Xq n 'Yq" ), the following relationship exists. However, Xb and Yb are constants for parallel movement. Conventionally, in order to find the coordinates of each point from q1 to q5, , because the calculation of equation (1) was performed individually, requiring four multiplications for each point, that is, a total of 20 multiplications.

一般に乗算は加減算に比べて複雑なノ・−ドウエアと多
くの計算時間を必要とするので、回転の原画の画素数が
大きい場合は膨大な計算時間が必要であるという欠点を
有していた。
In general, multiplication requires more complicated hardware and more calculation time than addition and subtraction, so it has the disadvantage that a huge amount of calculation time is required when the original image to be rotated has a large number of pixels.

発明の目的 本発明は上記欠点に鑑み、画像の回転を行なう際、格子
状に分割された多数の画素から成る画像の処理を簡単な
演算で高速に行なうことのできる画像データ処理装置を
提供するものである。
OBJECTS OF THE INVENTION In view of the above drawbacks, the present invention provides an image data processing device that can process an image consisting of a large number of pixels divided into a lattice pattern at high speed with simple calculations when rotating an image. It is something.

発明の構成 本発明は画像の回転処理を行なう際に直前に処理した点
から格子点までの位置の変位量を保持する変位量保持手
段と、処理を行なう各点の間の増分量を保持する増分保
持手段と、処理が行なわれた点に対応した格子点の位置
を記憶する格子点位置保持手段と、前記変位量保持手段
が保持している変位量と前記増分保持手段が保持してい
る増分量とを加算することにより回転を行なう点の新た
な座標点に対応した格子点を求めて、前記格子点位置保
持手段に通知する演算手段とを設けることにより、上記
目的を達するものである0実施例の説明 以下、第3図及び第4図を参照しながら本発明の一実施
例について説明する。
Structure of the Invention The present invention includes a displacement amount holding means for holding the amount of displacement of a position from a point processed immediately before to a grid point when performing image rotation processing, and an amount of increment between each point to be processed. an incremental holding means, a lattice point position holding means for storing the position of a lattice point corresponding to a point on which processing is performed, and a displacement held by the displacement holding means and a displacement held by the incremental holding means. The above object is achieved by providing calculation means for determining a grid point corresponding to a new coordinate point of a point to be rotated by adding the increment amount and notifying the grid point position holding means. Description of Embodiment 0 An embodiment of the present invention will be described below with reference to FIGS. 3 and 4.

第3図は本発明の一実施例における画像データ処理装置
のブロック結線図である0 また第4図は原d〈列pnを角度θだけ回転させた結果
が点列qnであるとしたとき、その一部の各点qn−1
〜qn+2の位置を示すものである0さて第3図におい
て、1は変位量保持部で、点q8における格子点からの
変位RX、RYを保持している02は増分保持部で、点
q8と点qB+1の間のそれぞれX軸方向、およびY軸
方向の増分ΔX。
FIG. 3 is a block diagram of an image data processing device according to an embodiment of the present invention. FIG. Each point qn-1 of that part
0 which indicates the position of ~qn+2 Now, in Fig. 3, 1 is a displacement holding section, and 02 is an incremental holding section that holds the displacement RX and RY from the grid point at point q8. Increment ΔX in the X-axis direction and the Y-axis direction between point qB+1, respectively.

ΔYを保持している。3は格子の基準長であるtを保持
している基準格子長保持部である。4は格子点位置保持
部で、後述するように演算手段5の演算により求めた点
q8が丸めた場合、どの格子点KB となるかを一時記
憶している。たとえば点qn−1はKn−1,qnはK
n、qn+1はKn+1゜qn+2はKn+2として丸
められた状態で記憶される。即ち、変位量を切シ捨てた
値で保持している。
ΔY is maintained. Reference numeral 3 denotes a reference grating length holding section that holds t, which is the reference length of the grating. Reference numeral 4 denotes a lattice point position holding section which temporarily stores which lattice point KB will be when the point q8 calculated by the calculation means 5 is rounded, as will be described later. For example, point qn-1 is Kn-1, qn is K
n, qn+1 is stored as Kn+1, and qn+2 is stored as Kn+2. That is, the displacement amount is held at a rounded down value.

6は濃度等の原画情報を格子状に分割して記憶している
原画情報記憶部である。7は処理位置記憶部で、演算手
段5により点pnの移動先を求めている際、現在点pn
を処理中であることを記憶している。
Reference numeral 6 denotes an original image information storage section that stores original image information such as density divided into grids. Reference numeral 7 denotes a processing position storage unit, which stores the current point pn when calculating the destination of the point pn by the calculation means 5.
is being processed.

上記のような構成において、以下第6図に示したフロー
チャ −トとともにその動作を説明する0なお以下性な
う説明は、点qnの移動位置を求めた後、点qn+1の
移動位置を求めるものである。
In the above configuration, the operation will be explained below with reference to the flowchart shown in FIG. It is.

(イ)演算手段5は点pnの移動位置の計算終了後処理
画素記憶部7に対して、加算操作を施し、処理画素記憶
7の内容が点pnに対応するNから1増加り一で点pn
+1に対応するN+1となり、今後演算手段6で処理す
るものが点pn+1であることを記憶する。
(a) After completing the calculation of the moving position of point pn, the calculation means 5 performs an addition operation on the processing pixel storage section 7, and the content of the processing pixel storage 7 increases by 1 from N corresponding to point pn. pn
It becomes N+1 corresponding to +1, and it is stored that the point to be processed by the calculation means 6 from now on is point pn+1.

(ロ)次に演算手段6は変位量保持部1が保持していた
X軸方向の格子線Kxnからの変位Rxと、増分保持部
2が保持しているX軸方向の増分△Xとを加算する。
(b) Next, the calculation means 6 calculates the displacement Rx from the grid line Kxn in the X-axis direction held by the displacement holding unit 1 and the increment ΔX in the X-axis direction held by the increment holding unit 2. to add.

(ハ)演算手段6は基準格子長保持部3が保持している
t工と、処理ブロック(ロ)で行なった計算結果(Rx
+△X)との大小を比較し、(Rx十△X)≧txと判
断する。
(c) The calculation means 6 uses the t-task held by the reference grid length holding unit 3 and the calculation result (Rx) performed by the processing block (b).
+△X) and determines that (Rx + △X)≧tx.

なお(Rx+△X)くtxならば、そのまま処理ブロッ
ク(へ)に進む。
Note that if (Rx+ΔX)<tx, the process directly advances to the processing block (to).

に)演算手段6は(R工+△X)からtxを減算する。(b) The calculating means 6 subtracts tx from (R engineering + ΔX).

そして、その値を再びRxとして変位量保持手段1に送
出し変位量保持手段1にX軸方向の新たな変位量として
記憶更新させる。
Then, the value is sent out to the displacement amount holding means 1 again as Rx, and the displacement amount holding means 1 is stored and updated as a new displacement amount in the X-axis direction.

(ホ)演算手段6は格子点位置保持部4に対して加算操
作を施し、格子点位置保持部4が記憶していたX軸の格
子線にエユにt工を加算した値、すなわちKx(n+1
)を新たな格子線表して格子点位置保持手段4に記憶更
新させる。
(e) The calculation means 6 performs an addition operation on the grid point position holding unit 4, and obtains the value obtained by adding t to the grid line of the X axis stored in the grid point position holding unit 4, that is, Kx( n+1
) is represented by a new grid line and stored in the grid point position holding means 4 and updated.

(へ)次に演算手段5は変位量保持部1が保持していた
y軸方向の格子線Kynからの変位1(アと、増分保持
部2が保持しているy軸方向の増分ΔYとを加算する。
(v) Next, the calculation means 5 calculates the displacement 1 (a) from the grid line Kyn in the y-axis direction held by the displacement holding unit 1, and the increment ΔY in the y-axis direction held by the increment holding unit 2. Add.

(ト)演算手段6は基準格子長保持部3が保持している
1yと、処理ブロック(へ)で行なった計算結果R十△
Y との大小を比較し、(Ry+△Y)≧tアと判断す
る。
(G) The calculation means 6 uses 1y held by the reference grid length holding unit 3 and the calculation result R+△ performed in the processing block (G).
Comparing the magnitude with Y, it is determined that (Ry+ΔY)≧ta.

なお(R+△Y)<zアならば、そのまま処環ブロック
0)に進む。
Note that if (R+ΔY)<za, the process directly proceeds to processing block 0).

(イ)演算手段6は(H十ΔY)からtアを減算する。(a) The calculation means 6 subtracts ta from (H+ΔY).

そして、その値を再びR7として変位量保持手段1に送
出し、変位量保持手段1にY軸方向の新たな変位量とし
て記憶更新させる。
Then, the value is sent as R7 again to the displacement amount holding means 1, and the displacement amount holding means 1 is updated as a new displacement amount in the Y-axis direction.

(す)演算手段5は格子点位置保持部4に対して加算操
作を施し、格子点位置保持部4が記憶していた格子aK
ynにtアを加算した値、すなわちにア(n+1)を新
たな格子線として記憶更新を行なわせる。
(S) The calculation means 5 performs an addition operation on the lattice point position holding section 4, and calculates the lattice aK stored in the lattice point position holding section 4.
The memory is updated using the value obtained by adding ta to yn, that is, a(n+1), as a new grid line.

休)新たに求められた格子点位置保持部4の内容(Kx
(n+1 ) 、に5r(n+1 ))が原画情報保持
部6に送出される。原画情報保持部6は処理画素記憶部
7の内容を参照し、点pn+1の移動位置が(Kx(n
+1 ) 、Ky(n+1 ))の格子点となることを
知り処理情報として点pn+1における種々の情報を位
置(Kx (n+1 ) 、Ky’(n+1 ) ) 
K、転送する。
) Contents of the newly determined grid point position holding unit 4 (Kx
(n+1), and 5r(n+1)) are sent to the original image information holding section 6. The original image information holding unit 6 refers to the contents of the processing pixel storage unit 7 and determines that the movement position of the point pn+1 is (Kx(n
+1), Ky(n+1)), and various information at point pn+1 as processing information.
K. Transfer.

以上のように本実施例によれば上記操作を繰シ返すこと
により、加・減算と大小判断だけで順次移動位置を求め
ることができ、第1図に示した領域11の各画素を領域
12に回転移動させることができる。
As described above, according to this embodiment, by repeating the above operations, it is possible to sequentially determine the movement position by simply adding/subtracting and determining the size. It can be rotated and moved.

すなわちもともとqn−1〜qn+2は第2図に示した
ようにX軸と平行な原画の各画素Pn−1〜pn+2の
列を角度θだけ傾けた結果の点であるから、原画の各画
素の間隔は一定であり、また各点qn−1〜qn+2の
間隔も一定である0そこで第4図に示すようにそれぞれ
の点の座標の値の差△X。
That is, originally, qn-1 to qn+2 are the points resulting from tilting the row of pixels Pn-1 to pn+2 of the original image parallel to the X axis by an angle θ, as shown in FIG. The interval is constant, and the interval between each point qn-1 to qn+2 is also constant. Therefore, as shown in FIG. 4, the difference ΔX between the coordinate values of each point.

ΔYは一定であり、 が成り立つ。ΔY is constant, holds true.

そこで第(2)式を用い、画素qnの座標(X9n p
Yqn)が分っていれば、点qn+1の座標(より求め
ることができる。従って、最初の点q1の座標によシ、
点q2以降は第(3)式によシ順次求めていくことがで
きる。
Therefore, using equation (2), the coordinates of pixel qn (X9n p
If Yqn) is known, the coordinates of point qn+1 can be found by
Point q2 and subsequent points can be sequentially determined using equation (3).

なお実施例では基準格子長保持部3を設けて基準格子長
1x、1アの定数によシ移動位置を求めたが、基準格子
長1X、 1アがともに1画素分の長さであれば処理ブ
ロックに)、(ト)において1を減算するように演算手
段6に設定しておけばよく、基準格子長保持部3を省く
こともできる。
In the embodiment, the reference grid length holding section 3 was provided and the movement position was determined based on the constants of the reference grid lengths 1x and 1a, but if both the reference grid lengths 1x and 1a are the length of one pixel, then The calculation means 6 may be set to subtract 1 in the processing blocks) and (g), and the reference lattice length holding section 3 can be omitted.

以下第6図を参照して、第3図に示した画像データ処理
装置のより具体的な構成を説明する。
A more specific configuration of the image data processing apparatus shown in FIG. 3 will be described below with reference to FIG. 6.

第6図において、601は記憶装置で、画像を格子状に
分割して記憶している。602は記憶装置601と後述
する各構成の集合体であるプロセッサとを接続するバス
、6o3はそのプロセッサの内部バスである。604は
命令レジスタで、格納されている命令は制御部605に
よシ解釈され、後述する各ブロック606〜616を制
御する。
In FIG. 6, 601 is a storage device that stores images divided into grids. 602 is a bus that connects the storage device 601 and a processor which is a collection of components to be described later, and 6o3 is an internal bus of the processor. Reference numeral 604 denotes an instruction register, and the stored instructions are interpreted by a control unit 605 to control each block 606 to 616, which will be described later.

606は演算器で、第4図を用いて説明したアルゴリズ
ムに応じた必要な加減算、大小比較等を実行する。60
7は原画画素のポインタで、このポインタの指定する画
素の持つ情報(例えば濃度情報)が原画データレジスタ
608によって保持される。609はX軸方向の格子線
のポインタ(以下、XPと称す)で、X軸に直角な格子
線の番号に8を保持している。610はX軸方向の残差
レジスタ(以下、RXと称す)で、たとえば第3図に示
した点qnの格子点からの変位R工を保持する。611
はX軸方向の増分レジスタ(以下、1)Xと称す)で、
第3図における△X1すなわち7xcogθの値を保持
している。612 、613 。
606 is an arithmetic unit that executes necessary addition/subtraction, size comparison, etc. according to the algorithm explained using FIG. 60
Reference numeral 7 denotes an original pixel pointer, and information (for example, density information) possessed by the pixel specified by this pointer is held in the original image data register 608. Reference numeral 609 is a pointer for grid lines in the X-axis direction (hereinafter referred to as XP), which holds 8 as the number of grid lines perpendicular to the X-axis. 610 is a residual register (hereinafter referred to as RX) in the X-axis direction, which holds, for example, the displacement R of point qn shown in FIG. 3 from the grid point. 611
is an increment register in the X-axis direction (hereinafter referred to as 1)X),
The value of ΔX1, ie, 7xcogθ in FIG. 3 is held. 612, 613.

614はそれぞれY軸方向についての格子線香号のポイ
ンタ(yp)、残差レジスタ()IY)、増分レジスタ
(DY)で、各レジスタ609〜611とそれぞれ同様
の機能を有する0616は間隔レジスタで、格子線の間
隔、すなわち第3図における値tを保持している。
614 is a grid pointer pointer (yp) in the Y-axis direction, a residual register () IY), and an increment register (DY), and 0616 is an interval register having the same functions as each register 609 to 611. The interval between the grid lines, that is, the value t in FIG. 3 is held.

以上のような構成において、以下その動作を説明する。The operation of the above configuration will be explained below.

まず命令レジスタ604に画像の回転の命令が格納され
ると、各ブロック606〜616の各部は次のように動
作する。
First, when an image rotation command is stored in the command register 604, each part of each block 606 to 616 operates as follows.

m  最初に原画ポインタ607の内容を1だけ増加し
、それを画素のアドレス情報としてバス602へ出力し
、記憶装置601がらそのアドレスの内容を読み出し、
原画デルタレジスタロ08へ格納する。(第6図のブロ
ック(イ)に対応) (11)次にRX610とDJ’m611の内容を内部
バス603を介して演算器606へ転送し、両者を加算
し、その結果を再びRX610へ格納する。
m First, increase the content of the original picture pointer 607 by 1, output it to the bus 602 as pixel address information, read the content of that address from the storage device 601,
Store the original picture in delta register row 08. (Corresponds to block (a) in Figure 6) (11) Next, the contents of RX610 and DJ'm611 are transferred to the arithmetic unit 606 via the internal bus 603, the two are added, and the result is stored in the RX610 again. do.

(第4図のブロック沖)に対応) (iii)  RXe 1oの内容と、間隔レジスタ6
16の内容を演算器606によシ比較し、RXaloの
内容が間隔レジスタ615の内容値よシ小さい場合は後
述する(vlへ、RX610の内容値の方が大きい場合
は後述するQV)へ移行する。(第4図のブロック(ハ
)に対応) QJ  RX610の内容から間隔レジスタ616の内
容を減じ、その結果をRX610に格納する。
(corresponds to the block offshore in Figure 4) (iii) Contents of RXe 1o and interval register 6
The contents of 16 are compared by the arithmetic unit 606, and if the contents of RXalo are smaller than the contents of the interval register 615, move to vl (described later); if the contents of RX610 are larger, proceed to QV, which will be described later. do. (Corresponds to block (c) in FIG. 4) QJ Subtract the contents of the interval register 616 from the contents of the RX610 and store the result in the RX610.

その後XP609の内容を演算器606により1だけ増
加する。(第4図のブロックに)、(ホ)に対応) (V)  Y軸方向について(ii) 、 (iii)
 、 (iV)と同様な演算を行なう。(第4図のブロ
ック()) 、 H、C’))に対応) (yll  XP609とi’P612とで指定される
位置に対応する記憶装置601内のアドレスへ原画チー
タレジスタロ08の内容を格納する。(第4図のブロッ
ク0に対応) 以上のように上記構成によれば、乗算は不要であ勺、小
数回の加減算と大小比較のみで、回転後の格子点の濃度
を求めていくことができる。従って、第(1ン式の計算
を各点についてすべて行なう従来の方式に比べて高速に
画像データ処理を行なうことができる。
Thereafter, the contents of XP 609 are incremented by 1 by arithmetic unit 606. (Corresponds to blocks in Figure 4) and (e)) (V) Regarding the Y-axis direction (ii) and (iii)
, (iV). (Corresponds to blocks ()), H, C') in Figure 4) (Corresponds to block 0 in Figure 4) As described above, according to the above configuration, there is no need for multiplication, and the density of the rotated lattice point can be found by only adding and subtracting decimal numbers and comparing the sizes. Therefore, image data processing can be performed at a higher speed than in the conventional method in which the calculation of the first equation is performed for each point.

次に第6図に示した構成に、以下述べる2つの条件を与
えた場合の動作について説明する。
Next, the operation when two conditions described below are given to the configuration shown in FIG. 6 will be described.

(第1条件) RX610.RY613が保持できる最大値が格子間隔
1x、1アに等しいとする。言い換えれば、1、 、1
ア= 1  として、)IX610.RY613は小数
点以下の値のみを保持するよう構成する。
(First condition) RX610. Assume that the maximum value that the RY613 can hold is equal to the grid spacing of 1x and 1a. In other words, 1, ,1
Assuming that a=1,) IX610. The RY613 is configured to hold only values below the decimal point.

(第2条件) 格子点のアドレスを第7図に示すように割付けする。即
ち、同一の水平線上の点は右へ行く程アドレスが増加し
、水平線の最右端の次のアドレスは、1本下の水平線の
最左端に対応するものとし、画像空間の横幅の画素数は
W個であるとする。
(Second condition) Addresses of lattice points are assigned as shown in FIG. In other words, the addresses of points on the same horizontal line increase as they go to the right, and the address next to the rightmost end of the horizontal line corresponds to the leftmost end of the horizontal line one line below, and the number of pixels in the width of the image space is Suppose that there are W pieces.

上記第1条件fcjれば、RX610.RY613が格
子間隔1x、1アよりも大きくなったときは加算の際、
桁上げが発生すると同時に、RJC610゜RY613
が保持できる最大値が減じられた値が、加算結果となる
。従って、K5図に示したブロック(ロ)、に)は第7
図に示すブロック(財)にまたブロック(へ)、(ト)
はブロック(4)に置きかえられる。またこの条件によ
り図に示す間隔レジスタ616を省くことかできる。
If the above first condition fcj is met, then RX610. When RY613 becomes larger than the lattice spacing 1x, 1a, when adding,
At the same time as a carry occurs, RJC610°RY613
The result of addition is the value from which the maximum value that can be held is subtracted. Therefore, the blocks (b), ni) shown in Figure K5 are the 7th block.
The block (goods) shown in the diagram is also a block (to), (g)
is replaced by block (4). This condition also allows the interval register 616 shown in the figure to be omitted.

一方上記第2条件によれば、格子点をあられすのにXP
609とYP612の2つの値のかわりに、−次元アド
レスAだけであられすことかできることによシ、第6図
に示したブロック(ホ)はX軸方向に1だけ進むことを
意味しているから第7図に示すブロック奴)で置きかえ
られる。また、ブロック(男はY軸方向に1だけ進むこ
とを意味しているから、アドレスはちょうど画像空間の
横幅の分だけ小さくなるようにすれば良く、ブロック(
4)で置き換えることができる。
On the other hand, according to the second condition above, it takes
Instead of the two values 609 and YP612, it is possible to use only the -dimensional address A, which means that the block (e) shown in Figure 6 moves forward by 1 in the X-axis direction. to the block shown in Figure 7). Also, block (man) means to move forward by 1 in the Y-axis direction, so the address should be just as small as the width of the image space, and block (
4) can be replaced.

また第6図に示したフローチャートによれば、原画の隣
接する2点が回転した結果、RXe 1oの切シ捨てに
よって同一点に対応する場合、原画の右方の点の値が最
終的に残る値となるが、第7図のブロック(4)のよう
に、原画の画素の濃度ω)吉それを格納すべき点の値と
を演算して格納することにより、よシ原画に忠実な結果
を得ることもできる。
Also, according to the flowchart shown in Figure 6, if two adjacent points in the original image are rotated and correspond to the same point by truncating RXe 1o, the value of the point on the right side of the original image will ultimately remain. However, as shown in block (4) in Figure 7, by calculating and storing the density of the pixel of the original image ω) and the value of the point where it should be stored, a result that is faithful to the original image can be obtained. You can also get

なお以上の説明ではRXelo、RYelsを切り捨て
により格子点を求める方法を説明したが、RX610.
RY613の初期値をt/2とすることにより、全く同
一のアルゴリズムで、RX610゜RY613がxp 
、ypに対して四捨五入した点を求めていくことができ
る。
Note that in the above explanation, the method of finding grid points by rounding down RXelo and RYels was explained, but RX610.
By setting the initial value of RY613 to t/2, RX610°RY613 can be set to xp using the same algorithm.
, yp can be rounded off.

また、(ロ)は原画の各画素濃度を表わすとして説明し
たが、濃度以外の情報でも良いことは言うまでもない。
Further, although (b) has been described as representing the density of each pixel of the original image, it goes without saying that information other than density may also be used.

発明の効果 本発明は以上のように、変位量保持手段が保持している
直前の処理点における格子点からの変位量と、増分量保
持手段が保持してbる各処理点間の増分量とを加算し、
その加算結果から現在処理している点に対応した格子点
を順次水めるよう構成することによシ、多数の画素から
成る画像を簡単な演算で、かつ高速に処理して画像の回
転を行なうことができ、その価値は大なるものがある。
Effects of the Invention As described above, the present invention provides the displacement amount from the lattice point at the immediately previous processing point held by the displacement amount holding means and the increment amount between each processing point b held by the incremental amount holding means. Add and
By sequentially adding grid points corresponding to the point currently being processed based on the addition result, images consisting of many pixels can be processed easily and at high speed, and images can be rotated. It can be done, and it is of great value.

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

第1図および第2図は画像の回転を示す図、第3図は本
発明の一実施例における画像データ処理装置のブロック
結線図、第4図は同装置の画像処理を示す図、第6図は
同装置のフローチャート、第6図は本発明の第2の実施
例における画像データ処理装置のブロック結線図、第7
図は第3の実施例における画像データ処理装置のフロー
チャート、第8図は同装置のアドレスの割付けを示す図
である。 1・・・・・・変位量保持部、2・・・・・・増分保持
部、4・・・・・・格子点位置保持部、6・・・・・・
演算手段。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第4
図 第5図 第6図 第7図
1 and 2 are diagrams showing image rotation, FIG. 3 is a block diagram of an image data processing device according to an embodiment of the present invention, FIG. 4 is a diagram showing image processing of the same device, and FIG. 6 is a block diagram of the image data processing device according to the second embodiment of the present invention, and FIG. 7 is a flowchart of the same device.
The figure is a flowchart of the image data processing apparatus in the third embodiment, and FIG. 8 is a diagram showing address assignment of the apparatus. 1... Displacement holding section, 2... Increment holding section, 4... Grid point position holding section, 6...
calculation means. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 4
Figure 5 Figure 6 Figure 7

Claims (1)

【特許請求の範囲】[Claims] 画像の回転処理を行なう際に直前に処理した点から格子
点までの位置の変位量を保持する変位量保持手段と、処
理を行なう各点の間の増分量を保持する増分保持手段と
、処理が行なわれた点に対応した格子点の位置を記憶す
る格子点位置保持手段と、前記変位量保持手段が保持し
ている変位量と前記増分保持手段が保持している増分量
とを加算することによシ回転を行なう点の新たな座標点
に対応した格子点を求めて、前記格子点位置保持手段に
通知する演算手段とを具備した画像データ処理装置。
Displacement amount holding means for holding the displacement amount of the position from the point processed immediately before to the grid point when performing image rotation processing; Increment holding means for holding the increment amount between each point to be processed; lattice point position holding means for storing the position of a lattice point corresponding to the point at which the lattice point position is added; An image data processing device comprising calculation means for determining a grid point corresponding to a new coordinate point of a point to be rotated, and notifying the grid point position holding means.
JP58104444A 1983-05-19 1983-06-10 Picture data processor Pending JPS59229669A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP58104444A JPS59229669A (en) 1983-06-10 1983-06-10 Picture data processor
US06/612,010 US4602346A (en) 1983-05-19 1984-05-18 Method and apparatus for processing image data using sum and subtract operations
DE19843418624 DE3418624A1 (en) 1983-05-19 1984-05-18 METHOD AND DEVICE FOR PROCESSING IMAGE DATA USING ADDITIONAL AND SUBTRACTION PROCEDURES

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58104444A JPS59229669A (en) 1983-06-10 1983-06-10 Picture data processor

Publications (1)

Publication Number Publication Date
JPS59229669A true JPS59229669A (en) 1984-12-24

Family

ID=14380811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58104444A Pending JPS59229669A (en) 1983-05-19 1983-06-10 Picture data processor

Country Status (1)

Country Link
JP (1) JPS59229669A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6219981A (en) * 1985-07-18 1987-01-28 Canon Inc Image processor
JPS6238986A (en) * 1985-08-15 1987-02-19 Fuji Electric Co Ltd Normalizing device for picture data
JPS6297072A (en) * 1985-10-24 1987-05-06 Matsushita Electric Ind Co Ltd Picture display device
JPS6432393A (en) * 1987-07-29 1989-02-02 Hitachi Ltd Rendering processor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6219981A (en) * 1985-07-18 1987-01-28 Canon Inc Image processor
JPS6238986A (en) * 1985-08-15 1987-02-19 Fuji Electric Co Ltd Normalizing device for picture data
JPH0462103B2 (en) * 1985-08-15 1992-10-05 Fuji Electric Co Ltd
JPS6297072A (en) * 1985-10-24 1987-05-06 Matsushita Electric Ind Co Ltd Picture display device
JPS6432393A (en) * 1987-07-29 1989-02-02 Hitachi Ltd Rendering processor

Similar Documents

Publication Publication Date Title
EP0577130B1 (en) System and method for rendering bézier splines
JPS6239818B2 (en)
EP0329101B1 (en) Three-dimensional graphic processing apparatus
US20040164985A1 (en) Triangle polygon plotting device and triangle polygon plotting method
JPS59229669A (en) Picture data processor
JPH08329261A (en) Parameteric curve generator
US20020190996A1 (en) Generating partials for perspective corrected texture coordinates in a four pixel texture pipeline
JPH03144782A (en) Three-dimensional processor
JPS60251474A (en) Picture data processor
JPH02190983A (en) Conversion/disintegration circuit
JPS59214376A (en) Picture data processor
JP3027777B2 (en) Drawing apparatus and drawing method in computer graphics
JPH08272960A (en) Filtering processing method for image
US5838297A (en) Method for color image scaling and other geometrical transformations
JPS62184576A (en) Clipping circuit
JP2889244B2 (en) Image processing device
JPS60189579A (en) Processor of picture data
JPH0368086A (en) Linear interpolating circuit
Pulleyblank et al. VLSI Chip for Ray Tracing Bicubic Patches.
Lever et al. Design issues in the AVS/Express Multi-pipe Edition
JPH03147190A (en) Straight line drawing method
JP2686607B2 (en) Image processing method
JPS6045287A (en) Clipping processor
JPS6114514B2 (en)
JPH0261779A (en) Coordinate data processing unit