JPH0488579A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH0488579A
JPH0488579A JP2202538A JP20253890A JPH0488579A JP H0488579 A JPH0488579 A JP H0488579A JP 2202538 A JP2202538 A JP 2202538A JP 20253890 A JP20253890 A JP 20253890A JP H0488579 A JPH0488579 A JP H0488579A
Authority
JP
Japan
Prior art keywords
picture
data
scanning direction
output
image
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
JP2202538A
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 JP2202538A priority Critical patent/JPH0488579A/en
Publication of JPH0488579A publication Critical patent/JPH0488579A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To decrease the degradation of picture quality when converting the picture element density of a binary picture by providing the convention means which convert a binary picture data read based on the control of the control means into the picture element density and obtaining a multi-level data. CONSTITUTION:While confirming a multi-level output printer 5 and an inside state, a CPU 6 instructs the read of the picture data to a memory control part 1 and afterwards, a printing operation is started. When printing-out the picture data stored in a memory 2 into original one, the memory control part 1 reads out the picture data from the memory 2 and controls the data to be outputted to a projection processing part 4. In the projection processing part 4, the picture element density is converted with an arbitrary magnification, and the multi-level output printer 5 forms a multi-level picture based on the converted picture data. When printing is executed over plural pages, the above-mentioned operation is repeatedly executed until all the pages are completely printed. Thus, when the picture element density of the binary picture is converted, the degradation of picture quality can be decreased.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は画像処理装置に関し、例えば2値画像データを
画素密度変換する画像処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an image processing device, and, for example, to an image processing device that converts binary image data to pixel density.

[従来の技術] 第14図は従来の例を示す図であり、201はメモリ制
御部、202はメモリ、203は水晶発振器、204は
投影法処理部、225は2値化処理部、226は2値出
力のプリンタである。
[Prior Art] FIG. 14 is a diagram showing a conventional example, in which 201 is a memory control section, 202 is a memory, 203 is a crystal oscillator, 204 is a projection processing section, 225 is a binarization processing section, and 226 is a This is a binary output printer.

メモリ202には、白黒2値のビットイメージの画像デ
ータが蓄積されている。その画像データの読み取り解像
度は任意である。メモリ制御部201はメモリ202に
対して画像データの蓄積。
The memory 202 stores image data of black and white binary bit images. The reading resolution of the image data is arbitrary. A memory control unit 201 stores image data in a memory 202.

読み8しを行う。水晶発振器203は投影法処理部の動
作の基準となるクロックを発生する。投影法処理部20
4では任意の倍率で画素密度変換を行い、投影法の演算
結果をnビットのパラレル信号で2値化処理部225へ
出力する。2値化処理部225では、投影法処理部20
4のnビットの多値出力に対して一定の閾値に等しいか
大きいときその画素を1にして、小さいときその画素を
0にすることにより2値化を行う。プリンタ226では
、前記の2値化データに従って、画像を出力する。
Do reading 8shi. A crystal oscillator 203 generates a clock that serves as a reference for the operation of the projection processing section. Projection method processing section 20
4 performs pixel density conversion at an arbitrary magnification, and outputs the calculation result of the projection method to the binarization processing unit 225 as an n-bit parallel signal. In the binarization processing section 225, the projection method processing section 20
Binarization is performed by setting a pixel to 1 when it is equal to or larger than a certain threshold value for the n-bit multi-value output of 4, and setting the pixel to 0 when it is smaller. The printer 226 outputs an image according to the binarized data.

[発明が解決しようとしている課題] しかしながら、従来例では、投影法処理部204で多値
演算しているにもかかわらず、プリンタ226が2値出
力であるために、投影法処理部204の多値出力データ
を2値化せねばらなず、画素密度変換を行ったときに画
質が劣化するという欠点があった。
[Problems to be Solved by the Invention] However, in the conventional example, although the projection method processing section 204 performs multi-value calculations, since the printer 226 outputs binary values, the projection method processing section 204 performs multi-value calculations. This method has the disadvantage that the value output data must be binarized and the image quality deteriorates when pixel density conversion is performed.

本発明は、上述した従来例の欠点に鑑みてなされたもの
であり、その目的とするところは、2値画像の画素密度
変換を行ったときの画質の劣化を減少できる画像処理装
置を提供する点にある。
The present invention has been made in view of the above-mentioned drawbacks of the conventional example, and its purpose is to provide an image processing device that can reduce deterioration in image quality when performing pixel density conversion of a binary image. At the point.

