JP2829930B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2829930B2
JP2829930B2 JP1199344A JP19934489A JP2829930B2 JP 2829930 B2 JP2829930 B2 JP 2829930B2 JP 1199344 A JP1199344 A JP 1199344A JP 19934489 A JP19934489 A JP 19934489A JP 2829930 B2 JP2829930 B2 JP 2829930B2
Authority
JP
Japan
Prior art keywords
data
image
pixel
pixel data
input
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
JP1199344A
Other languages
Japanese (ja)
Other versions
JPH0364165A (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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP1199344A priority Critical patent/JP2829930B2/en
Publication of JPH0364165A publication Critical patent/JPH0364165A/en
Priority to US08/361,470 priority patent/US5729357A/en
Application granted granted Critical
Publication of JP2829930B2 publication Critical patent/JP2829930B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は画像処理装置に関し、特に画像データの変倍
処理を行う画像処理装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and more particularly, to an image processing apparatus that performs image data scaling processing.

[従来の技術] 従来、この種の装置ではメモリを用いた主走査変倍方
式が提案されている。
[Prior Art] Conventionally, in this type of apparatus, a main scanning variable magnification method using a memory has been proposed.

[発明が解決しようとする課題] しかし、従来の画像データの拡大処理においては画素
データの単なる引き伸ばしによる階調のガサツキが生
じ、画像データの縮小処理においては画素データの欠落
による画質の劣化が生じていた。
[Problems to be Solved by the Invention] However, in the conventional image data enlarging process, mere enlargement of pixel data causes a rough tone, and in the image data reducing process, image quality is deteriorated due to lack of pixel data. I was

本発明はかかる問題点に鑑みなされたものであり、変
倍対象の画像データの特徴部分が保存されやすく、良好
な品位の変倍画像を得ることを可能ならしめる画像処理
装置を提供しようとするものである。特に、本願発明で
は、縮小処理においては、上記に加えて、その変倍処理
を縮小対象の画像データの入力に同期して生成すること
で高速に縮小画像を得る画像処理装置を提供するもので
ある。
SUMMARY OF THE INVENTION The present invention has been made in view of such a problem, and an object of the present invention is to provide an image processing apparatus which can easily store a characteristic portion of image data to be scaled and obtain a high-quality scaled image. Things. In particular, the present invention provides an image processing apparatus that obtains a reduced image at high speed by generating the scaling process in synchronization with the input of the image data to be reduced in addition to the above in the reduction process. is there.

[課題を解決するための手段及び作用] この課題を解決するため、例えば本発明の画像処理装
置は以下の構成を備える。すなわち、 画像データの縮小処理を行なう画像処理装置におい
て、 画像データを所定のクロックに同期して入力する入力
手段と、 設定された縮小率の逆数を前記クロックに同期して累
積加算する加算手段と、 該加算結果の整数部分で示される位置の入力画素と当
該入力画素の隣接画素間において、前記加算結果の小数
点以下の値で示される位置における画素データを当該位
置を挟む2入力画素データに基づいて補間生成する補間
手段と 該補間手段によって補間生成された画素データを縮小
画像の画素データとして所定のメモリに記憶する記憶手
段とを備える。
[Means and Actions for Solving the Problems] To solve the problems, for example, an image processing apparatus of the present invention has the following configuration. That is, in an image processing device that performs image data reduction processing, input means for inputting image data in synchronization with a predetermined clock, and addition means for cumulatively adding a reciprocal of a set reduction rate in synchronization with the clock. Between the input pixel at the position indicated by the integer part of the addition result and the pixel adjacent to the input pixel, the pixel data at the position indicated by the value after the decimal point of the addition result is based on the two input pixel data sandwiching the position. And a storage means for storing the pixel data interpolated and generated by the interpolation means as pixel data of a reduced image in a predetermined memory.

[実施例の説明] 以下、添付図面に従つて本発明による実施例を詳細に
説明する。
[Description of Embodiments] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

第2図は実施例の画像処理装置の概略断面図である。
図において、201はイメージリーダであり、原稿画像を
電気的に読み取り、該読取画像データの変倍処理を行
う。203はプリンタであり、イメージリーダ201から送ら
れる画像データをプリントする。
FIG. 2 is a schematic sectional view of the image processing apparatus of the embodiment.
In the figure, reference numeral 201 denotes an image reader, which electrically reads a document image and performs scaling processing of the read image data. A printer 203 prints image data sent from the image reader 201.

イメージリーダ201において、原稿台ガラス203上に原
稿204を置き、その上を原稿押え200で押える。原稿204
の画像はランプ205で照射され、その反射光はミラー20
6,207及び208によつて導かれ、レンズ210を介してCCD21
1上に結像する。
In the image reader 201, an original 204 is placed on an original platen glass 203, and the original is pressed by an original presser 200. Manuscript 204
Is illuminated by a lamp 205, and the reflected light is reflected by a mirror 20.
6,207 and 208.
Image on one.

原稿204の読取りの際は、ランプ205及びミラー206の
ユニツトは速度Vで、またミラー207及び208のユニツト
は速度1/2Vで夫々副走査方向に機械走査されるが、この
走査速度Vを可変とすることで副走査方向の変倍読取を
行う。
When reading the original 204, the unit of the lamp 205 and the mirror 206 is mechanically scanned in the sub-scanning direction at a speed V, and the unit of the mirrors 207 and 208 is mechanically scanned in the sub-scanning direction at a speed of 1 / 2V, respectively. Thus, the variable-magnification reading in the sub-scanning direction is performed.

即ち、読取倍率100%(等倍)の時の走査速度Vの値
をV0とすると、読取倍率m%の時の走査速度Vは(1)
式で求まる。
That is, assuming that the value of the scanning speed V at a reading magnification of 100% (1 ×) is V 0 , the scanning speed V at a reading magnification of m% is (1)
It is obtained by the formula.

また、信号処理部216は主走査方向の変倍処理を行
い、結果の画像信号をプリンタ203に送る。
Further, the signal processing unit 216 performs a scaling process in the main scanning direction, and sends a resulting image signal to the printer 203.

プリンタ203において、レーザドライバ236はイメージ
リーダ201からの画像信号に基づき半導体レーザ素子217
をON/OFF駆動する。半導体レーザ素子217より射出した
レーザ光はポリゴンミラー218、f−θレンズ219及びミ
ラー220,221を介して感光ドラム222上に結像する。感光
ドラム222上に結像した画像は公知の電子写真プロセス
により現像されて、顕像化される。即ち、感光ドラム22
2上の静電潜像は現像器223によりトナーで現像される。
一方、用紙カセツト224又は225からは用紙が供給され、
該用紙はレジストローラ226においてタイミングがとら
れた後に、感光ドラム222上でトナー画像を転写され、
更に搬送系227によつて搬送され、定着ユニツト228にお
いて画像が定着された後に、出力される。
In the printer 203, the laser driver 236 operates based on an image signal from the
ON / OFF drive. The laser light emitted from the semiconductor laser element 217 forms an image on the photosensitive drum 222 via the polygon mirror 218, the f-θ lens 219, and the mirrors 220 and 221. The image formed on the photosensitive drum 222 is developed by a known electrophotographic process and visualized. That is, the photosensitive drum 22
The electrostatic latent image on 2 is developed by the developing device 223 with toner.
On the other hand, paper is supplied from the paper cassette 224 or 225,
After the sheet is timed by the registration roller 226, a toner image is transferred on the photosensitive drum 222,
The image is further conveyed by the conveyance system 227 and output after the image is fixed in the fixing unit 228.

第13図(A)〜(D)は実施例の画像処理例を説明す
る図に係り、同図(A)は原稿画像、同図(B)は縮小
コピー画像、同図(C)は等倍コピー画像、同図(D)
は拡大コピー画像の例を夫々示している。
13 (A) to 13 (D) relate to a diagram for explaining an example of image processing of the embodiment, wherein FIG. 13 (A) is a manuscript image, FIG. 13 (B) is a reduced copy image, FIG. Double copy image, same figure (D)
Indicates examples of enlarged copy images.

第1図は実施例の画像処理装置のブロツク構成図であ
る。図において、301はCPUであり、画像処理装置の主制
御を行う。即ち、まずI/Oコントローラ311を介して操作
部312からの指定読取倍率m%を入力し、該倍率m%に
応じて(1)式により副走査速度Vを求める。そして、
I/Oコントローラ311及びモータドライバ313を介して速
度Vによるモータ314の副走査制御を行う。また、CPU30
1は入力した指定倍率m%に応じてROMテーブル316から
各種制御パラメータを読み出し、以下の主走査変倍処理
回路に提供する。
FIG. 1 is a block diagram of an image processing apparatus according to an embodiment. In the figure, reference numeral 301 denotes a CPU, which performs main control of the image processing apparatus. That is, first, the designated reading magnification m% from the operation unit 312 is input via the I / O controller 311, and the sub-scanning speed V is obtained from the equation (1) according to the magnification m%. And
Through the I / O controller 311 and the motor driver 313, the sub-scanning control of the motor 314 by the speed V is performed. Also, CPU30
Reference numeral 1 reads various control parameters from the ROM table 316 in accordance with the input designated magnification ratio m%, and provides them to the following main scanning scaling processing circuit.

即ち、CCD211で読取つた画像信号は、増幅器(Amp)3
04で増幅され、A/D変換器(A/D)305で白(=255)から
黒(=0)に至る各8ビツトのディジタル信号(多値画
像データ)に変換される。文字エツジ判定部306は多値
画像データ中の文字、線図等のエツジ部分を抽出し、該
抽出した1ビツトのEDGデータと前記多値画像データ
(8ビツト)を出力する。変倍部307はEDGデータ及び多
値画像データの対をRAM309及び310に対して交互に書き
込みと読み出しを行い、アドレスコントローラ302の制
御と共に後述の主走査変倍処理を行う。また変倍部307
は画像データの補間処理も行う。フイルタ310は変倍処
理した画像データのフイルタ処理を行い、その出力はレ
ーザドライバ236に入力されて、出力画像315を得る。
That is, the image signal read by the CCD 211 is supplied to the amplifier (Amp) 3
The signal is amplified at 04 and converted to an 8-bit digital signal (multi-valued image data) from white (= 255) to black (= 0) by an A / D converter (A / D) 305. The character edge judging unit 306 extracts an edge portion such as a character or a line diagram from the multi-valued image data, and outputs the extracted 1-bit EDG data and the multi-valued image data (8 bits). The scaling unit 307 alternately writes and reads a pair of EDG data and multi-valued image data to and from the RAMs 309 and 310, and performs a main scanning scaling process described later together with the control of the address controller 302. In addition, magnification unit 307
Also performs interpolation processing of image data. The filter 310 performs a filtering process on the image data that has been subjected to the scaling process, and the output is input to the laser driver 236 to obtain an output image 315.

第3図は実施例の変倍部307のブロツク構成図であ
る。図において、変倍部307の入力は文字エツジ判定部3
06から送られる多値画像データ8ビツトとEDGデータ1
ビツトの合計9ビツトであり、変倍部307の出力も同じ
く9ビツトである。
FIG. 3 is a block diagram of the magnification unit 307 of the embodiment. In the figure, the input of the scaling unit 307 is the character edge determination unit 3
8-bit image data and EDG data 1 sent from 06
The total number of bits is 9 bits, and the output of the scaling unit 307 is also 9 bits.

VSYNCは副走査方向の同期信号、HSYNCは主走査方向の
同期信号、CLKは画素クロツク信号、VEは主走査方向の
画像有効区間を示す信号である。第5図はこれらの基本
的な信号のタイミングチヤートである。
VSYNC is a synchronization signal in the sub-scanning direction, HSYNC is a synchronization signal in the main scanning direction, CLK is a pixel clock signal, and VE is a signal indicating an image effective section in the main scanning direction. FIG. 5 is a timing chart of these basic signals.

更に、401,406,407,408は夫々9ビツトのセレクタで
あり、選択信号Sが論理0レベルの時はA側入力を選択
出力し、論理1レベルの時はB側入力を選択出力する。
414,415は夫々1ビツトのセレクタであり、選択信号S
との関係は前記と同様である。402,403,405は夫々9ビ
ツトのDタイプ・フリツプフロツプ(DFF)であり、各C
LK信号の立上がりで入力データをラツチする。404は補
間器であり、連続する2つの画像データ(EDGデータを
含む)間を補間率αに従つて線形補間する。413は補間
係数決定器であり、CPU301からの指定変倍率m%に応じ
たパラメータ情報に従つて補間率α(=0〜15)の情報
を発生する。同じくアドレスコントローラ302における
アドレスの更新を制御する。更に、409,411は双方向性
バツフア、410,416はインバータ、412は1ビツトのカウ
ンタを構成するDFFである。
Reference numerals 401, 406, 407, and 408 denote 9-bit selectors. When the selection signal S is at logic 0 level, the A side input is selected and output. When the selection signal S is at logic 1 level, the B side input is selected and output.
Reference numerals 414 and 415 denote 1-bit selectors, respectively.
Is the same as above. 402, 403, and 405 are 9-bit D-type flip-flops (DFFs).
The input data is latched at the rise of the LK signal. An interpolator 404 performs linear interpolation between two consecutive image data (including EDG data) according to an interpolation rate α. An interpolation coefficient determiner 413 generates information of the interpolation rate α (= 0 to 15) according to the parameter information from the CPU 301 corresponding to the designated scaling factor m%. Similarly, the address controller 302 controls updating of an address. Further, 409 and 411 are bi-directional buffers, 410 and 416 are inverters, and 412 is a DFF constituting a 1-bit counter.

かかる構成により、DFF412はVSYNC信号でリセツトさ
れ、その後はHSYNC信号で反転する。即ち、EVEN信号が
論理0レベルの時は、CCD211による原稿204の奇数ライ
ンの読み取りと該読み取りデータのRAM309への書き込
み、及びRAM310からの原稿204の直前の偶数ラインにつ
いての記憶データの読み出しに対応し、またEVEN信号が
論理1レベルの時は、CCD211による原稿204の偶数ライ
ンの読み取りと該読み取りデータのRAM310への書き込
み、及びRAM309からの原稿204の直前の奇数ラインにつ
いての記憶データの読み出しに対応する。
With this configuration, the DFF 412 is reset by the VSYNC signal and thereafter inverted by the HSYNC signal. That is, when the EVEN signal is at the logic 0 level, the CCD 211 reads an odd line of the document 204 and writes the read data to the RAM 309, and reads the stored data of the even line immediately before the document 204 from the RAM 310. When the EVEN signal is at the logic 1 level, the CCD 211 reads even lines of the document 204 and writes the read data to the RAM 310, and reads stored data of the odd lines just before the document 204 from the RAM 309. Corresponding.

MOD信号は、CPU301が送る信号であり、画像の拡大指
定(m>100)時には論理1レベル、縮小又は等倍指定
(m≦100)時には論理0レベルの信号である。
The MOD signal is a signal sent by the CPU 301, and is a logical 1 level signal when the image is designated to be enlarged (m> 100) and a logical 0 level when the image is designated to be reduced or equalized (m ≦ 100).

即ち、画像の拡大指定時には、CCD211で読み取つた画
像データは、セレクタ408を介して、奇数ラインの時はR
AM309に、また偶数ラインの時はRAM310に、夫々そのま
まで順次書き込まれる。一方、前記RAM309又は310に書
き込まれた画像データは、セレクタ407を介して拡大倍
率m%に応じて引き伸ばして読み出され、これらが補間
器404でデータ補間され、セレクタ406から出力される。
That is, at the time of specifying the enlargement of the image, the image data read by the CCD 211 is supplied to the selector 408 via the selector 408.
The data is sequentially written to the AM 309 and, in the case of an even line, to the RAM 310 as they are. On the other hand, the image data written in the RAM 309 or 310 is expanded and read out according to the enlargement factor m% via the selector 407, and these are interpolated by the interpolator 404 and output from the selector 406.

また、画像の縮小又は等倍指定時には、CCD211で読取
つた画像出データは、縮小倍率m%に応じて間引きさ
れ、併せて補間器404でデータ補間され、セレクタ408を
介して、奇数ライン時にはRAM309に、また偶数ライン時
にはRAM310に、夫々書き込まれる。一方、前記RAM309又
は310に書き込まれた画像データは、セレクタ407を介し
て読み出され、更にセレクタ406から出力される。
When an image is to be reduced or the same size is designated, the image output data read by the CCD 211 is decimated in accordance with the reduction ratio m%, and the data is interpolated by the interpolator 404. In the case of an even-numbered line, the data is written in the RAM 310. On the other hand, the image data written in the RAM 309 or 310 is read out via the selector 407 and further output from the selector 406.

第4図は実施例の補間器404のブロツク構成図であ
る。図において、601〜604は8ビツトのセレクタであ
り、夫々は、選択信号Sが論理0レベルの時はA側入力
を選択出力し、論理1レベルの時はB側入力を選択出力
する。606〜609は加算器であり、入力端子A,Bの各8ビ
ツトの多値画像データに対して(A+B)/2の演算を行
い、8ビツトの多値画像データを出力する。但し、1未
満は切り捨てる。
FIG. 4 is a block diagram of the interpolator 404 of the embodiment. In the figure, reference numerals 601 to 604 denote 8-bit selectors, each of which selectively outputs an A-side input when the selection signal S is at a logic 0 level, and selectively outputs a B-side input when the selection signal S is at a logic 1 level. Reference numerals 606 to 609 denote adders, which perform (A + B) / 2 operation on the 8-bit multi-valued image data of the input terminals A and B, and output 8-bit multi-valued image data. However, fractions less than 1 are discarded.

610はANDゲート、611はORゲートである。612は1ビツ
トのセレクタであり、選択入力S=0の時はA側入力、
S=1の時はB側入力を選択出力する。613は同じく1
ビツトのセレクタであり、更に選択入力S=2の時はC
側入力を選択出力する。
610 is an AND gate, and 611 is an OR gate. Reference numeral 612 denotes a 1-bit selector. When the selection input S = 0, the A side input is selected.
When S = 1, the B-side input is selected and output. 613 is also 1
It is a bit selector, and when the selection input S = 2, C
Select and output the side input.

かかる構成において、入力の画像データは1つ前の時
点の画像データAと現時点の画像データBである。各画
像データA、Bは夫々8ビツトの多値画像データA1,B1
と1ビツトのEDGデータA2,B2とから成つている。
In this configuration, the input image data is the immediately preceding image data A and the current image data B. Each of the image data A and B is an 8-bit multi-valued image data A1, B1
And 1-bit EDG data A2 and B2.

多値画像データA1,B1についてはセレクタ601〜604、
加算器606〜609、及び補間率α(=0〜15)により線形
補間演算が行われる。回路動作を数式で表わせば、補間
データY1は(2)式で求まる。
Selectors 601 to 604 for multi-valued image data A1 and B1,
Linear interpolation calculation is performed by the adders 606 to 609 and the interpolation rate α (= 0 to 15). If the circuit operation is expressed by a mathematical expression, the interpolation data Y1 can be obtained by the expression (2).

但し、1未満は切り捨てる。 However, fractions less than 1 are discarded.

一方、EDGデータA2,B2については、CPU301が送るiM信
号により、A2とB2のAND、A2とB2のOR、又は補間率αの
最上位ビット(bit3)によりA2とB2の何れかを選択する
場合の3通りの出力が得られる。CPU301は、現時点のED
GデータB2=0を保存するように変倍したい時はiM=
0、前時点のEDGデータA2=1又は現時点のEDGデータB2
=1を保存するように変倍する時はiM=1をセツトす
る。また、変倍前のEDGデータA2又はB2の形状に近く変
倍したい時はiM=2をセツトする。即ち、(2)式によ
れば、補間データY1は、αが小(bit3=0)の時にはA1
に近い値を再生するからセレクタ612はA2を選択し、ま
たαが大(bit3=1)の時にはB1に近い値を再生するか
らセレクタ612はB2を選択する。
On the other hand, as for the EDG data A2 and B2, one of A2 and B2 is selected based on the AND of A2 and B2, the OR of A2 and B2, or the most significant bit (bit 3) of the interpolation rate α according to the iM signal sent by the CPU 301. In this case, three types of outputs are obtained. CPU301 is the current ED
When you want to change the magnification so that G data B2 = 0 is saved, iM =
0, previous EDG data A2 = 1 or current EDG data B2
Set iM = 1 when scaling to preserve = 1. If the user wants to enlarge the magnification close to the shape of the EDG data A2 or B2 before magnification, iM = 2 is set. That is, according to equation (2), when α is small (bit3 = 0), the interpolation data Y1 is A1
The selector 612 selects A2 because it reproduces a value close to, and reproduces a value close to B1 when α is large (bit3 = 1), so that the selector 612 selects B2.

第5図は実施例の補間係数決定器413のブロツク構成
図である。図において、103は4ビツトのダウンカウン
タ(DCNTR)であり、そのロード入力端子Lが論理1レ
ベルの時にはCLK信号によりデータ入力端子Dの値R0が
ロードされ、その後は、イネーブル端子Eが論理1レベ
ルの間にCLK信号の各立上がりでカウントダウンし、カ
ウント出力が0になつた時はキヤリー出力端子RCに論理
1レベルを出力する。104は加算器(ADD)であり、入力
端子A,Bの和(A+B)を求めて出力すると共に、14ビ
ツト目(=8192)のキヤリーアウトが生じた時は端子C0
にキヤリーアウト信号(C0)を出力する。更に105〜107
は1ビツトのDFF、108は13ビツトのDFF、109はNANDゲー
ト、110はANDゲート、111は13ビツトのANDゲート、113,
114はORゲート、115〜117はインバータである。
FIG. 5 is a block diagram of the interpolation coefficient determiner 413 of the embodiment. In the figure, reference numeral 103 denotes a 4-bit down counter (DCNTR). When the load input terminal L is at the logical 1 level, the value R0 of the data input terminal D is loaded by the CLK signal. Counting is performed at each rising edge of the CLK signal during the level, and when the count output becomes 0, a logical 1 level is output to the carry output terminal RC. Reference numeral 104 denotes an adder (ADD), which calculates and outputs the sum (A + B) of the input terminals A and B, and outputs a signal at the terminal C0 when a carry-out of the 14th bit (= 8192) occurs.
The carry-out signal (C0) is output to Further 105-107
Is a 1-bit DFF, 108 is a 13-bit DFF, 109 is a NAND gate, 110 is an AND gate, 111 is a 13-bit AND gate, 113,
114 is an OR gate, and 115 to 117 are inverters.

また、101は4ビツトのレジスタ(R)、102は13ビツ
トのレジスタ(R)であり、夫々には予めCPU301から指
定倍率m%に応じた値がセツトされる。
Reference numeral 101 denotes a 4-bit register (R), and reference numeral 102 denotes a 13-bit register (R). A value corresponding to the designated magnification m% is set in advance by the CPU 301 in each of them.

指定倍率m%が等倍又は縮小(m≦100)の場合は、
倍率m%とレジスタ101にセツトする値R0及びレジスタ1
02にセツトする値R1との間には(3)式の関係ある。
If the specified magnification m% is the same size or reduced (m ≦ 100),
Magnification m%, value R0 set in register 101 and register 1
There is a relationship of equation (3) with the value R1 set to 02.

但し、0≦R1≦8192 (3)式において、R0の内容は8192(閾値数)の倍数
を定めるように機能しており、大まかには指定倍率m%
中の1〜1/2,1/2〜1/3,1/3〜1/4等の区間を分けるよう
に機能する。尚、この機能は回路上では第5図のDCNTR1
03,ANDゲート110,DFF107等が担う。またR1の内容は前記
各区間内の微細な倍率を補充するように機能する。
However, 0 ≦ R1 ≦ 8192 (3) In the equation (3), the content of R0 functions to determine a multiple of 8192 (the number of thresholds).
It functions to divide the sections such as 1-1 / 2, 1 / 2-1 / 3, 1 / 3-1 / 4 and so on. This function is implemented on the circuit by the DCNTR1
03, AND gate 110, DFF107, etc. Further, the content of R1 functions to supplement the fine magnification in each section.

従つて、等倍又は縮小倍率m%でコピーを行なう場合
においては、CPU301は予め(3)式を逆算して、レジス
タR0,R1に夫々表1のような値R0,R1をセツトする。
Therefore, when performing copying at the same magnification or the reduction magnification of m%, the CPU 301 pre-calculates the formula (3) and sets the values R0 and R1 as shown in Table 1 in the registers R0 and R1, respectively.

また、指定倍率m%が拡大(m>100)の場合は、倍
率m%とレジスタ102にセツトする値R1との間には
(4)式の関係がある。
Further, when the designated magnification m% is an enlargement (m> 100), there is a relation of the equation (4) between the magnification m% and the value R1 set in the register 102.

即ち、R0は不要なので、回路上では(3)式のR0の項
が機能しないようにレジスタ101に0をセツトする。従
つて、拡大倍率m%でコピーを行なう場合においては、
CPU301は予め(5)式でR1を求め、レジスタ102にセツ
トする。
That is, since R0 is unnecessary, 0 is set in the register 101 so that the term of R0 in the equation (3) does not function on the circuit. Therefore, when copying at the magnification of m%,
The CPU 301 obtains R1 in advance by the equation (5) and sets it in the register 102.

第6図は実施例のアドレスコントローラ302のブロツ
ク構成図である。図において、701〜703は夫々13ビツト
のカウンタである。このうちカウンタ701はCCD211の読
み取りアドレスを発生する。即ち、VE=0の間はリセツ
トされ、またVE=1の間は各CLK信号により順次カウン
トアツプし、0〜8191の連続したアドレスを発生する。
またカウンタ702はRAM309又は310のライトアドレス(WR
-ADD)を発生する。即ち、カウンタ702はVE=1で、か
つWCN=1の区間でのみカウントアツプする。またカウ
ンタ703はRAM309又は310のリードアドレス(RD-ADD)を
発生する。即ち、カウンタ703はVE=1で、かつRCN=1
の区間でのみカウントアツプする。
FIG. 6 is a block diagram of the address controller 302 of the embodiment. In the figure, reference numerals 701 to 703 denote 13-bit counters, respectively. The counter 701 generates a read address of the CCD 211. That is, while VE = 0, it is reset, and while VE = 1, it counts up sequentially by each CLK signal to generate a continuous address of 0-8191.
The counter 702 has a write address (WR) of the RAM 309 or 310.
-ADD). That is, the counter 702 counts up only in the section where VE = 1 and WCN = 1. The counter 703 generates a read address (RD-ADD) for the RAM 309 or 310. That is, the counter 703 has VE = 1 and RCN = 1.
Count up only in the section of.

