JPH05219360A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH05219360A
JPH05219360A JP4018775A JP1877592A JPH05219360A JP H05219360 A JPH05219360 A JP H05219360A JP 4018775 A JP4018775 A JP 4018775A JP 1877592 A JP1877592 A JP 1877592A JP H05219360 A JPH05219360 A JP H05219360A
Authority
JP
Japan
Prior art keywords
value
image
conversion
output
picture
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.)
Withdrawn
Application number
JP4018775A
Other languages
Japanese (ja)
Inventor
Yasunori Hashimoto
康訓 橋本
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 JP4018775A priority Critical patent/JPH05219360A/en
Publication of JPH05219360A publication Critical patent/JPH05219360A/en
Withdrawn 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

Abstract

PURPOSE:To prevent the disturbance of a picture at joints between shuttle scannings by setting the relation of position between a picture element before conversion and a picture element after conversion so as to have no deviation between scannings. CONSTITUTION:Picture data from a picture output device are inputted in a serial form, and picture element data are inputted to a vertical/horizontal writing conversion processing section 1603 in a prescribed order. The address of the data is sequentially stored in a picture storage section 1605 from the processing section 1603. An address generated by a write address counter 2101 at write is realized for vertical/horizontal writing conversion and the picture data are converted in a raster form. In this case, a vertical/horizontal writing conversion processing section 1604 at a printer side converts the data from the raster form into the serial form, the address is generated and the picture data are read and then the data are read by a scanner 1601 in the serial form. The read picture is subject to magnification processing by a linear interpolation processing section 1602 and the vertical/horizontal writing conversion processing section 1603 applies vertical/horizontal writing conversion to the data and the result is stored in the storage section 1605. Then the capacity of a line buffer is enough to be that equivalent to a shuttle width and disturbance of a picture at joints of shuttle scannings is not caused.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、シリアル形式の画像デ
ータに対して、変倍処理を行う画像処理装置に関するも
のである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for performing scaling processing on serial format image data.

【0002】[0002]

【従来の技術】画像データの変倍処理においては、基と
なる画像データの各画素(変換前画素)データより、変
倍処理後に生じる新たな画素(変換後画素)を生成する
必要がある。
2. Description of the Related Art In the scaling processing of image data, it is necessary to generate new pixels (post-conversion pixels) generated after the scaling processing from each pixel (pre-conversion pixel) data of the original image data.

【0003】従来、シリアル形式の画像データを扱う画
像処理装置において、画像データの変倍処理を行う方法
として、1走査分ずつ画像データを変倍処理していく方
法がある。これは、入力されるシリアル形式の画像デー
タに対して、新たに発生する変換後画素を変換前画素の
情報より次々と補間(例えば線形補間)して生成するも
のである。そして、その補間される変換後画素の位置は
設定された変倍率の値によって決定されるものである。
Conventionally, in an image processing apparatus that handles serial format image data, there is a method of scaling the image data for each scanning as a method for scaling the image data. This is to generate newly generated post-conversion pixels from the input serial image data by successively interpolating (for example, linearly interpolating) from the information of the pre-conversion pixels. The position of the converted pixel to be interpolated is determined by the value of the set scaling ratio.

【0004】[0004]

【発明が解決しようとする課題】上述の従来例では、1
走査のシリアル形式の画像データの変倍処理によって生
成される変換後画素と変換前画素との位置関係は、各走
査を通して同一となる。このため、各走査と走査との継
ぎ目における変換後画素の間隔が他の部分の間隔と異な
る場合があり、画像に乱れが生じてしまう。
In the above-mentioned conventional example, 1
The positional relationship between the post-conversion pixel and the pre-conversion pixel generated by the scaling processing of the image data in the scan serial format is the same throughout each scan. For this reason, the intervals of the converted pixels at the seams between the scans may be different from the intervals of the other portions, and the image may be disturbed.

【0005】本発明は上記の問題点に鑑みてなされたも
のであり、1走査分のシリアル形式の画像データを変倍
処理する際に、各シャトル走査間の継ぎ目における画像
の乱れを防止する画像処理装置を提供することを目的と
する。
The present invention has been made in view of the above problems, and an image for preventing image distortion at a joint between shuttle scans when performing scaling processing of serial scan image data for one scan. An object is to provide a processing device.

【0006】[0006]

【課題を解決するための手段】上記の目的を達成するた
めの本発明による画像処理装置は以下の構成を備えるも
のである。即ち、シリアル形式の画像データに対して変
倍処理を行う画像処理装置であって、設定された変倍率
に基づいて1走査毎に画像データに対して変倍処理を実
行し、変換後の画素を決定する変倍処理手段と、前記変
倍処理により生成される変換後画素の変換前画素に対す
る位置を各走査毎に設定する設定手段とを備える。
An image processing apparatus according to the present invention for achieving the above object has the following configuration. That is, an image processing apparatus that performs scaling processing on serial format image data, performs scaling processing on the image data for each scan based on the set scaling ratio, and converts the pixel data after conversion. And a setting unit that sets the position of the post-conversion pixel generated by the scaling process with respect to the pre-conversion pixel for each scan.

【0007】[0007]

【作用】上記の構成により、一走査分のシリアル形式の
画像データを変倍処理する際に、変換前画素と変換後画
素の位置関係が各走査間でずれの無いように設定するこ
とにより各走査間の継ぎ目に於て画像の乱れを防止する
ものである。
With the above configuration, when performing the scaling process on the serial format image data for one scan, the positional relationship between the pre-conversion pixel and the post-conversion pixel is set so that there is no deviation between the scans. It prevents the image from being disturbed at the seams between the scans.

【0008】[0008]

【実施例】以下に、添付の図面を参照しながら本発明の
好適な実施例について説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described below with reference to the accompanying drawings.

【0009】図13は本発明を最も良く表す図面であ
り、1601はシリアル形式で画像を読みとるスキャ
ナ、1602は線形補間法により変倍処理を行う線形補
間処理部、1603はシリアル形式の画像をラスタ形式
に変換する縦横変換処理部、1604はラスタ形式の画
像をシリアル形式に変換する縦横変換処理部、1605
はラスタ形式の画像データを記憶する画像記憶部、16
06はシリアル形式で画像を印字するプリンタである。
FIG. 13 is a view best showing the present invention. Reference numeral 1601 is a scanner for reading an image in a serial format, 1602 is a linear interpolation processing section for performing a scaling process by a linear interpolation method, and 1603 is a raster format image for raster. A vertical / horizontal conversion processing unit 1604 for converting into a format, a vertical / horizontal conversion processing unit 1604 for converting an image in a raster format into a serial format,
Is an image storage unit for storing image data in a raster format, 16
A printer 06 prints an image in a serial format.

【0010】はじめにシリアル形式について説明する。
図16はシリアル形式を説明するための図であり、19
01は、スキャナの場合は読み取りヘッドであり、プリ
ンタの場合は印字ヘッドとなる。1902は、スキャナ
の場合はCCD等の読み取り素子であり、プリンタの場
合は印字ノズル或いは印字ヘッドである。1903は1
回目の走査領域を表し、1904は2回目の走査領域を
表す。1905は1頁分の用紙を表す。
First, the serial format will be described.
FIG. 16 is a diagram for explaining the serial format.
Reference numeral 01 is a read head in the case of a scanner and a print head in the case of a printer. Reference numeral 1902 is a reading element such as a CCD in the case of a scanner and a print nozzle or a print head in the case of a printer. 1903 is 1
It represents the second scanning area, and 1904 represents the second scanning area. Reference numeral 1905 represents one page of paper.

【0011】シリアル形式とは図16に示した様に所定
の走査幅で複数回走査することにより1頁分の読みとり
或いは印字を行うものである。以下、この1回の走査を
シャトル動作と呼ぶ。
The serial format is one in which one page is read or printed by scanning a plurality of times with a predetermined scanning width as shown in FIG. Hereinafter, this one scan is called a shuttle operation.

【0012】以下に添付図面を参照して線形補間法につ
いて詳細に説明する。本説明では、シリアル形式に於て
の主走査方向,副走査方向により説明する。従って、ラ
スタ形式に於ける主走査方向は、本説明においては副走
査方向となる。また、ラスタ形式に於ける副走査方向
は、本説明では主走査方向となる。
The linear interpolation method will be described in detail below with reference to the accompanying drawings. In this description, the main scanning direction and the sub-scanning direction in the serial format will be described. Therefore, the main scanning direction in the raster format is the sub scanning direction in this description. The sub-scanning direction in the raster format is the main scanning direction in this description.

