JPH0311880A - Picture element density converter - Google Patents

Picture element density converter

Info

Publication number
JPH0311880A
JPH0311880A JP1145479A JP14547989A JPH0311880A JP H0311880 A JPH0311880 A JP H0311880A JP 1145479 A JP1145479 A JP 1145479A JP 14547989 A JP14547989 A JP 14547989A JP H0311880 A JPH0311880 A JP H0311880A
Authority
JP
Japan
Prior art keywords
processing
pixels
processing section
image
scanning direction
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.)
Pending
Application number
JP1145479A
Other languages
Japanese (ja)
Inventor
Yasunori Hashimoto
康訓 橋本
Masami Kato
政美 加藤
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 JP1145479A priority Critical patent/JPH0311880A/en
Priority to US07/492,490 priority patent/US5289293A/en
Priority to EP90302677A priority patent/EP0389164B1/en
Priority to DE69020202T priority patent/DE69020202T2/en
Publication of JPH0311880A publication Critical patent/JPH0311880A/en
Priority to US08/159,206 priority patent/US5351137A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To apply excellent picture density conversion to a picture with an optional multiple, to reduce the hardware scale and to improve the processing speed by applying projection method processing and error diffusion processing to a binary picture. CONSTITUTION:An output device 1 sends a binary picture synchronously with a synchronizing signal, a projection method processing section 2 adopts the projection method so as to increase/decrease picture element number with an optional multiple, its output signal is interleaved periodically by an interleave processing section 3 and number of picture elements is decreased to one over an integral number. An error diffusion processing 4 applies error diffusion processing to the processing signal and binarized by a prescribed threshold level at a simple binarizing circuit 5. Then according to a command from a mode changeover switch 7, a multiplexer 6 selects and sends outputs of the processing section 4 and the circuit 5.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は画素密度変換装置、特に不特定の処理法により
疑似中間調処理された画像と文字や図形等の混在した2
値画像を任意の倍率に画素密度変換する画素密度変換装
置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a pixel density conversion device, and particularly to a pixel density conversion device, which is a pixel density conversion device, and in particular, a pixel density conversion device for converting pixel density.
The present invention relates to a pixel density conversion device that converts a value image into a pixel density at an arbitrary magnification.

[従来の技術] 解像度の異なるファクシミリ間での通信や画像編集装置
等でイメージデータの拡大、縮小を行う場合には、画像
の画素密度変換を必要とする。
[Prior Art] When communicating between facsimiles of different resolutions or enlarging or reducing image data using an image editing device, etc., it is necessary to convert the pixel density of the image.

従来、2値画像に対する画素密度変換法としてSPC法
、論理和法、9分割法、投影法、線形補間法、距離反比
例法等様々な方式が提案されている(情報処理学会誌V
o1.26  rh5 )。この中で、投影法は任意の
倍率で良好に画素密度を変換する方法として知られてい
る。
Conventionally, various methods have been proposed as pixel density conversion methods for binary images, such as the SPC method, the logical sum method, the 9-division method, the projection method, the linear interpolation method, and the distance inverse proportional method (Information Processing Society of Japan Journal V
o1.26 rh5). Among these, the projection method is known as a method for converting pixel density well at any magnification.

[発明が解決しようとする課題] しかしながら、この投影法処理において画素数の変換処
理を行う場合、特に画素数減少の場合に倍率が小さくな
ればなる程変換後の1画素に重なる変換前の画素が多く
なる。従って、倍率が小さいときのために画像を蓄える
ラインバッファが多く必要になるうえ、乗算器、加算器
も多数必要であるため、ハードウェア規模が大きくなり
、処理速度が低下する欠点があった。
[Problems to be Solved by the Invention] However, when converting the number of pixels in this projection process, especially when the number of pixels is reduced, the smaller the magnification, the more pixels before conversion overlap with one pixel after conversion. will increase. Therefore, a large number of line buffers are required to store images for when the magnification is small, and a large number of multipliers and adders are also required, resulting in an increase in hardware scale and a reduction in processing speed.

本発明は、このような点に鑑みてなされたものであり、
投影法処理により画像を任意の倍率で良好に画素密度変
換し、且つハードウェア規模を小さく押さえ処理速度を
高めた画素密度変換装置を提供することを目的としてい
る。
The present invention has been made in view of these points,
It is an object of the present invention to provide a pixel density conversion device that satisfactorily converts the pixel density of an image at an arbitrary magnification by projection method processing, and also reduces the hardware scale and increases the processing speed.

[課題を解決するための手段] この課題を解決するために、本発明の画素密度変換装置
は、画素数の増加或は減少により画素密度を変換する画
素密度変換装置であって、投影法により変倍処理を行う
第1の変倍手段と、所定画素毎に画素数を変える第2の
変倍処理手段とを備える。
[Means for Solving the Problem] In order to solve this problem, the pixel density conversion device of the present invention is a pixel density conversion device that converts the pixel density by increasing or decreasing the number of pixels, and which converts the pixel density by increasing or decreasing the number of pixels. The image forming apparatus includes a first scaling means that performs scaling processing, and a second scaling processing means that changes the number of pixels for each predetermined pixel.

ここで、前記第2の変倍手段は、間引き処理により画素
数を変える。
Here, the second scaling means changes the number of pixels by thinning processing.

又、前記第2の変倍手段は、平均値処理により画素数を
変える。
Further, the second magnification changing means changes the number of pixels by averaging value processing.

又、前記第2の変倍手段は、多数決処理により画素数を
変える。
Further, the second magnification changing means changes the number of pixels by majority decision processing.

[作用] かかる構成において、投影法により変倍処理を行う第1
の変倍手段と、所定画素毎に画素数を変える第2の変倍
処理手段とを備えることにより、投影法処理により画像
を任意の倍率で良好に画素密度変換し、且つハードウェ
ア規模を小さく押さえ処理速度を高めた。
[Operation] In such a configuration, the first
By including a scaling means and a second scaling processing means that changes the number of pixels for each predetermined pixel, it is possible to satisfactorily convert the pixel density of an image at any magnification by projection method processing, and to reduce the hardware scale. Increased pressing processing speed.

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

(第1実施例) 第1図は本実施例の画素密度変換装置の構成を示すブロ
ック図である。本・図において、1は2値画像を蓄えて
いて同期信号に同期して画像を出力する画像出力装置、
2は投影法を用いて任意の倍率の画素数の増減を行う投
影法処理部、3は投影法処理部2から出力される信号を
周期的に間引いて画素数を整数分の−に減少する間引き
処理部、4は間引き処理部3から出力される信号に対し
誤差拡散処理を行う誤差拡散処理部、5は問引き処理部
3から出力される信号に対し一定のスレショルドレベル
で2値化を行う単純2値化回路、6は誤差拡散処理部4
と単純2値化回路5の信号を選択するマルチプレクサ、
7はマルチプレクサ6のセレクト信号を出力するモード
切換スイッチ、8は基本動作クロックを発生する水晶発
振器である。
(First Example) FIG. 1 is a block diagram showing the configuration of a pixel density conversion device of this example. In the books and figures, 1 is an image output device that stores binary images and outputs images in synchronization with a synchronization signal;
2 is a projection method processing unit that increases or decreases the number of pixels at an arbitrary magnification using a projection method, and 3 is a projection method processing unit that periodically thins out the signal output from the projection method processing unit 2 to reduce the number of pixels to an integral number. A thinning processing section 4 performs error diffusion processing on the signal output from the thinning processing section 3; 5 binarizes the signal output from the interrogation processing section 3 at a certain threshold level; 6 is an error diffusion processing unit 4.
and a multiplexer for selecting the signal of the simple binarization circuit 5,
7 is a mode changeover switch that outputs a select signal for the multiplexer 6, and 8 is a crystal oscillator that generates a basic operating clock.

以下に各部の詳細な説明を行う。A detailed explanation of each part is given below.

