JP3063356B2 - Digital image processing equipment - Google Patents

Digital image processing equipment

Info

Publication number
JP3063356B2
JP3063356B2 JP4032181A JP3218192A JP3063356B2 JP 3063356 B2 JP3063356 B2 JP 3063356B2 JP 4032181 A JP4032181 A JP 4032181A JP 3218192 A JP3218192 A JP 3218192A JP 3063356 B2 JP3063356 B2 JP 3063356B2
Authority
JP
Japan
Prior art keywords
data
processing method
enlargement
original image
reduction
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 - Fee Related
Application number
JP4032181A
Other languages
Japanese (ja)
Other versions
JPH05233789A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP4032181A priority Critical patent/JP3063356B2/en
Publication of JPH05233789A publication Critical patent/JPH05233789A/en
Priority to US08/441,419 priority patent/US5553201A/en
Application granted granted Critical
Publication of JP3063356B2 publication Critical patent/JP3063356B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4007Interpolation-based scaling, e.g. bilinear interpolation

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、デジタルデータで表さ
れた原画像を拡大、縮小する機能を有するデジタル画像
処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital image processing apparatus having a function of enlarging or reducing an original image represented by digital data.

【0002】[0002]

【従来の技術】従来、この種のデジタル画像処理装置に
おいては、装置固有の単一な拡大・縮小処理方法によっ
て拡大・縮小処理を行っていた。
2. Description of the Related Art Conventionally, in this type of digital image processing apparatus, enlargement / reduction processing has been performed by a single enlargement / reduction processing method unique to the apparatus.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、近年入
力装置が高解像度化、高画質化するに伴って、サイズの
大きな原画像を高解像度で入力することが可能となり、
拡大・縮小処理の扱うデータ量が増大して、処理速度の
低下を招いている。この様な状況で、高精細な拡大・縮
小方法のみを備えたデジタル画像処理装置においては、
多くの処理時間を必要とする処理方法であるために、原
画像のデータ量の増加に伴う処理時間の増加が著しく大
きく、限られた時間内で大容量の原画像を所望のサイズ
まで拡大・縮小することは不可能に近い問題である。一
方、簡素な拡大・縮小方法のみを備えたデジタル画像処
理装置においては、拡大・縮小処理にかかる時間は少な
いが、拡大率が大きくなると、ジャギー等の画質劣化を
おこし、高精細な出力画像が得られないという問題点が
ある。
However, with the recent increase in resolution and image quality of input devices, it has become possible to input large-size original images at high resolution.
The amount of data handled by the enlargement / reduction processing increases, causing a reduction in processing speed. In such a situation, in a digital image processing apparatus having only a high-resolution enlargement / reduction method,
Since the processing method requires a large amount of processing time, the processing time increases significantly with an increase in the amount of data of the original image, and a large-capacity original image can be expanded to a desired size within a limited time. Shrinking is a near impossible problem. On the other hand, in a digital image processing apparatus having only a simple enlargement / reduction method, the time required for the enlargement / reduction processing is short, but when the enlargement ratio is large, image quality such as jaggy is deteriorated, and a high-definition output image is not obtained. There is a problem that it cannot be obtained.

【0004】本発明は、上述した問題点を解決するため
になされたものであり、限られた時間内で最良の画質を
保った拡大、縮小処理を実行することが可能なデジタル
画像処理装置を提供することを目的としている。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and has an object to provide a digital image processing apparatus capable of executing enlargement and reduction processing while maintaining the best image quality within a limited time. It is intended to provide.

【0005】[0005]

【課題を解決するための手段】この目的を達成するため
請求項1に記載の発明のデジタル画像処理装置は、原
画像データのデータ量を基準値と比較する比較手段と、
当該比較手段で比較した結果、前記原画像データのデー
タ量が前記基準値以下の場合は第1の処理方法の拡大、
縮小方法を選択し、前記原画像データのデータ量が前記
基準値よりも大きな場合は前記第1の処理方法よりも単
純な処理方法である第2の処理方法の拡大、縮小方法を
選択する選択手段とを備えているまた、請求項2に記
載の発明のデジタル画像処理装置では、請求項1に記載
の発明の構成に加えて、前記第1の処理方法は、3次ス
プライン曲面による補間処理方法であることを特徴とす
る構成となっている。 さらに、請求項3に記載の発明の
デジタル画像処理装置では、請求項1又は2に記載の発
明の構成に加えて、前記第2の処理方法は、線形補間処
理方法であることを特徴とする構成となっている。
In order to achieve this object, a digital image processing apparatus according to the first aspect of the present invention comprises a comparing means for comparing the data amount of original image data with a reference value;
As a result of the comparison by the comparison means, if the data amount of the original image data is equal to or less than the reference value, the first processing method is expanded.
When a reduction method is selected, and the data amount of the original image data is larger than the reference value, a simpler method than the first processing method is used.
Expansion of the second processing method is a pure processing method, and a selection means for selecting a reduction method. Also, it is described in claim 2.
In the digital image processing apparatus according to the present invention, the digital image processing device according to claim 1 is provided.
In addition to the configuration of the third aspect of the present invention, the first processing method may include a third-order processing method.
It is an interpolation processing method using a pline surface.
Configuration. Further, according to the third aspect of the present invention,
The digital image processing apparatus according to claim 1 or 2,
In addition to the above configuration, the second processing method may be a linear interpolation processing.
It is a configuration characterized by a logical method.

【0006】[0006]

