JPH04142678A - Image expansion processing method in affine conversion - Google Patents

Image expansion processing method in affine conversion

Info

Publication number
JPH04142678A
JPH04142678A JP2265752A JP26575290A JPH04142678A JP H04142678 A JPH04142678 A JP H04142678A JP 2265752 A JP2265752 A JP 2265752A JP 26575290 A JP26575290 A JP 26575290A JP H04142678 A JPH04142678 A JP H04142678A
Authority
JP
Japan
Prior art keywords
data
image memory
image
memory
address
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
JP2265752A
Other languages
Japanese (ja)
Inventor
Nobuyuki Katsuyama
勝山 信行
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP2265752A priority Critical patent/JPH04142678A/en
Publication of JPH04142678A publication Critical patent/JPH04142678A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To reduce the number of times of accessing an image memory and to speed up image expansion processing in affine conversion by storing a frequency of using input image data in a data memory of a pipe line processor. CONSTITUTION:From an input magnification ratio, the number of times of accessing the same address by image memory 1 is calculated and stored in a data memory 34 of a pipe line processor 3. Next, an address of image memory 1 in which output data is to be written is calculated. Further, data is read from image memory 1, and a processing unit 36 converts read data into output data nd is stored in image memory 1. Furthermore, input data read out in advance is used to prepare output data, the average value of the data is used to correct the data repeatedly. With this, the number of times of accessing the image memory is reduced and image expansion processing in affine conversion is speeded up.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、画像処理システムのアフィン変換における画
像拡大処理方法、特にパイプラインプロセッサを用いて
の拡大処理方法に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image enlargement processing method in affine transformation of an image processing system, and particularly to an enlargement processing method using a pipeline processor.

〔従来の技術〕[Conventional technology]

アフィン変換では出力側のX座標、Y座標から入力側の
X座標、Y座標を求め、その座標に対応したイメージメ
モリ内のアドレスがアクセスされる。
In affine transformation, the X and Y coordinates on the input side are determined from the X and Y coordinates on the output side, and the address in the image memory corresponding to the coordinates is accessed.

特に拡大処理の場合には、その倍率により同じデータを
何度もアクセスすることになる。
Particularly in the case of enlargement processing, the same data will be accessed many times depending on the magnification.

例えば第3図のような2×2の4画素のイメージデータ
10 (a+++  ax2+  a2t+  a2□
)から成る画像をX方向に2倍、Y方向に2倍するとき
には、拡大後のイメージデータ20の各画素は、A s
1= A 12= A 21= A 22= a l1
lA s3= A 14= A 23= A 24= 
a 121Aa1=A32=A41=A42=a2!I
A 3G= A 34= A 43” A 44= a
 22+の様になり、同一データを各4箇所で用いるこ
とになる。
For example, 2×2 4-pixel image data 10 (a+++ ax2+ a2t+ a2□
) is doubled in the X direction and doubled in the Y direction, each pixel of the enlarged image data 20 is A s
1= A 12= A 21= A 22= a l1
lA s3= A 14= A 23= A 24=
a 121Aa1=A32=A41=A42=a2! I
A 3G= A 34= A 43” A 44= a
22+, and the same data is used in each of the four locations.

従来のアフィン変換における画像拡大処理方法では、出
力1画素を求めるたびに1回づつ、イメージメモリに対
してアクセスが行われていた。
In the conventional image enlargement processing method using affine transformation, the image memory is accessed once each time one output pixel is obtained.

〔発明が解決しようとする課題〕 上述した従来のアフィン変換における画像拡大処理方法
は、出力データの1画素ごとに対応する画像データを求
めるときには、拡大処理の場合においても、同じ入力デ
ータを使うときにも毎回イメージメモリをアクセスして
いるため、処理時間が大きくなるという欠点をもってい
た。
[Problems to be Solved by the Invention] The conventional image enlargement processing method in affine transformation described above has a problem in that when obtaining image data corresponding to each pixel of output data, even in the case of enlargement processing, when using the same input data. However, since the image memory is accessed every time, the processing time increases.

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