【0013】図1は本実施例に係る線形補間処理部(以
下、装置という)の構成を示すブロック図である。同図
において、入力画像信号はラインバッファ101にて1
ライン遅延され、フリップフロップ102,103にて
1画素遅延される。また、発振器131では画像クロッ
クが生成され、ライン同期信号生成装置132でライン
同期信号が生成される。
FIG. 1 is a block diagram showing the arrangement of a linear interpolation processing unit (hereinafter referred to as a device) according to this embodiment. In the same figure, the input image signal is
The line is delayed, and the flip-flops 102 and 103 delay one pixel. Further, the oscillator 131 generates an image clock, and the line synchronization signal generation device 132 generates a line synchronization signal.

【0014】その他、本装置は、乗算器104〜10
7,113、加算器108〜110、主走査方向の辺の
長さを演算する演算部111、副走査方向の辺の長さを
演算する演算部112、固定値(ここでは128)を出
力するブロック114、減算器115〜118、インバ
ータ119,120,125,126、ANDゲート1
21,122,129,130、ORゲート123,1
24、NANDゲート127,128を有し、後述する
所定の演算を行う。
In addition, the present apparatus uses multipliers 104 to 10
7, 113, adders 108 to 110, a calculation unit 111 that calculates the length of the side in the main scanning direction, a calculation unit 112 that calculates the length of the side in the sub-scanning direction, and a fixed value (128 here) are output. Block 114, subtractors 115 to 118, inverters 119, 120, 125, 126, AND gate 1
21, 122, 129, 130, OR gates 123, 1
24 and NAND gates 127 and 128, and performs a predetermined calculation described later.

【0015】図2は、線形補間法における変換前の点と
変換後の点との関係を示す。図中、点V,点W,点X,
点Yは、変換前の点を表わす。また、各点の明るさのレ
ベルを、それぞれv,w,x,yとする。
FIG. 2 shows the relationship between points before conversion and points after conversion in the linear interpolation method. In the figure, point V, point W, point X,
The point Y represents the point before conversion. Further, the brightness levels of the respective points are set to v, w, x, and y, respectively.

【0016】変換後の点を点Pとし、点Pと変換前の点
との位置関係は、主走査方向(図の左右方向)に点Vか
らLa、点WからLbの位置にあり、副走査方向(図の
上下方向)には、点VからKa、点XからKbの位置に
あるとする。尚、本実施例では変換前の1辺の長さを1
28として考えるので、La+Lb=128、Ka+K
b=128となる。
The point after conversion is point P, and the positional relationship between point P and the point before conversion is from point V to La and point W to Lb in the main scanning direction (left-right direction in the figure), and In the scanning direction (vertical direction in the figure), it is assumed that the positions are from point V to Ka and from point X to Kb. In this embodiment, the length of one side before conversion is 1
Since it is considered as 28, La + Lb = 128, Ka + K
b = 128.

【0017】従って、図2における点Pの明るさのレベ
ルpは、 となる。
Therefore, the brightness level p of the point P in FIG. Becomes

【0018】図3は、本装置で扱う画像信号のタイミン
グチャートである。同図において、シャトル同期信号3
1は1シャトルの画像信号が有効となる期間中、論理レ
ベルとしてHighになるハイアクティブの信号であ
り、ライン同期信号32は1ライン分の画像信号が有効
となる期間中論理レベルがHighになるハイアクティ
ブの信号である。また、画像同期クロック33は1画素
単位に出力されるクロックで、このクロック立ち上がり
エッジに同期して画像信号が出力される。尚、画像信号
34は1画素につき8ビットで構成される多値データで
ある。
FIG. 3 is a timing chart of image signals handled by this apparatus. In the figure, shuttle synchronization signal 3
1 is a high active signal which becomes High as a logic level during the period in which the image signal of 1 shuttle is valid, and the line synchronization signal 32 becomes High in the period during which the image signal for one line is valid. This is a high active signal. Further, the image synchronization clock 33 is a clock output in units of one pixel, and the image signal is output in synchronization with the rising edge of this clock. The image signal 34 is multi-valued data composed of 8 bits per pixel.

【0019】図11は、本実施例に係る線形補間処理部
1602と画像供給源1101との関係を示すブロック
図である。また、図12は画像供給源1101と線形補
間処理部1602の信号のタイミングチャートである。
FIG. 11 is a block diagram showing the relationship between the linear interpolation processing section 1602 and the image supply source 1101 according to this embodiment. Further, FIG. 12 is a timing chart of signals of the image supply source 1101 and the linear interpolation processing unit 1602.

【0020】図11において、画像供給源1101から
出力される信号は、図3に示す画像信号と同じである
が、線形補間処理部1602は画像供給源に対してライ
ン要求信号と画像要求クロックを出力する。そして、図
12に示すように線形補間処理部から画像供給源にライ
ン同期信号が入力されたときに、画像供給源は画像信号
を出力する。また、画像要求クロックが入力されたとき
に画像供給源は画像信号を更新する。つまり、ライン要
求信号と画像要求クロックを制御することにより、画像
の供給を止めることが可能となる。
In FIG. 11, the signal output from the image supply source 1101 is the same as the image signal shown in FIG. 3, but the linear interpolation processing section 1602 supplies a line request signal and an image request clock to the image supply source. Output. Then, as shown in FIG. 12, when the line synchronization signal is input from the linear interpolation processing unit to the image supply source, the image supply source outputs the image signal. The image supply source updates the image signal when the image request clock is input. That is, it is possible to stop the supply of the image by controlling the line request signal and the image request clock.

【0021】<レベルの演算方法の説明>本実施例に係
る装置におけるレベルの演算方法について説明する。
<Description of Level Calculation Method> A level calculation method in the apparatus according to the present embodiment will be described.

【0022】画像信号の入力は、図3に示すようにライ
ン単位で行なわれ、図1に示すラインバッファ101で
1ライン遅延される。ここで、1ライン遅延された信号
がフリップフロップ102で1画素遅延されたがぞデー
タをv、フリップフロップ102を通らない画像データ
をwとする。また、ライン遅延が行なわれていない入力
画像信号で、フリップフロップ103で1画素遅延され
た画像データをx、フリップフロップ103を通らない
画素データをyとする。このようにして、線形補間法に
よる処理に必要な4点の参照点を同時に参照できるよう
にする。
The image signal is input line by line as shown in FIG. 3, and is delayed by one line in the line buffer 101 shown in FIG. Here, the signal delayed by one line is delayed by one pixel in the flip-flop 102, and the data is v, and the image data not passing through the flip-flop 102 is w. Further, it is assumed that the image data delayed by one pixel in the flip-flop 103 by the input image signal without line delay is x, and the pixel data not passing through the flip-flop 103 is y. In this way, the four reference points necessary for the processing by the linear interpolation method can be referred to at the same time.

【0023】図1の主走査方向辺演算部111は上述の
Laを演算し、出力する機能と、主走査方向の縮小を行
なう場合に画像同期クロックを間引くための信号、及び
主走査方向の拡大を行なう場合に画像信号の供給源に対
して出力する画像要求クロックを間引くための信号であ
る主走査方向制御信号を出力する機能を有する。また、
副走査方向辺演算部112はKaを演算し、出力する機
能と、副走査方向の縮小を行なう場合にライン同期信号
を間引くための信号、及び副走査方向の拡大を行なう場
合に画像信号の供給源に対して出力する画像要求信号を
間引くための信号である副走査方向制御信号を出力する
機能を有する。
The main scanning direction side calculation unit 111 of FIG. 1 has a function of calculating and outputting La described above, a signal for thinning out an image synchronization clock when reducing in the main scanning direction, and an expansion in the main scanning direction. Has a function of outputting a main scanning direction control signal which is a signal for thinning out the image request clock output to the image signal supply source when performing the above. Also,
The sub-scanning direction side operation unit 112 has a function of calculating and outputting Ka, and a signal for thinning out the line synchronization signal when performing reduction in the sub-scanning direction and an image signal when performing enlargement in the sub-scanning direction. It has a function of outputting a sub-scanning direction control signal which is a signal for thinning out the image request signal output to the source.