【作用】上記の構成を有する請求項1に記載の発明のデ
ジタル画像処理装置においては、原画像データを受け取
ると、比較手段が原画像データのデータ量を基準値と比
較する。選択手段は原画像が小さくそのデータ量が基準
以下の場合は第1の処理方法の拡大、縮小方法を選択
し、原画像が大きくそのデータ量が基準値よりも大きな
場合は前記第1の処理方法よりも単純な処理方法である
第2の処理方法の拡大、縮小方法を選択する。選択され
た拡大、縮小方法を使用して、拡大、縮小処理が実行さ
れ、出力画像を得る。また、請求項2に記載の発明のデ
ジタル画像処理装置では、請求項1に記載の発明の作用
に加えて、前記第1の処理方法としては、3次スプライ
ン曲面による補間処理方法で拡大、縮小処理が実行さ
れ、出力画像を得る。 さらに、請求項3に記載の発明の
デジタル画像処理装置では、請求項1又は2に記載の発
明の作用に加えて、前記第2の処理方法としては、線形
補間処理方法で拡大、縮小処理が実行され、出力画像を
得る。
In the digital image processing apparatus according to the first aspect of the present invention, when receiving the original image data, the comparing means compares the data amount of the original image data with the reference value. When the original image is small and the data amount is equal to or smaller than the reference value, the selecting means selects the enlargement or reduction method of the first processing method . It is a simpler processing method than the processing method
An enlargement or reduction method of the second processing method is selected. Using the selected enlargement / reduction method, enlargement / reduction processing is executed to obtain an output image. Further, the data of the invention according to claim 2 is provided.
In the digital image processing apparatus, the operation of the invention according to claim 1 is achieved.
In addition to the above, the first processing method includes a tertiary splicing method.
Enlargement / reduction processing is executed by interpolation processing using curved surfaces.
To obtain an output image. Further, according to the third aspect of the present invention,
The digital image processing apparatus according to claim 1 or 2,
In addition to the action of Ming, the second processing method includes linear
Enlargement / reduction processing is executed by the interpolation processing method, and the output image is
obtain.

【0007】[0007]

【実施例】以下、本発明を印刷制御装置として具体化し
た一実施例を図面を参照して説明する。図1は本実施例
の印刷制御装置の外部接続の模式図である。コンピュー
タ100と印刷制御装置300間で、印刷命令の受渡し
が可能なように、コンピュータ100の外部コネクタ1
01と印刷制御装置の第1インターフェイスコネクタ3
01が第1ケーブル501にて接続されている。また印
刷制御装置300からインクジェットプリンタ200へ
ラスターイメージデータを送出可能なように、印刷制御
装置300の第2インターフェイスコネクタ302とイ
ンクジェットプリンタ200のインターフェイスコネク
タ201は、第2ケーブル502で接続されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is embodied as a print control apparatus will be described below with reference to the drawings. FIG. 1 is a schematic diagram of an external connection of the print control apparatus according to the present embodiment. An external connector 1 of the computer 100 is provided so that a print command can be transferred between the computer 100 and the print control device 300.
01 and the first interface connector 3 of the print control device
01 is connected by the first cable 501. The second interface connector 302 of the print control device 300 and the interface connector 201 of the inkjet printer 200 are connected by a second cable 502 so that the raster image data can be sent from the print control device 300 to the inkjet printer 200.

【0008】次に図2を参照して、印刷制御装置300
の構成を詳細に説明する。コンピュータ100からのデ
ータが入力される第1インターフェイスコネクタ301
には、そのデータを受け取る第1インターフェイス回路
303が接続されている。同様に第2インターフェイス
コネクタ302には、データを送信可能なように第2イ
ンターフェイス回路350が接続されている。両インタ
ーフェイス回路の他端には、第1CPU305との間で
データの受渡しが可能なように第1バス313が接続さ
れている。
Next, referring to FIG.
Will be described in detail. First interface connector 301 to which data from computer 100 is input
Is connected to a first interface circuit 303 that receives the data. Similarly, a second interface circuit 350 is connected to the second interface connector 302 so that data can be transmitted. A first bus 313 is connected to the other ends of both interface circuits so that data can be transferred to and from the first CPU 305.

【0009】また第1バス313には、データを蓄積す
るための第1ダイナミックメモリ306、ハードディス
クドライブ309とのインターフェイスを行なう為の第
3インターフェイス回路307、後述する第2CPU3
10との間の通信を行なう為の、2つのポートを持ち両
ポートから同一メモリセルにアクセスが可能なデュアル
ポートメモリ308の第1のポート、それらデバイス間
でダイレクトメモリ転送を行なうためのDMAC314
が接続されている。
A first bus 313 has a first dynamic memory 306 for storing data, a third interface circuit 307 for interfacing with a hard disk drive 309, and a second CPU 311 to be described later.
A first port of a dual-port memory 308 having two ports for communicating with the first and the second memory and capable of accessing the same memory cell from both ports, and a DMAC 314 for performing direct memory transfer between the devices.
Is connected.

【0010】ハードディスクドライブ309には、複数
の拡大・縮小処理方法の手順と、拡大・縮小処理方法を
選択し、切り替える方法の手順が予め格納されている。
これらの処理方法は、ハードディスク309に格納され
ているため、拡大・縮小処理方法の追加、変更を容易に
行うことができる。一方、第2CPU310の第2バス
には、前述したデュアルポートメモリ308の第2のポ
ート、データ蓄積の為の第2ダイナミックメモリ311
が接続されている。尚、同図においては、アドレスバス
やチップセレクト信号のような各種のコントロール信号
は図示を省略してある。
The hard disk drive 309 stores in advance the procedures of a plurality of enlargement / reduction processing methods and the procedures of the method of selecting and switching the enlargement / reduction processing method.
Since these processing methods are stored in the hard disk 309, it is possible to easily add or change the enlargement / reduction processing method. On the other hand, the second bus of the second CPU 310 has the second port of the aforementioned dual port memory 308 and the second dynamic memory 311 for storing data.
Is connected. It should be noted that various control signals such as an address bus and a chip select signal are not shown in FIG.