本発明のアフィン変換における画像拡大処理方法は、指
定された拡大率からイメージメモリ内の同一アドレスに
対するアクセス数を算出する第1のステップと、前記第
1のステップで求められた値をパイプラインプロセッサ
内のデータメモリへ記憶させる第2のステップと、デー
タを読み出すべきイメージメモリ内のアドレスを計算す
る第3のステップと、生成した出力イメージを書き込む
べきイメージメモリ内のアドレスを計算する第4のステ
ップと、イメージメモリから前記第3のステップで求め
られたアドレスからデータを読み込む第5のステップと
、生成された出力データをイメージメモリ内の前記第3
のステップで求められたアドレスへ書き込む第6のステ
ップと、読み出されたデータを第1のステップで求めら
れた値だけ利用して出力データ作ることを繰り返す第7
のステップと、第3のステップから前記第7のステップ
までの処理を出力イメージの各画素となるデータを全て
読み出すまで繰り返す第8のステップとからなる。
The image enlargement processing method in affine transformation of the present invention includes a first step of calculating the number of accesses to the same address in the image memory from a specified enlargement rate, and a pipeline processor a third step of calculating an address in the image memory from which the data should be read; and a fourth step of calculating an address in the image memory to write the generated output image. and a fifth step of reading data from the image memory from the address determined in the third step, and reading the generated output data from the third address in the image memory.
The sixth step is to write to the address obtained in step 1, and the seventh step is to repeat creating output data using only the value obtained in the first step from the read data.
and an eighth step in which the processes from the third step to the seventh step are repeated until all data for each pixel of the output image is read out.

〔実施例〕〔Example〕

次に本発明について第1図及び第2図を参照して詳細に
説明する。
Next, the present invention will be explained in detail with reference to FIGS. 1 and 2.

第2図を参照すると、本発明の一実施例に用いる情報処
理システムは、イメージメモリ1とメモリコントロール
装置2とパイプラインプロセッサ3とから構成される。
Referring to FIG. 2, the information processing system used in one embodiment of the present invention is comprised of an image memory 1, a memory control device 2, and a pipeline processor 3.

イメージメモリ1は、イメージデータを記憶しておくメ
モリであり、メモリコントロール装置2は、イメージメ
モリとパイプラインプロセッサ間でのデータの入出力を
制御する。
The image memory 1 is a memory that stores image data, and the memory control device 2 controls data input/output between the image memory and the pipeline processor.

パイプラインプロセッサ3は、インプットコントローラ
31、リンクテーブル32、ファンクシ冒ンテーブル3
3、データメモリ34.キューバッファ35、プロセッ
シングユニット36およびアウトプットコントローラ3
7からなり、入力されたデータから出力データを生成す
る。
The pipeline processor 3 includes an input controller 31, a link table 32, and a function table 3.
3. Data memory 34. Queue buffer 35, processing unit 36 and output controller 3
7 and generates output data from input data.

第1図を参照すると、本発明の一実施例は、イメージメ
モリに対するアクセス数を計算するステップS1と、ス
テップS1で求められた値をデータメモリ34へ記憶す
るステップS2と、出力データを書き込むアドレスを計
算するステップS3と、イメージメモリからデータを読
み出すアドレスを計算するステップS4と、S4で求め
られたイメージメモリ内のアドレスからデータを読み出
すステップS5と、生成された出力データをイメージメ
モリへ書き込むステップS6と、読み出したデータを複
数回繰り返し出力データを作ることを繰り返すステップ
S7と、ステップS3からステップS7まで繰り返すス
テップS8とを含む。
Referring to FIG. 1, one embodiment of the present invention includes a step S1 of calculating the number of accesses to the image memory, a step S2 of storing the value obtained in step S1 in the data memory 34, and an address for writing output data. Step S3 of calculating an address for reading data from the image memory, Step S4 of calculating an address for reading data from the image memory, Step S5 of reading data from the address in the image memory determined in S4, and Step of writing the generated output data to the image memory. The process includes step S6, step S7 in which the read data is repeated a plurality of times to create output data, and step S8 in which steps S3 to S7 are repeated.

まず、入力された拡大率からイメージメモリ1内の同一
アドレスをアクセスする回数を計算しくステップS1)
、この値をパイプラインプロセフサ3内のデータメモリ
34に格納する(ステップS2)。
First, calculate the number of accesses to the same address in the image memory 1 from the input magnification ratio (step S1).
, this value is stored in the data memory 34 in the pipeline processor 3 (step S2).

次に出力データをイメージメモリ1に書き込むときのア
ドレスの計算しくステップ3)、イメージメモリ1から
データを読み出すときのアドレスの計算(ステップ4)
をする。そしてイメージメモリ1からデータを読み出す
(ステップ5)。
Next, calculate the address when writing output data to image memory 1 (step 3), and calculate the address when reading data from image memory 1 (step 4).
do. Then, data is read from the image memory 1 (step 5).

イメージメモリ1から読み出されたデータは、パイプラ
インプロセッサ3内のリンクテーブル32、ファンクシ
ロンテーブル33、データメモリ34、キューバッファ
35を経由してプロセッシングユニット36で出力デー
タに変換されイメージメモリに書き込まれる(ステップ
6)。
The data read from the image memory 1 is converted into output data by the processing unit 36 via the link table 32, function table 33, data memory 34, and queue buffer 35 in the pipeline processor 3, and written to the image memory. (Step 6).

従来ならば、ここで入力されたデータは捨てられ、新し
いデータをイメージメモリ1から読み出すが、拡大の場
合において、再度同じ入力データが必要なときに、あら
かじめステップS2で求められ、データメモリ34に記
憶されている値を参照して、再度入力データをイメージ
メモリ1から読み出すことなく、先に読み出されている
入力データを利用して(ステップS7)出力データを作
成し、イメージメモリにデータ1を書き込む。
Conventionally, the data input here is discarded and new data is read out from the image memory 1, but in the case of enlargement, when the same input data is required again, it is obtained in advance in step S2 and stored in the data memory 34. Referring to the stored values, without reading the input data from the image memory 1 again, the previously read input data is used to create output data (step S7), and data 1 is stored in the image memory. Write.

拡大率が整数倍でなく、実数倍により出力データを書き
込む際に、すでにイメージメモリ1にデータが書き込ま
れている場合には、そのデータの値の平均値をとり、デ
ータの補正を行う(ステップ8)。
When writing output data using a real number magnification instead of an integer magnification, if the data has already been written to image memory 1, the average value of the data values is taken and the data is corrected (step 8).

ステップ3からステップ8までの処理は出力データの各
画素となるデータを全て読み出して出力データを書き終
えるまで繰り返される(ステップ9)。
The processes from step 3 to step 8 are repeated until all data for each pixel of the output data is read out and the output data is written (step 9).

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

以上説明したように本発明は、入力画像データを利用す
る回数をパイプラインプロセッサ内のデータメモリに記
憶させておくことにより、イメージメモリへのアクセス
数が減り、アフィン変換の拡大処理が高速化できるとい
う効果がある。
As explained above, the present invention stores the number of times input image data is used in the data memory in the pipeline processor, thereby reducing the number of accesses to the image memory and speeding up affine transformation enlargement processing. There is an effect.

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

第1図は本発明の一実施例の処理の流れ図、第2図は本
実施例に用いる情報処理システムのブロック図、第3図
は一般の画像拡大処理を説明するための図である。 1・・・イメージメモリ、2・・・メモリコントロール
装置、3・・・パイプラインプロセッサ、31・・・イ
ンプットコントローラ、32・・・リンクテーブル、3
3・・・ファンクションテーブル、34・・・データメ
モリ、35・・・キューバッファ、36・・・プロセッ
シングユニット、37・・・アウトプットコントローラ
FIG. 1 is a flowchart of processing according to an embodiment of the present invention, FIG. 2 is a block diagram of an information processing system used in this embodiment, and FIG. 3 is a diagram for explaining general image enlargement processing. DESCRIPTION OF SYMBOLS 1... Image memory, 2... Memory control device, 3... Pipeline processor, 31... Input controller, 32... Link table, 3
3... Function table, 34... Data memory, 35... Queue buffer, 36... Processing unit, 37... Output controller.

Claims (1)

【特許請求の範囲】 指定された拡大率からイメージメモリ内の同一アドレス
に対するアクセス数を算出する第1のステップと、 前記第1のステップで求められた値をパイプラインプロ
セッサ内のデータメモリへ記憶させる第2のステップと
、 データを読み出すべきイメージメモリ内のアドレスを計
算する第3のステップと、 生成した出力イメージを書き込むべきイメージメモリ内
のアドレスを計算する第4のステップと、 イメージメモリから前記第3のステップで求められたア
ドレスからデータを読み込む第5のステップと、 生成された出力データをイメージメモリ内の前記第3の
ステップで求められたアドレスへ書き込む第6のステッ
プと、 拡大率が整数倍でない場合の書き込んだイメージが重な
る場合に平均をとってデータの補正を行う第7のステッ
プと、 読み出されたデータを第1のステップで求められた値だ
け利用して出力データを作ることを繰り返す第8のステ
ップと、 前記第3のステップから前記第8のステップまでの処理
を出力イメージの各画素となるデータを全て読み出すま
で繰り返す第9のステップとを含むアフィン変換におけ
る画像拡大処理方法。
[Claims] A first step of calculating the number of accesses to the same address in the image memory from a specified enlargement ratio; and storing the value determined in the first step in a data memory in a pipeline processor. a second step of calculating an address in the image memory to read the data from; a fourth step of calculating an address in the image memory to write the generated output image from the image memory. a fifth step of reading data from the address determined in the third step; a sixth step of writing the generated output data to the address determined in the third step in the image memory; The seventh step corrects the data by taking an average when the written images overlap when they are not multiples of an integer, and creates output data by using only the values found in the first step from the read data. and a ninth step in which the processes from the third step to the eighth step are repeated until all data for each pixel of the output image is read out. Method.
JP2265752A 1990-10-03 1990-10-03 Image expansion processing method in affine conversion Pending JPH04142678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2265752A JPH04142678A (en) 1990-10-03 1990-10-03 Image expansion processing method in affine conversion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2265752A JPH04142678A (en) 1990-10-03 1990-10-03 Image expansion processing method in affine conversion

Publications (1)

Publication Number Publication Date
JPH04142678A true JPH04142678A (en) 1992-05-15

Family

ID=17421519

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2265752A Pending JPH04142678A (en) 1990-10-03 1990-10-03 Image expansion processing method in affine conversion

Country Status (1)

Country Link
JP (1) JPH04142678A (en)

Similar Documents

Publication Publication Date Title
JPH04142678A (en) Image expansion processing method in affine conversion
JP3154741B2 (en) Image processing apparatus and system
JPH0229834A (en) Image processor
JPH06103372A (en) Geometrical conversion processing system for image data
JPH02118782A (en) Method for processing picture
JPS63115227A (en) Picture display address converter
JPS63116193A (en) Affine transformation system for image
JP2536183B2 (en) Image processing method and apparatus
JPH0863595A (en) Method and device for rotation processing of image
JPH03154175A (en) Picture storage device
JP2605609B2 (en) Dot display processing device
JPS62154177A (en) Image converter
JPS59200369A (en) Picture converter
WO2001006461A1 (en) Drawing method and drawing device
JPS62109176A (en) Control system for transfer address of picture memory
JP2012238154A (en) Image processing apparatus, image processing system and image processing method
JPH0415762A (en) Graphic editing system
JPH04278652A (en) Graphic drawing device and its memory access system
JPH07129460A (en) Method and device for processing image
JPH01184589A (en) Graphic clipping method
JPH02231627A (en) Picture display device
JPS62219078A (en) Arithmetic and processing device for expanded picture
JPS62175879A (en) Generating device for data on binary picture similarity conversion picture element
JPS63129476A (en) Magnifying/reducing/rotating device for picture data
JPH05189553A (en) Image processing system