JP3354651B2 - Image scaling method - Google Patents

Image scaling method

Info

Publication number
JP3354651B2
JP3354651B2 JP24056693A JP24056693A JP3354651B2 JP 3354651 B2 JP3354651 B2 JP 3354651B2 JP 24056693 A JP24056693 A JP 24056693A JP 24056693 A JP24056693 A JP 24056693A JP 3354651 B2 JP3354651 B2 JP 3354651B2
Authority
JP
Japan
Prior art keywords
frequency
data
write clock
image
clock
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
JP24056693A
Other languages
Japanese (ja)
Other versions
JPH0774938A (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.)
Katsuragawa Electric Co Ltd
Original Assignee
Katsuragawa Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Katsuragawa Electric Co Ltd filed Critical Katsuragawa Electric Co Ltd
Priority to JP24056693A priority Critical patent/JP3354651B2/en
Publication of JPH0774938A publication Critical patent/JPH0774938A/en
Application granted granted Critical
Publication of JP3354651B2 publication Critical patent/JP3354651B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、デジタル画像形成装置
において原画像から拡大像または縮小像を得るための画
像変倍方法に関し、特には、原画像をイメージスキャナ
により画素毎に読み取って時系列の2値電気信号に変換
し、これをデータ処理して原画像の拡大または縮小を行
なう画像変倍方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image scaling method for obtaining an enlarged or reduced image from an original image in a digital image forming apparatus, and more particularly, to a method of reading an original image for each pixel by an image scanner to obtain a time series image. The present invention relates to an image scaling method for converting an electric signal into a binary electric signal, and processing the data to enlarge or reduce an original image.

【0002】[0002]

【従来の技術】デジタル複写機やデジタルプリンタ等の
デジタル画像形成装置にあっては、原画像をCCDスキ
ャナ等のイメージスキャナにより画素的に読み取り、こ
れを時系列の2値電気信号に変換したのち、LEDまた
はレーザー等の光出力として発出して画像形成を行な
う。このような装置において、原画像を拡大または縮小
(以下「変倍」という)して形成する場合、スキャナに
よる変倍動作に関連して主走査(原画像の幅方向の走
査)についてはデータ処理による読み取り信号の伸張/
圧縮による調整、副走査(原画像の移動方向の走査)に
ついて倍率に応じた原稿送り速度の調整を必要とする。
一般に、副走査方向の調整は駆動パルスモータの制御に
より行なわれ、主走査方向については、ソフトウェアや
ハードウェアによる入力(読み取り)データの高速のデ
ータ処理が行われる。
2. Description of the Related Art In a digital image forming apparatus such as a digital copying machine or a digital printer, an original image is read pixelwise by an image scanner such as a CCD scanner, and is converted into a time-series binary electric signal. The light is emitted as a light output of an LED or a laser to form an image. In such an apparatus, when an original image is formed by enlarging or reducing (hereinafter, referred to as “magnification”), data processing is performed for main scanning (scanning of the original image in the width direction) in association with a magnification operation by a scanner. Of read signal by
It is necessary to adjust the document feed speed according to the magnification for the adjustment by compression and the sub-scan (scan in the moving direction of the original image).
Generally, adjustment in the sub-scanning direction is performed by controlling a driving pulse motor, and in the main scanning direction, high-speed data processing of input (reading) data by software or hardware is performed.

【0003】主走査方向のデータ処理としては、原画像
からの入力信号を所定の分周器により設定倍率に従って
分周して必要な信号を得る方法が知られている。
As a data processing in the main scanning direction, a method is known in which an input signal from an original image is frequency-divided by a predetermined frequency divider according to a set magnification to obtain a necessary signal.

【0004】[0004]

【発明が解決しようとする課題】しかしながらこのよう
な従来方法においては、任意の倍率の設定、特に0.1
%刻みといった微小の倍率変更に対しては、充分に対応
することが難しい。
However, in such a conventional method, an arbitrary magnification is set, in particular, 0.1.
It is difficult to sufficiently cope with a minute change in magnification such as% increment.

【0005】[0005]