【0011】次に第2インターフェイス回路350の構
成を図3を参照して詳細に説明する。第1CPU305
等からのデータ書き込みが可能なようにファーストイン
ファーストアウトメモリ装置(以下、FIFOと称す
る)351のデータ入力端が第1バス313に接続され
ている。またFIFO351のデータ出力端には、第2
インターフェイスコネクタ302へデータを出力するた
めのドライバ352が接続されている。また第2インタ
ーフェイスコネクタ302よりのレディー信号を受け取
り、コントロール回路354に入力させるために、レシ
ーバ353が配設されている。
Next, the configuration of the second interface circuit 350 will be described in detail with reference to FIG. First CPU 305
A data input terminal of a first-in first-out memory device (hereinafter, referred to as FIFO) 351 is connected to the first bus 313 so that data can be written from the first bus 313. The data output terminal of the FIFO 351 has the second
A driver 352 for outputting data to the interface connector 302 is connected. A receiver 353 is provided to receive a ready signal from the second interface connector 302 and to input the ready signal to the control circuit 354.

【0012】FIFO351のリード信号359と、第
2インターフェイスコネクタへドライバ352を介して
出力されるデータクロック信号356とを生成するため
に、コントロール回路354が配設されており、コント
ロール回路354のタイミングを制御するためのクロッ
ク信号360を生成するために、クロック生成回路35
5が配設されている。また、FIFO351のエンプテ
ィフラグ357はコントロール回路354に入力されて
いる。
A control circuit 354 is provided for generating a read signal 359 of the FIFO 351 and a data clock signal 356 output to the second interface connector via the driver 352, and controls the timing of the control circuit 354. In order to generate the clock signal 360 for controlling, the clock generation circuit 35
5 are provided. The empty flag 357 of the FIFO 351 is input to the control circuit 354.

【0013】次にインクジェットプリンタ200の構成
を図4を参照して詳細に説明する。インターフェイスコ
ネクタ201には入力されたデータ及びデータクロック
信号221を、FIFO205のデータ入力端及びイン
ターフェイスコントロール回路204に入力するための
レシーバ202が接続されている。そしてインターフェ
イスコネクタ201には、インターフェイスコントロー
ル回路204で生成されたレディー信号220を出力す
るためのドライバ203が接続されている。またFIF
O205のオーバーフローを防止するためにFIFO2
05のフルフラグ信号223がインターフェイスコント
ロール回路204に接続されている。更にデータをFI
FO205に書き込むために、インターフェイスコント
ロール回路204からライト信号222が接続されてい
る。
Next, the configuration of the ink jet printer 200 will be described in detail with reference to FIG. The interface connector 201 is connected to a receiver 202 for inputting the input data and the data clock signal 221 to the data input terminal of the FIFO 205 and the interface control circuit 204. To the interface connector 201, a driver 203 for outputting a ready signal 220 generated by the interface control circuit 204 is connected. Also FIF
FIFO2 to prevent O205 overflow
05 is connected to the interface control circuit 204. Further data FI
To write to the FO 205, a write signal 222 from the interface control circuit 204 is connected.

【0014】FIFO205のデータ出力端にはCPU
206がデータを読み取れるようにバス230が接続さ
れており、またバス230には相互にデータの授受が可
能なように、データ蓄積のためのダイナミックメモリ2
07、後述する印刷データを格納する第1データメモリ
209、第2データメモリ210、第3データメモリ2
11、第4データメモリ212がそれぞれ接続されてい
る。また第1データメモリのデータ出力端は第1ヘッド
制御回路213に印刷データ224を送出できるように
接続されており、その読み出しを制御するためにデータ
読出制御回路208のリード信号228が第1データメ
モリ209に接続されている。
The data output terminal of the FIFO 205 has a CPU
A bus 230 is connected so that the data can be read from the bus 206, and a dynamic memory 2 for storing data is connected to the bus 230 so that data can be exchanged with each other.
07, a first data memory 209 for storing print data to be described later, a second data memory 210, and a third data memory 2
11 and the fourth data memory 212 are connected to each other. The data output terminal of the first data memory is connected to the first head control circuit 213 so that the print data 224 can be sent out. In order to control the reading, the read signal 228 of the data read control circuit 208 is changed to the first data. It is connected to the memory 209.

【0015】一方、第1ヘッド制御回路213は、ノズ
ル256からのインクの噴出量が制御可能なように、ヘ
ッド制御信号229がインクジェットヘッド251に接
続されており、インクジェットヘッド251には図示し
ないインクポンプからインクを供給できるように、パイ
プ260が接続されている。第2乃至第4データメモリ
210、211、212の場合も第1データメモリ20
9からの場合と同様に接続されている。各インクジェッ
トヘッド251乃至254には各パイプ260乃至26
3を通して、例えばブラック、イエロー、マジェンタ、
シアンの4色のインクが供給される。
On the other hand, the first head control circuit 213 has a head control signal 229 connected to the ink jet head 251 so that the amount of ink ejected from the nozzle 256 can be controlled. A pipe 260 is connected so that ink can be supplied from the pump. Also in the case of the second to fourth data memories 210, 211, 212, the first data memory 20
9 are connected in the same way as in the case of FIG. Each of the ink jet heads 251 to 254 has a pipe 260 to 26
Through 3, for example, black, yellow, magenta,
Four cyan inks are supplied.

【0016】4個のインクジェットヘッド251乃至2
54に対向して、紙264を巻回されたドラム269が
軸265の周りに回転可能に配設されており、軸265
には回転のタイミング信号をデータ読出制御回路208
に送出可能なエンコーダ266が取り付けられている。
更に軸265には、モータ267の回転を伝えるために
ベルト268が掛け渡されている。また4個のインクジ
ェットヘッド251乃至254は図示しない1つのベッ
ド上に取り付けられており、ドラム267の軸方向に一
体として移動可能なように構成されている。
Four ink jet heads 251 to 2
A drum 269 wound with paper 264 is rotatably disposed around the shaft 265 so as to face the shaft 265.
Is supplied with a rotation timing signal.
The encoder 266 which can be transmitted to the STA is attached.
Further, a belt 268 is wound around the shaft 265 to transmit the rotation of the motor 267. The four inkjet heads 251 to 254 are mounted on one bed (not shown), and are configured to be integrally movable in the axial direction of the drum 267.