く画像出力装置〉 画像出力装置lは第2図に示すタイミングで内部に蓄積
している画像データを出力する。尚、画像出力装置1に
蓄積している画像データは画像読取装置から読み取った
ものでも外部から送信されたものであってもよい。画像
出力装置は入力信号、読出しクロックの立上りエツジに
同期して動作する。まず1回目のライン読出しパルスが
入力されると、ページ同期信号をHighにすると同時
に1ライン目の画像信号を出力する。2回目以降のライ
ン読出しパルスに対してはそれぞれ1942分の画像信
号を出力する。1ペ一ジ分の画像信号を出力し終えた場
合は次のライン読出しパルスでページ同期信号をLow
にする。1ライン分の画像信号は読出しクロックをその
まま出力した画像クロック及びライン同期信号に同期し
て出力される。
<Image Output Device> The image output device 1 outputs internally stored image data at the timing shown in FIG. Note that the image data stored in the image output device 1 may be data read from an image reading device or data transmitted from outside. The image output device operates in synchronization with the rising edge of the input signal, the readout clock. First, when the first line read pulse is input, the page synchronization signal is set to High and at the same time, the image signal for the first line is output. For each of the second and subsequent line read pulses, 1942 worth of image signals are output. When you have finished outputting the image signal for one page, set the page synchronization signal to Low with the next line read pulse.
Make it. The image signal for one line is output in synchronization with the image clock and the line synchronization signal, which are output directly from the read clock.

く投影法処理部〉 投影法処理部2では主走査方向、副走査方向共に任意に
倍率で画素数の増加、減少を行う。
Projection Processing Unit> The projection processing unit 2 increases or decreases the number of pixels at an arbitrary magnification in both the main scanning direction and the sub-scanning direction.

第3図は投影法の変換前の画素と変換後の画素を表す図
である。投影法は変換前の画素の形状を正方形とみなし
く第3図における破線)主走査方向、副走査方向共に変
換前の画素の辺の長さに変換倍率の逆数を掛けた長さの
辺を持つ長方形(第3図における実線)を変換前の画素
に重ねて、その長方形に含まれる黒領域の割合を濃度情
報とする方法である。本投影法処理部5では前記多数決
処理部28間引き処理部3での整数倍あるいは整数分の
1倍の密度変換を除いた端数の密度変換を行う。
FIG. 3 is a diagram showing pixels before and after projection method conversion. In the projection method, the shape of the pixel before conversion is assumed to be a square, and the side length is the length of the side of the pixel before conversion multiplied by the reciprocal of the conversion magnification in both the main scanning direction and the sub-scanning direction (dashed line in Figure 3). This method involves superimposing a rectangle (solid line in FIG. 3) on the pixel before conversion, and using the proportion of the black area included in the rectangle as density information. The projection processing section 5 performs density conversion of fractions other than the density conversion of an integral multiple or a fraction of an integer in the majority decision processing section 28 and the thinning processing section 3.

第4図は投影法処理部の一構成例を示すブロック図であ
る。
FIG. 4 is a block diagram showing an example of the configuration of the projection processing section.

図中、101は主走査方向の倍率を設定するレジスタ、
102は主走査方向の変換が拡大であるか縮小であるか
を設定するレジスタであり、拡大のときは“l“縮小の
ときは“0”とする。
In the figure, 101 is a register for setting the magnification in the main scanning direction;
Reference numeral 102 is a register for setting whether the conversion in the main scanning direction is enlargement or reduction, and is set to "1" for enlargement and "0" for reduction.

103は副走査方向の倍率を設定するレジスタ、104
は副走査方向の変換が拡大であるか縮小であるかを設定
するレジスタであり、拡大のときは“l”縮小のときは
“0”とする。なおレジスタ101〜104は、図示し
ないCPUにより設定する。105は主走査方向の縮小
の演算部、106は主走査方向の拡大の演算部、107
は副走査方向の縮小の演算部、1o8は副走査方向の拡
大の演算部、109は水晶発振器からの信号を分周して
ライン同期信号を発生するライン同期信号発生部、11
0は水晶発振器からの信号を分周して読出しパルスを発
生する読出しパルス発生部、111はレジスタ102の
出力が“○°。
103 is a register for setting the magnification in the sub-scanning direction; 104
is a register for setting whether the conversion in the sub-scanning direction is enlargement or reduction, and is set to "1" for enlargement and "0" for reduction. Note that the registers 101 to 104 are set by a CPU (not shown). 105 is a calculation unit for reduction in the main scanning direction; 106 is a calculation unit for expansion in the main scanning direction; 107
109 is a calculation unit for reduction in the sub-scanning direction, 1o8 is a calculation unit for expansion in the sub-scanning direction, 109 is a line synchronization signal generation unit that generates a line synchronization signal by frequency-dividing the signal from the crystal oscillator, 11
0 is a read pulse generation unit that frequency-divides the signal from the crystal oscillator and generates a read pulse, and 111 is the output of the register 102 that is “○°”.

のとき主走査方向縮小演算部105からの信号を、“l
“のとき主走査方向拡大演算部106からの信号を出力
するマルチプレクサである。
When the signal from the main scanning direction reduction calculation unit 105 is
This is a multiplexer that outputs the signal from the main scanning direction enlargement calculation unit 106 when ".

112はレジスタ104の出力が“0“のとき副走査方
向縮小演算部107からの信号を、“1”のとき副走査
方向拡大演算部108からの信号を出力するマルチプレ
クサである。
A multiplexer 112 outputs a signal from the sub-scanning direction reduction calculation section 107 when the output of the register 104 is "0", and outputs a signal from the sub-scanning direction enlargement calculation section 108 when the output of the register 104 is "1".

113はインバータ、114はANDゲート、115は
ORゲート、116はANDゲート、117はORゲー
トである。また、118はインバータ、119はAND
ゲート、120はORゲート、121はANDゲート、
122はORゲートである。123,124は定数25
6を出力する定数部、125,126はラインバッファ
であり、ダブルバッファを構成する。127は125.
126の出力を切り換えるマルチプレクサ、128はラ
イン同期信号が入力される如にトグル動作するトグルフ
リップフロップ、129.130,131,132はD
フリップフロップである。
113 is an inverter, 114 is an AND gate, 115 is an OR gate, 116 is an AND gate, and 117 is an OR gate. Also, 118 is an inverter, 119 is an AND
gate, 120 is an OR gate, 121 is an AND gate,
122 is an OR gate. 123 and 124 are constants 25
Constant parts 125 and 126 that output 6 are line buffers, and constitute a double buffer. 127 is 125.
A multiplexer that switches the output of 126, 128 a toggle flip-flop that toggles as if a line synchronization signal is input, 129, 130, 131, and 132 D
It's a flip flop.

まず、主走査方向縮小演算部105の動作について説明
する。
First, the operation of the main scanning direction reduction calculation unit 105 will be explained.

倍率は200/256の場合である。そのときの変換前
、変換後の辺の重なりを第5図に示す。主走査方向縮小
演算部105は主走査方向倍率レジスタ101に設定さ
れた倍率にしたがって処理を行う。また動作の基準とな
るクロックは水晶発振器10からのクロック人力である
The magnification is 200/256. FIG. 5 shows the overlap of the sides before and after the conversion. The main scanning direction reduction calculation unit 105 performs processing according to the magnification set in the main scanning direction magnification register 101. Further, the clock serving as a reference for operation is a clock input from the crystal oscillator 10.

各ラインの処理はライン同期信号発生部109から入力
される信号に同期して行われる。主走査方向縮小演算部
105から出力される信号は、画像クロック制御信号及
び辺の長さの出力である。画像クロック制御信号は負論
理の信号で゛O”のとき画像クロックがイネーブルとな
る。
Processing of each line is performed in synchronization with a signal input from line synchronization signal generation section 109. The signals output from the main scanning direction reduction calculation unit 105 are an image clock control signal and a side length output. The image clock control signal is a negative logic signal, and when it is "O", the image clock is enabled.

また、辺の長さは1〜256の範囲の値であり、9ビツ
トのパラレル信号である。変換倍率が200/256で
あるので、主走査方向拡大/縮小レジスタには“0”を
設定する。従って、マルチプレクサ111は主走査方向
縮小演算部105の辺の長さを選択して出力する。また
、ANDゲート114の下側の入力はHighになり、
画像クロックが制御される。ANDゲート116の下側
の入力はLowになり、ORゲート117の下側の人力
はLowとなるので、読出しクロック出力は水晶発振器
からのクロック入力がそのまま出力される。
Further, the length of the side is a value in the range of 1 to 256, and it is a 9-bit parallel signal. Since the conversion magnification is 200/256, "0" is set in the main scanning direction enlargement/reduction register. Therefore, the multiplexer 111 selects and outputs the side length of the main scanning direction reduction calculation unit 105. Also, the lower input of the AND gate 114 becomes High,
Image clock is controlled. Since the lower input of the AND gate 116 becomes Low and the lower input of the OR gate 117 becomes Low, the read clock output is the clock input from the crystal oscillator as it is.