[課題を解決するための手段] 上述した課題を解決し、目的を達成するため、本発明に
係る画像処理装置は、2値画像データを入力する入力手
段と、前記入力手段で入力された2値画像データの書き
込み及び読み出しを制御する制御手段と、前記制卸手段
での制御に基づいて読み出された2値画像データを画素
密度変換し、多値データにする変換手段と、前記変換手
段で変換された多値データを出力する出力手段とを備え
ることを特徴とする。
[Means for Solving the Problems] In order to solve the above-mentioned problems and achieve the objectives, an image processing apparatus according to the present invention includes an input means for inputting binary image data, and a binary image data input by the input means. a control means for controlling writing and reading of value image data; a conversion means for converting the read binary image data into pixel density and converting it into multivalue data based on control by the control means; and the conversion means and an output means for outputting the multivalued data converted by.

[作用] かかる構成によれば、入力手段は2値画像データを入力
し、制御手段は入力手段で入力された2値画像データの
書き込み及び読み出しを制御し、変換手段は制御手段で
の制御に基づいて読み出された2値画像データを画素密
度変換して多値データを形成し、出力手段は変換手段で
変換された多値データを出力する。
[Operation] According to this configuration, the input means inputs binary image data, the control means controls writing and reading of the binary image data input by the input means, and the conversion means controls the control by the control means. The binary image data read out based on the pixel density is converted to form multi-value data, and the output means outputs the multi-value data converted by the conversion means.

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

第1図は本発明の画像処理装置の一実施例の構成を示す
ブロック図である。同図において、1は後述のメモリ2
のメモリ制御を行うメモリ制御部、2は画像データを蓄
積するメモリ、3は後述の投影法処理部4の動作の基準
となるクロックを発生する水晶発振器、4は画素密度変
換を行う投影法処理部、そして5は多値出力プリンタを
それぞれ示している。6は本装置全体の制御を行うCP
Uを示し、7はCPU6が動作するためのプログラム(
第13図のフローチャートに従う)等を格納したROM
を示し、8は各種プログラムのワークエリアとして用い
るRAMを示している。
FIG. 1 is a block diagram showing the configuration of an embodiment of an image processing apparatus of the present invention. In the figure, 1 is a memory 2 which will be described later.
2 is a memory that stores image data; 3 is a crystal oscillator that generates a clock that serves as a reference for the operation of the projection processing unit 4, which will be described later; 4 is a projection processing unit that performs pixel density conversion. 5, and 5 respectively indicate a multilevel output printer. 6 is a CP that controls the entire device
7 is a program for the CPU 6 to operate (
ROM that stores the following information (according to the flowchart in Figure 13), etc.
8 indicates a RAM used as a work area for various programs.

ここで、上記構成の処理を簡単に説明する。Here, the processing of the above configuration will be briefly explained.

第13図は本実施例のCPU6による画像処理手順を説
明するフローチャートである。
FIG. 13 is a flowchart illustrating the image processing procedure by the CPU 6 of this embodiment.

まず、cpusはメモリ制御部1に画像入力を指示し、
不図示のホストコンピュータ或いはスキャナから入力さ
れた白、黒2値のビットイメージの画像データをメモリ
2に蓄積させる(ステップSl)。その蓄積される画像
データの解像度は任意とする。CPU6は多値出力プリ
ンタ5及び内部の状態を確認しながらメモリ制御部lに
対して画像データの読み出しを指示し、以降印字動作が
開始される(ステップS2)。メモリ制御部lはメモリ
2に格納された画像データを元に印字出力するときに、
メモリ2から画像データを読み出し、投影法処理部4に
出力する制御を行う。投影法処理部4では、後述するが
、任意の倍率で画素密度変換が行われ、多値出力プリン
タ5が変換された画像データに基づいて多値画像を形成
する。印字が複数ページに渡る場合、全ページの印刷が
終了するまで上記動作が繰り返して行われる(ステップ
S3)。 以下に、投影法処理部4の詳細について説明
する。
First, the CPU instructs the memory control unit 1 to input an image,
Image data of a white/black binary bit image inputted from a host computer or a scanner (not shown) is stored in the memory 2 (step Sl). The resolution of the accumulated image data is arbitrary. The CPU 6 instructs the memory control unit 1 to read image data while checking the multi-level output printer 5 and its internal state, and thereafter the printing operation is started (step S2). When the memory control unit l prints out the image data stored in the memory 2,
Control is performed to read image data from the memory 2 and output it to the projection method processing section 4. In the projection method processing section 4, pixel density conversion is performed at an arbitrary magnification, as will be described later, and the multi-value output printer 5 forms a multi-value image based on the converted image data. When printing is performed over multiple pages, the above operation is repeated until printing of all pages is completed (step S3). Details of the projection method processing section 4 will be explained below.

第2図は本実施例の投影法を説明する図、第3図は本実
施例の投影法処理部4の構成を示すブロック図、第4図
は本実施例の投影法に基づく縮小例を説明する図、第5
図は第4図に例に従う信号のタイミングチャート、第6
図は本実施例の投影法に基づく拡大例を説明する図、第
7図は第6図の例に従う信号のタイミングチャート、第
8図は本実施例の投影法による面の重なりを説明する区
、第9図は本実施例の投影法の縮小時に近似処理を行う
場合の面の重なりを説明する図、第10図は本実施例の
投影法処理部4の出力例を示す図、第11図は本実施例
による第10図の印刷例を示す図、第15図は従来例に
よる第10図の印刷例を示す図である。
FIG. 2 is a diagram explaining the projection method of this embodiment, FIG. 3 is a block diagram showing the configuration of the projection method processing section 4 of this embodiment, and FIG. 4 is a diagram showing a reduction example based on the projection method of this embodiment. Diagram to explain, 5th
The figures are the signal timing chart according to the example in Fig. 4, and the signal timing chart in accordance with the example in Fig. 6.
7 is a timing chart of a signal according to the example of FIG. 6, and FIG. 8 is a diagram illustrating an example of overlapping surfaces based on the projection method of this embodiment. , FIG. 9 is a diagram illustrating the overlap of surfaces when performing approximation processing when reducing the projection method of this embodiment, FIG. 10 is a diagram showing an output example of the projection method processing unit 4 of this embodiment, and FIG. 10 is a diagram showing a printing example of FIG. 10 according to this embodiment, and FIG. 15 is a diagram showing a printing example of FIG. 10 according to a conventional example.

まず、投影法処理部4について説明する。First, the projection method processing section 4 will be explained.

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

第2図は投影法の変換前の画素と変換後の画素を表す図
である。投影法は変換前の画素の形状を正方形とみなし
く第2図における破線)、主走査方向、副走査方向共に
変換前の画素の辺の長さに変換倍率の逆数を掛けた長さ
の辺を持つ長方形(第2図における実線)を変換前の画
素に重ねて、その長方形に含まれる黒領域の割合を濃度
情報とする画像密度変換法である。
FIG. 2 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 (the broken line in Figure 2), 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 and sub-scanning directions. This is an image density conversion method in which a rectangle (solid line in FIG. 2) having a shape is superimposed on the pixel before conversion, and the ratio of the black area included in the rectangle is used as density information.