【0017】以上のように構成された印刷制御装置30
0の一連の印刷動作を図1乃至図8を参照して説明す
る。第1CPU305は、コンピュータ100から印刷
すべきコマンド群を受け取ると、まずそのコマンド群を
ハードディスクドライブ309に格納する。この時、コ
マンド群を無解釈のまま受け取るので、コンピュータ1
00を通信から早く解放でき、またハードディスクドラ
イブ309に格納していくので、コマンド群を格納する
ダイナミックメモリ306の容量を少なくできる。コン
ピュータ100からのコマンド群がすべて入力される
と、第1CPU305はデュアルポートメモリ308
に、このコマンド群を解釈するように第2CPU310
に指示する指令を書き込む。
The print control device 30 configured as described above
A series of printing operations of "0" will be described with reference to FIGS. When receiving the command group to be printed from the computer 100, the first CPU 305 first stores the command group in the hard disk drive 309. At this time, since the command group is received without interpretation, the computer 1
00 can be quickly released from the communication and stored in the hard disk drive 309, so that the capacity of the dynamic memory 306 for storing the command group can be reduced. When all commands from the computer 100 are input, the first CPU 305
In order to interpret this command group, the second CPU 310
Write the command to instruct.

【0018】一方、第2CPU310はこの指令を受け
取ると、そのコマンド群をハードディスクドライブ30
9から読みだし、デュアルポートメモリ308に書き込
むよう第1CPU305に指示する指令を同様にデュア
ルポートメモリ308に書き込む。コマンド群がデュア
ルポートメモリ308に書き込まれると、第2CPU3
10はその解釈を開始し、その結果を第2ダイナミック
メモリ311に格納していく。その解釈の手順を図5及
び図6を参照して詳細に説明する。
On the other hand, when the second CPU 310 receives this command, the second CPU 310
9 and instructs the first CPU 305 to write to the dual port memory 308 in the same manner. When the command group is written to the dual port memory 308, the second CPU 3
10 starts the interpretation and stores the result in the second dynamic memory 311. The procedure of the interpretation will be described in detail with reference to FIGS.

【0019】まず図5を参照して、拡大・縮小処理の流
れを説明する。第2CPU310は、デュアルポートメ
モリ308に書き込まれているコマンドから、これから
実行するべき処理が拡大・縮小処理であることを知り、
さらに拡大率を知る(ステップS1、以下単にS1とし
その他のステップについても同様とする)。次に、拡大
・縮小処理方法を選択して切り替える方法の手順をハー
ドディスク309から読みだすことを要求する指令をデ
ュアルポートメモリ308に書き込む(S2)。第1C
PU305は、デュアルポートメモリ308の指令を読
み取り、ハードディスク309から拡大・縮小処理方法
を選択して切り替える方法の手順を読み取ってデュアル
ポートメモリ308に書き込む(S3)。第2CPU3
10は、デュアルポートメモリ308に書き込まれた拡
大・縮小処理方法を選択して切り替える方法の手順を読
み取って、第2ダイナミックメモリ311に書き込む
(S4)。
First, the flow of the enlargement / reduction processing will be described with reference to FIG. The second CPU 310 learns from the command written in the dual port memory 308 that the processing to be executed is enlargement / reduction processing,
Further, the enlargement factor is known (Step S1, hereinafter simply referred to as S1). Next, a command requesting that the procedure of the method of selecting and switching the enlargement / reduction processing method be read from the hard disk 309 is written in the dual port memory 308 (S2). 1st C
The PU 305 reads the instruction of the dual port memory 308, reads the procedure of the method of selecting and switching the enlargement / reduction processing method from the hard disk 309, and writes the procedure to the dual port memory 308 (S3). 2nd CPU3
10 reads the procedure of the method of selecting and switching the enlargement / reduction processing method written in the dual port memory 308 and writes it in the second dynamic memory 311 (S4).

【0020】第2CPU310は、第2ダイナミックメ
モリ311に書き込まれた手順を逐次解釈して、原画像
のデータ量に従って拡大・縮小処理方法を選択する(S
5)。次に、選択された拡大・縮小処理方法の手順をハ
ードディスク309から読みだすことを要求する指令を
デュアルポートメモリ308に書き込む(S6)。第1
CPU305は、デュアルポートメモリ308の指令を
読み取り、ハードディスク309から選択された拡大・
縮小処理方法の手順を読み取ってデュアルポートメモリ
308に書き込む(S7)。第2CPU310は、デュ
アルポートメモリ308に書き込まれた拡大・縮小処理
方法の手順を読み取って、第2ダイナミックメモリ31
1に書き込む(S8)。
The second CPU 310 sequentially interprets the procedure written in the second dynamic memory 311 and selects an enlargement / reduction processing method according to the data amount of the original image (S
5). Next, a command requesting that the selected procedure of the enlargement / reduction processing method be read from the hard disk 309 is written in the dual port memory 308 (S6). First
The CPU 305 reads the instruction from the dual port memory 308 and selects the enlarged /
The procedure of the reduction processing method is read and written in the dual port memory 308 (S7). The second CPU 310 reads the procedure of the enlargement / reduction processing method written in the dual port memory 308 and reads the second dynamic memory 31.
1 is written (S8).

【0021】次に図6を参照して、原画像のデータ量に
従って拡大・縮小処理方法を選択する手順(S5)につ
いて説明する。本実施例では、2種類の拡大・縮小処理
方法が用意されている場合について説明を行う。ここで
は、拡大・縮小処理方法を選択する手順と同時に第2ダ
イナミックメモリ311に書き込まれた基準値Nを参照
する。
Next, a procedure (S5) for selecting an enlargement / reduction processing method according to the data amount of the original image will be described with reference to FIG. In this embodiment, a case where two types of enlargement / reduction processing methods are prepared will be described. Here, the reference value N written in the second dynamic memory 311 is referred to simultaneously with the procedure for selecting the enlargement / reduction processing method.