第6図は主走査方向の200/256縮小処理のタイミ
ングチャートである。
FIG. 6 is a timing chart of 200/256 reduction processing in the main scanning direction.

次に、実際の辺の演算法を第5図に沿って説明する。ま
ず、1画素目の辺の長さは、200を出力する。以下、
順に辺の長さは、 200− (256−200)=144200− (2
56−144)=88 200−(256−88)=32となる。
Next, the actual calculation method for edges will be explained with reference to FIG. First, the length of the side of the first pixel is output as 200. below,
In order, the length of the side is 200- (256-200) = 144200- (2
56-144)=88 200-(256-88)=32.

次の辺の長さは同じ演算によれば、 200− (256−32)=−24となり、負になっ
てしまうが、これは第5図の辺eを見るとわかるように
、変換後画素に変換前画素が3画素重なっていることを
表す。
According to the same calculation, the length of the next side is 200-(256-32)=-24, which is negative, but as you can see from side e in Figure 5, this is the length of the converted pixel. indicates that three pixels overlap before conversion.

従って、辺の長さは、 一24+200= 176となる。Therefore, the length of the side is -24+200=176.

なお、このとき変換後側素数を合わせるために第6図に
示すように、画像処理装置クロック制御信号を水晶発振
器からのクロックの1クロック分の間旧ghにして、画
像クロック出力を間引く処理を行う。
At this time, in order to match the post-conversion prime numbers, as shown in Figure 6, the image processing device clock control signal is set to old gh for one clock of the clock from the crystal oscillator, and the image clock output is thinned out. conduct.

次の辺の長さは、 200− (256−176)=120となり、以降の
処理を繰り返す。
The length of the next side is 200-(256-176)=120, and the subsequent processing is repeated.

なお、辺の演算処理は画像クロック出力に同期して行わ
れる。
Note that the side calculation processing is performed in synchronization with the image clock output.

次に、主走査方向拡大演算部106の動作について説明
する。
Next, the operation of the main scanning direction enlargement calculation section 106 will be explained.

倍率は700/256の場合で、そのときの変換前、変
換後の辺の重なりを第7図に示す。
The magnification is 700/256, and FIG. 7 shows the overlap of the sides before and after conversion.

主走査方向拡大演算部106は、主走査方向倍率レジス
タ101に設定された倍率に従・つて処理を行う。また
動作の基準となるクロックは水晶発振器からのクロック
入力である。各ラインの処理はライン同期信号発生部1
09から入力される信号に同期して行われる。主走査方
向拡大演算部105から出力される信号は、読出しクロ
ック制御信号及び辺の長さの出力である。読出しクロッ
ク制御信号は負論理の信号で0のとき、読出しクロック
がイネーブルとなる。また辺の長さは1〜256の範囲
の値であり、9ビツトのパラレル信号である。変換倍率
が700/256であるの、主走査方向拡大/縮小レジ
スタには1を設定する。従って、マルチプレクサ111
は主走査方向拡大演算部106の辺の長さを選択。
The main scanning direction enlargement calculation unit 106 performs processing according to the magnification set in the main scanning direction magnification register 101. The clock that serves as the reference for operation is a clock input from a crystal oscillator. Each line is processed by the line synchronization signal generator 1.
This is done in synchronization with the signal input from 09. The signals output from the main scanning direction enlargement calculation section 105 are a read clock control signal and a side length output. The read clock control signal is a negative logic signal, and when it is 0, the read clock is enabled. The side length is a value in the range of 1 to 256, and the signal is a 9-bit parallel signal. Since the conversion magnification is 700/256, 1 is set in the main scanning direction enlargement/reduction register. Therefore, multiplexer 111
selects the length of the side of the main scanning direction enlargement calculation unit 106.

出力する。また、ANDゲート114の下側の入力はL
owになり、ORゲート115の下側の入力はLowに
なるので、画像クロック出力は水晶発振器からのクロッ
ク入力がそのまま出力される。
Output. Also, the lower input of the AND gate 114 is L
ow, and the lower input of the OR gate 115 becomes Low, so that the image clock output is the clock input from the crystal oscillator as it is.

第8図は主走査方向の7007256拡大処理のタイミ
ングチャートである。
FIG. 8 is a timing chart of 7007256 enlargement processing in the main scanning direction.

次に実際の辺の演算法を第7図に沿って説明する。まず
、1画素目の辺の長さは256を出力する。次の辺の長
さは、 700−256=444>256であるので、256を
出力する。前記の不等号が〉のときは読出しクロック制
御信号は“l” (ディセーブル)とする。次の辺の長
さは、 444−256=188≦256であるので、188を
出力する。ここで、読出しクロック制御信号を“0”に
して読出しクロックをイネーブルにして、画像出力装置
lに次の画素のデータを要求する。
Next, the actual calculation method for edges will be explained with reference to FIG. First, the length of the side of the first pixel is output as 256. The length of the next side is 700-256=444>256, so 256 is output. When the above inequality sign is >, the read clock control signal is set to "l" (disabled). Since the length of the next side is 444-256=188≦256, 188 is output. Here, the read clock control signal is set to "0" to enable the read clock and request data for the next pixel from the image output device l.

次の辺の長さは、 (188+700)  −256=632>256であ
るので、256を出力する0次の辺の長さは632−2
35=376>256であるので、256を出力する。
The length of the next side is (188+700) -256=632>256, so the length of the 0th side that outputs 256 is 632-2
Since 35=376>256, 256 is output.

以降、同様の処理を繰り返す。なお、辺の演算処理は水
晶発振器からのクロック入力に同期して行われる。
Thereafter, the same process is repeated. Note that the side arithmetic processing is performed in synchronization with the clock input from the crystal oscillator.

以上、主走査方向縮小及び主走査方向拡大の辺の演算に
ついて説明を行ったが、副走査方向に関しても同ような
方法で演算を行っている。
The calculations for the sides of reduction in the main scanning direction and expansion in the main scanning direction have been described above, but calculations are also performed in a similar manner in the sub-scanning direction.

ブロック図、タイミングチャート上においては、主走査
を副走査に、水晶発振器からのクロック入力を読出しパ
ルスに画像クロックをライン同期信号に、辺演算結果A
、BをそれぞれC,Dに読出しクロックをライン読出し
パルスに置き代えて考えれば良い。・ 次に、画像データ制御及び画像信号の演算について説明
する。画像データはラインバッファ125.126によ
りダブルバッファ制御され、■ライン分遅延した画像デ
ータがDフリップフロップ129に入力される。Dフリ
ップフロップ129のデータはDフリップフロップ13
1により1画素分遅延する。また、画像信号入力はその
ままDフリップフロップ130に入力される。Dフリッ
プフロップ130のデータはDフリップフロップ132
に入力され1画素分遅延する。
On the block diagram and timing chart, the main scanning is used as the sub-scanning, the clock input from the crystal oscillator is used as the readout pulse, the image clock is used as the line synchronization signal, and the side calculation result A
, B can be replaced with C and D, respectively, and the read clock can be replaced with a line read pulse. - Next, image data control and image signal calculation will be explained. The image data is double-buffer controlled by line buffers 125 and 126, and the image data delayed by (1) line is input to the D flip-flop 129. The data in D flip-flop 129 is transferred to D flip-flop 13.
1 causes a delay of one pixel. Further, the image signal input is inputted as is to the D flip-flop 130. The data of D flip-flop 130 is transferred to D flip-flop 132.
is input and is delayed by one pixel.

以上の処理により2×2の4画素を参照する。Through the above processing, four pixels of 2×2 are referred to.