【課題を解決するための手段】本発明は上記点に鑑みて
なされたもので、本発明による画像変倍方法は、原画像
を画素的に主走査して時系列の2値電気信号の入力デー
タに変換し、この入力データを処理することにより変倍
画像出力データを形成する画像変倍方法において、入力
データの書込みクロックの周波数(FWR)を調整可能
に、出力データの読出しクロックの周波数(FRD)を固
定とし a×(m/100)×(fBS/fRD) (ここで、a=1,2,3…の整数、m=倍率、 fBS=書込クロックの基本波の周波数、 fRD=読み出しクロックの周波数) からなる整数の数列(計算値が小数値である場合には小
数点第1位を四捨五入して整数とする)を求め、この数
列の隣合う各数の差で構成される最終の数列に基づき、
書込みクロックの基本波のパルスをカウントして、入力
データの書込みクロックの周波数を調整することを特徴
とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and an image scaling method according to the present invention is a method of inputting a time-series binary electric signal by main-scanning an original image in pixels. In an image scaling method of forming scaled image output data by converting the data into data and processing the input data, the frequency (FWR) of the write clock of the input data can be adjusted so that the frequency of the read clock of the output data (FWR) can be adjusted. the FRD) is fixed and with a × (m / 100) × (fBS / fRD) ( where, a = 1, 2, 3 ... integer, m = magnification, fBS = the frequency of the fundamental wave of the write clock, FRD = Frequency of the read clock) to obtain a sequence of integers (if the calculated value is a decimal value, round the first decimal place to an integer) and calculate this number
Based on the final sequence consisting of the difference between each number in the column,
Count the pulses of the fundamental wave of the write clock and input
The frequency of the data write clock is adjusted .

【0006】[0006]

【作用】上記手段により入力データは、上式により計算
された数列に基づき間引きまたは重複されて設定した倍
率の出力データに変換される。
According to the above-mentioned means, the input data is converted into output data of a set magnification by thinning out or overlapping based on the sequence calculated by the above equation.

【0007】[0007]

【実施例】以下、図面を参照として本発明の実施例につ
き説明する。図1は本発明による画像変倍方法の概要を
示すもので、イメージスキャナ等から入力された2値電
気信号化された入力データ(DATE_WR)はFIFO(Fir
st In First Out)メモリによりデータ処理されて変倍
画像用の出力データ(DATE_RD)として出力される。F
IFOメモリはデータの書込みと読み出しとの動作を、
完全に非同期した形で、即ちそれぞれが独立したクロッ
ク(書込みクロックCLK_WR、読み出しクロックCLD_RD)
に基づいて行なうもので、書込みクロック(CLK_WR)の
周波数をfWR、読み出しクロック(CLK_RD)の周波数を
RDとすると、 (1) fWR=fRDのとき、入力データ(DATA_WR)と出力
データ(DATA_RD)は同じであり、等倍の画像を形成す
る。 (2) fWR>fRDのとき データの読み出しに対し、書込
みデータが過剰となるために、データが間引かれ、縮小
画像を形成する。 (3) fWR<fRDのとき、データの読み出しに対し、書き
込むデータが不足となるために、データが重複し、拡大
画像を形成する。
Embodiments of the present invention will be described below with reference to the drawings. Figure 1 shows an overview of an image scaling method according to the present invention, the binary electrical signals of input data inputted from the image scanner (DATE_WR) is FIFO (F ir
The st I n F irst O ut) memory output is the data processing as output data for the scaled image (DATE_RD). F
The IFO memory performs data write and read operations,
Clocks completely asynchronous, that is, independent clocks (write clock CLK_WR, read clock CLD_RD)
When the frequency of the write clock (CLK_WR) is f WR and the frequency of the read clock (CLK_RD) is f RD , (1) When f WR = f RD , input data (DATA_WR) and output data (DATA_RD) is the same, and forms an image of the same size. (2) When f WR > f RD Since the write data becomes excessive for the data read, the data is thinned out to form a reduced image. (3) When f WR <f RD , since data to be written becomes insufficient for data reading, data is duplicated and an enlarged image is formed.