【0024】上記La,Kaともに最小値は0、最大値
は80H(Hは16進数を示す)である。また、本実施
例では、内部の演算ビット数はすべて8ビットにて処理
を行なう。
The minimum value of both La and Ka is 0, and the maximum value is 80H (H represents a hexadecimal number). Further, in this embodiment, the number of internal operation bits is all 8 bits.

【0025】レベルの演算にあたり、主走査方向辺演算
部111から出力されるLaと、副走査方向辺演算部1
12から出力されるKaより、La・Ka/128,L
a・Kb/128,Lb・Ka/128及びLb・Kb
/128を求める必要がある。ここで、すべて128て
除算されているのは、辺の長さの最大値は80Hである
ので、最大値どうしを乗算した場合4000Hとなり、
上位15ビット目から8ビット目が有効となるためであ
る。
In calculating the level, La output from the main scanning direction side calculation unit 111 and the sub-scanning direction side calculation unit 1
From Ka output from 12, La · Ka / 128, L
a ・ Kb / 128, Lb ・ Ka / 128 and Lb ・ Kb
It is necessary to calculate / 128. Here, it is all divided by 128 because the maximum value of the side length is 80H, so when the maximum values are multiplied by each other, it becomes 4000H,
This is because the upper 15th bit to the 8th bit are valid.

【0026】乗算器113は、主走査方向辺演算部11
1から出力されるLaと副走査方向の辺演算部112か
ら出力されるKaを乗算し、下位15ビット目から8ビ
ット目を出力する。この値がLa・Kb/128であ
る。また、減算器116は、LaからLa・Ka/12
8を減算することによりLa・Kb/128を求める。
これは、La=La・(Ka+Kb)/128であるこ
とによる。
The multiplier 113 is a side scanning direction computing section 11 in the main scanning direction.
La output from 1 is multiplied by Ka output from the side calculation unit 112 in the sub-scanning direction to output the lower 15th bit to the 8th bit. This value is La · Kb / 128. In addition, the subtractor 116 changes from La to La · Ka / 12
La · Kb / 128 is obtained by subtracting 8.
This is because La = La · (Ka + Kb) / 128.

【0027】同様に、減算器117は、KaからLa・
Ka/128を減算することにより、Lb・Ka/12
8を求め、減算器115により128からLaを減算す
ることによってLbを求める。また、減算器118は、
減算器115の出力であるLbからLb・Ka/128
を減算することによってLb・Kb/128を求める。
Similarly, the subtractor 117 operates from Ka to La ·
By subtracting Ka / 128, Lb · Ka / 12
8 is obtained, and La is obtained by subtracting La from 128 by the subtractor 115. Further, the subtractor 118 is
From the output of the subtractor 115, Lb to Lb · Ka / 128
Lb · Kb / 128 is obtained by subtracting.

【0028】乗算器104は、上述のvとLb・Kb/
128とを乗算し、下位15ビット目から8ビット目を
出力する。この値がv・Lb・Kb/16384であ
る。また、乗算器105は、wとLa・Kb/128と
を乗算し、下位15ビット目から8ビット目を出力す
る。この値がw・La・Kb/16384である。さら
に、乗算器106は、xとLb・Ka/128とを乗算
し、下位15ビット目から8ビット目を出力する。この
値がx・La・Ka/16384である。そして、乗算
器107は、yとLa・Ka/128とを乗算し、下位
15ビット目から8ビット目を出力する。この値がy・
La・Ka/16384である。
The multiplier 104 has the above-mentioned v and Lb · Kb /
128 is multiplied, and the lower 15th bit to the 8th bit are output. This value is v · Lb · Kb / 16384. Further, the multiplier 105 multiplies w by La · Kb / 128 and outputs the lower 15th bit to the 8th bit. This value is w · La · Kb / 16384. Further, the multiplier 106 multiplies x by Lb · Ka / 128 and outputs the lower 15th bit to the 8th bit. This value is x · La · Ka / 16384. Then, the multiplier 107 multiplies y by La · Ka / 128 and outputs the lower 15th bit to the 8th bit. This value is y
La · Ka / 16384.

【0029】また、加算器108は、乗算器104の出
力と乗算器105の出力を加算し、下位9ビット目から
2ビット目を出力する。この値が(v・Lb・Kb+w
・La・Kb)/32768である。加算器109は、
乗算器106の出力と乗算器107の出力を加算し、下
位9ビット目から2ビット目を出力する。この値が(x
・Lb・Ka+y・La・Ka)/32768である。
さらに、加算器110は、加算器108の出力と加算器
109の出力を加算し、下位9ビット目から2ビット目
を出力する。この値が点Pのレベルp、即ち、(v・L
b・Lb+w・La・Kb+x・Lb・Ka+y・La
・Ka)/65536である。
The adder 108 adds the output of the multiplier 104 and the output of the multiplier 105, and outputs the lower 9th bit to the 2nd bit. This value is (vLbKb + w
・ La ・ Kb) / 32768. The adder 109 is
The output of the multiplier 106 and the output of the multiplier 107 are added, and the lower 9th bit to the 2nd bit are output. If this value is (x
・ Lb ・ Ka + y ・ La ・ Ka) / 32768.
Further, the adder 110 adds the output of the adder 108 and the output of the adder 109, and outputs the lower 9th bit to the 2nd bit. This value is the level p of the point P, that is, (v · L
b ・ Lb + w ・ La ・ Kb + x ・ Lb ・ Ka + y ・ La
-Ka) / 65536.

【0030】<同期信号の制御方法の説明>次に、同期
信号の制御方法について、縮小,拡大そして等倍の場合
に分け、具体的な数値を用いて説明する。
<Description of Sync Signal Control Method> Next, the sync signal control method will be described using specific numerical values by dividing it into cases of reduction, enlargement and equal magnification.

【0031】図4は、図1に示した主走査方向辺演算部
111の詳細構成を示すブロック図である。同図におい
て、n−128の値を持つブロック401、nの値を持
つブロック402がセレクタ403に入力され、セレク
タ403は、そのS端子への縮小*/拡大信号が論理L
owのときはブロック401の値を出力し、Highの
ときにはブロック402の値を出力する。また、ブロッ
ク404は−128の値を持ち、ブロック405はn−
128の値を持つ。そして、セレクタ406はブロック
404,405の値を入力し、S端子への縮小*/拡大
信号がLowのときはブロック404の値を出力、Hi
ghのときはブロック405の値を出力する。
FIG. 4 is a block diagram showing a detailed configuration of the side-direction calculator 111 in the main scanning direction shown in FIG. In the figure, a block 401 having a value of n-128 and a block 402 having a value of n are input to a selector 403, and the selector 403 outputs a reduction * / enlargement signal to its S terminal to a logical L level.
When it is ow, the value of block 401 is output, and when it is High, the value of block 402 is output. The block 404 has a value of −128, and the block 405 has n−.
It has a value of 128. Then, the selector 406 inputs the values of the blocks 404 and 405, and outputs the value of the block 404 when the reduction * / enlargement signal to the S terminal is Low, Hi.
When it is gh, the value of block 405 is output.

【0032】セレクタ409は、加算器407,408
からの値を入力し、加算器408のキャリーが0のとき
は加算器407の値を出力、キャリーが1のときは加算
器408の値を出力する。このセレクタ409の出力
は、8ビットのラッチ410に入力される。また、初期
値設定ブロック411は、変換前の画素と変換後の画素
の位置関係の初期値を有し、その値は不図示のCPUに
て書き替えることができる。そして、セレクタ412
は、初期値設定ブロック411とラッチ410からの値
を入力し、最初の画素データが入力されたときは初期値
設定ブロック411の値を出力し、2画素目以降は、ラ
ッチ410の値を出力する。このセレクタ412へのセ
レクト信号は、フリップフロップ413によりライン同
期信号を1画素分遅延させて生成している。尚、加算器
408のキャリー信号は、主走査方向の縮小処理の画像
同期クロックの制御及び拡大処理の画像要求クロックの
制御にも使用する。初期値設定ブロック411の初期値
を不図示のCPUにより各走査毎に設定することで、各
走査間の変換後画素の位置を調節する。
The selector 409 includes adders 407 and 408.
When the carry of the adder 408 is 0, the value of the adder 407 is output, and when the carry of the adder 408 is 1, the value of the adder 408 is output. The output of the selector 409 is input to the 8-bit latch 410. The initial value setting block 411 has an initial value of the positional relationship between the pixel before conversion and the pixel after conversion, and the value can be rewritten by a CPU (not shown). Then, the selector 412
Inputs the values from the initial value setting block 411 and the latch 410, outputs the value of the initial value setting block 411 when the first pixel data is input, and outputs the value of the latch 410 after the second pixel. To do. The select signal to the selector 412 is generated by delaying the line synchronization signal by one pixel by the flip-flop 413. The carry signal of the adder 408 is also used to control the image synchronization clock for the reduction process in the main scanning direction and the image request clock for the enlargement process. By setting the initial value of the initial value setting block 411 for each scan by a CPU (not shown), the position of the converted pixel between the scans is adjusted.