第9図に示すように、主走査方向の辺演算結果A、B及
び副走査方向の辺演算結果C,Dのそれぞれを掛は合わ
せた面積、AXC,BXCAXD  BXDを求めて、
さらにそれぞれに対応する画像データv、w、x、yを
掛は合わせた後、加算した値が変換後画素の濃度レベル
となる。9ビツトの辺のデータをすべてのビットを演算
すると17ビツトとなる。18ビツトにならない理由は
、9ビツトの辺のデータの最大値は100Hexである
ためである。画像信号出力は演算結果の17ビツトのう
ち上位から必要なビット数を採用すれば良い。
As shown in FIG. 9, calculate the combined area, AXC, BXCAXD, BXD, by multiplying the side calculation results A and B in the main scanning direction and the side calculation results C and D in the sub-scanning direction.
Further, the corresponding image data v, w, x, and y are multiplied together, and the added value becomes the density level of the pixel after conversion. When all bits of the 9-bit side data are operated, the result is 17 bits. The reason why it is not 18 bits is because the maximum value of 9-bit side data is 100Hex. For the image signal output, the necessary number of bits from the higher order of the 17 bits of the calculation result may be adopted.

以上、画素数減少の場合で説明したように、画素数の倍
率が2分の1倍以上1倍未満の場合には、変換後の画素
の一辺に対し変換前の画素が3画素重なることがあり、
主走査方向、副走査方向共にこの倍率で変換を行う場合
は、変換後の1画素に対し変換前の画素が最大9画素重
なる。
As explained above in the case of a reduction in the number of pixels, if the magnification of the number of pixels is 1/2 or more but less than 1, it is possible for 3 pixels before conversion to overlap one side of the pixel after conversion. can be,
When conversion is performed at this magnification in both the main scanning direction and the sub-scanning direction, a maximum of nine pixels before conversion overlap one pixel after conversion.

また、倍率が2分の1倍未満の場合はさらに多くの画素
が重なってくる。これらの画素すべてに対し、演算を行
うことはハード規模の増加になる。
Further, when the magnification is less than 1/2, even more pixels overlap. Performing calculations on all these pixels increases the hardware scale.

そこで、本実施例の投影法処理部2では、参照画素は主
走査方向2画素、副走査方向2画素の計4画素までとし
ている。従って、参照画素が4画素を超える場合は近似
処理が行われている。
Therefore, in the projection method processing section 2 of this embodiment, the reference pixels are up to 4 pixels in total, 2 pixels in the main scanning direction and 2 pixels in the sub-scanning direction. Therefore, when the number of reference pixels exceeds four pixels, approximation processing is performed.

例えば、第10図に示す主走査方向、副走査方向共25
6分の136の倍率の画素数の減少の場合の変換前画素
と変換後画素の対応の例で説明する。変換後画素Pに重
なる変換前画素は9画素分あるが、この領域をa、b、
c、d、e、f。
For example, in both the main scanning direction and the sub-scanning direction shown in FIG.
An example of correspondence between pre-conversion pixels and post-conversion pixels when the number of pixels is reduced by a magnification of 136/6 will be explained. There are 9 pixels before conversion that overlap pixel P after conversion, and this area is divided into a, b,
c, d, e, f.

g、h、iで表わす。a−1の面積をS、〜S 1.a
−sの色を1.〜Ilとする。■は黒のとき°°1”白
のとき“0”とする、近似方法は領域Cは領域すと同色
、領域gは領域dと同色、領域f、h、iは領域eと同
色であると近似する。この方法にによれば画素Pの濃度
Ipは次のようになる。
Represented by g, h, i. Let the area of a-1 be S, ~S 1. a
-S color to 1. 〜Il. ■ is set to °°1 when it is black and "0" when it is white.The approximation method is that area C is the same color as the other areas, area g is the same color as area d, and areas f, h, and i are the same color as area e. According to this method, the density Ip of the pixel P is approximated as follows.

Ip □ (S−・I−” (Sb中Sc)・Ib◆<
sa+st> ” tn” (S−+Sr”Sh+S+
)・1.)/256・256= ((136÷40)・
80 + (136◆40)・(136440) )7
256・256 0.6875 となる。
Ip □ (S-・I-” (Sc in Sb)・Ib◆<
sa+st>”tn” (S−+Sr”Sh+S+
)・1. )/256・256= ((136÷40)・
80 + (136◆40)・(136440) )7
It becomes 256・256 0.6875.

一方、画素数増加の場合には、如何なる倍率でも変換後
の1画素に対し重なる変換前の画素は4画素以下である
ため近似の必要はない。
On the other hand, in the case of an increase in the number of pixels, there is no need for approximation because the number of pixels before conversion that overlap one pixel after conversion is four or less, regardless of the magnification.

尚、変換後の一辺の長さは256に限るわけではなく任
意の値で演算して良い、しかしながら、辺の長さは2″
′にすると濃度演算するとき除算はシフト処理で済むた
め、ハードで構成しやすくハード規模を小さくするばか
りでなく、処理速度を高める効果もある。又、本例では
参照画素の位置をを限定して近似を行ったが、例えば、
重なりの大きい画素から2つを参照画素として取り出し
てもよい、更に、参照画素は2×2には限定されず、再
生画像の再現性とハード規模及び処理速度との兼ね合い
による。
Note that the length of one side after conversion is not limited to 256 and may be calculated using any value. However, the length of one side is 2".
', division can be done by a shift process when performing concentration calculations, which not only makes it easier to configure hardware and reduces the hardware scale, but also has the effect of increasing processing speed. Also, in this example, the approximation was performed by limiting the position of the reference pixel, but for example,
Two pixels with large overlap may be taken out as reference pixels.Furthermore, the reference pixels are not limited to 2×2, and depend on the balance between the reproducibility of the reproduced image, the hardware scale, and the processing speed.

く間引き処理部〉 第11図は間引き処理部の一構成例を示すブロック図で
ある0図中、301は画像クロツク制御部、302はラ
イン同期信号制御部、303はDフリップフロップであ
る。画像クロック制御部301は、モード信号に合わせ
て画像クロックを間引く制御を行う。この間引いた画像
クロックをDフリップフロップ303に入力し、画像信
号に対して同期をとる。また、ライン同期信号制御部3
02はモード信号に合わせてライン同期信号を間引く制
御を行う。
Thinning Processing Section> FIG. 11 is a block diagram showing an example of the configuration of the thinning processing section. In FIG. 11, 301 is an image clock control section, 302 is a line synchronization signal control section, and 303 is a D flip-flop. The image clock control unit 301 performs control to thin out image clocks in accordance with the mode signal. This thinned-out image clock is input to the D flip-flop 303 and synchronized with the image signal. In addition, the line synchronization signal control section 3
02 performs control to thin out line synchronization signals in accordance with the mode signal.

第12図は前記多数決処理部及び間引き処理部での副走
査方向で2分の1に画素数を減少させる場合のタイミン
グチャートである。同図において出力するライン同期信
号及び画像信号を間引くことによりライン数を2分の1
に減少させる。
FIG. 12 is a timing chart when the number of pixels is reduced by half in the sub-scanning direction in the majority decision processing section and the thinning processing section. In the same figure, the number of lines is reduced to half by thinning out the line synchronization signal and image signal output.
decrease to

また、第13図は主走査方向で2分の1に画素数を減少
させる場合のタイミングチャートである。
Further, FIG. 13 is a timing chart when the number of pixels is reduced by half in the main scanning direction.

同図においては出力する画像クロックを間引くことによ
り画素数を2分の1に減少させる。
In the figure, the number of pixels is reduced by half by thinning out the image clocks to be output.

く誤差拡散処理部〉 次に誤差拡散処理部について説明する。投影法をデイザ
法等により疑似中間調処理された画像に適用した場合、
その演算結果を単純2値化(即ち一定閾値で2値化)す
ると、量子化誤差の為にモアレが強調され画質劣化が激
しい。本実施例ではこのような量子化誤差による画質劣
化を防ぐ為に誤差拡散法による2値化処理を行う。
Error Diffusion Processing Unit> Next, the error diffusion processing unit will be explained. When the projection method is applied to an image that has undergone pseudo-halftone processing using the dither method, etc.,
When the calculation result is simply binarized (that is, binarized using a fixed threshold value), moiré is emphasized due to the quantization error, resulting in severe deterioration of image quality. In this embodiment, in order to prevent image quality deterioration due to such quantization errors, binarization processing is performed using an error diffusion method.