【0008】読み出しクロック(CLK_RD)は、プリンタ
にデータを転送する関係で一定とし、書込みクロックを
設定した倍率に従って調整(変化)させる。書込みクロ
ックの調整は、基本的に、その周波数をアナログ的に変
化させた場合はライン間の同期のずれを生じる虞あり、
また読み出しクロック(CLK_WR)の周波数を10MHz
として、例えば画像を43%に縮小する場合には、書込
みクロックの基本波(パルス)として30MHzに近い
周波数が必要となり周波数のアナログ的な調整が難しい
という問題を有している。このような問題に鑑み、本発
明においては書込みクロックの調整を以下に詳述するよ
うにデジタル的な処理により行なう。
The read clock (CLK_RD) is fixed in relation to the transfer of data to the printer, and the write clock is adjusted (changed) according to the set magnification. Basically, the adjustment of the write clock may cause a synchronization deviation between lines when the frequency is changed in an analog manner,
The frequency of the read clock (CLK_WR) is 10 MHz.
For example, when an image is reduced to 43%, a frequency close to 30 MHz is required as a fundamental wave (pulse) of the write clock, and there is a problem that it is difficult to adjust the analog frequency. In view of such a problem, in the present invention, the adjustment of the write clock is performed by digital processing as described in detail below.

【0009】上述のように書込みクロックの基本波の周
波数を30MHzとし、読み出しクロックの周波数を1
0MHzとした場合、倍率100%の画像を得るために
は書込みクロックの周波数を基本波の周波数(30MH
z)の1/3(10MHz)と成るように調整する。図
2は書込みクロックの基本波に対する倍率100%と2
00%の場合の書込みクロックの周波数を示す。基本波
(パルス)をシフトレジスタ的にカウントし、基本波の
パルス3回に対して1回のパルスを出することにより倍
率100%のパルス信号を形成し、6回に1回出すこと
により倍率200%のパルス信号が得られる。
As described above, the fundamental frequency of the write clock is 30 MHz, and the frequency of the read clock is 1
In the case of 0 MHz, in order to obtain an image with a magnification of 100%, the frequency of the write clock is changed to the frequency of the fundamental wave (30 MHz).
z) is adjusted to be 1/3 (10 MHz). FIG. 2 shows 100% magnification and 2
This shows the frequency of the write clock in the case of 00%. The fundamental wave (pulse) is counted as a shift register, and a pulse signal with a magnification of 100% is formed by outputting one pulse for three pulses of the fundamental wave, and the pulse signal is generated once every six times. A pulse signal of 200% is obtained.

【0010】このことより、拡大または縮小の倍率をm
とした場合、(m/100)×(30/10)回毎に1
回のパルスを発出させることにより所望の倍率の信号を
得ることができる。これを一般式に表すと、 a×(m/100)×(fBS/fRD) として表される。ここで、aは1,2,3…の整数であ
り、例えば倍率を0.1%刻みで可変とした場合には〜
1000となる。mは倍率、fBSは基本波の周波数、f
RDは読み出しクロックの周波数を示す。また、上式にお
いて計算値が小数を含む場合には小数第一位において四
捨五入して整数の数列とする。
Thus, the magnification for enlargement or reduction is m
, 1 for every (m / 100) × (30/10) times
By emitting the pulse twice, a signal of a desired magnification can be obtained. When this is expressed by a general formula, it is expressed as a × (m / 100) × (f BS / f RD ). Here, a is an integer of 1, 2, 3,..., For example, when the magnification is variable in 0.1% steps,
It becomes 1000. m is the magnification, f BS is the frequency of the fundamental wave, f
RD indicates the frequency of the read clock. When the calculated value includes a decimal in the above formula, the first decimal is rounded off to a sequence of integers.

【0011】例えば、読み出しクロックを10MHz、
書込みクロックの基本波を30MHz、倍率mを60%
と設定した場合、上式より、 (60/100)×(30/10)=1.8 よって、1.8,3.6,5.4,7.2 … …1798.
2,1800なる数列が求まり、各数を小数第一位で四
捨五入して 2,4,5,7 ……,1798,1800 の整数の数列が得られる。この数列の隣合う各数の差を
求めると 2,2,1,2 …… 2 (最終の数列という) となり、これにより基本波のパルスをカウントし、2回
に1回、2回に1回、1回に1回、2回に1回 …… 2
回に1回の順にパルスを出すことにより倍率60%の書
込みクロックを形成する。図3はかかる場合の波形を模
式的に説明する図である。小数第1位における四捨五入
による誤差(アナログ量をデジタル化する際の誤差)は
1000パルスに中に平均的に分散できるために、変倍
画像に画質的な悪影響を与えない。
For example, if the read clock is 10 MHz,
The fundamental frequency of the write clock is 30 MHz and the magnification m is 60%
From the above equation, (60/100) × (30/10) = 1.8, so that 1.8, 3.6, 5.4, 7.2 ... 1798.
A sequence of 2,1800 is obtained, and each number is rounded off to the first decimal place to obtain a sequence of integers of 2,4,5,7..., 1798,1800. The difference between the adjacent numbers in this sequence is calculated as 2,2,1,2... 2 (referred to as the final sequence), whereby the pulses of the fundamental wave are counted, and once every two times, once every two times. Once, once, twice, once ... 2
A write clock having a magnification of 60% is formed by emitting pulses one by one in order. FIG. 3 is a diagram schematically illustrating a waveform in such a case. An error due to rounding at the first decimal place (error when digitizing an analog amount) can be dispersed in 1000 pulses on average, and therefore does not adversely affect the image quality of the scaled image.