【0022】基準値Nは、拡大・縮小処理を分類するた
めの基準となる値であり、本実施例では原画像データの
バイト数を基準値として採用し、基準値N=3.6(メ
ガバイト)とする。このNの値は、写真のサービス判
(110mm×80mm)をイメージスキャナ等で30
0dpi((8ビット/色)×3色)で読み取ったデー
タ量にほぼ等しい。基準値Nはこの値に限ったものでな
く、また、複数の拡大・縮小処理方法が用意されている
場合には複数の基準値を設定することも可能である。
The reference value N is a reference value for classifying the enlargement / reduction processing. In this embodiment, the number of bytes of the original image data is adopted as the reference value, and the reference value N = 3.6 (megabytes). ). The value of N can be calculated using a photo service format (110 mm x 80 mm) using an image scanner or the like.
It is almost equal to the amount of data read at 0 dpi ((8 bits / color) × 3 colors). The reference value N is not limited to this value, and a plurality of reference values can be set when a plurality of enlargement / reduction processing methods are prepared.

【0023】原画像のデータ量と基準値Nを比較し、原
画像のデータ量がN以下の場合は、高精細な拡大・縮小
処理方法を行っても著しく処理時間が増大しないと判定
し、例えば3次スプラインによる拡大・縮小処理の様
な、高精細な拡大・縮小処理方法M2を選択する。原画
像のデータ量がNよりも大きい場合は、高精細な拡大・
縮小処理方法を行うと著しく処理時間が増大すると判定
し、例えば線形補間による拡大・縮小処理の様な、簡素
な拡大・縮小処理方法M1を選択する。
The data amount of the original image is compared with the reference value N. If the data amount of the original image is equal to or smaller than N, it is determined that the processing time does not increase significantly even if a high-resolution enlargement / reduction processing method is performed. For example, a high-definition enlargement / reduction processing method M2 such as enlargement / reduction processing using a cubic spline is selected. If the data amount of the original image is larger than N,
It is determined that the processing time significantly increases when the reduction processing method is performed, and a simple enlargement / reduction processing method M1 such as enlargement / reduction processing by linear interpolation is selected.

【0024】ここで、簡素な拡大・縮小処理方法とは、
比較的演算処理が単純な処理方法のことであり、例えば
線形補間によって原画像の画素間を補間して新たな画素
を発生させる方法である。
Here, the simple enlargement / reduction processing method is as follows.
This is a processing method in which the arithmetic processing is relatively simple, for example, a method in which new pixels are generated by interpolating between pixels of an original image by linear interpolation.

【0025】ここで図7を参照して線形補間について説
明する。原画像の水平、垂直方向に隣接する4画素Qi,
j、Qi+1,j、Qi,j+1、Qi+1,j+1を制御点401とし
て、図7の斜線でハッチングを施した正方形の面Pi,j
402は次式で表される。
Here, the linear interpolation will be described with reference to FIG. Four pixels Qi, adjacent in the horizontal and vertical directions of the original image
7, j, Qi + 1, j, Qi, j + 1, and Qi + 1, j + 1 are set as control points 401, and a square surface Pi, j hatched by hatching in FIG.
402 is represented by the following equation.

【0026】[0026]

【数1】 (Equation 1)

【0027】この式に現れる係数マトリックスNLの要
素は、0、1、−1だけで構成されているので、Pi,j
の演算においてCPUに負担がかかることはない。この
式のu,vに0≦u≦1、0≦v≦1の範囲で任意の実
数を代入すれば、面Pi,j402上の新たな画素の値が
求められる。例えば原画像を水平、垂直方向に7倍に拡
大したい場合は、u,vの値を各々0.0、0.143、0.28
6、0.429、0.571、0.714、0.857として上式に代入して
演算すれば、合計49点の画素値を得ることができる。
この処理を原画像の全範囲について行えば、7倍に拡大
された画像データを得ることができる。
Since the elements of the coefficient matrix NL appearing in this equation are composed of only 0, 1, and -1, Pi, j
There is no burden on the CPU in the calculation of. By substituting arbitrary real numbers in the range of 0 ≦ u ≦ 1 and 0 ≦ v ≦ 1 for u and v in this equation, the value of a new pixel on the surface Pi, j 402 is obtained. For example, to enlarge the original image 7 times in the horizontal and vertical directions, the values of u and v are set to 0.0, 0.143, and 0.28, respectively.
By substituting into the above equation as 6, 0.429, 0.571, 0.714, and 0.857 for calculation, a total of 49 pixel values can be obtained.
If this process is performed for the entire range of the original image, image data enlarged seven times can be obtained.

【0028】一方、高精細な拡大・縮小処理方法とは、
比較的演算処理が複雑な処理方法のことであり、例えば
3次スプライン曲面補間によって原画像の画素間を補間
して新たな画素を発生させる方法である。
On the other hand, the high-resolution enlargement / reduction processing method is as follows.
This is a processing method having relatively complicated arithmetic processing, for example, a method of generating new pixels by interpolating between pixels of an original image by cubic spline surface interpolation.

【0029】ここで図8を参照して3次スプライン補間
について説明する。原画像の水平、垂直方向に隣接する
16画素Qi,j、Qi+1,j、Qi+2,j、Qi+3,j、Qi,j+
1、Qi+1,j+1、Qi+2,j+1、Qi+3,j+1、Qi,j+2、Qi+
1,j+2、Qi+2,j+2、Qi+3,j+2、Qi,j+3、Qi+1,j+3、
Qi+2,j+3、Qi+3,j+3を制御点403として、図8の斜
線でハッチングを施した正方形の面Pi,j404は次式
で表される。
Here, the cubic spline interpolation will be described with reference to FIG. 16 pixels Qi, j, Qi + 1, j, Qi + 2, j, Qi + 3, j, Qi, j + adjacent to the original image in the horizontal and vertical directions
1, Qi + 1, j + 1, Qi + 2, j + 1, Qi + 3, j + 1, Qi, j + 2, Qi +
1, j + 2, Qi + 2, j + 2, Qi + 3, j + 2, Qi, j + 3, Qi + 1, j + 3,
Using Qi + 2, j + 3 and Qi + 3, j + 3 as control points 403, a square surface Pi, j404 hatched by oblique lines in FIG. 8 is expressed by the following equation.