第14図に誤差拡散処理部の一構成例を示すブロック図
を示す。投影法出力の画素濃度或は輝度■えは、一画素
遅延素子51a〜51d、1ラインより1画素少ない遅
延素子53及び加算器52a〜52dを通過する間にそ
れ以前に周囲画素で生じた2値化誤差8!1%84が加
算される。この周辺画素の2値化誤差を含む濃度値又は
輝度を、2値化処理部54により一定閾値で2値化した
値が求める画素の濃度或は輝度となる。
FIG. 14 shows a block diagram showing an example of the configuration of the error diffusion processing section. The pixel density or brightness of the projection method output is determined by the difference between the two pixels previously generated in surrounding pixels while passing through the one pixel delay elements 51a to 51d, the delay element 53 which is one pixel less than one line, and the adders 52a to 52d. A valuation error of 8!1%84 is added. The density value or luminance including the binarization error of the surrounding pixels is binarized by the binarization processing unit 54 using a constant threshold value, and the value becomes the density or luminance of the pixel to be determined.

次に、この2値化で生じた量子化誤差を2値化誤差算出
部55で求め、誤差分配処理部56で01〜e4として
分配する。2値化誤差算出部56では、2値化誤差をe
、2値化処理部への入力濃度をIn、閾値をT、2値化
出力を“ビ又は“0“とすると、 又、誤差分配部56では例えば次のようにe1〜e4が
演算される。
Next, the quantization error caused by this binarization is calculated by the binarization error calculation section 55 and distributed as 01 to e4 by the error distribution processing section 56. The binarization error calculation unit 56 calculates the binarization error by e.
, the input density to the binarization processing unit is In, the threshold value is T, and the binarization output is “Bi” or “0”. Also, in the error distribution unit 56, e1 to e4 are calculated as follows, for example. .

e、〜e4は第15図に示すように注目画素の周囲画素
へ分配されることになる。
e, to e4 are distributed to the surrounding pixels of the pixel of interest as shown in FIG.

尚、第14図及び第15図に示す例では誤差を周囲4画
素に拡散させた場合であるが、本発明はこれに限るわけ
ではなく、画質と回路規模を考慮して決定すればよい。
Note that although the examples shown in FIGS. 14 and 15 are cases in which the error is diffused to four surrounding pixels, the present invention is not limited to this, and the determination may be made in consideration of image quality and circuit scale.

但しモアレを良好に消去させる為には2値化誤差を10
0%周囲へ拡散させる必要がある。即ちΣe、 :FE
 (n :誤差を分配させる周囲画素の数)を満たすよ
うにeoを決定する。
However, in order to eliminate moiré well, the binarization error should be set to 10.
0% needs to be diffused to the surrounding area. That is, Σe, :FE
eo is determined so as to satisfy (n: the number of surrounding pixels to which the error is distributed).

く平均誤差最小法による2値化処理〉 又、誤差拡散処理部の代わりに平均誤差最小法による2
値化処理部を用いても同じである。
Binarization processing using the minimum average error method> Also, instead of the error diffusion processing section, the
The same is true even if a value processing section is used.

第16図は平均誤差最小法による濃度保存2値化部の構
成を示すブロック図である。補間法による変換画素の濃
度には、エラーバッファメモリ60に保存されている以
前に発生した入力データxlJと出力データYIJとの
誤差データε1゜に、重みづけ発生器61により指定さ
れた重み係数α五、をかけた値が規格化さね、加算器6
2で加算される。これを式で書くと以下のようになる。
FIG. 16 is a block diagram showing the configuration of a density preserving binarization section using the minimum average error method. The density of the pixel converted by the interpolation method is determined by applying a weighting coefficient α specified by the weighting generator 61 to the error data ε1° between the previously generated input data xlJ and the output data YIJ stored in the error buffer memory 60. 5. The multiplied value is normalized, adder 6
2 is added. Writing this as a formula is as follows.

重み付は係数の一例を第17図に示す。An example of weighting coefficients is shown in FIG.

次に補正データXIJ′は2値化回路63でしきい値と
比較され、出力データYIJを出力する。ここでYIj
はY、18またはYmln  (例えば1とO)のよう
に′2値化されたデータとなっている。
Next, the correction data XIJ' is compared with a threshold value in the binarization circuit 63, and output data YIJ is output. Here YIj
is binary data such as Y, 18, or Ymln (for example, 1 and O).

一方、演算器64では、補正データXIJと出力データ
YIJの差分ε−1が演算され、この結果はエラーバッ
ファメモリ60(7)対応する画素位置65に保存され
る。この操作を繰返すことにより、平均誤差最小法によ
る2値化処理が実行される。
On the other hand, the arithmetic unit 64 calculates the difference ε-1 between the correction data XIJ and the output data YIJ, and this result is stored in the corresponding pixel position 65 of the error buffer memory 60(7). By repeating this operation, binarization processing using the minimum average error method is executed.

く一定しきい値による2値化処理〉 単純2値化処理部5では、投影法あるいは投影法によっ
て得られた変換画素の濃度が一定しきい値で2値化され
る。
Binarization Process Using a Constant Threshold In the simple binarization processing section 5, the density of the converted pixel obtained by the projection method or the projection method is binarized using a constant threshold.

以上各ブロックの説明を行なった。Each block has been explained above.

くマルチプレクサ6の切換え〉 信号の全体の流れは、画像出力装置1から出力される画
像の性質に依りモード切換スイッチ7で切換える。
Switching of Multiplexer 6> The overall flow of signals is switched by the mode changeover switch 7 depending on the nature of the image output from the image output device 1.

マルチプレクサ6は画像出力装置lから出力される画像
が疑似中間調処理された画像の場合は、誤差拡散処理部
4から出力される信号を選択する。また、画像出力装置
1から出力される画像が単純2値化された画像の場合は
、単純2値化回路5から出力される信号を選択する。疑
似中間調処理された画像に対して投影法処理部で整数倍
でない端数の倍率の変換を行なった場合、単純2値化回
路5で処理すると、モアレが発生する。
The multiplexer 6 selects the signal output from the error diffusion processing unit 4 when the image output from the image output device 1 is an image subjected to pseudo-halftone processing. Furthermore, if the image output from the image output device 1 is a simple binarized image, the signal output from the simple binarization circuit 5 is selected. If the projection method processing section performs conversion of a fractional magnification that is not an integral multiple on an image that has been subjected to pseudo-halftone processing, moiré will occur if the image is processed by the simple binarization circuit 5.

このため誤差拡散処理部4で処理を行なってモアレの発
生を防ぐ。また単純2値化された画像に対して投影法処
理部で端数倍の変換を行なった場合、誤差拡散処理部4
で処理を行なうと文字のエツジ部に突起が発生したり、
エツジ部がぼやける場合がある。このため単純2値化さ
れた画像に対しては単純2値化回路5で処理を行ない文
字部の画質劣化を防ぐ。
Therefore, the error diffusion processing section 4 performs processing to prevent the occurrence of moiré. Furthermore, when the projection method processing section performs fractional multiplication on a simple binarized image, the error diffusion processing section 4
If you process with
Edges may become blurred. Therefore, the simple binarized image is processed by the simple binarization circuit 5 to prevent image quality deterioration in the text portion.

以上、処理する画像の性質に依るマルチプレクサ6の切
換を説明したが、マルチプレクサの切換又はオペレーシ
ョンパネル(図示せず)から切換えても良いし、CPU
等が画像出力装置1から出力される画像の特性を管理し
て、その情報からCP LJが制御信号を出力して切換
えても良い。例えば、変化点数やパターンの構造等から
疑似中間調処理部分と単純2値化部分とを分離する方法
が考えられる。
The switching of the multiplexer 6 depending on the nature of the image to be processed has been explained above, but the switching may be performed by switching the multiplexer or from an operation panel (not shown), or by using the CPU.
etc. may manage the characteristics of the image output from the image output device 1, and the CP LJ may output a control signal based on the information to switch. For example, a method of separating the pseudo halftone processing part and the simple binarization part based on the number of change points, pattern structure, etc. can be considered.

(第2実施例) 第18図は本実施例の画素密度変換装置の構成を示すブ
ロック図である。本図において、同じ参照番号は第1図
と同じ構成要素を指す。第18図では間引き処理部3の
代わりに、投影法処理部2から出力される信号を平均し
て画素数を整数分の−に減少する平均処理部3′が備え
られている。
(Second Embodiment) FIG. 18 is a block diagram showing the configuration of a pixel density conversion device of this embodiment. In this figure, like reference numbers refer to the same components as in FIG. In FIG. 18, instead of the thinning processing section 3, an averaging processing section 3' is provided which averages the signals output from the projection method processing section 2 and reduces the number of pixels to an integer of -.

く平均処理部〉 平均処理部3′では、主走査方向、副走査方向でそれぞ
れ整数分の−の倍率の減少を行う。
Averaging Processing Unit> The averaging processing unit 3' reduces the magnification by an integer in both the main scanning direction and the sub-scanning direction.

第19図は平均処理部3′の構成例を示すブロック図で
ある。図中、401はラインバッファ、404〜407
はNビットのDフリップフロップ、420は画像クロッ
ク制御部、421は平均値演算部、422はライン同期
信号制御部である。 本平均処理部ではまず、ラインバ
ッファ401により1ライン分の画像データをバッファ
リングし、入力中のラインを含めて合計2ライン分の画
像データを参照し、さらに各々のDフリップフロップで
データをシフトして2×2の4画素を参照する。4画素
のデータは平均値演算部421に人力され画像信号を出
力する。またアドレス線にはモード信号も入力されてお
り、モード信号を切り換えるだけで、倍率を換えること
が可能である。画像クロック制御部420ではモード信
号で選択された主走査倍率に合わせて、画像クロックを
間引く。ライン同期信号制御部422では、モード信号
で選択された副走査倍率に合わせてライン同期信号を間
引く。
FIG. 19 is a block diagram showing an example of the configuration of the averaging processing section 3'. In the figure, 401 is a line buffer, 404 to 407
is an N-bit D flip-flop, 420 is an image clock control section, 421 is an average value calculation section, and 422 is a line synchronization signal control section. In this averaging processing section, first, the line buffer 401 buffers one line of image data, refers to a total of two lines of image data including the line currently being input, and then shifts the data using each D flip-flop. and refer to 4 pixels of 2×2. The four-pixel data is manually input to an average value calculating section 421 and outputs an image signal. A mode signal is also input to the address line, and the magnification can be changed simply by switching the mode signal. The image clock control unit 420 thins out the image clock according to the main scanning magnification selected by the mode signal. The line synchronization signal control unit 422 thins out the line synchronization signals in accordance with the sub-scan magnification selected by the mode signal.

以上、主走査方向2分の1倍、副走査方向2分の1倍の
縮小が可能な構成で説明を行ったが、ラインバッファ及
びDフリップフロップをさらに用いて縮小率を高めても
良い。
Although the above description has been made with a configuration capable of reducing the size by 1/2 in the main scanning direction and 1/2 in the sub-scanning direction, the reduction rate may be increased by further using a line buffer and a D flip-flop.

副走査方向で2分の1に画素数を減少させる場合のタイ
ミングチャート、主走査方向で2分の1に画素数を減少
させる場合のタイミングチャートは、第1実施例の第1
2図及び第13図と同じである。画像信号は、例えば主
走査方向、副走査方向共2分の1に減少する場合、主走
査方向2画素、副走査方向2画素のブロック4画素のn
ビットの多値データの平均値を演算しnビットの信号と
して出力する。
The timing chart for reducing the number of pixels by half in the sub-scanning direction and the timing chart for reducing the number of pixels by half in the main scanning direction are the same as the first example of the first embodiment.
This is the same as FIGS. 2 and 13. For example, when the image signal is reduced by half in both the main scanning direction and the sub-scanning direction, n of 4 pixels in a block of 2 pixels in the main scanning direction and 2 pixels in the sub-scanning direction is
The average value of multi-value data of bits is calculated and outputted as an n-bit signal.

(第3実施例) 第20図は本実施例の画素密度変換装置の構成を示すブ
ロック図である。本図において、同じ参照番号多よ第1
図と同じ構成要素を指す。第20図では間引き処理部3
の代わりに、多数決処理部3″から出力される整数分に
−に間引かれた信号を、投影法処理部2により更に画素
数を減少させる。
(Third Embodiment) FIG. 20 is a block diagram showing the configuration of a pixel density conversion device of this embodiment. In this figure, the same reference number
Refers to the same component as in the figure. In FIG. 20, the thinning processing section 3
Instead, the projection method processing section 2 further reduces the number of pixels of the signal output from the majority processing section 3'' which has been thinned out by an integer.

く多数決処理部〉 多数決処理部では主走査、方向、副走査方向で、それぞ
れ整数分の−の倍率の画素数の減少を行う、第21図は
多数決処理部の一構成例を示すブロック図である。図中
、2’O1,202゜203はラインバッファ、204
〜219はDフリップフロップ、220は画像クロック
制御部、221は多数決データROM、222はライン
同期信号制御部である。
Majority decision processing unit> The majority decision processing unit reduces the number of pixels by an integer minus magnification in each of the main scanning, direction, and sub-scanning directions. Fig. 21 is a block diagram showing an example of the configuration of the majority decision processing unit. be. In the figure, 2'O1, 202° 203 is a line buffer, 204
219 is a D flip-flop, 220 is an image clock control section, 221 is a majority data ROM, and 222 is a line synchronization signal control section.

本多数決処理部ではまず、ラインバッファ201〜20
.3により3ライン分の画像データをバッファリングし
、人力中のラインを含めて合計4ライン分の画像データ
を参照し、さらに各々のDフリップフロップでデータを
シフトして4×4の166画素参照する。166画素デ
ータは多数決データROM221に入力され画像信号を
出力する。ROMデータの内容はアドレス線に入力した
166画素ついて“1”が“O°゛より多いか等しいと
きデータとして“1”を出力し、“1”が“O”より少
ないとき、“O”を出力するように書き込まれている。
In the main majority decision processing section, first, the line buffers 201 to 20
.. 3, buffers the image data for 3 lines, refers to the image data for a total of 4 lines including the line being manually input, and then shifts the data with each D flip-flop to refer to 166 pixels of 4 × 4. do. The 166 pixel data is input to the majority data ROM 221 and outputs an image signal. The content of the ROM data is that when "1" is greater than or equal to "O°" for 166 pixels input to the address line, "1" is output as data, and when "1" is less than "O", "O" is output. It is written to output.

またアドレス線にはモード信号も入力されており、様々
な変換のデータを同一のROMに入れてモード信号を切
り換えるだけで、倍率を換えることが可能である。
A mode signal is also input to the address line, and it is possible to change the magnification simply by putting data for various conversions into the same ROM and switching the mode signal.

画像クロック制御部220ではモード信号で選択された
主走査方向倍率に合わせて、画像クロックを間引く。例
えば2分の1倍ならば画像クロックを1クロツクおきに
間引き、4分の1倍ならば3クロツク分間引いてlクロ
ックを出力する。
The image clock control unit 220 thins out the image clocks in accordance with the main scanning direction magnification selected by the mode signal. For example, if the image clock is multiplied by 1/2, the image clock is thinned out every other clock, and if it is multiplied by 1/4, the image clock is subtracted by 3 clocks and 1 clock is output.

ライン同期信号制御部222では、モード信号で選択さ
れた副走査方向倍率に合わせてライン同期信号を間引く
The line synchronization signal control unit 222 thins out the line synchronization signals in accordance with the magnification in the sub-scanning direction selected by the mode signal.

以上、主走査方向4分の1倍、副走査方向4分の1倍速
縮小が可能な構成で説明を行ったが、ラインバッファ及
びDフリップフロップをさらに用いて縮小率を高めても
良い。又、多数決データROM221を論理回路で構成
しても良い。
Although the above description has been made with a configuration capable of reduction at a speed of 1/4 in the main scanning direction and 1/4 in the sub-scanning direction, the reduction rate may be increased by further using a line buffer and a D flip-flop. Moreover, the majority decision data ROM 221 may be constructed from a logic circuit.

く倍率の設定〉 次に各部の倍率設定について説明する。Setting the magnification> Next, the magnification settings for each part will be explained.

間引き処理部、平均処理部及び多数決処理部は整数分の
−の画素数減少の機能を持ち、投影法処理部は任意の倍
率の画素数増加及び画素数減少の機能を持つ。投影法処
理部は参照画素が4画素までで、画素数減少の処理を行
なうときは近似を用いる領域が増加し、近似誤差による
画質の劣化が増加する。このため、倍率が2分の1を越
えるときは投影法処理部のみで処理を行なう。
The thinning processing section, the averaging processing section, and the majority processing section have a function of decreasing the number of pixels by an integer, and the projection processing section has a function of increasing the number of pixels and decreasing the number of pixels by an arbitrary magnification. The projection method processing section has up to four reference pixels, and when performing a process of reducing the number of pixels, the area in which approximation is used increases, and the deterioration of image quality due to approximation errors increases. Therefore, when the magnification exceeds 1/2, only the projection processing section performs processing.

倍率が3分の1倍を越λ2分の1倍以下のときは、間引
き処理部、平均処理部または多数決処理部で2分の1倍
の処理を行ない、端数の倍率を投影法処理部で処理を行
なう。以下、同様に整数分の1倍の処理を間引き処理部
、平均処理部または多数決処理部で行ない、整数倍の処
理を投影法処理部で行なう。なお、間引き処理部9平均
処理部及び多数決処理部は整数分の1倍の処理が可能で
あるとしで説明したが、間引き処理部、平均処理部およ
び多数決処理部は2のn乗分の1倍(1/2°)の処理
が可能なものでも良いし、また特定の倍率のみ持つもの
でも良い。
When the magnification exceeds 1/3 and is less than 1/2, the decimation processing section, averaging processing section, or majority decision processing section performs 1/2 processing, and the fractional magnification is processed by the projection method processing section. Process. Thereafter, similarly, processing for multiplying by an integer is performed by the thinning processing section, averaging processing section, or majority processing section, and processing for multiplying by an integral number is performed by the projection method processing section. Although the thinning processing unit 9 average processing unit and majority decision processing unit are capable of processing 1 times the integer, the decimation processing unit, the average processing unit, and the majority decision processing unit are capable of processing 1 times the nth power of 2. It may be possible to perform double (1/2°) processing, or it may be one that has only a specific magnification.

更に、倍率設定について詳細に説明すると、間引き処理
部、平均処理部及び多数決処理部は整数分の−の画素数
減少の機能を持ち、投影法処理部は参照画素が4画素ま
でで、画素数減少の処理を行うときは近似を用いること
は前で述べた。従って、変倍率が小さくなればなるほど
近似する領域が増加し近似誤差による画質の劣化が増加
する。このため投影法処理部で行う変換は06倍以上と
なるように、間引き処理部、平均処理部或は多数決処理
部の倍率設定を行うのが好ましい。例えば、0.7倍の
場合は投影法処理部のみで変換を行い、0.55倍の場
合は間引き処理部、平均処理部或いは多数決処理部で2
分の1倍の処理を行い投影法処理部で1,1倍の処理を
行う。また0435倍の場6は間引き処理部。
Furthermore, to explain the magnification settings in detail, the thinning processing section, averaging processing section, and majority decision processing section have a function of reducing the number of pixels by an integer, and the projection processing section has a function of reducing the number of pixels by an integer, and the projection processing section has a function of reducing the number of pixels by up to 4 reference pixels. It was mentioned earlier that approximation is used when processing reductions. Therefore, as the scaling factor decreases, the number of regions to be approximated increases, and the deterioration of image quality due to approximation errors increases. Therefore, it is preferable to set the magnification of the thinning processing section, the averaging processing section, or the majority processing section so that the conversion performed by the projection processing section is 0.6 times or more. For example, in the case of 0.7 times, the projection processing section only performs the conversion, and in the case of 0.55 times, the conversion is performed in the decimation processing section, the averaging processing section, or the majority processing section.
The projection method processing section performs 1.1 times the processing. Also, 0435 times field 6 is the thinning processing section.

平均処理部或いは多数決処理部で3分の1倍の処理を行
い間引き処理部で1.05倍の処理を行う。前述したよ
うに、間引き処理部、平均処理部および多数決処理部が
2のn乗分の1倍(1/2″)の処理が可能な構成の場
合、0.35倍のときは、間引き処理部、平均処理部或
いは多数決処理部で、2分の1倍の処理を行い投影法処
理部で0.7倍の処理を行えば良い。
The average processing section or the majority decision processing section performs 1/3 processing, and the thinning processing section performs 1.05 processing. As mentioned above, if the thinning processing section, the averaging processing section, and the majority decision processing section are configured to be able to process 1 times the nth power of 2 (1/2''), when the processing is 0.35 times, the thinning processing is performed. The average processing section or the majority decision processing section may perform 1/2 processing, and the projection processing section may perform 0.7 processing.

以上の説明では、投影法処理部の処理する倍率を0.6
倍以上として説明したが、変換後の画像情報を出力する
プリンタの特性により、投影法処理部の処理する倍率を
0.55倍や047倍以上等如何なる値を設定しても良
い。
In the above explanation, the magnification processed by the projection method processing section is 0.6
Although the above description has been made as 0.55 times or more, the processing magnification of the projection method processing section may be set to any value such as 0.55 times or 047 times or more, depending on the characteristics of the printer that outputs the converted image information.

このように、画素数の減少処理を行う場合に投影法によ
る変換倍率をある値以上に制限し、その範囲内におさま
るように、間引き処理部。
In this way, when performing pixel number reduction processing, the thinning processing unit limits the conversion magnification by the projection method to a certain value or more so that it stays within that range.

平均処理部或いは多数決処理部の倍率を設定するように
することにより近似誤差を小さく抑えて画質の劣化を小
さくできる効果がある。
Setting the magnification of the average processing section or the majority processing section has the effect of suppressing approximation errors and reducing deterioration of image quality.

[発明の効果] 本発明により、投影法処理により画像を任意の倍率で良
好に画素密度変換し、且つハードウェア規模を小さく押
さえ処理速度を高めた画素密度変換装置を提供できる。
[Effects of the Invention] According to the present invention, it is possible to provide a pixel density conversion device that can satisfactorily convert the pixel density of an image at an arbitrary magnification by projection method processing, and that can reduce the hardware scale and increase the processing speed.

詳細には、 (1)変換する2値画像が疑似中間調処理された画像の
場合、投影法処理及び誤差拡散処理を行うことにより端
数倍の倍率の変換においてもモアレの発生を少なく抑え
る効果がある。
In detail, (1) If the binary image to be converted is an image that has been subjected to pseudo-halftone processing, projection processing and error diffusion processing are effective in suppressing the occurrence of moiré even when converting a fractional magnification. be.

(2)変換する2値画像が単純2値化された画像の場合
、投影法処理及び単純2値化処理を行うことにより文字
或いは図のエツジ部の劣化を抑える効果がある。
(2) When the binary image to be converted is a simple binarized image, performing projection processing and simple binarization processing has the effect of suppressing deterioration of edge portions of characters or figures.

(3)画素数減少の倍率が2分の1倍以下のとき投影法
処理部及び、平均処理部を併用することにより、投影法
処理の負担を軽減し、ハードを小規模にできる効果があ
る。
(3) When the magnification of pixel count reduction is 1/2 or less, by using the projection method processing section and the averaging processing section together, the burden of projection method processing can be reduced and the hardware can be made smaller. .

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は第1実施例の画素密度変換装置の構成を示すブ
ロック図、 第2図は画像出力装置の入力出力信号のタイミングチャ
ート、 第3図は投影法の原理を示す図、 第4図は投影法処理部の構成を示すブロック図、 第5図は投影法の画素数減少の場合の変換前画素と変換
後画素の辺の重なりを示す図、第6図投影法処理部での
画素数減少の場合のタイミングチャート、 第7図は投影法の画素数増加の場合の変換前画素と変換
後画素の辺の重なりを示す図、第8図は投影法処理部の
画素数増加の場合のタイミングチャート、 第9図は投影法処理部での近似された参照画素を示す図
、 第10図は主走査方向及び副走査方向に256分の13
6の倍率の画素数減少の場合の変換前画素と変換後画素
の対応の例を示す図、第11図は間引き処理部の構成例
を示すブロック図、 第12図は副走査方向で2分の1に画素数を減少させる
場合の多数決処理部1平均処理部及び間引き処理部の入
力出力信号のタイミングチャート、 第13図は主走査方向で2分の1に画素数を減少させる
場合の多数決処理部、平均処理部及び間引き処理部の入
力出力信号のタイミングチャート、 第14図は誤差拡散処理部の構成を示すブロック図、 第15図は誤差拡散処理部の拡散マトリクスの例を示す
図、 第16図は平均誤差最小法による2値化処理部の構成を
示すブロック図、 第17図は平均誤差最小法の重み付はマトリクスの例を
示す図、 第18図は第2実施例の画素密度変換装置の構成を示す
ブロック図、 第19図は平均処理部の構成を示すブロック図、 第20図は第3実施例の画素密度変換装置の構成を示す
ブロック図、 第21図は多数決処理部の構成例を示すブロック図であ
る。 図中、■・・・画像出力装置、2・・・投影法処理部、
3・・・間引き処理部、3′・・・平均処理部、3″・
・・多数決処理部、4・・・誤差拡散処理部(平均誤差
最小法による2値化処理部) 5・・・単純2値化回路
、6・・・マルチプレクサ、7・・・モード切換スイッ
チ、8・・・水晶発振器である。
Fig. 1 is a block diagram showing the configuration of the pixel density conversion device of the first embodiment, Fig. 2 is a timing chart of input and output signals of the image output device, Fig. 3 is a diagram showing the principle of the projection method, Fig. 4 is a block diagram showing the configuration of the projection method processing section, FIG. 5 is a diagram showing the overlap of the sides of the pre-conversion pixels and post-conversion pixels when the number of pixels in the projection method is reduced, and FIG. Fig. 7 is a diagram showing the overlap of the sides of pre-conversion pixels and post-conversion pixels when the number of pixels in the projection method is increased. Fig. 8 is a timing chart in the case of an increase in the number of pixels in the projection method processing section. Fig. 9 is a diagram showing approximated reference pixels in the projection method processing section, Fig. 10 is a timing chart of 13/256 in the main scanning direction and sub-scanning direction.
A diagram showing an example of the correspondence between pre-conversion pixels and post-conversion pixels when the number of pixels is reduced by a magnification of 6. Figure 11 is a block diagram showing an example of the configuration of the thinning processing section. Figure 12 is a 2-minute image in the sub-scanning direction. Figure 13 is a timing chart of the input and output signals of the majority processing unit 1 averaging processing unit and thinning processing unit when the number of pixels is reduced to 1 in the main scanning direction. A timing chart of input and output signals of the processing section, the averaging processing section, and the thinning processing section; FIG. 14 is a block diagram showing the configuration of the error diffusion processing section; FIG. 15 is a diagram showing an example of the diffusion matrix of the error diffusion processing section; Fig. 16 is a block diagram showing the configuration of a binarization processing unit using the minimum average error method, Fig. 17 is a diagram showing an example of a weighting matrix for the minimum average error method, and Fig. 18 is a pixel of the second embodiment. FIG. 19 is a block diagram showing the configuration of the average processing unit; FIG. 20 is a block diagram showing the configuration of the pixel density conversion device of the third embodiment; FIG. 21 is majority voting processing. FIG. 3 is a block diagram showing an example of the configuration of the section. In the figure, ■... image output device, 2... projection method processing unit,
3... Thinning processing section, 3'... Average processing section, 3''.
...Majority processing unit, 4...Error diffusion processing unit (binarization processing unit using the minimum average error method) 5...Simple binarization circuit, 6...Multiplexer, 7...Mode changeover switch, 8...Crystal oscillator.

Claims (4)

【特許請求の範囲】[Claims] (1)画素数の増加或は減少により画素密度を変換する
画素密度変換装置であって、 投影法により変倍処理を行う第1の変倍手段と、 所定画素毎に画素数を変える第2の変倍処理手段とを備
えることを特徴とする画素密度変換装置。
(1) A pixel density conversion device that converts pixel density by increasing or decreasing the number of pixels, which comprises a first scaling means that performs scaling processing using a projection method, and a second scaling means that changes the number of pixels for each predetermined pixel. 1. A pixel density conversion device comprising: magnification processing means.
(2)前記第2の変倍手段は、間引き処理により画素数
を変えることを特徴とする請求項1項記載の画素密度変
換装置。
(2) The pixel density conversion device according to claim 1, wherein the second scaling means changes the number of pixels by thinning processing.
(3)前記第2の変倍手段は、平均値処理により画素数
を変えることを特徴とする請求項4項記載の画素密度変
換装置。
(3) The pixel density conversion device according to claim 4, wherein the second scaling means changes the number of pixels by averaging processing.
(4)前記第2の変倍手段は、多数決処理により画素数
を変えることを特徴とする請求項1項記載の画素密度変
換装置。
(4) The pixel density conversion device according to claim 1, wherein the second scaling means changes the number of pixels by majority voting.
JP1145479A 1989-03-14 1989-06-09 Picture element density converter Pending JPH0311880A (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP1145479A JPH0311880A (en) 1989-06-09 1989-06-09 Picture element density converter
US07/492,490 US5289293A (en) 1989-03-14 1990-03-12 Pixel density conversion and processing
EP90302677A EP0389164B1 (en) 1989-03-14 1990-03-13 Pixel density converting apparatus
DE69020202T DE69020202T2 (en) 1989-03-14 1990-03-13 Device for converting the pixel density.
US08/159,206 US5351137A (en) 1989-03-14 1993-11-30 Pixel density converting apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1145479A JPH0311880A (en) 1989-06-09 1989-06-09 Picture element density converter

Publications (1)

Publication Number Publication Date
JPH0311880A true JPH0311880A (en) 1991-01-21

Family

ID=15386208

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1145479A Pending JPH0311880A (en) 1989-03-14 1989-06-09 Picture element density converter

Country Status (1)

Country Link
JP (1) JPH0311880A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05253699A (en) * 1992-03-13 1993-10-05 Sanken Seiki Kogyo Kk Powder molding device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57211867A (en) * 1981-06-22 1982-12-25 Ricoh Co Ltd Magnification varying method for picture
JPS63102468A (en) * 1986-10-17 1988-05-07 Canon Inc Converting device for resolution of picture data
JPS63311866A (en) * 1987-06-12 1988-12-20 Matsushita Electric Ind Co Ltd Scanning line density conversion method
JPH01117568A (en) * 1987-10-30 1989-05-10 Nec Corp Binary picture magnification and reduction device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57211867A (en) * 1981-06-22 1982-12-25 Ricoh Co Ltd Magnification varying method for picture
JPS63102468A (en) * 1986-10-17 1988-05-07 Canon Inc Converting device for resolution of picture data
JPS63311866A (en) * 1987-06-12 1988-12-20 Matsushita Electric Ind Co Ltd Scanning line density conversion method
JPH01117568A (en) * 1987-10-30 1989-05-10 Nec Corp Binary picture magnification and reduction device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05253699A (en) * 1992-03-13 1993-10-05 Sanken Seiki Kogyo Kk Powder molding device

Similar Documents

Publication Publication Date Title
US5289293A (en) Pixel density conversion and processing
US5202670A (en) Image processing apparatus
JPH05268462A (en) Picture processor
EP1434419B1 (en) Image processing apparatus and image processing method
JP3599413B2 (en) Resolution conversion device and resolution conversion method
JP3706830B2 (en) Image signal processing device
US7627188B2 (en) Error diffusion method and hardware architecture
JPH0311880A (en) Picture element density converter
JP2714140B2 (en) Pixel density converter
JPH0311478A (en) Picture element density converter
JPH04275776A (en) Picture reader
JPH04362792A (en) Picture element density converting device
JP2714141B2 (en) Pixel density converter
JPH11203467A (en) Display and its method
JP2851724B2 (en) Image processing device
JPH0311878A (en) Picture element density converter
JP2833670B2 (en) Pixel density conversion method
JPH0540826A (en) Picture element density conversion system
JP2845376B2 (en) Pixel density converter
JP3347395B2 (en) Image processing apparatus and method
JPH06348834A (en) Image processing device
JP2833669B2 (en) Pixel density conversion method
JPH0311879A (en) Picture element density converter
JPH0548881A (en) Picture varying power processing system and device
JPH08297739A (en) Picture processor and method therefor