【0012】図4は上記書込みクロックを形成するため
の回路例を示す。基本的にはCPU1、データセレクタ
2,3、RAM4、シフトレジスタ5、アドレスカウン
タ6を有する。上記した式による計算をCPU1で行な
い、求めた(最終の数列)に対して、 1のとき 1 2のとき 10 3のとき 100 4のとき 1000 5のとき 10000 6のとき 100000 なる符号化したデータを割り当て、このデータを数列の
順にRAM4のアドレス0番地から999番地まで格納
する。このときデータセレクタ3によりRAM4のアド
レスデータバスはCPU1に接続されている。目的のパ
ルス(書込みクロック)を出力する時はデータセレクタ
3によりRAM4のアドレスバスをアドレスカウンタ6
へ、データバスをデータセレクタ2によりシフトレジス
タ5へ切り換える。シフトレジスタ5へ0番地のデータ
が送られると基本クロックによって、パラレルデータが
シリアルデータに変換され、出力される。信号「1」が
出力されたときにアドレスカウンタ6が番地を進め、1
番地のデータがシフトレジスタ5に送られる。この繰り
返しにより目的のパルスが得られる。
FIG. 4 shows an example of a circuit for forming the write clock. Basically, it has a CPU 1, data selectors 2, 3, a RAM 4, a shift register 5, and an address counter 6. The calculation according to the above equation is performed by the CPU 1, and the obtained (final sequence) is coded data of 1, 1 2, 10 3, 100 4, 1000 5, 10000 6, 100000 And stores this data from address 0 to address 999 of the RAM 4 in the order of a numerical sequence. At this time, the address data bus of the RAM 4 is connected to the CPU 1 by the data selector 3. When outputting a target pulse (write clock), the data selector 3 sets the address bus of the RAM 4 to the address counter 6.
Then, the data bus is switched to the shift register 5 by the data selector 2. When the data at address 0 is sent to the shift register 5, the parallel data is converted into serial data by the basic clock and output. When the signal “1” is output, the address counter 6 advances the address, and
The data at the address is sent to the shift register 5. By repeating this, a target pulse is obtained.

【0013】図5は上記した倍率60%としたときのタ
イミングチャートを示し、0番地のデータから上記した
ように順次進んで999番地のデータにより1000個
目のパルスが出力されたとき、アドレスをクリアし、再
び0番地からの動作を繰り返す。
FIG. 5 shows a timing chart when the above-mentioned magnification is set to 60%. When the data of address 999 is sequentially advanced as described above and the 1000th pulse is output by the data of address 999, the address is changed. Clear and repeat the operation from address 0 again.

【0014】[0014]

【発明の効果】本発明は、倍率によって得られる整数の
数列に基づき書込みクロックの基本波の周波数を調整す
るというデジタル的な信号調整により、ライン間のずれ
のない、しかも微小な倍率調整を行うことができる。
According to the present invention, an integer obtained by a magnification
By digital signal adjustment in which the frequency of the fundamental wave of the write clock is adjusted based on the sequence , it is possible to perform fine magnification adjustment without deviation between lines.

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

【図1】 本発明による画像変倍方法の概要を示す図。FIG. 1 is a diagram showing an outline of an image scaling method according to the present invention.

【図2】 書込みクロックの基本波に対する倍率100
%と200%のパルスの抽出を示す波形図
FIG. 2 is a magnification of a writing clock with respect to a fundamental wave of 100.
Waveform diagram showing% and 200% pulse extraction

【図3】 本発明による書込みクロックの波形を示す波
形図。
FIG. 3 is a waveform diagram showing a write clock waveform according to the present invention.