【0030】[0030]

【数2】 (Equation 2)

【0031】この式に現れる係数マトリックスNRの要
素は実数で構成されており、マトリックスのサイズも大
きいので、Pi,jの演算において線形補間より処理時間
はかかるが、より高精細な補間が可能である。線形補間
と同様、この式のu,vに0≦u≦1、0≦v≦1の範
囲で任意の実数を代入すれば、面Pi,j404上の新た
な画素の値が求められる。例えば原画像を水平、垂直方
向に8倍に拡大したい場合は、u,vの値を各々0.0、
0.125、0.250、0.375、0.50、0.625、0.750、0.875とし
て上式に代入して演算すれば、合計64点の画素値を得
ることができる。この処理を原画像の全範囲について行
えば、8倍に拡大された画像データを得ることができ
る。
The elements of the coefficient matrix NR appearing in this equation are composed of real numbers, and the size of the matrix is large. Therefore, it takes more processing time to calculate Pi, j than linear interpolation, but higher definition interpolation is possible. is there. As in the case of the linear interpolation, a new pixel value on the plane Pi, j 404 can be obtained by substituting arbitrary real numbers in the range of 0 ≦ u ≦ 1 and 0 ≦ v ≦ 1 for u and v in this equation. For example, to enlarge the original image by 8 times in the horizontal and vertical directions, the values of u and v are set to 0.0, respectively.
By substituting into the above equation as 0.125, 0.250, 0.375, 0.50, 0.625, 0.750, and 0.875 for calculation, a total of 64 pixel values can be obtained. If this process is performed for the entire range of the original image, image data enlarged eight times can be obtained.

【0032】以上説明した解釈が行われ、拡大・縮小処
理の準備が終了すると、第2CPU310はデュアルポ
ートメモリ308に指令を出し、印刷の開始であること
を知らせる。第1CPU305はその指令を受け取ると
第2インターフェイス回路350にインクジェットプリ
ンタ200の起動コマンドを書き込む。第2インターフ
ェイス回路350は、レディー信号358が真であるな
らば、FIFO351からコマンドを1バイトずつ読み
だし、データクロック信号356を1パルスずつ送出す
る。インクジェットプリンタ200内のインターフェイ
スコントロール回路204は、そのデータクロック信号
356に同期して上記コマンドをFIFO205に取り
込む。
When the interpretation described above is performed and the preparation for the enlargement / reduction processing is completed, the second CPU 310 issues a command to the dual port memory 308 to notify the start of printing. Upon receiving the command, the first CPU 305 writes a start command of the inkjet printer 200 in the second interface circuit 350. If the ready signal 358 is true, the second interface circuit 350 reads the command from the FIFO 351 one byte at a time, and sends out the data clock signal 356 one pulse at a time. The interface control circuit 204 in the inkjet printer 200 fetches the command into the FIFO 205 in synchronization with the data clock signal 356.

【0033】上記動作は印刷制御装置300内のFIF
O351がエンプティになるか、インクジェットプリン
タ200内のFIFO205がフルになるまで中断され
ることはない。またインターフェイスコントロール回路
204はFIFO205にデータが入力されていること
をCPU206に知らせる。CPU206は、そのデー
タを順次読みだし、起動コマンドであることを認識する
と、図示しない機構制御回路によりモータ267を起動
させ、ドラム269を回転させる。
The above operation is performed by the FIF in the print controller 300.
There is no interruption until O351 becomes empty or the FIFO 205 in the inkjet printer 200 becomes full. Further, the interface control circuit 204 notifies the CPU 206 that data has been input to the FIFO 205. The CPU 206 sequentially reads out the data and, when recognizing that it is a start command, starts the motor 267 by means of a mechanism control circuit (not shown) and rotates the drum 269.

【0034】続いて第2CPU310は、第2ダイナミ
ックメモリ311の手順を逐次実行しながらハードディ
スク309にある原画像ラスターデータに対して拡大・
縮小処理を実行して1ラスター分の出力データを展開
し、デュアルポートメモリ308に書き込む。
Subsequently, the second CPU 310 enlarges and expands the original image raster data on the hard disk 309 while sequentially executing the procedure of the second dynamic memory 311.
By executing the reduction process, the output data for one raster is developed and written to the dual port memory 308.

【0035】第1CPU305は、デュアルポート30
8にある展開データをダイナミックメモリ306に格納
し、DMAC314に展開データを第2インターフェイ
ス回路350に書き込みに行くように指令する。この時
必要なダイナミックメモリの容量は、最低で1ラスター
分のデータ量であり、展開データを1ページ分持つ場合
に比して、著しく少なくても良い。DMAC314はF
IFO351がフルになると書き込みを中断し、FIF
O351がエンプティになると再び書き込みを開始す
る。このダイレクトメモリ転送が中断している間に、第
1CPU305は、次の原画像ラスターデータを第2C
PU310側にハードディスクドライブ309より転送
することが可能であるし、また展開し終わったデータを
第1ダイナミックメモリ306の別の領域に格納するこ
とも可能である。また第2CPU310はバス230が
使用中であるか否かには関係なく、拡大・縮小処理を継
続して続けることが出来るので高速な処理が可能であ
る。
The first CPU 305 has a dual port 30
8 is stored in the dynamic memory 306, and the DMAC 314 is instructed to write the expanded data to the second interface circuit 350. At this time, the required capacity of the dynamic memory is at least the data amount of one raster, and may be significantly smaller than the case where one page of expanded data is provided. DMAC 314 is F
When the FIFO 351 becomes full, the writing is interrupted and the FIFO
When O351 becomes empty, writing is started again. While the direct memory transfer is suspended, the first CPU 305 transmits the next original image raster data to the second C
The data can be transferred from the hard disk drive 309 to the PU 310 side, and the developed data can be stored in another area of the first dynamic memory 306. Further, the second CPU 310 can continue the enlargement / reduction process regardless of whether or not the bus 230 is in use, so that high-speed processing is possible.