次に、投影法処理部4の一構成例を説明する。Next, an example of the configuration of the projection method processing section 4 will be explained.

第3図において、101は主走査方向の倍率を設定する
レジスタを示し、102は主走査方向の変換が拡大であ
るか縮小であるかを設定するレジスタを示している。レ
ジスタ102には、拡大のときは“1”縮小のときは“
0”が設定される。
In FIG. 3, reference numeral 101 indicates a register for setting the magnification in the main scanning direction, and reference numeral 102 indicates a register for setting whether conversion in the main scanning direction is enlargement or reduction. The register 102 contains “1” for enlargement and “1” for reduction.
0'' is set.

103は副走査方向の倍率を設定するレジスタを示し、
104は副走査方向の変換が拡大であるか縮小であるか
を設定するレジスタを示している。
103 indicates a register for setting the magnification in the sub-scanning direction;
Reference numeral 104 indicates a register for setting whether the conversion in the sub-scanning direction is enlargement or reduction.

レジスタ104には、拡大のときは“1”縮小のときは
“O”が設定される。なお、レジスタ101〜104は
、CPU6により値を設定する。
In the register 104, "1" is set for enlargement, and "O" is set for reduction. Note that the values of the registers 101 to 104 are set by the CPU 6.

105は主走査方向の縮小の主走査方向縮小演算部を示
し、106は主走査方向の拡大の主走査方向拡大演算部
を示し、107は副走査方向の縮小の副走査方向縮小演
算部を示し、108は副走査方向の拡大の副走査方向拡
大演算部を示している。109は水晶発振器からの信号
を分周してライン同期信号を発生するライン同期信号発
生部を示し、110は水晶発振器からの信号を分周して
読出しパルスを発生する読出しパルス発生部を示し、1
11はレジスタ102の出力が0”のとき主走査方向縮
小演算部105からの信号を、l”のとき主走査方向拡
大演算部106からの信号を出力するマルチプレクサ(
以下、rMUXJと称す)を示している。112はレジ
スタ104の出力が“0”のとき副走査方向縮小演算部
107からの信号を、“1”のとき副走査方向拡大演算
部108からの信号を出力するMIXを示している。
Reference numeral 105 indicates a main scanning direction reduction calculation unit for reduction in the main scanning direction, 106 indicates a main scanning direction enlargement calculation unit for enlargement in the main scanning direction, and 107 indicates a sub scanning direction reduction calculation unit for reduction in the sub scanning direction. , 108 indicates a sub-scanning direction enlargement calculating section for enlarging in the sub-scanning direction. Reference numeral 109 indicates a line synchronization signal generation section that divides the frequency of the signal from the crystal oscillator to generate a line synchronization signal, 110 indicates a read pulse generation section that frequency divides the signal from the crystal oscillator and generates a read pulse, 1
Numeral 11 is a multiplexer (11) which outputs a signal from the main scanning direction reduction calculation unit 105 when the output of the register 102 is 0'', and outputs a signal from the main scanning direction expansion calculation unit 106 when the output of the register 102 is 1''.
Hereinafter referred to as rMUXJ). Reference numeral 112 indicates a MIX that 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は定数256を出力する定数部をそ
れぞれ示し、125,126はラインバッファをそれぞ
れ示している。ラインバッファ125,126はダブル
バッファを構成する。127はラインバッファ125,
126の出力を切り換えるMUXを示し、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. In addition, 118 is an inverter,
119 is an AND gate, 120 is an OR gate, 121 is an AND gate, and 122 is an OR gate. Reference numerals 123 and 124 respectively indicate constant parts that output a constant 256, and 125 and 126 indicate line buffers, respectively. Line buffers 125 and 126 constitute a double buffer. 127 is a line buffer 125,
126 shows a MUX that switches the output, and 128 shows a toggle flip-flop that toggles every time a line synchronization signal is input. 129, 130, 131,
132 indicates D flip-flops.

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