【図4】 本発明による書込みクロックを得るための回
路を示すブロック図。
FIG. 4 is a block diagram showing a circuit for obtaining a write clock according to the present invention.

【図5】 図4の回路におけるタイミングチャート図。FIG. 5 is a timing chart of the circuit in FIG. 4;

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

1 CPU 2 データセレクタ 3 データセレクタ 4 RAM 5 シフトレジスタ 6 アドレスカウンタ 1 CPU 2 Data selector 3 Data selector 4 RAM 5 Shift register 6 Address counter

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 原画像を画素的に主走査して時系列の2
値電気信号の入力データに変換し、この入力データを処
理することにより変倍画像出力データを形成する画像変
倍方法において、入力データの書込みクロックの周波数
(FWR)を調整可能に、出力データの読出しクロックの
周波数(FRD)を固定とし a×(m/100)×(fBS/fRD) (ここで、a=1,2,3…の整数、m=倍率、 fBS=書込クロックの基本波の周波数、 fRD=読み出しクロックの周波数) からなる整数の数列(計算値が小数値である場合には小
数点第1位を四捨五入して整数とする)を求め、 この数列の隣合う各数の差で構成される最終の数列に基
づき、書込みクロックの基本波のパルスをカウントし
て、入力データの書込みクロックの周波数を調整するこ
とを 特徴とする画像変倍方法。
1. An original image is subjected to main scanning in a pixel manner and a time series
In the image scaling method of converting the input electric signal into input data and processing the input data to form the scaled image output data, the frequency (FWR) of the write clock of the input data can be adjusted, and the output data a fixed frequency (FRD) of the read clock, with a × (m / 100) × (fBS / fRD) ( where, a = 1, 2, 3 ... integer, m = magnification, fBS = basic write clock frequency of the wave, FRD = integer sequence (calculated value consisting of the read frequency of the clock) is an integer by rounding off the first decimal place in the case of a fractional value) is obtained, for each number adjacent of this sequence Based on the final sequence of differences
Next, count the pulses of the fundamental wave of the write clock.
To adjust the frequency of the input data write clock.
And an image scaling method.
JP24056693A 1993-09-01 1993-09-01 Image scaling method Expired - Lifetime JP3354651B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24056693A JP3354651B2 (en) 1993-09-01 1993-09-01 Image scaling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24056693A JP3354651B2 (en) 1993-09-01 1993-09-01 Image scaling method

Publications (2)

Publication Number Publication Date
JPH0774938A JPH0774938A (en) 1995-03-17
JP3354651B2 true JP3354651B2 (en) 2002-12-09

Family

ID=17061433

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24056693A Expired - Lifetime JP3354651B2 (en) 1993-09-01 1993-09-01 Image scaling method

Country Status (1)

Country Link
JP (1) JP3354651B2 (en)

Also Published As

Publication number Publication date
JPH0774938A (en) 1995-03-17

Similar Documents

Publication Publication Date Title
EP0198269B1 (en) Method and apparatus for interpolating image signals
US5237432A (en) Image scaling apparatus
JPS6361381A (en) Image processor
JPH07220061A (en) Picture interpolation device
US4760466A (en) Image scanner controller
JP2000013594A (en) Image processor, image processing method therefor and recording medium
JP3354651B2 (en) Image scaling method
JP3698196B2 (en) Image processing apparatus and image input apparatus
JP2887840B2 (en) Image reading device
JPS61227477A (en) Picture processor
JPH0630245A (en) Image processing device
JP3987652B2 (en) Image processing device
JP2858661B2 (en) Image processing method
JP2870804B2 (en) Image processing device
JP3502885B2 (en) Image enlargement / reduction method and clock generation circuit used therefor
JP3486985B2 (en) Image recording device
JPH0969938A (en) Image processor and its processing method
JP2802068B2 (en) Image processing device
JP2712426B2 (en) Image transmission device
JP2625423B2 (en) Image reading device
KR100438161B1 (en) scanning apparatus
JPS62257276A (en) Variable power processor for image data
JPH1023249A (en) Image recorder
JPH04335769A (en) Picture processor
JPH0723208A (en) Image forming device

Legal Events

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

Free format text: PAYMENT UNTIL: 20070927

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080927

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080927

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090927

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090927

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100927

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100927

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110927

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110927

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120927

Year of fee payment: 10