【0036】DMAC314によりFIFO351に展
開データが書き込まれると、起動コマンドの送出の部分
で説明したと同様に、そのデータはインクジェットプリ
ンタ200に送られ、CPU206はそのデータをダイ
ナミックメモリ207に一次的に格納する。
When the expansion data is written into the FIFO 351 by the DMAC 314, the data is sent to the ink jet printer 200, as described in the section of sending the start command, and the CPU 206 temporarily stores the data in the dynamic memory 207. I do.

【0037】更にCPU206はその内、シアンのデー
タ成分のみをデータメモリ212に1ラスター分順次格
納し、格納し終えるとデータ読出制御回路208に1ラ
スター分の印刷を行なわせるように指令を出す。データ
読出制御回路208は、その指令を受け取ると、エンコ
ーダ266の出力信号に同期させて、第4データメモリ
212の内容を第4ヘッド制御回路216に送出させ
る。第4ヘッド制御回路216は、そのデータに基づい
て、駆動量を決定しヘッド254を駆動する。ヘッド2
54は駆動量に応じたインク量を紙264に噴出する。
それによりドラム269上の紙264にシアンの1ラス
ターイメージが印刷される。
Further, the CPU 206 sequentially stores only the cyan data component for one raster in the data memory 212, and issues an instruction to cause the data reading control circuit 208 to perform printing for one raster when the storing is completed. Upon receiving the instruction, the data read control circuit 208 causes the contents of the fourth data memory 212 to be sent to the fourth head control circuit 216 in synchronization with the output signal of the encoder 266. The fourth head control circuit 216 determines the drive amount based on the data and drives the head 254. Head 2
Numeral 54 ejects an ink amount corresponding to the driving amount onto the paper 264.
As a result, one raster image of cyan is printed on the paper 264 on the drum 269.

【0038】CPU206は、次にヘッドを1ラスター
分軸方向に移動させ、次のシアンの1ラスターイメージ
に関しても上記の動作を繰り返させる。そしてヘッド2
53が最初のシアンのラスター位置にきたところで、次
からはマジェンタとシアンのデータに関して、同様の事
を繰り返させる。もし必要なデータがダイナミックメモ
リ207上にないときには、データが入力されるまで待
つ。
Next, the CPU 206 moves the head in the axial direction by one raster, and repeats the above operation for the next cyan raster image. And head 2
When 53 comes to the first cyan raster position, the same is repeated from the next on magenta and cyan data. If the necessary data is not on the dynamic memory 207, the process waits until data is input.

【0039】以上の動作をイエロー、ブラックに関して
も繰り返し、更に印刷データの終わりでは逆にシアンか
ら順次ラスターの印刷を止めていくことにより、紙26
4上にフルカラーの印刷を行なうことが出来る。この時
インクジェットプリンタ200内のダイナミックメモリ
207に必要な容量は、高々1ラスター分のデータ量と
ヘッドの最大オフセットラスター数の積であるし、ヘッ
ドをドラム周回方向に並べれば、オフセット数を1に出
来、1ページ分のラスターイメージメモリに対して極端
に少ないメモリ量で同じ印刷物を得ることが可能であ
る。
The above operation is repeated for yellow and black, and at the end of the print data, the printing of the raster is sequentially stopped from cyan for printing.
4 can be printed in full color. At this time, the capacity required for the dynamic memory 207 in the ink jet printer 200 is the product of the data amount for at most one raster and the maximum number of offset rasters of the head. As a result, the same printed matter can be obtained with an extremely small amount of memory for the raster image memory for one page.

【0040】上述の様に、1ラスター分の出力データを
展開しながら印刷する操作を原画像の全ラスターデータ
について実行すれば、最終的にフルカラーで印刷された
拡大・縮小画像を得ることができる。
As described above, if the operation of printing while rasterizing the output data for one raster is executed for all the raster data of the original image, an enlarged / reduced image printed in full color can be finally obtained. .

【0041】以上、説明したことから明かなように、本
実施例の印刷制御装置300によれば、限られた時間内
で最良の画質を持った拡大、縮小画像を得ることが可能
になる。
As is clear from the above description, according to the print control apparatus 300 of the present embodiment, it is possible to obtain an enlarged or reduced image having the best image quality within a limited time.

【0042】尚、本発明は以上詳述した実施例に限定さ
れるものではなく、その趣旨を逸脱しない範囲の変更は
可能である。例えばプリント装置は昇華型熱転写方式で
も良いし、ハードディスクドライブのかわりに光磁気デ
ィスク装置やテープドライブ装置を用いても良い。
The present invention is not limited to the embodiment described in detail above, and can be modified without departing from the scope of the invention. For example, the printing apparatus may be of a sublimation type thermal transfer type, or a magneto-optical disk device or a tape drive device may be used instead of the hard disk drive.

【0043】また、拡大・縮小処理方法は、線形補間、
スプライン補間によるものに限られるものでなく、単純
補間、低次、高次の多項式曲面による補間、有理曲面に
よる補間等によるものを使用しても良いし、種類も2種
類だけでなくても良い。さらに、処理時間の限界値を設
定し、原画像のデータ量から用意されている拡大・縮小
処理方法での各実行時間を推定し、処理時間の限界値以
内で最良の処理方法を選択すれば、限られた時間内での
拡大・縮小画像の出力を保証することができる。
The enlargement / reduction processing method includes linear interpolation,
The interpolation is not limited to the spline interpolation, but may be simple interpolation, interpolation using low-order or high-order polynomial surfaces, interpolation using rational surfaces, or the like. . Furthermore, by setting a limit value of the processing time, estimating each execution time in the prepared enlargement / reduction processing method from the data amount of the original image, and selecting the best processing method within the processing time limit value, In addition, it is possible to guarantee the output of the enlarged / reduced image within a limited time.

【0044】[0044]