【0033】主走査方向の縮小処理時は、主走査方向の
縮小*/拡大信号はLowとなるので、図1において、
ANDゲート121の入力端子aはHighとなる。従
って、主走査方向辺演算部111から出力される主走査
方向制御信号は有効となり、ORゲート123により出
力画像同期クロックが制御される。この主走査方向制御
信号がLowのときは、出力画像同期クロックは出力さ
れ、Highのときに間引かれる。また、このとき、A
NDゲート122の入力端子cはLowであるから、O
Rゲート124の入力端子fもLowとなり、画像要求
クロックが常に出力される。
During the reduction processing in the main scanning direction, the reduction * / enlargement signal in the main scanning direction becomes Low, so in FIG.
The input terminal a of the AND gate 121 becomes High. Therefore, the main scanning direction control signal output from the main scanning direction side calculation unit 111 becomes valid, and the output image synchronization clock is controlled by the OR gate 123. When this main scanning direction control signal is Low, the output image synchronization clock is output, and when it is High, it is thinned out. At this time, A
Since the input terminal c of the ND gate 122 is Low, O
The input terminal f of the R gate 124 also becomes Low, and the image request clock is always output.

【0034】また、主走査方向を拡大処理するときに
は、主走査方向の縮小*/拡大信号はHighとなり、
ANDゲート122の入力端子cもHighとなるの
で、主走査方向制御信号は有効となり、ORゲート12
4により画像要求クロックが制御される。従って、主走
査方向制御信号がHighのとき画像要求クロックが出
力され、Lowのとき間引かれる。このとき、ANDゲ
ート121の入力端子aはLowとなり、ORゲート1
23の入力端子eも常にLowとなるので、出力画像同
期クロックは常に出力される。
When enlarging in the main scanning direction, the reduction * / enlargement signal in the main scanning direction becomes High,
Since the input terminal c of the AND gate 122 also becomes High, the main scanning direction control signal becomes valid, and the OR gate 12
The image request clock is controlled by 4. Therefore, the image request clock is output when the main scanning direction control signal is High, and is thinned out when it is Low. At this time, the input terminal a of the AND gate 121 becomes Low, and the OR gate 1
Since the input terminal e of 23 is also always Low, the output image synchronization clock is always output.

【0035】尚、副走査方向についての処理も、上記主
走査方向と同様であるため、ここではその説明を省略す
る。
Since the processing in the sub-scanning direction is also the same as that in the main scanning direction, its explanation is omitted here.

【0036】次に、主走査方向辺演算部111の動作を
具体的な数値を用いて説明する。
Next, the operation of the main scanning direction side calculation unit 111 will be described using specific numerical values.

【0037】<縮小処理の説明>図5は、128/20
0倍(64%)の縮小処理を行なったときの辺の長さを
表わし、同図においてS1,S2,S3,…は変換前の
参照画素を示し、D1,D2,D3,…は変換後の画素
を示す。また、丸にて囲まれた数値はLaの値を表す。
<Explanation of Reduction Processing> FIG. 5 shows 128/20.
.. represents the reference length before conversion, and D1, D2, D3, ... after conversion represent the lengths of sides when the reduction processing of 0 times (64%) is performed. Of pixels. Moreover, the numerical value enclosed with a circle represents the value of La.

【0038】図6は、128/200倍の縮小処理を行
なったときのタイミングチャートである。図6におい
て、クロックは、図1の発振器131により生成される
基本動作クロックである。また、画像要求クロックは画
像供給源に対して出力するクロックで、画像供給源は、
このクロックに同期して画像信号を出力する。407の
出力値は、図1の主走査方向辺演算部111の内部構成
を示した図4の加算器407の出力値である。408の
出力値、408のキャリーも、同様に加算器408の出
力値である。
FIG. 6 is a timing chart when the reduction processing of 128/200 times is performed. 6, the clock is the basic operation clock generated by the oscillator 131 of FIG. The image request clock is a clock output to the image supply source, and the image supply source is
The image signal is output in synchronization with this clock. The output value of 407 is the output value of the adder 407 of FIG. 4 showing the internal configuration of the main scanning direction side calculation unit 111 of FIG. The output value of 408 and the carry of 408 are also output values of the adder 408.

【0039】前述のように、Laは、図1の主走査方向
辺演算部111の辺の長さの演算結果であり、Lbは、
図1の減算器115の出力値である。また、入力ライン
同期信号は、画像供給源から線形補間処理部に入力され
るライン同期信号である。v,w,x,yは、それぞれ
参照画素を示し、1,2,3,…は主走査方向の画素に
順に振った番号、a,b,…はラインの順を示す。そし
て、出力ライン同期信号,出力画像同期クロック,出力
画像信号は、線形補間処理部から出力される画像信号で
ある。
As described above, La is the side length calculation result of the main scanning direction side calculation unit 111 in FIG. 1, and Lb is the calculation result.
This is the output value of the subtractor 115 in FIG. The input line synchronization signal is a line synchronization signal input from the image supply source to the linear interpolation processing unit. v, w, x, and y indicate reference pixels, 1, 2, 3, ... Denote numbers sequentially assigned to pixels in the main scanning direction, and a, b ,. The output line synchronization signal, output image synchronization clock, and output image signal are image signals output from the linear interpolation processing unit.

【0040】縮小処理を行なう場合、上述のように図4
における縮小*/拡大信号はLowとなり、セレクタ4
03はブロック401の値を選択する。このブロック4
01はn−128の値を持つが、ここではn=200で
あるのでその値は72となる。また、セレクタ406は
ブロック404の値を選択するが、このブロックは−1
28の固定値を持つ。
When the reduction processing is performed, as shown in FIG.
The reduction * / enlargement signal at is low and the selector 4
03 selects the value of block 401. This block 4
01 has a value of n-128, but since n = 200 here, its value is 72. The selector 406 also selects the value of block 404, which is -1.
It has a fixed value of 28.

【0041】また、辺の初期値を有する初期値設定ブロ
ック411の値は、ここでは64である。最初、セレク
タ412は初期値設定ブロック411の値を選択してい
るので、図5に示すように加算器407での演算結果は
64+72=136、加算器408での演算結果は64
−128=−64<0となる。加算器408の演算結果
は負の数となるのでキャリーは0となる。従って、La
=64として出力する。そして、セレクタ409は加算
器407の値、つまり136を選択し、ラッチ410
は、画像同期クロックの立ち上がりエッジのタイミング
でこの値を取り込み、その出力値は136となる。
The value of the initial value setting block 411 having the initial value of the side is 64 here. Since the selector 412 first selects the value of the initial value setting block 411, the calculation result in the adder 407 is 64 + 72 = 136, and the calculation result in the adder 408 is 64 as shown in FIG.
-128 = -64 <0. Since the operation result of the adder 408 is a negative number, the carry is 0. Therefore, La
= 64 and output. Then, the selector 409 selects the value of the adder 407, that is, 136, and the latch 410
Takes in this value at the timing of the rising edge of the image synchronization clock, and its output value becomes 136.