ここでは倍率が200/256 (78%縮小)の例を
挙げる。そのときの変換前、変換後の辺の重なりを第4
図に示す。走査方向縮小演算部105は主走査方向倍率
レジスタ101に設定された倍率に従って処理を行う。
Here, we will take an example where the magnification is 200/256 (78% reduction). The overlap of the sides before and after conversion at that time is the fourth
As shown in the figure. The scanning direction reduction calculation unit 105 performs processing according to the magnification set in the main scanning direction magnification register 101.

また動作の基準となるクロックは水晶発振器10からの
クロック入力である。各ラインの処理はライン同期信号
発生部109から入力される信号に同期して行われる。
Further, the clock serving as the reference for operation is the clock input from the crystal oscillator 10. Processing of each line is performed in synchronization with a signal input from line synchronization signal generation section 109.

主走査方向縮小演算部105から出力される信号は、画
像クロック制御信号及び辺の長さの出力である。画像ク
ロック制御信号は負論理の信号で“0”のとき画像クロ
ックがイネーブルとなる。
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 "0", the image clock is enabled.

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

次に、実際の辺の演算法を第4図に沿って説明する。ま
ず、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となり、負になっ
てしまうが、これは第4図の辺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 4, 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.

なお、このとき交換後画素数を合わせるために第5図に
示すように、画像処理装置クロック制御信号を水晶発振
器3からのクロックの1クロック分の間Hにして、画像
クロック比力を間引く処理を行う。
At this time, in order to match the number of pixels after replacement, as shown in FIG. 5, the image processing device clock control signal is set to H for one clock of the clock from the crystal oscillator 3, and the image clock specific power is thinned out. I do.

次の辺の長さは、 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図に示す。主走査方向拡大演算
部106は、主走査方向倍率レジスタ101に設定され
た倍率に従って処理を行う。また動作の基準となるクロ
ックは水晶発振器からのクロック入力である。各ライン
の処理はライン同期信号発生部109から入力される信
号に同期して行われる。主走査方向拡大演算部105か
ら出力される信号は、読aしクロック制御信号及び辺の
長さの出力である。読比しクロック制御信号は負論理の
信号で0のとき、読圧しクロックがイネーブルとなる。
The magnification is 700/256, and FIG. 7 shows the overlap of the sides before and after conversion. 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. 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 enlargement calculation section 105 are the read a clock control signal and the side length output. The reading ratio clock control signal is a negative logic signal, and when it is 0, the reading ratio clock is enabled.

また辺の長さは1〜256の範囲の値であり、9ビツト
のパラレル信号である。変換倍率が700/256であ
るので、主走査方向拡大/縮小レジスタには1を設定す
る。従って、MUX 111は主走査方向拡大演算部1
06の辺の長さを選択、aカする。また、ANDゲート
114の下側の入力はLになり、ORゲート115の下
側の入力はLになるので、画像クロック8カは水晶発振
器からのクロック入力がそのまま出力される。
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, the MUX 111 is the main scanning direction enlargement calculation unit 1.
Select the length of the side of 06 and press a. Further, the lower input of the AND gate 114 becomes L, and the lower input of the OR gate 115 becomes L, so that the clock input from the crystal oscillator is output as it is as the image clock 8.

次に、実際の辺の演算法を第6図に沿って説明する。Next, the actual calculation method for edges will be explained with reference to FIG.

まず、1画素目の辺の長さは256を出力する。次の辺
の長さは、 700−256=444>256であるので、256を
出力する。前記不等号が〉のときは読出しクロック制御
信号は“1” (ディセーブル)とする。次の辺の長さ
は、 444−256=188≦256であるので、188を
出力する。ここで、読比しクロック制御信号を“0”に
して読出しクロックをイネーブルにして、画像出力装置
1に次の画素のデータを要求する。
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 inequality sign is >, the read clock control signal is set to "1" (disabled). Since the length of the next side is 444-256=188≦256, 188 is output. Here, the reading ratio clock control signal is set to "0" to enable the readout clock and request the image output device 1 for data of the next pixel.

次の辺の長さは、 (188+’yoo)−256=632>256である
ので、256を出力する。次の辺の長さは632−23
5=376>256であるので、256を出力する。以
降、同様の処理を繰り返す。
The length of the next side is (188+'yoo)-256=632>256, so 256 is output. The length of the next side is 632-23
Since 5=376>256, 256 is output. Thereafter, the same process is repeated.

なお、辺の演算処理は水晶発振器3からのクロック入力
に同期して行われる。
Note that the side arithmetic processing is performed in synchronization with the clock input from the crystal oscillator 3.

以上、主走査方向縮小及び主走査方向拡大の辺の演算に
ついて説明を行ったが、副走査方向に関しても同じよう
な方法で演算を行っている。ブロック図、タイミングチ
ャート上においては、主走査を副走査に、水晶発振器3
からのクロック入力を読出しパルスに画像クロックをラ
イン同期信号に、辺演算結果A、BをそれぞれC,Dに
読出しクロックをライン読出しパルスに置き代えて考え
れば良い。
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. In the block diagram and timing chart, the main scanning is changed to the sub-scanning, and the crystal oscillator 3
The image clock may be used as a line synchronization signal, the side calculation results A and B may be used as C and D, respectively, and the read clock may be replaced with a line read pulse.

次に、画像データ制御及び画像信号の演算について説明
する。画像データはラインバッファ125.126によ
りダブルバッファ制御され、1ライン分遅延した画像デ
ータがDフリップフロップ129に入力される。Dフリ
ップフロップ129のデータはDフリップフロップ13
1により1画素分遅延する。また、画像信号入力はその
ままDフリップフロップ130に入力される。Dフリッ
プフロップ130のデータはDフリップフロップ132
に入力され1画素分遅延する。
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 one 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 delayed by one pixel.

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

第8図に示すように、主走査方向の辺演算結果A、B及
び副走査方向の辺演算結果C,Dのそれぞれを掛は合わ
せた面積、AXC,BXC,AXD、BXDを求めて、
さらにそれぞれに対応する画像データV+ W+ X+
 yを掛は合わせた後、加算した値が変換後画素の濃度
レベルとなる。9ビツトの辺のデータをすべてのビット
を演算すると17ビツトとなる。18ビツトにならない
理由は、9ビツトの辺のデータの最大値は100 He
xであるためである。画像信号出力は演算結果の17ビ
ツトのうち上位から必要なビット数を採用すれば良い。
As shown in FIG. 8, the areas AXC, BXC, AXD, and BXD are obtained 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.
Furthermore, the corresponding image data V+ W+ X+
After multiplying by y and adding them together, 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 that the maximum value of 9 bit side data is 100 He
This is because x. 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画素重
なる。また、倍率が2分の1倍未満の場合はさらに多く
の画素が重なって(る。これらの画素すべてに対し、演
算を行うことはハードウェア規模の増加になる。
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. Furthermore, if the magnification is less than 1/2, even more pixels overlap. Performing calculations on all of these pixels increases the hardware scale.

そこで、本実施例の投影法処理部4では、参照画素は主
走査方向2画素、副走査方向2画素の計4画素までとし
ている。従って、参照画素が4画素を越える場合は近似
処理が行われている。例えば、第9図に示す主走査方向
、副走査方向共256分の136の倍率の画素数の減少
の場合の変換前画素と変換後画素の対応の例で説明する
。変換前画素Pに重なる変換前画素は9画素分あるが、
この領域なa、b、c+ d+ e+ f+ g+ h
、1で表わす。axiの面積をS1〜S la ”” 
jの色を11〜工、とする、、■は黒のとき“1”白の
とき“0″とする。近似方法は領域Cは領域すと同色、
領域gは領域dと同色、領域f、h、iは領域eと同色
であると近似する。この方法によれば画素Pの濃度工、
は次のようになる。
Therefore, in the projection method processing section 4 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. For example, an example of the correspondence between the pre-conversion pixels and the post-conversion pixels will be explained in the case where the number of pixels is reduced by a magnification of 136/256 in both the main scanning direction and the sub-scanning direction as shown in FIG. There are 9 pre-conversion pixels that overlap the pre-conversion pixel P, but
This area a, b, c+ d+ e+ f+ g+ h
, 1. The area of axi is S1 ~ S la ""
Assume that the color of j is 11~technical, and ■ is "1" when it is black and "0" when it is white. The approximation method is that area C has the same color as the area,
It is approximated that region g has the same color as region d, and regions f, h, and i have the same color as region e. According to this method, the density of the pixel P,
becomes as follows.

Ip = (S、・1.÷(sb+se)・xb + 
(sa÷S、)・I。
Ip = (S,・1.÷(sb+se)・xb+
(sa÷S,)・I.

+ (s、+sr+sr++s+)・1.)/(25B
・256)=((136+40)・80÷(136+4
0)・(136+40>)/(256・256) = 0.6875 となる。
+ (s, +sr+sr++s+)・1. )/(25B
・256)=((136+40)・80÷(136+4
0)・(136+40>)/(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つの参照画素として取り出して
もよい。更に、参照画素は2X2には限定されず、再生
画像の再現性とハード規模及び処理速度との兼ね合いに
よる。
Note that the length of one side after conversion is not limited to 256, and may be calculated using any value. However, the side length is 2″
By doing so, when calculating the density, the division can be done with a shift process, which makes it easier to configure the hardware (not only reduces the hardware scale but also increases the processing speed. Also, in this example, the position of the reference pixel is limited. However, for example, the pixels with large overlap may be extracted as two reference pixels.Furthermore, the reference pixels are not limited to 2×2, and it may be necessary to balance the reproducibility of the reproduced image with the hardware scale and processing speed. by.

多値出力プリンタ5では、投影法処理部4から出力され
るnビットの多値画像信号に従って印字aカする。
The multi-value output printer 5 performs printing according to the n-bit multi-value image signal output from the projection processing section 4.

第10図は投影法処理部において、画素密度変換を行っ
たときの多値出力データの例である。各マトリクスに記
された数字は投影法演算結果の値であり、Oは白、64
は黒を示す。
FIG. 10 is an example of multivalued output data when pixel density conversion is performed in the projection processing section. The numbers written on each matrix are the values of the projection method calculation results, O is white, 64
indicates black.

従来例では、前言己演算結果を単純2値化してプリンタ
に出力するが、第10図の出力データに対してしきい値
32で2値化したときの出力画像を第14図に示す。
In the conventional example, the result of the previous calculation is simply binarized and output to the printer, but FIG. 14 shows an output image when the output data of FIG. 10 is binarized using the threshold value 32.

また、実施例の方法で行えば、出力画像は第11図の様
になる。第11図に於て、斜線で示された部分は実際の
印字出力ではグレーで出力されるところである。この様
に投影法処理部の出力結果を多値圧カブリンタに出力す
ることにより、マクロ的に見たとき斜線がスムーズにな
る効果がある。
Furthermore, if the method of the embodiment is used, the output image will be as shown in FIG. In FIG. 11, the shaded portions are actually printed in gray. By outputting the output result of the projection method processing unit to the multi-value pressure printer in this manner, there is an effect that diagonal lines become smooth when viewed from a macroscopic perspective.

また、写真原稿をデイザ法等の疑似中間調で2値化した
画像データに対して画素密度変換を行った場合にも、濃
度が保存されるので、階調性が良くなるという効果があ
る。
Furthermore, even when pixel density conversion is performed on image data obtained by converting a photographic original into a binary image using a pseudo halftone method such as a dither method, the density is preserved, resulting in improved gradation.

[他の実施例] 第12図は本発明の画像処理装置の他の実施例の構成を
示すブロック図である。
[Other Embodiments] FIG. 12 is a block diagram showing the configuration of another embodiment of the image processing apparatus of the present invention.

同図において、31は後述のメモリ32のメモリ制御を
行うメモリ制御部、32は画像データを蓄積するメモリ
、33は後述の投影法処理部34の動作の基準となるク
ロックを発生する水晶発振器、34は画素密度変換を行
う投影法処理部、36は投影法処理部34よりaカされ
る画像データに基づいて表示画像を形成するCRTデイ
スプレィをそれぞれ示している。
In the figure, 31 is a memory control unit that controls the memory 32, which will be described later; 32 is a memory that stores image data; 33 is a crystal oscillator that generates a clock that serves as a reference for the operation of a projection processing unit 34, which will be described later; Reference numeral 34 indicates a projection processing section that performs pixel density conversion, and 36 indicates a CRT display that forms a display image based on the image data output from the projection processing section 34.

尚、上記31〜34のユニットに関しては、前に述べた
実施例の場合と同じ動作のため、詳細な説明は省略する
。一般にCRTデイスプレィの解像度は640ドツト×
400ドツト、或いは1120ドツト×750ドツトで
あり、この場合、ファクシミリ或いは画像ファクシミリ
システム等と比較すると低解像度である。このため本実
施例では、投影法処理部34において画素密度を低(す
る処理が施される場合を多(設定する。CRTデイスプ
レィ36では、投影法処理部34から出力される多値画
像データをデイスプレィ面に表示する。
Incidentally, since the units 31 to 34 operate in the same manner as in the previous embodiment, a detailed explanation will be omitted. Generally, the resolution of a CRT display is 640 dots.
The resolution is 400 dots, or 1120 dots x 750 dots, and in this case, the resolution is low compared to facsimile or image facsimile systems. For this reason, in this embodiment, the projection method processing section 34 often performs processing to reduce the pixel density. Display on the display surface.

以上、2つの実施例では、画像出力装置として、多値出
力プリンタロとCRTのデイスプレィ36の例を挙げた
が、本発明はこれに限定されるものではなく、その他の
多値入力の画像出力装置等に対しても有効である。
In the above two embodiments, examples of a multi-value output printer and a CRT display 36 have been given as image output devices, but the present invention is not limited thereto, and can output images using other multi-value inputs. It is also effective for equipment etc.

[発明の効果] 以上説明したように、本発明によれば、2値画像の画素
密度変換を行ったときの画質の劣化を減少させることが
できる。
[Effects of the Invention] As described above, according to the present invention, deterioration in image quality when performing pixel density conversion of a binary image can be reduced.

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

第1図は本発明の画像処理装置の一実施例の構成を示す
ブロック図、 第2図は本実施例の投影法を説明する図、第3図は本実
施例の投影法処理部4の構成を示すブロック図、 第4図は本実施例の投影法に基づく縮小例を説明する図
、 第5図は第4図に例に従う信号のタイミングチャート、 第6図は本実施例の投影法に基づく拡大例を説明する図
、 第7図は第6図の例に従う信号のタイミングチャート、 第8図は本実施例の投影法による面の重なりを説明する
図、 第9図は本実施例の投影法の縮小時に近似処理を行う場
合の面の重なりを説明する図、第10図は本実施例の投
影法処理部4の出力例を示す図、 第11図は本実施例による第10図の印刷例を示す図、 第12図は本発明の画像処理装置の他の実施例の構成を
示すブロック図、 第13図は本実施例のCPU6による画像処理手順を説
明するフローチャート、 第14図は従来の画像処理装置の構成を示すブロック図
、 第15図は従来例による第10図の印刷例を示す図であ
る。 図中、1,201−メ(−IJ制御部、2,202・・
・メモリ、3,203・・・水晶発振器、4,204・
・・投影法処理部、5・・・多値8カプリンタ、6−C
PtJ、7−ROM、8・RAM、1ol〜104・・
・レジスタ、10.5・・・主走査方向縮小演算部、1
06・・・主走査方向拡大演算部、107・・・副走査
方向縮小演算部、108・・・副走査方向拡大演算部、
109・・・ライン同期信号発生部、110・・・読み
圧しパルス発生部、111112.127・・・MUX
、113・・・インバータ、114.116,119,
121・・・ANDゲート、115,117,120,
122・・・ORゲート、123,124・・・定数部
、125゜126・・・ラインバッファ、128・・・
トグルフリツブフbツブ、129〜132・・・Dフリ
ップフロップ、225・・・2値化処理部、226・・
・プリンタである。 第 図 第10図 第11図
FIG. 1 is a block diagram showing the configuration of an embodiment of the image processing device of the present invention, FIG. 2 is a diagram explaining the projection method of this embodiment, and FIG. 3 is a diagram of the projection method processing section 4 of this embodiment. A block diagram showing the configuration, FIG. 4 is a diagram explaining a reduction example based on the projection method of this embodiment, FIG. 5 is a timing chart of signals according to the example shown in FIG. 4, and FIG. 6 is a diagram showing the projection method of this embodiment. 7 is a timing chart of signals according to the example of FIG. 6, FIG. 8 is a diagram illustrating the overlapping of surfaces by the projection method of this embodiment, and FIG. 9 is a diagram of this embodiment. 10 is a diagram illustrating an example of the output of the projection processing unit 4 of this embodiment. FIG. FIG. 12 is a block diagram showing the configuration of another embodiment of the image processing apparatus of the present invention; FIG. 13 is a flowchart explaining the image processing procedure by the CPU 6 of this embodiment; The figure is a block diagram showing the configuration of a conventional image processing apparatus, and FIG. 15 is a diagram showing an example of printing of FIG. 10 according to the conventional example. In the figure, 1,201-me (-IJ control unit, 2,202...
・Memory, 3,203...Crystal oscillator, 4,204・
...Projection processing unit, 5...Multivalue 8 coupler printer, 6-C
PtJ, 7-ROM, 8・RAM, 1ol~104...
・Register, 10.5...Main scanning direction reduction calculation unit, 1
06... Main scanning direction enlargement calculation section, 107... Sub-scanning direction reduction calculation section, 108... Sub-scanning direction enlargement calculation section,
109...Line synchronization signal generation section, 110...Reading pressure pulse generation section, 111112.127...MUX
, 113... Inverter, 114.116, 119,
121...AND gate, 115, 117, 120,
122...OR gate, 123, 124...constant part, 125°126...line buffer, 128...
Toggle flip-flop b-tub, 129-132...D flip-flop, 225...binarization processing unit, 226...
・It is a printer. Figure 10 Figure 11

Claims (2)

【特許請求の範囲】[Claims] (1)2値画像データを入力する入力手段と、前記入力
手段で入力された2値画像データの書き込み及び読み出
しを制御する制御手段と、前記制御手段での制御に基づ
いて読み出された2値画像データを画素密度変換し、多
値データにする変換手段と、 前記変換手段で変換された多値データを出力する出力手
段とを備えることを特徴とする画像処理装置。
(1) an input means for inputting binary image data; a control means for controlling writing and reading of the binary image data inputted by the input means; An image processing apparatus comprising: a converting means for converting pixel density of value image data into multi-value data; and an output means for outputting the multi-value data converted by the converting means.
(2)前記変換手段は、投影法に基づいて行うことを特
徴とする請求項第1項記載の画像処理装置。
(2) The image processing apparatus according to claim 1, wherein the conversion means performs the conversion based on a projection method.
JP2202538A 1990-08-01 1990-08-01 Picture processor Pending JPH0488579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2202538A JPH0488579A (en) 1990-08-01 1990-08-01 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2202538A JPH0488579A (en) 1990-08-01 1990-08-01 Picture processor

Publications (1)

Publication Number Publication Date
JPH0488579A true JPH0488579A (en) 1992-03-23

Family

ID=16459163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2202538A Pending JPH0488579A (en) 1990-08-01 1990-08-01 Picture processor

Country Status (1)

Country Link
JP (1) JPH0488579A (en)

Similar Documents

Publication Publication Date Title
US5289293A (en) Pixel density conversion and processing
JP3927388B2 (en) Image processing apparatus, image processing method, and recording medium
US20060256120A1 (en) Image processing apparatus and image processing method
US6130661A (en) Seamless parallel neighborhood process halftoning
EP1434419B1 (en) Image processing apparatus and image processing method
US4937677A (en) Method of enlarging/reducing dithered images
JP4386216B2 (en) Color printing system and control method thereof
JPH0488579A (en) Picture processor
JP3539552B2 (en) Image processing device
JP3455078B2 (en) Image processing apparatus and image processing method
JP2714140B2 (en) Pixel density converter
JP2845376B2 (en) Pixel density converter
JPH1188693A (en) Pseudo-gradation processing unit
JPH10126609A (en) Image processor
JP2005094126A (en) Image processing apparatus, image processing method, and image processing program executable by computer
JPH09130597A (en) Picture processing method and device therefor
JP3564216B2 (en) Image processing device
JP2002152511A (en) Image processor, image processing method and computer readable medium recording program for executing that method in computer
JPH0311478A (en) Picture element density converter
JP4124900B2 (en) Color printer and control method thereof
JP3221152B2 (en) Facsimile machine
JP2002101303A (en) Image processing unit
JPH1042132A (en) Picture processor
JP2001184502A (en) Device and method for processing image and computer readable recording medium with recorded program for computer to execute the same method
JPH0937072A (en) Image magnifying device