【発明の効果】以上、説明したことから明かなように、
本発明のデジタル画像処理装置によれば、限られた時間
内で最良の画質を持った拡大、縮小画像を得ることが可
能になる。
As apparent from the above description,
According to the digital image processing device of the present invention, it is possible to obtain an enlarged or reduced image having the best image quality within a limited time.

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

【図1】本実施例の印刷制御装置の外部接続の模式図で
ある。
FIG. 1 is a schematic diagram illustrating an external connection of a print control apparatus according to an embodiment.

【図2】印刷制御装置のブロック図である。FIG. 2 is a block diagram of a print control device.

【図3】インターフェイス制御回路のブロック図であ
る。
FIG. 3 is a block diagram of an interface control circuit.

【図4】インクジェットプリンタの内部ブロック図であ
る。
FIG. 4 is an internal block diagram of the ink jet printer.

【図5】拡大、縮小処理の手順を示すフローチャートで
ある。
FIG. 5 is a flowchart showing a procedure of enlargement and reduction processing.

【図6】拡大・縮小処理方法の選択手順を示すフローチ
ャートである。
FIG. 6 is a flowchart showing a procedure for selecting an enlargement / reduction processing method.

【図7】本実施例における拡大、縮小方法のうち、線形
補間についての説明図である。
FIG. 7 is an explanatory diagram of linear interpolation among enlargement and reduction methods in the embodiment.

【図8】本実施例における拡大、縮小方法のうち、3次
スプライン補間についての説明図である。
FIG. 8 is an explanatory diagram of cubic spline interpolation among the enlargement and reduction methods in the present embodiment.

【符号の説明】[Explanation of symbols]

300 印刷制御装置 305 第1CPU 310 第2CPU 300 print control device 305 first CPU 310 second CPU

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 縦横に並んだ多数の画素の各々の濃度を
規定する原画像データに基づいて、前記原画像データの
表す原画像を拡大、縮小するデジタル画像処理装置であ
って、 前記原画像データのデータ量を基準値と比較する比較手
段と、当該比較手段で比較した結果、 前記原画像データのデー
タ量が前記基準値以下の場合は第1の処理方法の拡大、
縮小方法を選択し、前記原画像データのデータ量が前記
基準値よりも大きな場合は前記第1の処理方法よりも単
純な処理方法である第2の処理方法の拡大、縮小方法を
選択する選択手段とを備えたことを特徴とするデジタル
画像処理装置。
1. A digital image processing apparatus for enlarging or reducing an original image represented by said original image data based on original image data defining densities of a large number of pixels arranged in a matrix. A comparison unit that compares the data amount of the data with a reference value, and as a result of comparison by the comparison unit, if the data amount of the original image data is equal to or less than the reference value, the first processing method is expanded;
When a reduction method is selected, and the data amount of the original image data is larger than the reference value, a simpler method than the first processing method is used.
A digital image processing apparatus comprising: a selection unit that selects an enlargement or reduction method of the second processing method that is a pure processing method .
【請求項2】 前記第1の処理方法は、3次スプライン2. The method according to claim 1, wherein the first processing method includes a cubic spline.
曲面による補間処理方法であることを特徴とする請求項An interpolation processing method using a curved surface.
1に記載のデジタル画像処理装置。2. The digital image processing device according to 1.
【請求項3】 前記第2の処理方法は、線形補間処理方3. The method according to claim 2, wherein the second processing method is a linear interpolation processing method.
法であることを特徴とする請求項1又は2に記載のデジ3. The digital device according to claim 1, wherein
タル画像処理装置。Tal image processing device.
JP4032181A 1992-01-27 1992-02-19 Digital image processing equipment Expired - Fee Related JP3063356B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP4032181A JP3063356B2 (en) 1992-02-19 1992-02-19 Digital image processing equipment
US08/441,419 US5553201A (en) 1992-01-27 1995-05-15 Digital image processing device for automatically selecting one of a plurality of different image enlarging/reducing manners

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4032181A JP3063356B2 (en) 1992-02-19 1992-02-19 Digital image processing equipment

Publications (2)

Publication Number Publication Date
JPH05233789A JPH05233789A (en) 1993-09-10
JP3063356B2 true JP3063356B2 (en) 2000-07-12

Family

ID=12351762

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4032181A Expired - Fee Related JP3063356B2 (en) 1992-01-27 1992-02-19 Digital image processing equipment

Country Status (1)

Country Link
JP (1) JP3063356B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3973602B2 (en) 2002-07-10 2007-09-12 株式会社リコー Image processing apparatus, image processing method, and software program

Also Published As

Publication number Publication date
JPH05233789A (en) 1993-09-10

Similar Documents

Publication Publication Date Title
US5355441A (en) Printing control apparatus
US5937152A (en) Printer with buffer memory
US5553201A (en) Digital image processing device for automatically selecting one of a plurality of different image enlarging/reducing manners
EP0938041A2 (en) Printer controller, and print system
US5877865A (en) Image processing apparatus and method for printing data described in a page description language
US20080285084A1 (en) Image processing apparatus, printing apparatus and image processing method
JP3063356B2 (en) Digital image processing equipment
JP2861586B2 (en) Printing control device
JPH05233790A (en) Digital image processor
JP2913977B2 (en) Printing control device
JP3107685B2 (en) Print data transmission method
JP2884876B2 (en) Printing control device
JP2842010B2 (en) Printing control device
JPH05205040A (en) Digital image processor
JP2842011B2 (en) Image data generation device
JP2006229428A (en) Image-formation controller, quantization method and printer device
JP3440117B2 (en) Printer control device
JP2845026B2 (en) Printing control device
JP2850717B2 (en) Printing control device
JP2842009B2 (en) Image data generation device
JP2827838B2 (en) Print data transmission method
JPH08123633A (en) Color image printing system
JP2001113753A (en) Ink jet printer
JPH07104953A (en) Picture forming device
JPH04314260A (en) Picture processor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20000404

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080512

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090512

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090512

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100512

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110512

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees