JP2537851B2 - Image scaling processor - Google Patents

Image scaling processor

Info

Publication number
JP2537851B2
JP2537851B2 JP62086071A JP8607187A JP2537851B2 JP 2537851 B2 JP2537851 B2 JP 2537851B2 JP 62086071 A JP62086071 A JP 62086071A JP 8607187 A JP8607187 A JP 8607187A JP 2537851 B2 JP2537851 B2 JP 2537851B2
Authority
JP
Japan
Prior art keywords
change point
line
image information
point table
scaling
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.)
Expired - Lifetime
Application number
JP62086071A
Other languages
Japanese (ja)
Other versions
JPS63251867A (en
Inventor
雅幸 茂木
豊 尾崎
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 System Solutions Japan Co Ltd
Original Assignee
Matsushita Graphic Communication Systems Inc
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 Graphic Communication Systems Inc filed Critical Matsushita Graphic Communication Systems Inc
Priority to JP62086071A priority Critical patent/JP2537851B2/en
Publication of JPS63251867A publication Critical patent/JPS63251867A/en
Application granted granted Critical
Publication of JP2537851B2 publication Critical patent/JP2537851B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、画像の変倍処理(拡大または縮小処理)を
行うための画像変倍処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image scaling processing apparatus for performing image scaling processing (enlargement or reduction processing).

従来の技術 従来の画像変倍処理装置は、入力画像情報をメモリに
格納しておき、変倍処理要求が発生すると、メモリから
入力画像情報(入力画像の生データ)を読込み、ビット
操作によって変倍画像情報を生成するようになってい
た。
2. Description of the Related Art A conventional image scaling apparatus stores input image information in a memory. When a scaling request is made, the input image information (raw data of the input image) is read from the memory and scaled by a bit operation. It was designed to generate double image information.

この処理の内容について、第8図および第9図を参照
して説明する。
The contents of this processing will be described with reference to FIGS. 8 and 9.

第8図は入力画像情報の一例を示すもので、横方向の
列が1ラインの画素列であり、黒画素にはハッチングが
施されている。
FIG. 8 shows an example of input image information. The horizontal row is a pixel row of one line, and black pixels are hatched.

この入力画像を主操作方向および副走査方向にそれぞ
れ1/2倍に縮小した変倍画像情報を得る場合、ライン上
の連続する2画素の論理和をとるか、または1画素おき
に画素を間引いて画素数を半分に減らすことにより、主
走査方向の縮小を行う。副走査方向の縮小は、1ライン
おきにラインを間引くか、または連続する2ラインの論
理和をとり、ライン数を半分に減らす。
To obtain the scaled image information that is obtained by reducing the input image by 1/2 in the main operation direction and the sub-scanning direction, take the logical sum of two consecutive pixels on the line, or thin out every other pixel. By reducing the number of pixels by half, the size is reduced in the main scanning direction. The reduction in the sub-scanning direction reduces the number of lines to half by thinning out every other line or taking the logical sum of two consecutive lines.

このような縮小処理により、第9図に示すような縮小
画像情報が得られる。
Through such reduction processing, reduced image information as shown in FIG. 9 is obtained.

拡大の場合、主走査方向については1画素を2画素ま
たは複数画素に増加させることにより拡大し、副走査方
向については1ラインを2ラインまたは複数ラインに増
加させることによって行う。
The enlargement is performed by increasing one pixel to two pixels or a plurality of pixels in the main scanning direction and increasing one line to two lines or a plurality of lines in the sub scanning direction.

発明が解決しようとする問題点 しかし、かかる構成によれば、入力画像情報から直接
的に変倍画像情報を生成する関係から、変倍処理を完了
して入力画像情報が不要になるまで、入力画像情報をメ
モリに常駐させておかなければならず、メモリの使用効
率が悪いという問題があった。
However, according to such a configuration, since the scaled image information is directly generated from the input image information, the input image information is input until the scaling process is completed and the input image information becomes unnecessary. Since the image information must be resident in the memory, there is a problem in that the memory usage efficiency is low.

また、入力画像情報の直接的なビット操作によって変
倍画像情報を生成するから、入力画像情報へのアクセス
回数が多く、変倍処理要求が発生してから変倍画像情報
を生成するまでの時間が長いという問題もあった。
Further, since the scaled image information is generated by direct bit manipulation of the input image information, the number of accesses to the input image information is large, and the time from generation of the scaling processing request to generation of the scaled image information is large. There was also the problem of being long.

本発明は、上述の問題点に鑑みてなされたもので、入
力画像情報の格納に関連したメモリ使用効率を改善で
き、また、変倍処理要求が発生してから短時間で変倍画
像情報を生成することができる画像変倍処理装置を提供
することを目的とする。
The present invention has been made in view of the above-mentioned problems, and can improve the memory usage efficiency related to the storage of input image information, and can also display the scaled image information in a short time after the scaling processing request is generated. An object is to provide an image scaling processing device that can be generated.

問題点を解決するための手段 本発明は上述の問題点を解決するため、入力画像情報
の主走査ラインごとに白黒の変化点のライン先頭からの
画素数を表す変化点テーブルを生成して記憶手段に格納
する変化点テーブル生成手段と、前記変化点テーブルの
値に直接変倍率を乗算する演算手段と、この演算手段に
よる乗算後の変化点テーブルの値に基づき変倍画情報を
生成するという構成を有するものである。
Means for Solving the Problems In order to solve the above problems, the present invention generates and stores a change point table representing the number of pixels from the head of a black and white change point for each main scanning line of input image information. A change point table generating means for storing the change point table, a calculating means for directly multiplying the value of the change point table by a scaling factor, and a variable scale image information generating method based on the value of the change point table after multiplication by the calculating means. It has a structure.

このような本発明の変倍処理装置の構成について、第
1図のクレーム対応図によってさらに説明する。
The configuration of such a scaling processing apparatus of the present invention will be further described with reference to the claim correspondence diagram of FIG.

図示のように、本発明の変倍処理装置はテーブル生成
手段、記憶手段、演算手段および画像生成手段からな
る。
As shown in the figure, the scaling processing apparatus of the present invention comprises a table generation means, a storage means, a calculation means and an image generation means.

テーブル生成手段は、入力画像情報のライン毎にその
白黒の変化点を検出し、各変化点のライン先頭からの画
素数を表す変化点テーブルを生成して記憶手段に格納す
る。演算手段は、変化点テーブルの値に変倍率を乗算
し、その乗算結果を出力する。この乗算結果は、変倍画
像のライン上の変化点のライン先頭からの画素数を表し
ている。画像生成手段は、演算手段の出力情報に基づき
変倍画像情報を生成する。
The table generation means detects the black and white change points for each line of the input image information, generates a change point table indicating the number of pixels from the line head of each change point, and stores it in the storage means. The calculation means multiplies the value of the change point table by the scaling factor and outputs the multiplication result. This multiplication result represents the number of pixels from the beginning of the line of the change point on the line of the scaled image. The image generation unit generates the scaled image information based on the output information of the calculation unit.

作用 本発明は上述の構成によって、変倍処理が完了するま
で入力画像情報をメモリに常駐させておく必要がなくな
る。そして、変化点テーブルは、入力画像情報の圧縮さ
れた計数情報であるから格納スペースは少なくて済む。
したがって、入力画像情報をメモリに常駐させておく必
要があった従来装置に比較し、メモリ使用効率を大幅に
改善できる。
Action The present invention, by the above-mentioned configuration, eliminates the need to make the input image information resident in the memory until the scaling process is completed. Since the change point table is the compressed count information of the input image information, the storage space can be small.
Therefore, it is possible to significantly improve the memory use efficiency, as compared with the conventional device that requires the input image information to be resident in the memory.

また、計数情報である変化点テーブルの値に変倍率を
乗算し、その乗算結果に基づき変倍画像情報を生成する
処理は、入力画像情報を多数回アクセスしビット操作に
よって直接的に変倍画像情報を生成する処理に比較し
て、遥に高速に行うことができる。しかも、変化点テー
ブルの生成は、変倍処理要求が生じる以前に行うことが
できる。したがって、変倍処理要求が発生してから変倍
画像情報を得るまでの時間を大幅に短縮できる。
Further, the process of multiplying the value of the change point table, which is the count information, by the scaling factor, and generating the scaled image information based on the multiplication result is performed by directly accessing the input image information many times and directly operating the scaled image by bit operation. It can be performed much faster than the process of generating information. Moreover, the change point table can be generated before the scaling request is issued. Therefore, the time from the generation of the scaling request to the acquisition of the scaled image information can be significantly shortened.

実施例 以下本発明の一実施例について、図面を参照しながら
説明する。
Embodiment An embodiment of the present invention will be described below with reference to the drawings.

第2図は本発明の一実施例による画像変倍処理装置の
ハードウエア構成を示すブロック図である。図におい
て、1はマイクロプロセッサ、2は乗算ルーチンなどを
含む変倍処理プログラムを格納したROMである。第1図
に示した演算手段および画像生成手段は、この処理プロ
グラムとマイクロプロセッサ1の機能により実現され
る。また、前記テーブル生成手段は、処理プログラムと
マイクロプロセッサ1の機能の支援の下に、後述の専用
のハードウエアによって実現される。
FIG. 2 is a block diagram showing a hardware configuration of an image scaling processing apparatus according to an embodiment of the present invention. In the figure, reference numeral 1 is a microprocessor, and 2 is a ROM storing a scaling processing program including a multiplication routine and the like. The calculation means and the image generation means shown in FIG. 1 are realized by the processing program and the function of the microprocessor 1. The table generating means is realized by dedicated hardware described later with the support of the processing program and the function of the microprocessor 1.

3はRAMであり、システムバス4を介してマイクロプ
ロセッサ3からアクセス可能である。このRAM3の記憶ス
ペースは、入力画像情報または変倍画像情報を一時的に
格納しておくための画像バッファエリア5、前記テーブ
ル生成手段により生成された変化点テーブルを格納する
ための変化点テーブル格納エリア6(前記記憶手段に相
当する)、および前記演算手段により乗算された後の変
化点テーブルを格納するための変倍変化点テーブル格納
エリア7、その他、処理中のデータの一時的な格納のた
めの作業エリアなどとして利用される。
Reference numeral 3 denotes a RAM, which can be accessed from the microprocessor 3 via the system bus 4. The storage space of the RAM 3 includes an image buffer area 5 for temporarily storing input image information or scaled image information, and a change point table storage for storing a change point table generated by the table generating means. Area 6 (corresponding to the storage means), a scaling change point table storage area 7 for storing the change point table after being multiplied by the calculation means, and other temporary storage of data being processed. It is used as a work area for

前記テーブル生成手段を実現するための専用のハード
ウエアとして、ライン入力バッファ8、バッファアドレ
スカウンタ9、ライン終端検出回路10、変化点検出回路
11、変化点テーブルバッファ12およびテーブルアドレス
カウンタ13がある。
As dedicated hardware for realizing the table generating means, a line input buffer 8, a buffer address counter 9, a line end detection circuit 10, and a change point detection circuit
11, there are a change point table buffer 12 and a table address counter 13.

ライン入力バッファ8は、1ライン分の入力画像情報
を一時的に記憶する高速バッファであり、バッファアド
レスカウンタ9はライン入力バッファ8のアドレスを発
生するものである。このバッファアドレスカウンタ9の
値はまた、変化点のライン先頭からの画素数としても利
用される。ライン入力バッファ8の読み出し期間(変化
点テーブル生成処理期間)においては、変化点検出回路
11からバッファアドレスカウンタ9およびライン入力バ
ッファ8に対し、インクリメント信号S1と読み出しタイ
ミング信号S2がそれぞれ供給される。
The line input buffer 8 is a high-speed buffer that temporarily stores input image information for one line, and the buffer address counter 9 generates an address of the line input buffer 8. The value of the buffer address counter 9 is also used as the number of pixels from the beginning of the line at the change point. In the read period of the line input buffer 8 (change point table generation processing period), the change point detection circuit
The increment signal S1 and the read timing signal S2 are supplied from 11 to the buffer address counter 9 and the line input buffer 8, respectively.

変化点検出回路11は、ライン入力バッファ8から出力
される画像情報の白黒反転を調べ、その反転画素を変化
点として検出するものである。変化点を検出すると、テ
ーブルアドレスカウンタ13および変化点テーブルバッフ
ァ12に対してインクリメント信号S3および書き込みタイ
ミング信号S4を送る。また、変化点検出回路11は、バッ
ファアドレスカウンタ9をインクリメントするたびに、
ライン終端検出回路10の内部カウンタに対するインクリ
メント信号S5を送出する。
The change point detection circuit 11 examines black and white inversion of the image information output from the line input buffer 8 and detects the inversion pixel as a change point. When the change point is detected, the increment signal S3 and the write timing signal S4 are sent to the table address counter 13 and the change point table buffer 12. In addition, the change point detection circuit 11 causes the buffer address counter 9 to increment each time
The increment signal S5 is sent to the internal counter of the line end detection circuit 10.

ライン終端検出回路10の内部カウンタは、1ラインの
変化点テーブル生成処理の開始に先立ち、1ライン分の
画素数に対応した値をシステムバス4からプリセットさ
れ、ライン入力バッファ8から1ラインの最終画像が出
力されるとキャリー信号を出力する。ライン終端検出回
路10は、このキャリー信号の発生によりライン終端と判
定し、割込み信号S6によりマイクロプロセッサ1に通知
し、また変化点検出回路11に終了信号S7を送る。
The internal counter of the line end detection circuit 10 is preset with a value corresponding to the number of pixels for one line from the system bus 4 before the start of the change point table generation process for one line, and the line input buffer 8 outputs the final value of one line. When the image is output, a carry signal is output. The line end detection circuit 10 determines the line end by the generation of this carry signal, notifies the microprocessor 1 by the interrupt signal S6, and sends the end signal S7 to the change point detection circuit 11.

変化点テーブルバッファ12は、1ライン分の変化点テ
ーブルを一時的に記憶するためのものである。テーブル
アドレスカウンタ13は、変化点テーブルバッファ12のア
ドレスを発生するためのカウンタである。
The change point table buffer 12 is for temporarily storing a change point table for one line. The table address counter 13 is a counter for generating the address of the change point table buffer 12.

以上のように構成された画像変倍処理について、以下
その変倍処理動作を説明する。
Regarding the image scaling processing configured as described above, the scaling processing operation will be described below.

まず、変化点テーブルの生成動作について説明する。
図示されていない画像入力装置より画像バッファエリア
5に入力画像情報が入力されており、あるラインの変化
点テーブルがすでに作成され、変化点テーブル格納エリ
ア6に格納済みであるものとする。
First, the operation of generating the change point table will be described.
It is assumed that input image information has been input to the image buffer area 5 from an image input device (not shown), a change point table for a certain line has already been created, and has already been stored in the change point table storage area 6.

マイクロプロセッサ1の制御により、システムバス4
を通じて画像バッファエリア5から次のラインの画像情
報がライン入力バッファ8に転送される。この転送の
後、マイクロプロセッサ9によりライン終端検出回路10
の内部カウンタのプリセットとバッファアドレスカウン
タ9のリセットが行われ、変化点検出回路11が起動され
る。なお、前ラインの処理終了により、マイクロプロセ
ッサ1によってテーブルアドレスカウンタ13もリセット
されている。
The system bus 4 is controlled by the microprocessor 1.
Through the image buffer area 5, the image information of the next line is transferred to the line input buffer 8. After this transfer, the microprocessor 9 causes the line end detection circuit 10
The internal counter is preset and the buffer address counter 9 is reset, and the change point detection circuit 11 is activated. The table address counter 13 is also reset by the microprocessor 1 when the processing of the previous line is completed.

変化点検出回路11の制御により、ライン入力バッファ
8よりラインの先頭画素から画素単位で画像情報が順次
出力される。変化点検出回路11は、白画素に続いて黒画
素が入力された時、または黒画素に続いて白画素が入力
された時に、その入力画素を変化点と判定し、書き込み
タイミング信号S4を発生してバッファアドレスカウンタ
9の値(当該変化点のライン先頭からの画素数)を変化
点テーブルバッファ12に書き込み、その直後にインクリ
メント信号S3を送出してテーブルアドレスカウンタ13を
インクリメントする。この後、バッファアドレスカウン
タ9のインクリメントおよびライン入力バッファ8の読
み出し動作を再開する。
Under the control of the change point detection circuit 11, the image information is sequentially output from the head pixel of the line in pixel units from the line input buffer 8. The change point detection circuit 11 determines the input pixel as a change point when a black pixel is input subsequently to a white pixel or a white pixel is input subsequently to a black pixel, and generates a write timing signal S4. Then, the value of the buffer address counter 9 (the number of pixels from the beginning of the line of the change point) is written in the change point table buffer 12, and immediately after that, the increment signal S3 is transmitted to increment the table address counter 13. After that, the increment of the buffer address counter 9 and the read operation of the line input buffer 8 are restarted.

このような動作中に、ライン終端検出回路10の内部カ
ウンタは、インクリメント信号S5によって順次インクリ
メントされる。そして、ラインの最終画素がライン入力
バッファ8から出力されると、ライン終端検出回路10か
ら割込み信号S6と終了信号S7が送出される。
During such an operation, the internal counter of the line end detection circuit 10 is sequentially incremented by the increment signal S5. When the last pixel of the line is output from the line input buffer 8, the line end detection circuit 10 outputs an interrupt signal S6 and an end signal S7.

この終了信号S7に応答し、変化点検出回路11により書
き込みタイミング信号S4が送出され、その時のバッファ
アドレスカウンタ9の値(最終画素の出力後に1だけイ
ンクリメントされている)が変化点テーブルバッファ12
に書き込まれ、変化点検出回路11は動作を停止する。す
なわち、ラインの最終画素の次に仮想的に変化画素があ
るとみなされる。また、ラインの先頭画素の手前に仮想
の白画素があるものとみなされ、先頭画素が白画素の場
合、これは変化画素としては検出されない。
In response to the end signal S7, the change point detection circuit 11 outputs the write timing signal S4, and the value of the buffer address counter 9 at that time (incremented by 1 after the output of the last pixel) is the change point table buffer 12
The change point detection circuit 11 stops its operation. That is, it is considered that there is a virtual change pixel next to the last pixel of the line. Further, it is considered that there is a virtual white pixel in front of the head pixel of the line, and when the head pixel is a white pixel, this is not detected as a change pixel.

マイクロプロセッサ1は、割込み信号S6が発生する
と、テーブルアドレスカウンタ13の値(変化点テーブル
バッファ12に生成された変化点テーブルのサイズを表し
ている)を読み出してRAM3上の作業エリアに格納し、テ
ーブルアドレスカウンタ13をリセットする。次にマイク
ロプロセッサ1は、変化点テーブル12から生成された変
化点テーブルを変化点テーブル格納エリア6へ転送す
る。これで、1ライン分の変化点テーブルの生成動作を
終了する。
When the interrupt signal S6 is generated, the microprocessor 1 reads the value of the table address counter 13 (representing the size of the change point table generated in the change point table buffer 12) and stores it in the work area on the RAM3. The table address counter 13 is reset. Next, the microprocessor 1 transfers the change point table generated from the change point table 12 to the change point table storage area 6. This completes the operation of generating the change point table for one line.

同様の動作によって、入力画像情報の各ラインの変化
点テーブルが順次生成され、変化点テーブル格納エリア
6に格納される。なお、画像バッファエリア5内の入力
画像情報は、その変化点テーブルの生成後は保存する必
要はない。そして、変化点テーブルは、入力画像情報を
圧縮もしくは符号化した計数情報であるから、入力画像
情報の格納スペースより遥に少ない格納スペースで間に
合う。
By the same operation, the change point table of each line of the input image information is sequentially generated and stored in the change point table storage area 6. The input image information in the image buffer area 5 need not be saved after the change point table is generated. Since the change point table is count information obtained by compressing or encoding the input image information, it can be stored in a storage space much smaller than the storage space of the input image information.

第3図に入力画像情報の一例を示す。また、この入力
画像情報のライン、およびについて生成される変
化点テーブルの内容を第4図に示す。
FIG. 3 shows an example of input image information. FIG. 4 shows the contents of the change point table generated for the lines of the input image information and.

次に変化点テーブルに基づき変倍画像情報を生成する
動作について説明する。なお、この動作は変倍処理要求
が割込みなどの形でマイクロプロセッサ1に与えられた
場合に、マイクロプロセッサ1が対応プログラムに従っ
て実行する。
Next, the operation of generating the scaled image information based on the change point table will be described. It should be noted that this operation is executed by the microprocessor 1 according to the corresponding program when the scaling request is given to the microprocessor 1 in the form of an interrupt or the like.

まず、入力画像を主走査方向および副走査方向にそれ
ぞれ2倍に拡大した画像の情報を生成する動作を説明す
る。第6図は、この動作の概略フローチャートである。
First, an operation of generating information of an image obtained by enlarging an input image twice in the main scanning direction and the sub-scanning direction will be described. FIG. 6 is a schematic flowchart of this operation.

ステップ1において、変化点テーブル格納エリア6に
格納されている先頭ラインの変化点テーブルから順番
に、その値と変倍率(この場合、変倍率は2)との乗算
が行われる。この乗算後の変化点テーブルは変倍変化点
テーブルとして変倍変化点テーブル格納エリア7に格納
される。
In step 1, the value is multiplied by the scaling factor (in this case, the scaling factor is 2) in order from the transition point table of the first line stored in the transition point table storage area 6. The change point table after this multiplication is stored in the variable change point table storage area 7 as a variable change point table.

1ラインの変倍変化点テーブルが格納されると、ステ
ップ2において、未処理の変化点テーブルが変化点テー
ブル格納エリア6に残っているか判定される。未処理の
変化点テーブルがある場合、次のラインの変化点テーブ
ルについてステップ1の処理が実行される。
When the one-line scaling change point table is stored, it is determined in step 2 whether or not an unprocessed change point table remains in the change point table storage area 6. If there is an unprocessed change point table, the process of step 1 is executed for the change point table of the next line.

全ての変化点テーブルについて変倍演算が実行される
と、ステップ3以降の変倍画像生成処理に進む。
When the scaling operation is executed for all the change point tables, the process proceeds to the step 3 and the subsequent steps of the scaling image generation processing.

まずステップ3において、画像バッファエリア14がク
リアされる(この時点では、入力画像情報は不要であ
る)。
First, in step 3, the image buffer area 14 is cleared (the input image information is unnecessary at this point).

ステップ4において、変倍変化点テーブル格納エリア
7に格納されている先頭の変倍変化点テーブルの値から
1ラインの画像情報が生成され、画像バッファエリア14
の最初のライン位置に格納される。この処理は、最初の
変化点まで白画素を連続させ、その変化点から次の変化
点まで黒画素を連続させ、同様に変化点毎に白と黒を反
転させながら画素を生成させることにより行われる。ラ
イン先頭から各変化点までの画素数は予め2倍されてい
るから、主走査方向に2倍に拡大されたラインの情報が
生成される。
In step 4, image information of one line is generated from the value of the leading scaling change point table stored in the scaling change point table storage area 7, and the image buffer area 14
Is stored in the first line position of. This process is performed by making white pixels continuous until the first change point, making black pixels continuous from that change point to the next change point, and similarly generating pixels by inverting black and white at each change point. Be seen. Since the number of pixels from the beginning of the line to each change point is doubled in advance, the information of the line doubled in the main scanning direction is generated.

次のステップ5において、ステップ4で生成された1
ラインの画像情報が次の1ラインの画像情報として画像
バッファエリア14の対応位置にコピーされる。すなわ
ち、変倍変化点テーブルから生成された1ラインの画像
情報を重複させることにより、副走査方向の2倍拡大が
行われる。
In the next step 5, 1 generated in step 4
The image information of the line is copied to the corresponding position of the image buffer area 14 as the image information of the next one line. That is, the double enlargement in the sub-scanning direction is performed by overlapping the image information of one line generated from the scaling change point table.

ステップ5の処理が終わると、最終ラインまで処理が
終了したか判定される(ステップ6)。処理すべきライ
ンが残っている場合、次のラインについてステップ4お
よび5の処理が実行される。
When the process of step 5 is completed, it is determined whether the process is completed up to the final line (step 6). If there are more lines to process, then steps 4 and 5 are performed for the next line.

全ラインの処理が終了したと判定された場合、変倍処
理は完了し、画像バッファエリア14に2倍拡大画像情報
が得られる。
When it is determined that the processing of all lines has been completed, the scaling processing is completed and the 2 × magnified image information is obtained in the image buffer area 14.

第3図に示した入力画像情報の2倍拡大画像情報を第
5図に示す。この画像情報の奇数ライン、、はス
テップ4により生成されるものであり、偶数ライン、
、はステップ5のコピー処理によって生成されるも
のである。
FIG. 5 shows double-enlarged image information of the input image information shown in FIG. The odd lines of this image information ,, are generated in step 4, and the even lines,
, Are generated by the copy processing in step 5.

このようにして得られた拡大画像情報は、図示しない
画像出力装置、画像記録装置、通信装置などへ出力され
るが、これは本発明の要旨ではないので詳細については
説明しない。
The magnified image information thus obtained is output to an image output device, an image recording device, a communication device, etc., which are not shown, but this is not the gist of the present invention and will not be described in detail.

次に1/2倍に縮小した画像情報を生成する動作を説明
する。第8図はこの動作の概略フローチャートである。
Next, the operation of generating image information reduced to 1/2 times will be described. FIG. 8 is a schematic flowchart of this operation.

ステップ7において、奇数番(または偶数番)の1本
おきのラインに関して、変化点テーブル格納エリア6に
格納されている変化点テーブルの値と変倍率(この場
合、変倍率は1/2)との乗算が行われる。なお、乗算結
果の値の小数部は切り捨てられる。この乗算後の変化点
テーブルは変倍変化点テーブルとして変倍変化点テーブ
ル格納エリア7に格納される。
In step 7, for every other odd-numbered (or even-numbered) line, the value of the change point table stored in the change point table storage area 6 and the scaling factor (in this case, the scaling factor is 1/2), Is multiplied. The fractional part of the value of the multiplication result is truncated. The change point table after this multiplication is stored in the variable change point table storage area 7 as a variable change point table.

1ラインの変倍変化点テーブルが格納されると、ステ
ップ8において、最終のラインまで処理が終わったか判
定される。処理すべきラインが残っている場合、次の処
理すべきラインの変化点テーブルについてステップ7の
処理が実行される。
When the scaling change point table for one line is stored, it is determined in step 8 whether processing has been completed up to the final line. If there are remaining lines to be processed, the process of step 7 is executed for the change point table of the next line to be processed.

処理すべき最後のラインまで処理されたと判定される
と、ステップ9以降の変倍画像生成処理に進む。
If it is determined that the last line to be processed has been processed, the process proceeds to the variable-magnification image generation process from step 9.

まずステップ9において、画像バッファエリア14がク
リアされる。
First, in step 9, the image buffer area 14 is cleared.

ステップ10において、変倍変化点テーブル格納エリア
7に格納されている先頭の変倍変化点テーブルの値から
1ラインの画像情報が生成され、画像バッファエリア14
の最初のライン位置に格納される。この生成は、拡大の
場合と同様の処理によりなされる。ライン先頭から各変
化点までの画素数は予め1/2倍されているから、主走査
方向に1/2倍に縮小されたラインの情報が生成される。
In step 10, the image information of one line is generated from the value of the leading scaling change point table stored in the scaling change point table storage area 7, and the image buffer area 14
Is stored in the first line position of. This generation is performed by the same processing as in the case of expansion. Since the number of pixels from the beginning of the line to each change point is halved in advance, information of the line reduced to ½ in the main scanning direction is generated.

ステップ10の処理が終わると、最終ラインまで処理が
終了したか判定される(ステップ11)。処理すべきライ
ンが残っている場合、次のラインについてステップ9の
処理が実行される。
When the process of step 10 is completed, it is determined whether the process is completed up to the final line (step 11). If there are remaining lines to be processed, the process of step 9 is executed for the next line.

ステップ11で終了と判定されるまで、ステップ10の処
理が繰り返し実行され、1ラインの画像情報が順次生成
されて画像バッファエリア14に格納される。
The process of step 10 is repeatedly executed until the end of step 11 is determined, and the image information of one line is sequentially generated and stored in the image buffer area 14.

ここで、処理の対象となるラインは奇数番(または偶
数番)のラインだけである。すなわち、1ラインおきの
間引きがなされる。したがって、主走査方向および副走
査方向にそれぞれ1/2に縮小された画像情報が画像バッ
ファエリア14に得られる。
Here, the lines to be processed are only odd-numbered (or even-numbered) lines. That is, every other line is thinned out. Therefore, image information reduced to 1/2 in the main scanning direction and the sub-scanning direction is obtained in the image buffer area 14.

なお本実施例では、画像バッファエリア5を入力画像
情報と変倍画像情報の両方の格納に利用したが、変倍画
像情報を格納するためのバッファエリアを別に確保して
もよい。
Although the image buffer area 5 is used to store both the input image information and the scaled image information in the present embodiment, a buffer area for storing the scaled image information may be separately secured.

本実施例では、変化点テーブルの値に変倍率を乗算す
る処理を処理対象の全ラインについて実行した後、変倍
変化点テーブルの値から画像情報を生成する処理を実行
したが、1ラインまたは複数ラインずつ、変化点テーブ
ルの乗算処理と画像情報生成処理を逐次実行させるよう
にしてもよい。
In this embodiment, the process of multiplying the value of the change point table by the scaling factor is executed for all the lines to be processed, and then the process of generating the image information from the value of the change point table is executed. The multiplication processing of the change point table and the image information generation processing may be sequentially executed for each plurality of lines.

また本実施例では、変倍変化点テーブルを変化点テー
ブルとは別の格納エリアに格納し、変化点テーブルを保
存するようにしたが、その必要がなければ、変化点テー
ブル格納エリアに変倍変化点テーブルを格納してもよ
い。
Further, in this embodiment, the scaling change point table is stored in a storage area different from that of the variation point table, and the variation point table is saved. However, if that is not necessary, the scaling point is stored in the variation point table storage area. A change point table may be stored.

本実施例では変化点テーブルの乗算などの処理をソフ
トウエア処理によって実行したが、ハードウエアによっ
て実行させてもよい。
In the present embodiment, processing such as multiplication of the change point table is executed by software, but it may be executed by hardware.

発明の効果 以上の説明から明らかなように、本発明は、圧縮され
た画像情報である変化点テーブルを直接用いることのみ
で変倍画像を得られることで、復号化された画像を用い
て画像処理をするのに比べ、少ないメモリ、短い処理時
間、簡易な構成で変倍画像を得ることができます。ま
た、画像作成手段で得られた変倍画像も圧縮された変化
点テーブルの形で生成されるため、さらに少ないメモリ
での画像処理が可能になるという格別の効果をも有する
ものであります。
EFFECTS OF THE INVENTION As is clear from the above description, according to the present invention, a scaled image can be obtained only by directly using a change point table that is compressed image information, and thus an image can be obtained using a decoded image. Compared with processing, you can get a scaled image with less memory, shorter processing time and simple structure. In addition, the scaled image obtained by the image creation means is also generated in the form of a compressed change point table, which has the special effect of enabling image processing with even less memory.

【図面の簡単な説明】 第1図は本発明のクレーム対応図、第2図は本発明の一
実施例による画像変倍処理装置のブロック図、第3図は
入力画像情報の一例を示す図、第4図は第3図に示した
入力画像情報の各ラインに対する変化点テーブルの内容
を示す図、第5図は第3図に示した入力画像情報の2倍
拡大画像情報を示す図、第6図は2倍拡大処理動作の概
略フローチャート、第7図は1/2倍縮小処理動作の概略
フローチャート、第8図は入力画像情報の一例を示す
図、第9図は第8図に示した入力画像情報の1/2倍縮小
画像情報を示す図である。 1……マイクロプロセッサ、2……ROM、3……RAM、5
……画像バッファエリア、6……変化点テーブル格納エ
リア、7……変倍変化点テーブル格納エリア、8……ラ
イン入力バッファ、9……バッファアドレスカウンタ、
10……ライン終端検出回路、11……変化点検出回路、12
……変化点テーブルバッファ、13……テーブルアドレス
カウンタ。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a diagram corresponding to claims of the present invention, FIG. 2 is a block diagram of an image scaling apparatus according to an embodiment of the present invention, and FIG. 3 is a diagram showing an example of input image information. 4 is a diagram showing the contents of a change point table for each line of the input image information shown in FIG. 3, and FIG. 5 is a diagram showing double-enlarged image information of the input image information shown in FIG. FIG. 6 is a schematic flow chart of a 2 × enlargement processing operation, FIG. 7 is a schematic flow chart of a 1/2 reduction processing operation, FIG. 8 is a diagram showing an example of input image information, and FIG. 9 is shown in FIG. It is a figure which shows the 1/2 time reduced image information of the input image information. 1 ... Microprocessor, 2 ... ROM, 3 ... RAM, 5
...... Image buffer area, 6 ... Change point table storage area, 7 ... Variable magnification change point table storage area, 8 ... Line input buffer, 9 ... Buffer address counter,
10 …… Line end detection circuit, 11 …… Change point detection circuit, 12
...... Change point table buffer, 13 ...... Table address counter.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】入力画像情報の主走査ラインごとに白黒の
変化点のライン先頭からの画素数を表す変化点テーブル
を生成して記憶手段に格納する変化点テーブル生成手段
と、前記変化点テーブルの値に直接変倍率を乗算する演
算手段と、この演算手段による乗算後の変化点テーブル
の値に基づき変倍画情報を生成する画像生成手段とを有
することを特徴とする画像変倍処理装置。
1. A change point table generating means for generating a change point table representing the number of pixels of a black and white change point from the head of the line for each main scanning line of input image information and storing it in a storage means, and the change point table. And an image generating unit for generating scaling image information based on the value of the change point table after multiplication by this computing unit. .
JP62086071A 1987-04-08 1987-04-08 Image scaling processor Expired - Lifetime JP2537851B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62086071A JP2537851B2 (en) 1987-04-08 1987-04-08 Image scaling processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62086071A JP2537851B2 (en) 1987-04-08 1987-04-08 Image scaling processor

Publications (2)

Publication Number Publication Date
JPS63251867A JPS63251867A (en) 1988-10-19
JP2537851B2 true JP2537851B2 (en) 1996-09-25

Family

ID=13876472

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62086071A Expired - Lifetime JP2537851B2 (en) 1987-04-08 1987-04-08 Image scaling processor

Country Status (1)

Country Link
JP (1) JP2537851B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58112166A (en) * 1981-12-25 1983-07-04 Fujitsu Ltd Converting system for density of picture element
JPS60251763A (en) * 1984-05-28 1985-12-12 Nec Corp Magnifying and reducing circuit of facsimile information

Also Published As

Publication number Publication date
JPS63251867A (en) 1988-10-19

Similar Documents

Publication Publication Date Title
JP2537851B2 (en) Image scaling processor
JP3154741B2 (en) Image processing apparatus and system
JPH11346305A (en) Image processor
JP3307736B2 (en) Image data transfer device
JPH01114988A (en) Method for expanding and contracting image
JP2806376B2 (en) Image processing apparatus and image processing method
JPH06324935A (en) Address generator and address generation system
JPS5979673A (en) Expanding and contracting method of picture
JP3247441B2 (en) Image processing device
JPH0563959A (en) Method and device for processing picture
JP2537830B2 (en) Image processing device
JPS63249663A (en) Printer control apparatus
JP3004993B2 (en) Image processing device
JPS6220074A (en) Image processing method
JPH05227414A (en) Picture processor
JPH0863593A (en) Method and device for 90-degree-rotation processing of image data
JPS62150484A (en) Picture processor
JPH0676051A (en) Parallel picture processor
JPS63113770A (en) Image processing system
JPH0465777A (en) Image data transfer system
JPH10208032A (en) Picture processor
JPH05219360A (en) Picture processor
JPH04130945A (en) Information processor
JPH023196B2 (en)
JPH04329482A (en) Image rotation processing method and processing device for relevant method