第7図は実施例のフイルタ回路310のブロツク構成図
である。図において、901,902は8ビツトのフアースト
イン・フアーストアウト・メモリ(FIFO)であり、夫々
入力の多値画像データに対して1ライン分の遅延を与え
る。これらは直列に接続しているから、結果として3ラ
イン分の並列データが得られる。更に、904〜906,908〜
910及び912は夫々8ビツトのDFFであり、夫々CLK信号に
同期して多値画像データをラツチする。
FIG. 7 is a block diagram of the filter circuit 310 of the embodiment. In the figure, reference numerals 901 and 902 denote 8-bit first-in first-out memories (FIFO), each of which gives a delay of one line to input multi-valued image data. Since these are connected in series, three lines of parallel data are obtained as a result. Furthermore, 904 ~ 906,908 ~
Reference numerals 910 and 912 denote 8-bit DFFs, respectively, which latch multivalued image data in synchronization with the CLK signal.

今、第8図に示す如く、Xijを注目画素としてその周
囲に3×3のウインドウを考えると、DFF908は
(Xi-1,j)、DFF905は(Xi,j-1)、DFF909は(Xi,j)、
DFF912は(Xi,j+1)、DFF910は(Xi+1,j)を夫々記憶す
る。
Now, as shown in FIG. 8, considering a 3 × 3 window around X ij with X ij as a pixel of interest, DFF 908 is (X i-1, j ), DFF 905 is (X i, j-1 ), DFF 909 Is (X i, j ),
The DFF 912 stores (X i, j + 1 ), and the DFF 910 stores (X i + 1, j ).

913は加算器であり、4入力端子A〜Dの総和(A+
B+C+D)をとる。914はフイルタ演算器であり、2
入力端子A,Bについて(A+4B)/8のスムージングフイ
ルタ演算を行う。これに前記ウインドウ内の画素データ
を代入すると、注目画素Xijについてのスムージング演
算出力S0は(6)式で求まる。
Reference numeral 913 denotes an adder, which is a sum of four input terminals A to D (A +
B + C + D). Reference numeral 914 denotes a filter operation unit.
A smoothing filter operation of (A + 4B) / 8 is performed for the input terminals A and B. Substituting pixel data in the window to this, the smoothing operation output S0 for the pixel of interest X ij is calculated by equation (6).

915は同じくフイルタ演算器であり、2入力端子A,Bに
ついて(8B-A)/4のエツジ強調フイルタ演算を行う。同
じく前記ウインドウ内の画素データの演算で示すと、注
目画素Xijについてのエツジ強調演算出力E0は(7)式
で求まる。
Reference numeral 915 denotes a filter operation unit which performs (8B-A) / 4 edge emphasis filter operation on the two input terminals A and B. When also shown in the calculation of the pixel data in the window, edge enhancement computation output E0 of the target pixel X ij is calculated by equation (7).

また、903は1ビツトのFIFOであり、入力のEDGデータ
に対して1ライン分の遅延を与える。更に、各1ビツト
のDFF907及び911を介して多値画像データの注目画素Xij
とと対応するEDGデータとの同期がとられる。セレクタ9
16において、もしEDGデータ=0なら多値画像データは
エヅジ部分でないのでスムージング演算出力S0側を選択
出力し、EDGデータ=1なら多値画像データはエヅジ部
分なのでエツジ強調演算出力E0側を選択出力する。
Reference numeral 903 denotes a 1-bit FIFO which delays input EDG data by one line. Further, the pixel of interest X ij of the multi-valued image data is transmitted via DFF907 and 911 of each one bit.
Is synchronized with the corresponding EDG data. Selector 9
In step 16, if EDG data = 0, the multi-valued image data is not the edge portion, so the smoothing operation output S0 side is selected and output. If EDG data = 1, the multi-valued image data is the edge portion, the edge enhancement operation output E0 side is selectively output. I do.

<倍率m%が等倍又は縮小の場合の動作> 第9図は指定倍率m%が等倍又は縮小の場合を説明す
る一例の動作タイミングチヤートである。
<Operation when Magnification m% is the Same Size or Reduction> FIG. 9 is an example operation timing chart for explaining the case where the designated magnification m% is the same size or reduction.

《書き込み動作》 この場合の書き込み動作とは、CCD211で読取つた画像
データを倍率m%に応じて間引き、データ補間してRAM3
09又は310に書き込む動作である。
<< Writing operation >> In this case, the writing operation is to thin out the image data read by the CCD 211 according to the magnification m%, interpolate the data, and perform RAM interpolation.
This is the operation of writing to 09 or 310.

今、m≦100であるから、MOD=0である。例えば指定
倍率=42%とすると、表1よりR0=1,R1=3121の設定に
なる。
Now, since m ≦ 100, MOD = 0. For example, assuming that the designated magnification = 42%, R1 = 1 and R1 = 3121 are set according to Table 1.

以上により、まずVEの立上がりに同期してLCLR信号が
発生し、DCO=0,DAB=0になる。
As described above, first, an LCLR signal is generated in synchronization with the rise of VE, and DCO = 0 and DAB = 0.

次のCLK信号では、DCNTR=0(RC=1)になり、ADE
=1を満足する。これにより、WEN=1、即ち、画像デ
ータの書き込みとWR-ADDのインクリメントが可能にな
る。またAB=3121になるが、これは8192(閾値)を超え
ないから、C0=0である。またDAB=0であるから、補
間率α=0であり、画像データY1=A1がRAM309又は310
に書き込まれる。
In the next CLK signal, DCNTR = 0 (RC = 1) and ADE
= 1 is satisfied. As a result, WEN = 1, that is, writing of image data and increment of WR-ADD become possible. AB = 3121, which does not exceed 8192 (threshold), so that C0 = 0. Since DAB = 0, the interpolation rate α = 0, and the image data Y1 = A1 is stored in the RAM 309 or 310.
Is written to.

次のCLK信号では、WR-ADD=1になる。またDCNTR=1
(RC=0)になり、ADE=1を満足しない。これによ
り、WEN=0、即ち、画像データの書き込みとWR-ADDの
インクリメントが不能になる。またDABは3121を保持し
た結果、AB=3121になるが、これはまだ8192を超えない
から、C0=0である。またDAB=3121によりα=6にな
る。
In the next CLK signal, WR-ADD = 1. DCNTR = 1
(RC = 0), and ADE = 1 is not satisfied. As a result, WEN = 0, that is, writing of image data and incrementing of WR-ADD become impossible. DAB holds 3121, resulting in AB = 3121, but this does not exceed 8192, so C0 = 0. Α = 6 by DAB = 3121.

次のCLK信号では、WR-ADD=1のままである。またDCN
TR=0(RC=1)になり、AED=1を満足する。これに
より、WEN=1、即ち、画像データの書き込みとWR-ADD
のインクリメントが可能になる。またAB=6242になる
が、これはまだ8192を超えないから、C0=0である。ま
たα=6であるから、CCD-ADD(1)の画像データA1及
びCCD-ADD(2)の画像データB1は、Y1={10×A1+6
×B1}/16の割合で補間形成され、RAM309又は310に書き
込まれる。
In the next CLK signal, WR-ADD = 1 remains. Also DCN
TR = 0 (RC = 1), which satisfies AED = 1. Thereby, WEN = 1, that is, writing of image data and WR-ADD
Can be incremented. AB = 6242, but this does not exceed 8192, so C0 = 0. Further, since α = 6, the image data A1 of the CCD-ADD (1) and the image data B1 of the CCD-ADD (2) are Y1 = {10 × A1 + 6.
It is interpolated at the rate of × B1} / 16 and written to the RAM 309 or 310.

同様にして進み、更に2つ目のCLK信号では、DCNTR=
0(RC=1)になり、ADE=1を満足する。これによ
り、WEN=1、即ち、画像データの書き込みとWR-ADDの
インクリメントが可能になる。またAB=1171になり、こ
れは8192を一旦超えたものであるから、C0=1になる。
またα=12であるから、CCD-ADD(3)の画像データA1
及びCCD-ADD(4)の画像データB1は、Y1={4×A1+1
2×B1}/16の割合で補間形成され、RAM309又は310に書
き込まれる。
Proceed in the same manner, and for the second CLK signal, DCNTR =
0 (RC = 1), which satisfies ADE = 1. As a result, WEN = 1, that is, writing of image data and increment of WR-ADD become possible. AB = 1117, which once exceeded 8192, and C0 = 1.
Also, since α = 12, the image data A1 of CCD-ADD (3)
And image data B1 of CCD-ADD (4) is Y1 = {4 × A1 + 1
Interpolation is formed at a rate of 2 × B1} / 16, and is written to the RAM 309 or 310.

次のCLK信号では、WR-ADD=3になる。またDCNTR=1
(RC=0)になり、ADE=1を満足しない。これによ
り、WEN=0、即ち、画像データの書き込みとWR-ADDの
インクリメントが不能になる。またDCOについては、C0
=1を保持した結果DCO=1になる。
In the next CLK signal, WR-ADD = 3. DCNTR = 1
(RC = 0), and ADE = 1 is not satisfied. As a result, WEN = 0, that is, writing of image data and incrementing of WR-ADD become impossible. For DCO, C0
As a result of holding = 1, DCO = 1.

次のCLK信号では、DCO=1のために、DCNTR103のイネ
ーブル端子E=0になり、カウントダウンできない。即
ち、DCNTR=1(RC=0)のままである。従つてADE=1
を満足しない。これにより、WEN=0、即ち、画像デー
タの書き込みとWR-ADDのインクリメントが不能になる。
またAB=1171のままであり、これは8192を超えないか
ら、C0=0である。
In the next CLK signal, since DCO = 1, the enable terminal E of DCNTR103 becomes 0, and the countdown cannot be performed. That is, DCNTR = 1 (RC = 0) remains. Therefore, ADE = 1
Not satisfied. As a result, WEN = 0, that is, writing of image data and incrementing of WR-ADD become impossible.
Also, AB = 1117 remains, which does not exceed 8192, so C0 = 0.

このように、DCO=1になるとWR-ADDのインクリメン
トが1画素分阻止(間引き)され、上記の大まかな区間
1〜1/2,1/2〜1/3,1/3〜1/4等内における微細な縮小変
倍が適正に行われる。
As described above, when DCO = 1, the increment of WR-ADD is blocked (decimated) by one pixel, and the above rough sections 1 to 1/2, 1/2 to 1/3, 1/3 to 1/4 Fine reduction / magnification / reduction within an equal space is properly performed.

以上の如く、パラメータR0,R1の値に応じた割合でWR-
ADDが進行し、画像データの書き込みのタイミングには
適正な濃度の画像データY1が補間形成されて、RAM309又
は310に書き込まれる。これを原稿読み取りのCCD-ADDの
進行状況と比較すると、間引きの割合は略3/7(略42
%)になつていることが解る。
As described above, WR- at a rate corresponding to the values of parameters R0 and R1
ADD proceeds, and image data Y1 having an appropriate density is interpolated and written to the RAM 309 or 310 at the timing of writing the image data. Comparing this with the progress of CCD-ADD for manuscript reading, the rate of thinning is approximately 3/7 (approximately 42
%).

《読み出し動作》 この場合の読み出し動作とは、上述の倍率m%に応じ
てデータ補間、間引きしてRAM309又は310に書き込まれ
た画像データを順次読み出してプリンタに出力する動作
である。
<< Reading Operation >> In this case, the reading operation is an operation of sequentially reading out image data written to the RAM 309 or 310 after data interpolation and thinning according to the above-mentioned magnification m% and outputting the image data to the printer.

今、m≦100であるから、MOD=0である。従つて、常
にREN=1であり、RD-ADDはCCD-ADDと同様にCLK信号毎
に単純に増大する。こうして読み出された画像データは
第3図のセレクタ406を介して出力される。
Now, since m ≦ 100, MOD = 0. Therefore, REN is always 1, and RD-ADD simply increases for each CLK signal, similarly to CCD-ADD. The image data thus read is output via the selector 406 in FIG.

尚、指定倍率m%が縮小の場合はEDGデータの欠落が
懸念されるため、第4図のOR補間を選択すべく、iM=1
とする。
When the designated magnification m% is reduced, there is a concern that EDG data may be missing. Therefore, in order to select the OR interpolation shown in FIG.
And

<倍率m%が拡大の場合の動作> 第10図は指定倍率m%が拡大の場合を説明する一例の
動作タイミングチヤートである。
<Operation When Magnification m% is Enlarged> FIG. 10 is an example of an operation timing chart for explaining a case where the designated magnification m% is enlarged.

《書き込み動作》 この場合の書き込み動作とは、CCD211で読取つた画像
データを順次そのままRAM309又は310に書き込む動作で
ある。
<< Writing Operation >> The writing operation in this case is an operation of sequentially writing the image data read by the CCD 211 into the RAM 309 or 310 as it is.

今、m>100であるから、MOD=1である。従つて、常
にWEN=1であり、WR-ADDはCCD-ADDと同様にCLK信号毎
に単純に増大する。こうして、CCD211の側から送られた
画像データは第3図のセレクタ408を介してRAM309又は3
10に順次書き込まれる。
Now, since m> 100, MOD = 1. Therefore, WEN is always 1, and WR-ADD simply increases with every CLK signal as in CCD-ADD. Thus, the image data sent from the CCD 211 is transferred to the RAM 309 or 3 via the selector 408 shown in FIG.
It is sequentially written to 10.

《読み出し動作》 この場合の読み出し動作とは、上述のRAM309又は310
にそのまま書き込まれた画像データを順次読み出し、こ
れらをデータ補間して、プリンタに出力する動作であ
る。
<< Read Operation >> The read operation in this case is the above-described RAM 309 or 310
This is an operation of sequentially reading out image data written as it is, interpolating the data, and outputting the data to the printer.

今、m>100であるから、MOD=1である。例えば指定
倍率=142%とすると、R0=0,R1=5769の設定になる。
またR0=0であるから、常にDCNTR=0(RC=1)であ
る。
Now, since m> 100, MOD = 1. For example, if the designated magnification is 142%, the settings are R0 = 0 and R1 = 5769.
Also, since R0 = 0, DCNTR = 0 (RC = 1) always.

以上により、まずVEの立上がりに同期してLCLR信号が
発生し、DCO=0,DAB=0になる。
As described above, first, an LCLR signal is generated in synchronization with the rise of VE, and DCO = 0 and DAB = 0.

次のCLK信号では、ADE=1を満足する。これによりAB
=5769になるが、これは8192を超えないから、C0=0で
ある。またREN=0であるから、RD-ADD=0のままであ
り、RAM309又は310の0番地の画像データが読み出され
ている。
In the next CLK signal, ADE = 1 is satisfied. This gives AB
= 5769, but this does not exceed 8192, so C0 = 0. Also, since REN = 0, RD-ADD = 0 remains, and the image data at address 0 of the RAM 309 or 310 is read.

次のCLK信号では、DABが5769を保持した結果、AB=33
46になる。これは8192を一旦超えたものであるから、C0
=1である。またα=11であるから、RD-ADD(0)の画
像データA1及びRD-ADD(0)の画像データB1は、Y1=
{5×A1+11×B1}/16の割合で補間形成され、セレク
タ406から出力される。
In the next CLK signal, DAB holds 5769 and AB = 33
It becomes 46. Since this is once over 8192, C0
= 1. Further, since α = 11, the image data A1 of RD-ADD (0) and the image data B1 of RD-ADD (0) are expressed as Y1 =
It is interpolated and formed at a rate of {5 × A1 + 11 × B1} / 16 and output from the selector 406.

次のCLK信号では、DABが3346を保持した結果、AB=92
3になる。これは8192をもう一度超えたものであるか
ら、C0=1である。またα=6になるから、同じくRD-A
DD(0)の画像データA1及びRD-ADD(0)の画像データ
B1は、Y1={10×A1+6×B1}/16の割合で補間形成さ
れ、セレクタ406から出力される。また、この時点ではD
COが1を保持した結果、REN=1、即ち、RD-ADDのイン
クリメントが可能になる。
In the next CLK signal, as a result of DAB holding 3346, AB = 92
Becomes 3. Since this is again over 8192, C0 = 1. Also, since α = 6, RD-A
DD (0) image data A1 and RD-ADD (0) image data
B1 is interpolated and formed at a rate of Y1 = {10 × A1 + 6 × B1} / 16 and output from the selector 406. Also, at this point, D
As a result of CO holding 1, REN = 1, that is, RD-ADD can be incremented.

次のCLK信号では、RD-ADD=1になる。またDABが923
を保持した結果、AB=6692になる。これは8192を超えな
いものであるから、C0=0である。またα=1になるか
ら、RD-ADD(0)の画像データA1及びRD-ADD(1)の画
像データB1は、Y1={15×A1+1×B1}/16の割合で補
間形成され、セレクタ406から出力される。また、この
時点ではDCOが1を保持しているから、REN=1、即ち、
RD-ADDのインクリメントが可能である。
In the next CLK signal, RD-ADD = 1. DAB is 923
Holds, AB = 6692. Since this does not exceed 8192, C0 = 0. Further, since α = 1, the image data A1 of RD-ADD (0) and the image data B1 of RD-ADD (1) are interpolated and formed at a ratio of Y1 = {15 × A1 + 1 × B1} / 16, and the selector Output from 406. At this time, since DCO holds 1, REN = 1, that is,
RD-ADD can be incremented.

このように、R1の値に応じた割合でRD-ADDが進行し、
各画像データの出力のタイミングには適正な濃度の画像
データY1が補間形成されて、セレクタ406から出力され
る。これを元のCCD-ADDの進行状況と比較すると、拡大
率は略142%になつていることが解る。
Thus, RD-ADD proceeds at a rate according to the value of R1,
At the output timing of each image data, the image data Y1 having an appropriate density is interpolated and output from the selector 406. Comparing this with the original progress of CCD-ADD, it can be seen that the expansion rate is about 142%.

尚、指定倍率m%が拡大の場合は、EDGデータにより
元の画像の形状を保存するために、第4図においてiM=
2とする。
When the designated magnification m% is enlarged, in order to preserve the shape of the original image by EDG data, iM =
Let it be 2.

第11図は実施例のメイン制御のフローチヤートであ
る。図において、ステツプS1301では操作部より変倍率
m%を入力する。ステツプS1302ではmの値を100と比較
し、拡大であるか、縮小又は等倍であるかを判別する。
拡大の時はステツプS1303で拡大用のデータ(V,MOD、R
0,R1等)をセツトする。縮小又は等倍の時はステツプS1
304で縮小又は等倍用のデータをセツトする。ステツプ1
305ではコピー動作を行う。
FIG. 11 is a flowchart of the main control of the embodiment. In the figure, in step S1301, a scaling factor m% is input from the operation unit. In step S1302, the value of m is compared with 100 to determine whether the image is enlarged, reduced or equal in size.
In the case of enlargement, data for enlargement (V, MOD, R
0, R1 etc.). Step S1 when reducing or equalizing
At 304, data for reduction or equal magnification is set. Step 1
At 305, a copy operation is performed.

[他の実施例] 尚、上述施例では線形補間を採用したがこれに限らな
い。例えばsinc補間でも良い。
[Other Embodiments] In the above embodiment, linear interpolation is adopted, but the present invention is not limited to this. For example, sinc interpolation may be used.

第14図は他の実施例のsinc補間器のブロツク構成図で
ある。図において、1401〜1404は各8ビツトのDFFであ
り、画像データに対して各1画素分の遅延を与える。14
05,1406は4ビツトのDFFであり、補間係数α(上述実施
例と同一で良い)に対して各1画素分の遅延を与える。
1407〜1410はルツクアツプテーブル(LUT)であり、予
め、(8)式〜(11)式の値が計算されて、ROM(LUT)
に格納されている。
FIG. 14 is a block diagram of a sinc interpolator according to another embodiment. In the figure, reference numerals 1401 to 1404 denote 8-bit DFFs, each of which delays image data by one pixel. 14
05 and 1406 are 4-bit DFFs, each of which gives a delay of one pixel to the interpolation coefficient α (which may be the same as in the above embodiment).
Reference numerals 1407 to 1410 denote look-up tables (LUTs). The values of the equations (8) to (11) are calculated in advance, and the ROM (LUT) is calculated.
Is stored in

a-2=b-2×γ a-1=b-1×γ a0=b0×γ a1=b1×γ (8) 但し、 更に、1411〜1414は乗算器、1415は加算器である。
今、DFF1401〜1404の出力を夫々Xt+1,Xt,Xt-1,Xt-2とす
ると、補間出力ytは(12)式で求まる。
a -2 = b -2 × γ a -1 = b -1 × γ a 0 = b 0 × γ a 1 = b 1 × γ (8) Further, 1411 to 1414 are multipliers, and 1415 is an adder.
Now, when the output of DFF1401~1404 each X t + 1, X t, and X t-1, X t- 2, interpolated output y t is determined by equation (12).

yt=a-2・Xt-2+a-1・Xt-1+a0・Xt+a1・Xt+1(12) 尚、上述実施例では、補間器404の出力を縮小倍率m
%に応じて間引いたがこれに限らない。
y t = a -2 · X t -2 + a -1 · X t-1 + a 0 · X t + a 1 · X t + 1 (12) In the above embodiment, reducing the output of the interpolator 404 magnification m
Thinned out according to%, but not limited to this.

補間器404の入力を縮小倍率m%に応じて間引いても
良い。
The input of the interpolator 404 may be thinned out according to the reduction ratio m%.

[発明の効果] 以上説明したように本発明によれば、変倍対象の画像
データの特徴部分が保存されやすく、良好な品位の変倍
画像を得ることが可能になる。特に、縮小処理において
は、上記に加えて、その変倍処理を縮小対象の画像デー
タの入力に同期して生成することで高速に縮小画像を得
ることが可能になる。
[Effects of the Invention] As described above, according to the present invention, a characteristic portion of image data to be scaled can be easily stored, and a high-quality scaled image can be obtained. In particular, in the reduction process, in addition to the above, by generating the scaling process in synchronization with the input of the image data to be reduced, a reduced image can be obtained at high speed.

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

第1図は実施例の画像処理装置のブロツク構成図、 第2図は実施例の画像処理装置の概略断面図、 第3図は実施例の変倍部307の構成図、 第4図は実施例の補間器404のブロツク構成図、 第5図は実施例の補間係数決定器413のブロツク構成
図、 第6図は実施例のアドレスコントローラ302のブロツク
構成図、 第7図は実施例のフイルタ回路310のブロツク構成図、 第8図は注目画素Xijとその周囲の3×3のウインドウ
にある画素との関係を示す図、 第9図は指定倍率m%が等倍又は縮小の場合を説明する
一例の動作タイミングチヤート、 第10図は指定倍率m%が拡大の場合を説明する一例の動
作タイミングチヤート、 第11図は実施例のメイン制御のフローチヤート、 第12図は基本タイミング信号のタイミングチヤート、 第13図(A)〜(D)は実施例の画像処理例を説明する
図、 第14図は他の実施例のsinc補間器のブロツク構成図であ
る。 図中、211……CCD、236……レーザドライバ、301……CP
U、304……増幅器(Amp)、305……A/D変換器(A/D)、
306……文字エツジ判定部、307……変倍部、308……フ
ルイタ回路、309,310……RAM、311……I/Oコントロー
ラ、312……操作部、313……モータドライバ、314……
モータ、316……ROMテーブルである。
FIG. 1 is a block diagram of the image processing apparatus according to the embodiment, FIG. 2 is a schematic sectional view of the image processing apparatus according to the embodiment, FIG. 3 is a configuration diagram of a scaling unit 307 according to the embodiment, and FIG. FIG. 5 is a block diagram of an interpolator 413 of the embodiment, FIG. 6 is a block diagram of an address controller 302 of the embodiment, and FIG. 7 is a filter of the embodiment. FIG. 8 is a block diagram of the circuit 310, FIG. 8 is a diagram showing the relationship between the pixel of interest Xij and the pixels in the surrounding 3 × 3 window, and FIG. 9 is a diagram showing the case where the designated magnification m% is the same or reduced. FIG. 10 is an example of an operation timing chart illustrating a case where the designated magnification m% is enlarged, FIG. 11 is a flow chart of a main control of the embodiment, and FIG. 12 is a diagram of a basic timing signal. Timing chart, FIGS. 13 (A)-(D) Diagram for explaining an image processing example of 施例, FIG. 14 is a block diagram of a sinc interpolator according to another embodiment. In the figure, 211 ... CCD, 236 ... Laser driver, 301 ... CP
U, 304: Amplifier (Amp), 305: A / D converter (A / D),
306: Character edge determination unit, 307: Magnification unit, 308: Fluid circuit, 309, 310 RAM, 311 I / O controller, 312 Operation unit, 313 Motor driver, 314
Motor, 316 ... ROM table.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) H04N 1/387 - 1/393 G06T 3/00──────────────────────────────────────────────────続 き Continuation of the front page (58) Field surveyed (Int.Cl. 6 , DB name) H04N 1/387-1/393 G06T 3/00

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】画像データの縮小処理を行なう画像処理装
置において、 画像データを所定のクロックに同期して入力する入力手
段と、 設定された縮小率の逆数を前記クロックに同期して累積
加算する加算手段と、 該加算結果の整数部分で示される位置の入力画素と当該
入力画素の隣接画素間において、前記加算結果の小数点
以下の値で示される位置における画素データを当該位置
を挟む2入力画素データに基づいて補間生成する補間手
段と 該補間手段によって補間生成された画素データを縮小画
像の画素データとして所定のメモリに記憶する記憶手段
と を備えることを特徴とする画像処理装置。
1. An image processing apparatus for reducing image data, comprising: input means for inputting image data in synchronization with a predetermined clock; and cumulative addition of a reciprocal of a set reduction ratio in synchronization with the clock. Adding means, between an input pixel at a position indicated by an integer part of the addition result and a pixel adjacent to the input pixel, pixel data at a position indicated by a value after the decimal point of the addition result, two input pixels sandwiching the position An image processing apparatus comprising: an interpolating unit that generates an interpolation based on data; and a storage unit that stores pixel data interpolated and generated by the interpolating unit in a predetermined memory as pixel data of a reduced image.
【請求項2】前記補間手段は、前記少数点で示される位
置における画素データを、当該位置を挟む2入力画素デ
ータを線形補間して生成することを特徴とする請求項第
1項に記載の画像処理装置。
2. The apparatus according to claim 1, wherein said interpolation means generates the pixel data at the position indicated by the decimal point by linearly interpolating two input pixel data sandwiching the position. Image processing device.
【請求項3】画像データの拡大処理を行なう画像処理装
置において、 画像データを所定のクロックに同期して入力する入力手
段と、 入力した画像データを所定のメモリに格納する格納手段
と、 設定された拡大率の逆数を前記クロックに同期して累積
加算する加算手段と、 該加算結果の整数部分で示されるアドレス位置の画素と
当該画素の隣接する画素の2画素分のデータを前記メモ
リから読み出す読出手段と、 該読出手段で読出された2画素データ間の、前記加算結
果の少数点以下の値で示される位置における画素データ
を当該位置を挟む2画素データに基づいて補間生成する
補間手段と 該補間手段によって補間生成された画素データを拡大画
像の画素データとして出力する出力手段と を備えることを特徴とする画像処理装置。
3. An image processing apparatus for performing image data enlargement processing, comprising: input means for inputting image data in synchronization with a predetermined clock; and storage means for storing the input image data in a predetermined memory. Adding means for accumulatively adding the reciprocal of the enlargement ratio in synchronization with the clock; and reading out data from the memory for two pixels of a pixel at an address position indicated by an integer part of the addition result and a pixel adjacent to the pixel. Reading means; and interpolating means for interpolating and generating pixel data at a position indicated by a value less than the decimal point of the addition result between the two pixel data read by the reading means, based on the two pixel data sandwiching the position. Output means for outputting pixel data interpolated and generated by said interpolation means as pixel data of an enlarged image.
【請求項4】前記補間手段は、前記小数点で示される位
置における画素データを、当該位置を挟む2入力画素デ
ータを線形補間して生成することを特徴とする請求項第
3項に記載の画像処理装置。
4. The image according to claim 3, wherein said interpolation means generates pixel data at the position indicated by the decimal point by linearly interpolating two input pixel data sandwiching the position. Processing equipment.
【請求項5】画像データの縮小処理を行なう画像処理装
置において、 画像データを所定のクロックに同期して入力する入力手
段と、 設定された縮小率の逆数値に基づく基本間引き間隔を示
す第1の値と、間引き間隔を調整する第2の値を設定す
る設定手段と、 前記第1の値を前記クロックに同期して計数すること
で、縮小画像の書き込みアドレスを更新するアドレス発
生手段と、 前記第2の値を前記クロックに同期して累積加算し、当
該累積加算値が入力画像の画素間の距離に対応する値を
超えるとキャリー信号を出力し、当該キャリー信号を前
記アドレス発生手段を一時的に停止させる信号として出
力する加算手段と、 該加算手段による加算するタイミングで入力されていた
連続する2つの画素データの間の、前記加算手段で加算
された値に応じた位置の補間画素データを発生する補間
画素発生手段と、 該補間画素発生手段による補間画素データを、前記アド
レス発生手段で発生したアドレス位置に従って所定のメ
モリに縮小画像の画素データとして出力する出力手段と を備えることを特徴とする画像処理装置。
5. An image processing apparatus for performing image data reduction processing, comprising: input means for inputting image data in synchronization with a predetermined clock; and a first thinning interval indicating a basic thinning interval based on a reciprocal value of a set reduction ratio. Setting means for setting a second value for adjusting the thinning interval; and address generating means for updating the write address of the reduced image by counting the first value in synchronization with the clock. The second value is cumulatively added in synchronization with the clock. When the cumulative value exceeds a value corresponding to the distance between pixels of the input image, a carry signal is output, and the carry signal is transmitted to the address generating means. Adding means for outputting a signal for temporarily stopping, and adding by the adding means between two consecutive pixel data inputted at the timing of addition by the adding means Interpolated pixel generating means for generating interpolated pixel data at a position corresponding to a value; outputting interpolated pixel data by said interpolated pixel generating means to a predetermined memory as pixel data of a reduced image in accordance with an address position generated by said address generating means An image processing apparatus comprising:
JP1199344A 1989-08-02 1989-08-02 Image processing device Expired - Lifetime JP2829930B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP1199344A JP2829930B2 (en) 1989-08-02 1989-08-02 Image processing device
US08/361,470 US5729357A (en) 1989-08-02 1994-12-22 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1199344A JP2829930B2 (en) 1989-08-02 1989-08-02 Image processing device

Publications (2)

Publication Number Publication Date
JPH0364165A JPH0364165A (en) 1991-03-19
JP2829930B2 true JP2829930B2 (en) 1998-12-02

Family

ID=16406214

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1199344A Expired - Lifetime JP2829930B2 (en) 1989-08-02 1989-08-02 Image processing device

Country Status (1)

Country Link
JP (1) JP2829930B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3162792B2 (en) * 1992-04-17 2001-05-08 キヤノン株式会社 Image processing device
JP2000177188A (en) 1998-12-17 2000-06-27 Brother Ind Ltd Duplicator and memory medium

Also Published As

Publication number Publication date
JPH0364165A (en) 1991-03-19

Similar Documents

Publication Publication Date Title
US5202670A (en) Image processing apparatus
JPH07220061A (en) Picture interpolation device
JPH11175710A (en) Picture forming device
JP2906791B2 (en) Image processing device
JPH07131634A (en) Image processor
EP2111032A2 (en) Image processing apparatus and method thereof
JP2000013594A (en) Image processor, image processing method therefor and recording medium
JP2829931B2 (en) Image processing device
JPH0879516A (en) Image processor
JP2829930B2 (en) Image processing device
JP3706830B2 (en) Image signal processing device
JPH0965114A (en) Variable power controller for image processor
US5729357A (en) Image processing apparatus
JPH1141473A (en) Image processor, image recording device, and image forming device
JPH02301367A (en) Variable power processing unit for picture data
JPH05135165A (en) Image processor
US5764370A (en) Enlargement and reduction apparatus for an image forming apparatus
JP3225884B2 (en) Image processing device, image processing method, image reading device, copying machine, and recording medium
EP1191480A2 (en) Image processing method and image processing device
JP4068769B2 (en) Image processing apparatus and tilt correction method thereof
JP4862747B2 (en) Data interpolation method and image scaling method Image processing apparatus
JP3054299B2 (en) Image processing apparatus and method
JP2555199B2 (en) Image reading method
KR100211838B1 (en) Apparatus for reducing picture image
JPH08265562A (en) Picture magnification device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070925

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20080925

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090925

Year of fee payment: 11

EXPY Cancellation because of completion of term