【0042】次にセレクタ412はラッチ410の値を
選択し、加算器407での演算結果は136+72=2
08、加算器408での演算結果は136−128=8
≧0となるので、加算器408のキャリーは1となる。
このときは、出力する画像同期クロックはゲートをかけ
て間引く。また、セレクタ409は加算器408の値で
ある8を選択し、ラッチ410は、画像同期クロックの
立ち上がりエッジでこの値を取り込むので、その出力値
は8となる。
Next, the selector 412 selects the value of the latch 410, and the operation result of the adder 407 is 136 + 72 = 2.
08, the calculation result of the adder 408 is 136−128 = 8
Since ≧ 0, the carry of the adder 408 becomes 1.
At this time, the output image synchronization clock is gated and thinned. Further, the selector 409 selects 8 which is the value of the adder 408, and the latch 410 fetches this value at the rising edge of the image synchronization clock, so that the output value is 8.

【0043】そして、加算器407の演算結果は8+7
2=80、加算器408の演算結果は8−128=−1
20<0であるので、加算器408のキャリーは0とな
る。従って、La=8として出力する。また、セレクタ
409は加算器407の値80を選択し、ラッチ412
はこの値を取り込む。以下、同様に、図5に示すように
辺の値を演算する。
The operation result of the adder 407 is 8 + 7.
2 = 80, the operation result of the adder 408 is 8-128 = -1.
Since 20 <0, the carry of the adder 408 becomes 0. Therefore, La = 8 is output. Further, the selector 409 selects the value 80 of the adder 407, and the latch 412
Captures this value. Thereafter, similarly, the value of the side is calculated as shown in FIG.

【0044】上述の動作をタイミングチャートで表した
図が図6で示される。画像要求クロックS2の立ち上が
りにて、La=64の位置における補間画素のデータが
計算され、出力画像同期クロックD1の立ち上がりに
て、この計算された画素データが出力画像信号P1とし
て出力される。また、加算器408のキャリーが“1”
のときは、出力画像同期クロックが間引かれている。
FIG. 6 is a timing chart showing the above operation. The data of the interpolated pixel at the position of La = 64 is calculated at the rising edge of the image request clock S2, and the calculated pixel data is output as the output image signal P1 at the rising edge of the output image synchronization clock D1. The carry of the adder 408 is "1".
When, the output image synchronization clock is thinned out.

【0045】<拡大処理の説明>図7は、128/10
0倍(128%)の拡大処理を行なったときの辺の長さ
を表わす。尚、ここでの記号の意味は図5での記号と同
じである。
<Explanation of Enlargement Processing> FIG. 7 shows 128/10.
It represents the length of the side when the enlargement processing of 0 times (128%) is performed. The meanings of the symbols here are the same as those in FIG.

【0046】また、図8は、128/100倍の拡大処
理を行なったときのタイミングチャートである。ここで
の各信号についても、図6に示した信号と同様であるた
め、それらの説明を省略する。以下に、図4、図7、図
8を参照して、拡大処理における線形補間処理部の動作
について説明する。
FIG. 8 is a timing chart when the enlargement processing of 128/100 times is performed. Since each signal here is the same as the signal shown in FIG. 6, the description thereof is omitted. The operation of the linear interpolation processing unit in the enlargement processing will be described below with reference to FIGS. 4, 7, and 8.

【0047】上述のように、拡大処理時は、図4に示す
縮小*/拡大信号はHighとなり、セレクタ403は
ブロック402の値を選択する。ブロック402はnの
値を持つが、ここではn=100であるので、セレクタ
403の出力値は100となる。また、セレクタ406
はブロック406の値を選択し、このブロック405は
n−128の値を持つので、n=100のときは、ブロ
ック405の値は100−128=−28となる。
As described above, during the enlargement processing, the reduction * / enlargement signal shown in FIG. 4 becomes High, and the selector 403 selects the value of the block 402. The block 402 has a value of n, but since n = 100 here, the output value of the selector 403 is 100. Also, the selector 406
Selects the value of block 406 and this block 405 has a value of n-128, so that when n = 100, the value of block 405 is 100-128 = -28.

【0048】初期値設定ブロック411が有する辺の初
期値を64とすると、セレクタ412は、最初初期値設
定ブロック411の値を選択しているので、加算器40
7での演算結果は64+100=164、加算器408
での演算結果は64−28=36≧0であるので、加算
器408のキャリーは1となる。従って、画像供給源に
対して画像要求クロックを出力し、次に参照する画素を
更新する。そして、辺の長さをLa=64として出力す
る。また、セレクタ409は加算器408の値36を選
択し、ラッチ410は画像同期クロックの立ち上がりエ
ッジでこの値を取り込み、その出力値は36となる。
If the initial value of the side of the initial value setting block 411 is 64, the selector 412 initially selects the value of the initial value setting block 411.
The calculation result in 7 is 64 + 100 = 164, the adder 408
The carry result of the adder 408 is 1 because the result of the calculation at is −28 = 36 ≧ 0. Therefore, the image request clock is output to the image supply source and the pixel to be referred to next is updated. Then, the side length is output as La = 64. Further, the selector 409 selects the value 36 of the adder 408, and the latch 410 fetches this value at the rising edge of the image synchronization clock, and its output value becomes 36.

【0049】セレクタ412はラッチ410の値を選択
するので、加算器407の演算結果は36+100=1
36、加算器408の演算結果は36−28=8≧0で
あるから、加算器408のキャリーは1となる。従っ
て、画像要求クロックを出力し、次に参照する画素を更
新する。そして、辺の長さはLa=36として出力す
る。また、セレクタ409は加算器408の値8を選択
し、ラッチ410は、画像同期クロックの立ち上がりエ
ッジのタイミングでこの値を取り込み、その出力値は8
となる。
Since the selector 412 selects the value of the latch 410, the operation result of the adder 407 is 36 + 100 = 1.
36, the carry of the adder 408 is 1 because the calculation result of the adder 408 is 36−28 = 8 ≧ 0. Therefore, the image request clock is output and the pixel to be referred to next is updated. Then, the side length is output as La = 36. Further, the selector 409 selects the value 8 of the adder 408, and the latch 410 fetches this value at the timing of the rising edge of the image synchronization clock, and the output value thereof is 8.
Becomes

【0050】加算器407での演算結果は8+100=
108、また、加算器408での演算結果は8−28=
−20<0であるので、加算器408のキャリーは0と
なる。従って、画像要求クロックを間引いて、次に参照
する画素を更新しないようにする。そして、辺の長さは
La=8として出力する。セレクタ409は加算器40
7の値108を選択し、ラッチ412はこの値を取り込
む。以下、同様に、図7に示すように辺の値が演算され
る。
The calculation result in the adder 407 is 8 + 100 =
108, and the operation result of the adder 408 is 8-28 =
Since −20 <0, the carry of the adder 408 becomes 0. Therefore, the image request clock is thinned out so that the pixel to be referred to next is not updated. The side length is output as La = 8. Selector 409 is adder 40
The value 108 of 7 is selected and the latch 412 captures this value. Thereafter, similarly, the value of the side is calculated as shown in FIG.

【0051】以上のように、主走査方向の辺の長さの演
算処理が行なわれる。
As described above, the calculation processing of the side length in the main scanning direction is performed.

【0052】尚、副走査方向の辺の長さの演算処理を行
なう副走査方向辺演算部については、その構成は上記主
走査方向辺演算部と同様であり、そこでの演算方法も主
走査方向辺演算部と略同様である。従って、ラッチ41
0のクロックの代わりに1ラインにつき1回のパルスを
用い、副走査方向の縮小処理を行なう場合に加算器40
8のキャリー信号をライン同期信号に対してのゲート信
号として用い、拡大処理を行なう場合は、画像供給源に
対するライン要求信号に対してのゲート信号として用い
る。そして、参照画素を参照ラインと読み替えることに
より副走査方向の演算方法を説明することができる。ま
た、出力画素のレベルは、前述のように参照画素レベル
と変換前画素と変換後画素により成される長方形の面積
から演算される。
The sub-scanning direction side arithmetic unit for performing arithmetic processing of the side length in the sub-scanning direction has the same configuration as the main scanning direction side arithmetic unit, and the calculation method therefor is also the main scanning direction. It is almost the same as the side calculation unit. Therefore, the latch 41
A pulse is used once per line instead of the clock of 0, and the adder 40 is used when the reduction processing in the sub-scanning direction is performed.
The carry signal of No. 8 is used as a gate signal for the line synchronizing signal, and when performing enlargement processing, it is used as a gate signal for the line request signal for the image supply source. The calculation method in the sub-scanning direction can be explained by replacing the reference pixel with the reference line. The level of the output pixel is calculated from the area of the rectangle formed by the reference pixel level, the pre-conversion pixel and the post-conversion pixel as described above.

【0053】<等倍処理の説明>図9は、縮小処理の演
算方法で等倍処理を行なう場合を示す図であり、図10
は、拡大処理の演算方法で等倍処理を行なう場合に対応
する図である。
<Explanation of equal-magnification processing> FIG. 9 is a diagram showing a case where equal-magnification processing is performed by a calculation method of reduction processing.
[Fig. 6] is a diagram corresponding to a case of performing equal-magnification processing by a calculation method of enlargement processing.

【0054】図9は、128/128倍(100%)の
縮小処理を行なったときの辺の長さを表わす。ここで
は、縮小処理を行なうので、上述の如く図4に示す縮小
*/拡大信号はLowとなり、セレクタ403のブロッ
ク401の値を選択する。ブロック401はn−128
の値を持つが、ここではn=128であるので、その値
は0となる。また、セレクタ406はブロック404の
値を選択するが、このブロックは−128の固定を有す
る。
FIG. 9 shows the length of the side when the reduction processing of 128/128 times (100%) is performed. Since the reduction process is performed here, the reduction * / enlargement signal shown in FIG. 4 becomes Low as described above, and the value of the block 401 of the selector 403 is selected. Block 401 is n-128
However, since n = 128 here, the value is 0. The selector 406 also selects the value of block 404, which has a fixed value of -128.

【0055】辺の初期値を持つ初期値設定ブロック41
1の値は64である。最初、セレクタ412は初期値設
定ブロック411の値が選択されているので、加算器4
07での演算結果は64+0=64、加算器408での
演算結果は64−128=−64<0であるから、加算
器408のキャリーは0となる。従って、La=64と
して出力する。また、セレクタ409は加算器407の
値64を選択し、画像同期クロックの立ち上がりエッジ
のタイミングでラッチ410はこの値を取り込み、その
出力値は64となる。
Initial value setting block 41 having initial values of sides
The value of 1 is 64. Initially, the value of the initial value setting block 411 is selected by the selector 412.
Since the calculation result in 07 is 64 + 0 = 64 and the calculation result in the adder 408 is 64-128 = -64 <0, the carry of the adder 408 is 0. Therefore, La = 64 is output. Further, the selector 409 selects the value 64 of the adder 407, and the latch 410 fetches this value at the timing of the rising edge of the image synchronization clock, and the output value becomes 64.

【0056】セレクタ412はラッチ410の値を選択
するので、加算器407の演算結果は64+0=64、
加算器408の演算結果は64−128=−64<0で
あるから、加算器408のキャリーは0となる。従っ
て、La=64として出力する。また、セレクタ409
は加算器407の値64を選択し、ラッチ410は、画
像同期クロックの立ち上がりエッジでこの値を取り込
み、その出力値は64となる。以下、同様に辺の値が演
算され、Laは常に64、加算器408はキャリーは常
に0となり、出力クロックは常に出力される。このよう
に、縮小処理の演算方法を用いて等倍処理がなされる。
Since the selector 412 selects the value of the latch 410, the operation result of the adder 407 is 64 + 0 = 64,
Since the operation result of the adder 408 is 64-128 = -64 <0, the carry of the adder 408 is 0. Therefore, La = 64 is output. Also, the selector 409
Selects the value 64 of the adder 407, and the latch 410 captures this value at the rising edge of the image synchronization clock, and its output value becomes 64. Thereafter, the side value is similarly calculated, La is always 64, the carry of the adder 408 is always 0, and the output clock is always output. In this way, equal-magnification processing is performed using the calculation method of reduction processing.

【0057】次に、拡大処理の演算方法で等倍処理を行
なう場合について説明する。
Next, the case of performing the same-size processing by the calculation method of the enlargement processing will be described.

【0058】図10は、128/128(100%)の
拡大処理を行ったときの辺の長さを表わす。前述のよう
に、拡大処理を行なうときは、図4の縮小*/拡大信号
はHighとなり、セレクタ403はブロック402の
値を選択する。このブロック402はnの値を持つが、
ここではn=128であるのでセレクタ403の出力値
は128となる。また、セレクタ406はブロック40
5の値を選択し、ブロック405はn−128の値を持
つが、n=128であるのでその値は128−128=
0となる。
FIG. 10 shows the length of the side when 128/128 (100%) enlargement processing is performed. As described above, when the enlargement processing is performed, the reduction * / enlargement signal of FIG. 4 becomes High, and the selector 403 selects the value of the block 402. This block 402 has a value of n,
Since n = 128 here, the output value of the selector 403 is 128. The selector 406 is a block 40.
5 is selected and block 405 has a value of n-128, but since n = 128, that value is 128-128 =
It becomes 0.

【0059】辺の初期値を有する初期値設定ブロック4
11の値を64とすると、最初、セレクタ412は初期
値設定ブロック411の値を選択するので、加算器40
7での演算結果は64+128=192、加算器408
での演算結果は64+0=64≧0となり、加算器40
8のキャリーは1となる。従って、画像供給源に対して
画像要求クロックを出力し、次に参照する画素を更新す
る。そして、辺の長さはLa=64として出力する。
Initial value setting block 4 having initial values of edges
Assuming that the value of 11 is 64, the selector 412 first selects the value of the initial value setting block 411.
The calculation result in 7 is 64 + 128 = 192, and the adder 408
The result of the calculation at 64 + 0 = 64 ≧ 0 is
The carry of 8 becomes 1. Therefore, the image request clock is output to the image supply source and the pixel to be referred to next is updated. Then, the side length is output as La = 64.

【0060】また、セレクタ409は加算器408の値
である64を選択し、ラッチ410は、画像同期クロッ
クの立ち上がりエッジでこの値を取り込み、その出力値
は64となる。次に、セレクタ412はラッチ410の
値を選択するので、加算器407での演算結果は64+
128=192、加算器408での演算結果は64+0
=64≧0となり、加算器408のキャリーは1とな
る。従って、画像要求クロックを出力し、次に参照する
画素を更新する。そして、辺の長さはLa=64として
出力する。
Further, the selector 409 selects 64, which is the value of the adder 408, and the latch 410 fetches this value at the rising edge of the image synchronization clock, and its output value becomes 64. Next, since the selector 412 selects the value of the latch 410, the operation result of the adder 407 is 64+.
128 = 192, the calculation result in the adder 408 is 64 + 0
= 64 ≧ 0, and the carry of the adder 408 becomes 1. Therefore, the image request clock is output and the pixel to be referred to next is updated. Then, the side length is output as La = 64.

【0061】セレクタ409は加算器408の値64を
選択し、ラッチ410は、画像同期クロックの立ち上が
りエッジのタイミングでこの値を取り込み、その出力値
は64となる。以下、同様に辺の値が演算され、Laは
常に64、408の加算器キャリーは常に1となり、画
像要求クロックは常に出力される。このように、拡大処
理の演算方法を用いても等倍処理がなされる。
The selector 409 selects the value 64 of the adder 408, and the latch 410 fetches this value at the timing of the rising edge of the image synchronization clock, and its output value becomes 64. Thereafter, the side value is similarly calculated, La is always 64, the adder carry of 408 is always 1, and the image request clock is always output. As described above, the same-magnification processing is performed even when the calculation method of the enlargement processing is used.

【0062】以上のようにしてシャトル単位の変倍処理
を実行する際には、シャトルの次ぎ目を特に意識する必
要がある。図14はシャトルの継ぎ目に於る変換前後の
画像を示す図であり、○印が変換前画素で、×印が変換
後画素である。本図では、2シャトル目の主走査方向の
初期値を、シャトル間の変換後画素の間隔が一定となる
ように設定した例であり、シャトル間の継ぎ目において
も変換後画素の間隔が一定(h)に保たれている。な
お、本図での主走査方向,副走査方向はシリアル形式を
基にしている。比較のために、図15に2シャトル目の
初期値が1シャトル目の初期値と同じ場合の例を示す。
このように変換後画素の位置の初期値が一定だと、1シ
ャトル目と2シャトル目との継ぎ目において変換後画素
(×印)の間隔が一定とならない(h≠h´)。尚、図
14もしくは図15において、1シャトル目の最下段の
変換後画素に対して線形補間を実行するには、2シャト
ル目の最上段の変換前画素のデータが必要である。本実
施例におけるシャトル走査では、1シャトル目において
2シャトル目の最上段の画素データも読み取りを実行す
るものであり、これにより最下段の変換後画素の線形補
間が可能となる。即ち、2シャトル目の最上段の画素
は、1シャトル目と2シャトル目の両方で読み込まれる
ことになる。
When executing the scaling processing in the shuttle unit as described above, it is necessary to pay particular attention to the next shuttle. FIG. 14 is a diagram showing images before and after conversion at the joints of the shuttle, in which ◯ marks are pixels before conversion and X marks are pixels after conversion. This figure shows an example in which the initial value in the main scanning direction of the second shuttle is set so that the post-conversion pixel interval between shuttles is constant, and the post-conversion pixel interval is constant even at the joints between shuttles ( h). The main scanning direction and the sub scanning direction in this figure are based on the serial format. For comparison, FIG. 15 shows an example in which the initial value of the second shuttle is the same as the initial value of the first shuttle.
If the initial value of the post-conversion pixel position is constant in this way, the interval between the post-conversion pixels (marked x) at the joint between the first shuttle and the second shuttle will not be constant (h ≠ h '). In FIG. 14 or FIG. 15, in order to execute the linear interpolation on the post-conversion pixel at the bottom of the first shuttle, the data of the pre-conversion pixel at the top of the second shuttle is required. In the shuttle scanning in the present embodiment, the pixel data of the uppermost stage of the second shuttle is also read in the first shuttle, which enables the linear interpolation of the converted pixels in the lowermost stage. That is, the uppermost pixel of the second shuttle is read by both the first shuttle and the second shuttle.

【0063】次に縦横変換処理部について説明する。読
みとり側の縦横変換処理部1603ではシリアル形式か
らラスタ形式の変換を行う。また、印字側の縦横変換処
理部1604はラスタ形式からシリアル形式への変換を
行うものである。
Next, the vertical / horizontal conversion processing unit will be described. The vertical / horizontal conversion processing unit 1603 on the reading side performs conversion from serial format to raster format. Further, the print side vertical / horizontal conversion processing unit 1604 converts the raster format to the serial format.

【0064】図19は縦横変換処理部のブロック図であ
る。2101はライトアドレスカウンタ、2102はリ
ードアドレスカウンタ、2103はマルチプレクサ、1
605は画像記憶部である。
FIG. 19 is a block diagram of the vertical / horizontal conversion processing section. 2101 is a write address counter, 2102 is a read address counter, 2103 is a multiplexer, 1
An image storage unit 605 is provided.

【0065】まず、シリアル形式からラスタ形式への縦
横変換について説明する。図17は、シリアル形式の画
像データであり、主走査方向256画素、副走査方向4
096画素の座標を示す図である。図18は格納アドレ
スとデータの関係を示す表である。まず画像出力装置か
ら画像データがシリアル形式で入力されるので、画素デ
ータは(1,1),(2,1),(3,1)…、の順序
で縦横変換処理部1603に入力される。そして、この
縦横変換処理部1603により、画像記憶部1605に
図18に示す様なアドレスの順で格納される。このアド
レスを生成する部分がライトアドレスカウンタ2101
である。即ち、書き込み時において、ライトアドレスカ
ウンタ2101により生成されるアドレスは、 00000H,01000H,02000H,…,FF
000H,… 00001H,01001H,02001H,…,FF
001H,… FFFFBH,FFFFCH,FFFFDH,FFFF
EH,FFFFFH の様に出力することにより縦横変換を実現し、シリアル
形式で入力された画像データはラスタ形式に変換される
ことになる。
First, the vertical / horizontal conversion from the serial format to the raster format will be described. FIG. 17 shows serial format image data, which has 256 pixels in the main scanning direction and 4 pixels in the sub scanning direction.
It is a figure which shows the coordinate of 096 pixels. FIG. 18 is a table showing the relationship between storage addresses and data. First, since image data is input from the image output device in a serial format, pixel data is input to the vertical / horizontal conversion processing unit 1603 in the order of (1, 1), (2, 1), (3, 1) .... .. Then, the vertical / horizontal conversion processing unit 1603 stores in the image storage unit 1605 in the order of addresses as shown in FIG. The part that generates this address is the write address counter 2101.
Is. That is, at the time of writing, the addresses generated by the write address counter 2101 are 0000H, 01000H, 02000H, ..., FF.
000H, ... 00001H, 01001H, 02001H, ..., FF
001H, ... FFFFBH, FFFFCH, FFFFDH, FFFF
Vertical / horizontal conversion is realized by outputting as EH and FFFFFH, and the image data input in serial format is converted into raster format.

【0066】マルチプレクサ2103はライトのときラ
イトアドレスカウンタ2101の、リードのときリード
アドレスカウンタ2102のカウント値を画像記憶部1
605のアドレスに出力する。
The multiplexer 2103 stores the count value of the write address counter 2101 at the time of writing and the count value of the read address counter 2102 at the time of reading in the image storage unit 1.
Output to the address 605.

【0067】印字側の縦横変換処理部1604では、1
603と逆の処理によりラスタ形式からシリアル形式に
変換を行う。即ち、リードアドレスカウンタ2102に
より上述のライトアドレスカウンタと同じようにアドレ
スを生成し、画像データを読み出すことで、ラスタ形式
で格納された画像データはシリアル形式で読み出される
ことになる。
In the vertical / horizontal conversion processing unit 1604 on the print side, 1
Conversion from the raster format to the serial format is performed by the reverse processing of 603. That is, the read address counter 2102 generates an address in the same manner as the write address counter described above, and by reading the image data, the image data stored in the raster format is read in the serial format.

【0068】画像の全体の流れとしてはまずスキャナ1
601で読みとった画像を線形補間処理部1602で変
倍処理し、縦横変換処理部1603で縦横変換し、画像
記憶部1605に蓄積する。これを印字するときはまず
縦横変換処理部1604で縦横変換し線形補間処理部1
602で読みとり側を行った変倍と逆数の変倍処理を行
い、プリンタ1606で印字する。
As for the overall flow of the image, first, the scanner 1
The image read in 601 is subjected to scaling processing in the linear interpolation processing unit 1602, vertical / horizontal conversion is performed in the vertical / horizontal conversion processing unit 1603, and stored in the image storage unit 1605. When printing this, the vertical / horizontal conversion processing unit 1604 first performs vertical / horizontal conversion to perform linear interpolation processing unit 1.
In step 602, the scaling process performed on the reading side and the inverse scaling process are performed, and printing is performed by the printer 1606.

【0069】以上説明してきたように本実施例によれ
ば、シリアル形式の画像に対して変倍処理を行うことに
より、ラインバッファがシャトル幅の分で済む効果があ
る。また、シャトル単位で変倍処理する際に、変換前画
素と変換後画素の位置関係が各シャトル間でずれの無い
ように副走査方向の最初の変換前画素と最初の変換後画
素の位置関係の初期値の設定が可能であり、これにより
シャトル間の継ぎ目に於ける画像の乱れを防止する効果
がある。
As described above, according to the present embodiment, there is an effect that the line buffer needs only the shuttle width by performing the scaling processing on the serial format image. Also, when performing scaling processing in shuttle units, the positional relationship between the first pre-conversion pixel and the first post-conversion pixel in the sub-scanning direction should be adjusted so that the positional relationship between the pre-conversion pixel and the post-conversion pixel does not shift between shuttles. The initial value of can be set, which has the effect of preventing image distortion at the joint between shuttles.

【0070】[0070]

【他の実施例】図20は第2の実施例を示す図であり、
上述の実施例1の構成に対して、符号化処理2301と
復号化処理部2302を付加している。この構成によ
り、実施例1の効果に加えて、画像記憶部を有効に使用
できるようになるという効果がある。
[Other Embodiments] FIG. 20 is a view showing a second embodiment,
An encoding process 2301 and a decoding process unit 2302 are added to the configuration of the above-described first embodiment. With this configuration, in addition to the effect of the first embodiment, there is an effect that the image storage unit can be effectively used.

【0071】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。また、本発明はシステム或は装置にプログ
ラムを供給することによって達成される場合にも適用で
きることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0072】[0072]

【発明の効果】シャトル単位で変倍処理したとき、各シ
ャトル間の継ぎ目における変換前画素と変換後画素の位
置関係のずれを防止し、高品質な変倍処理画像を得るこ
とが出来る。
As described above, when the scaling processing is performed in shuttle units, it is possible to prevent the positional relationship between the pre-conversion pixel and the post-conversion pixel at the joint between the shuttles from being shifted, and to obtain a high-quality scaled image.

【0073】[0073]

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

【図1】本発明の実施例に係る線形補間処理部の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a linear interpolation processing unit according to an embodiment of the present invention.

【図2】線形補間法における変換前の点と変換後の点と
の関係を示す図である。
FIG. 2 is a diagram showing a relationship between points before conversion and points after conversion in a linear interpolation method.

【図3】実施例に係る装置にて扱う画像信号のタイミン
グチャートである。
FIG. 3 is a timing chart of image signals handled by the apparatus according to the embodiment.

【図4】主走査方向辺演算部の詳細構成を示すブロック
図である。
FIG. 4 is a block diagram showing a detailed configuration of a side scanning direction side calculation unit.

【図5】64%の縮小処理時の変換前後の画素の位置関
係を表わす図である。
FIG. 5 is a diagram showing a positional relationship between pixels before and after conversion in a 64% reduction process.

【図6】64%の縮小処理を行ったときのタイミングチ
ャートである。
FIG. 6 is a timing chart when 64% reduction processing is performed.

【図7】128%の拡大処理時の変換前後の画素の位置
関係を表わす図である。
FIG. 7 is a diagram illustrating a positional relationship between pixels before and after conversion in a 128% enlargement process.

【図8】128%の拡大処理を行ったときのタイミング
チャートである。
FIG. 8 is a timing chart when a 128% enlargement process is performed.

【図9】縮小処理の演算方法で等倍処理を行なう場合の
変換前後の画素の位置関係を示す図である。
FIG. 9 is a diagram showing a positional relationship of pixels before and after conversion in the case of performing equal-magnification processing by a calculation method of reduction processing.

【図10】拡大処理の演算方法で等倍処理を行なう場合
の変換前後の画素の位置関係を示す図である。
FIG. 10 is a diagram showing a positional relationship of pixels before and after conversion in the case of performing equal-magnification processing by a calculation method of enlargement processing.

【図11】実施例に係る線形補間処理部と画像供給源と
の関係を示すブロック図である。
FIG. 11 is a block diagram showing a relationship between a linear interpolation processing unit and an image supply source according to the embodiment.

【図12】画像供給源と線形補間処理部間の信号タイミ
ングチャートである。
FIG. 12 is a signal timing chart between an image supply source and a linear interpolation processing unit.

【図13】本発明の実施例に係る画像処理装置のブロッ
ク図である。
FIG. 13 is a block diagram of an image processing apparatus according to an embodiment of the present invention.

【図14】シャトル間の継ぎ目の処理を施した場合の変
換前後の画素の位置関係を示す図である。
FIG. 14 is a diagram showing a positional relationship between pixels before and after conversion in the case where a joint process between shuttles is performed.

【図15】シャトル間の継ぎ目の処理を施さない従来例
の場合の変換前後の画素の位置関係を示す図である。
FIG. 15 is a diagram showing a positional relationship of pixels before and after conversion in the case of a conventional example in which a processing of seams between shuttles is not performed.

【図16】シリアル形式の説明図である。FIG. 16 is an explanatory diagram of a serial format.

【図17】縦横変換処理部のメモリマッピングを示す図
である。
FIG. 17 is a diagram showing memory mapping of a vertical / horizontal conversion processing unit.

【図18】格納アドレスとデータの関係を表す図であ
る。
FIG. 18 is a diagram showing a relationship between a storage address and data.

【図19】縦横変換処理部のブロック図である。FIG. 19 is a block diagram of an aspect conversion processing unit.

【図20】本発明の第2の実施例に係る画像処理装置の
ブロック図である。
FIG. 20 is a block diagram of an image processing apparatus according to a second embodiment of the present invention.

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

411 初期値設定ブロック 1601 スキャナ 1602 線形補間処理部 1603,1604 縦横変換処理部 1606 プリンタ 411 Initial value setting block 1601 Scanner 1602 Linear interpolation processing unit 1603, 1604 Vertical / horizontal conversion processing unit 1606 Printer

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 シリアル形式の画像データに対して変倍
処理を行う画像処理装置であって、 設定された変倍率に基づいて1走査毎に画像データに対
して変倍処理を実行し、変換後の画素を決定する変倍処
理手段と、 前記変倍処理により生成される変換後画素の変換前画素
に対する位置を各走査毎に設定する設定手段とを備える
ことを特徴とする画像処理装置。
1. An image processing apparatus for performing scaling processing on serial format image data, wherein scaling processing is performed on the image data for each scan based on a set scaling ratio, and conversion is performed. An image processing apparatus comprising: a scaling unit that determines a subsequent pixel; and a setting unit that sets the position of the converted pixel generated by the scaling process with respect to the pixel before conversion for each scan.
【請求項2】 シリアル形式の画像データに対して変倍
処理を行う画像処理装置であって、 設定された変倍率に基づいて1走査毎に画像データに対
して変倍処理を実行し、変換後の画素を線形補間法を用
いて決定する変倍処理手段と、 前記変倍処理により生成される変換後画素の変換前画素
に対する位置を各走査毎に設定する設定手段とを備える
ことを特徴とする画像処理装置。
2. An image processing apparatus for performing scaling processing on serial format image data, wherein scaling processing is performed on the image data for each scan based on a set scaling ratio, and conversion is performed. It is provided with a scaling processing unit that determines a subsequent pixel using a linear interpolation method, and a setting unit that sets the position of the converted pixel generated by the scaling process with respect to the unconverted pixel for each scan. Image processing device.
JP4018775A 1992-02-04 1992-02-04 Picture processor Withdrawn JPH05219360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4018775A JPH05219360A (en) 1992-02-04 1992-02-04 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4018775A JPH05219360A (en) 1992-02-04 1992-02-04 Picture processor

Publications (1)

Publication Number Publication Date
JPH05219360A true JPH05219360A (en) 1993-08-27

Family

ID=11981011

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4018775A Withdrawn JPH05219360A (en) 1992-02-04 1992-02-04 Picture processor

Country Status (1)

Country Link
JP (1) JPH05219360A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010021974A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution conversion method
JP2010021964A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution converting method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010021974A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution conversion method
JP2010021964A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution converting method
JP4569679B2 (en) * 2008-07-14 2010-10-27 コニカミノルタビジネステクノロジーズ株式会社 Resolution conversion method
JP4569680B2 (en) * 2008-07-14 2010-10-27 コニカミノルタビジネステクノロジーズ株式会社 Resolution conversion method
US7907788B2 (en) 2008-07-14 2011-03-15 Konica Minolta Business Technologies, Inc. Resolution conversion method
US8295646B2 (en) 2008-07-14 2012-10-23 Konica Minolta Business Technologies, Inc. Resolution converting method

Similar Documents

Publication Publication Date Title
US5742406A (en) Image processing apparatus
JP2771712B2 (en) Pixel density converter
JPH05219360A (en) Picture processor
JP2829931B2 (en) Image processing device
JP3006973B2 (en) Image processing apparatus and method
JP2845376B2 (en) Pixel density converter
JP3037109B2 (en) Pixel density conversion method and device
JPH01312671A (en) Picture processor
JP3225884B2 (en) Image processing device, image processing method, image reading device, copying machine, and recording medium
JP2829930B2 (en) Image processing device
JP2807231B2 (en) Pixel density conversion method and device
JPS6375881A (en) Dot picture screen line-number converter
JP2006135825A (en) Image interpolation processing apparatus
JP3877054B2 (en) Image reduction scaling device
JP2537851B2 (en) Image scaling processor
JPH11203466A (en) Image processing method and device
JP3359361B2 (en) Enlargement printing device
JPH05227414A (en) Picture processor
JPH06121169A (en) Line density conversion system for dot picture
JPH06268850A (en) Picture conversion circuit
JPH1065907A (en) Picture density converter
JP2008131111A (en) Color image forming apparatus, and color image processing apparatus
JPH0962835A (en) Picture conversion method and device therefor
JPS6220074A (en) Image processing method
JPH09331445A (en) Image processor

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990518