JPH11328389A - Device and method for image processing - Google Patents

Device and method for image processing

Info

Publication number
JPH11328389A
JPH11328389A JP10129158A JP12915898A JPH11328389A JP H11328389 A JPH11328389 A JP H11328389A JP 10129158 A JP10129158 A JP 10129158A JP 12915898 A JP12915898 A JP 12915898A JP H11328389 A JPH11328389 A JP H11328389A
Authority
JP
Japan
Prior art keywords
value
random number
unit
signal
output
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.)
Granted
Application number
JP10129158A
Other languages
Japanese (ja)
Other versions
JP3809274B2 (en
Inventor
Hiroshi Kaburagi
浩 蕪木
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 JP12915898A priority Critical patent/JP3809274B2/en
Publication of JPH11328389A publication Critical patent/JPH11328389A/en
Application granted granted Critical
Publication of JP3809274B2 publication Critical patent/JP3809274B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To simplify the hardware and to convert the gradations of multivalued image data with high picture quality by performing the gradation conversion by adding a random numbers value to the inputted multivalued image data, dividing the addition result by a specific value, and outputting only the quotient. SOLUTION: A sign inversion and data hold part 711 converts the sign of random numbers R inputted from a random numbers generation part 710 and outputs hold random numbers to a selector 712. The selector 712 switches and outputs the random numbers R inputted from the random numbers generation part 710 and the hold random numbers from the sign inversion and data hold part 711. An addition part 707 performs an adding process between an inputted image signal D and an addition quantity control part 713. A hysteresis controlled value calculation part 708 calculates the controlled value of hysteresis with the signal from the addition part 707 and outputs it to a threshold value calculation part 705. A division part 709 divides the inputted image signal DR by a constant 17 and outputs only its quotient. Thus, a gradation converting process part 604 performs binarizing processing.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、入力した多値の画
像データを階調変換して出力する画像処理装置及び方法
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and method for converting input multivalued image data into gradations and outputting the converted data.

【0002】[0002]

【従来の技術】従来、中間調表現を行うための画像処理
方法として誤差拡散法(以下「ED」と呼ぶ)や平均濃
度保存法(以下「MD」と呼ぶ)などが一般に知られて
いる。これらは、少ない階調数を用いて面積階調表現を
行うことにより、マクロ的に中間調を表現しようとする
ものである。
2. Description of the Related Art Conventionally, an error diffusion method (hereinafter referred to as "ED") and an average density storage method (hereinafter referred to as "MD") are generally known as image processing methods for performing halftone expression. These are intended to express a halftone macroscopically by performing area gradation expression using a small number of gradations.

【0003】しかし、これらの処理は入力画像(8bi
t)に対して行うため、処理負荷が大きかった。そのた
め、入力画像の8bitを前処理で4bitに変換し、
処理負荷を小さくする手法が米国特許USP5,394,250やUS
P5,436,736などで提案されている。
[0003] However, these processes are performed only when the input image (8 bi
Since processing is performed for t), the processing load was large. Therefore, 8 bits of the input image are converted to 4 bits by pre-processing,
U.S. Patents USP 5,394,250 and US
It is proposed in P5,436,736.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上述の
提案は、処理負荷を小さくすることができても、EDや
MDで処理したときに特定の濃度領域で問題となる独自
なテクスチャを改善することができなかった。
However, the above-mentioned proposal is to improve a unique texture which is a problem in a specific density region when processed by ED or MD even if the processing load can be reduced. Could not.

【0005】そこで、図1に示すように、t値化処理の
前段で入力画像に所定の乱数を加算することにより、そ
のテクスチャを改善する手法が提案されている。その詳
細を以下に述べる。
Therefore, as shown in FIG. 1, there has been proposed a method of adding a predetermined random number to an input image at a stage prior to the t-value processing to improve the texture of the input image. The details are described below.

【0006】同図において、101は乱数発生部であ
り、乱数Rを生成する処理部である。図2は乱数生成部
101の構成を示すブロック図である。また、図3は乱
数発生をプログラム言語Cで示したものである。ここで
は、説明の関係上、図3を用いて説明する。
In FIG. 1, reference numeral 101 denotes a random number generation unit, which is a processing unit for generating a random number R. FIG. 2 is a block diagram illustrating a configuration of the random number generation unit 101. FIG. 3 shows the random number generation in a programming language C. Here, the description will be given with reference to FIG.

【0007】まず、初期化で、p[ii]:(0≦ii≦2
5)のレジスタに“0”を書き込み、p[12]のレジス
タのみに“1”を設定する。そして、乱数値を出力する
前に、画素毎にp[0]=(p[25]^p[24]^p
[23]^p[22]&1)の演算を行った後、以下の演算
により、−17〜17の乱数値を生成する。
First, in initialization, p [ii] :( 0 ≦ ii ≦ 2
Write "0" to the register of 5), and set "1" only to the register of p [12]. Then, before outputting a random value, p [0] = (p [25] ^ p [24] ^ p
[23] After performing the calculation of p [22] & 1), a random number value of -17 to 17 is generated by the following calculation.

【0008】乱数=(1−2*p[22])*(((p
[15]*64+p[16]*32+p[17]*16+p[18]*
8+p[19]*4+p[20]*2+p[21])*17)/1
28) ここで、±17以上の乱数を生成し、最後に128で除
算しているのは、乱数の発生率に偏りをなくすためであ
る。
Random number = (1-2 * p [22]) * (((p
[15] * 64 + p [16] * 32 + p [17] * 16 + p [18] *
8 + p [19] * 4 + p [20] * 2 + p [21]) * 17) / 1
28) Here, the reason for generating a random number of ± 17 or more and finally dividing by 128 is to eliminate a bias in the random number generation rate.

【0009】また、上式では、−17〜17の乱数を生
成しているが、乱数発生部を以下のようにし、−15〜
15までの乱数値を生成するように変更しても同様な効
果が得られることは言うまでもない。
In the above equation, random numbers from -17 to 17 are generated.
It goes without saying that a similar effect can be obtained even if the change is made to generate up to 15 random numbers.

【0010】乱数=(1−2*p[2])*(p[18]
*8+p[19]*4+p[20]*2+p[21] この乱数値は、乱数値の絶対値を大きくするとテクスチ
ャ改善効果が大きくなり、絶対値を小さくするとテクス
チャ改善効果が小さくなる傾向がある。
Random number = (1-2 * p [2]) * (p [18]
* 8 + p [19] * 4 + p [20] * 2 + p [21] The random number value tends to increase the texture improvement effect when the absolute value of the random number value is increased, and decreases when the absolute value is decreased.

【0011】しかし、乱数値を大きくしすぎると、テク
スチャの改善効果以上に画像が荒れてしまい、画質の低
下につながることは言うまでもない。絶対値で7〜17
程度の値が実現的である。
However, if the random number value is too large, it goes without saying that the image becomes rougher than the effect of improving the texture, leading to a reduction in image quality. 7 to 17 in absolute value
A degree value is feasible.

【0012】図1に戻り、乱数発生部101から出力さ
れた乱数値は、符号反転及びデータ保持部102とセレ
クタ103に入力される。
Returning to FIG. 1, the random number value output from the random number generation unit 101 is input to the sign inversion and data holding unit 102 and the selector 103.

【0013】符号反転及びデータ保持部102では、入
力された乱数値の符号を一度反転し、“p×X+p/
2”(p≧2の任意な偶数値、X:主走査方向のアドレ
ス値)画素の間、その乱数値を保持した後、出力する構
成となっている。
The sign inversion and data holding unit 102 inverts the sign of the input random number once to obtain “p × X + p /
For 2 ″ (arbitrary even value of p ≧ 2, X: address value in the main scanning direction), the random number value is held and output.

【0014】一方、セレクタ103では、入力された乱
数値と、符号反転及びデータ保持部102との値を画像
位置信号により、出力を切り替える構成となっている。
On the other hand, the selector 103 is configured to switch the output between the input random number value and the value of the sign inversion and data holding unit 102 according to the image position signal.

【0015】ここで、上述の画素位置信号とは、“p×
X”(p≧2の任意な偶数値、X:主走査方向のアドレ
ス値)の画素毎に乱数発生部101の値を出力させ、
“p×X+p/2”の画素毎に符号反転及びデータ保持
部102の値を出力させる制御信号のことであり、Hs
ync信号から生成される。それ以外の画素位置では、
“0”の値を出力する構成となっている。
Here, the above-mentioned pixel position signal is “p ×
A value of the random number generation unit 101 is output for each pixel of X "(an arbitrary even value of p ≧ 2, X: an address value in the main scanning direction),
A control signal for inverting the sign and outputting the value of the data holding unit 102 for each pixel of “p × X + p / 2”.
Generated from the sync signal. At other pixel positions,
It is configured to output a value of “0”.

【0016】以上の処理により生成した乱数値を、入力
多値信号Dが“0”又は“255”以外の場合、加算部
104で入力多値信号Dに加算する構成となっている。
この時、図示はしていないが、最小0、最大255でリ
ミッタをかけている。
When the input multi-level signal D is other than "0" or "255", the adding section 104 adds the random number generated by the above processing to the input multi-level signal D.
At this time, although not shown, a limiter is set at a minimum of 0 and a maximum of 255.

【0017】次に、除算部105では、入力画像信号を
“17”で割り、商と余りとを分離する処理を行ってい
る。ここで、商(0〜15)は、加算部107へ入力さ
れ、余り(0〜16)は、コンパレータ106へ入力さ
れる構成となっている。
Next, the divider 105 divides the input image signal by "17" to separate the quotient from the remainder. Here, the quotient (0 to 15) is input to the adder 107, and the remainder (0 to 16) is input to the comparator 106.

【0018】また、乱数発生部109では、上述の乱数
発生部101と基本的に同様な手法で生成された0〜1
6の正の乱数値が出力される構成となっている。その詳
細は、乱数発生部101と同様なため、説明を省略する
が、図4は乱数発生部109の乱数発生をプログラム言
語Cで示したものである。
The random number generation unit 109 generates 0 to 1 generated by a method basically similar to that of the random number generation unit 101 described above.
6 is output. The details thereof are the same as those of the random number generation unit 101, and thus the description thereof is omitted, but FIG. 4 shows the random number generation of the random number generation unit 109 in the programming language C.

【0019】次に、コンパレータ106では、乱数発生
部109から入力された乱数値(0〜16)と除算部1
05から入力された余りの値(0〜16)とを比較し、
余りの方が乱数値より大きい場合の時のみ、“1”の値
を出力し、それ以外は“0”を出力する構成となってい
る。この出力値は、加算部107で除算部105からの
商の値(0〜15)が加算され、4bit信号が後述す
るt値化処理部に出力される。
Next, in the comparator 106, the random number value (0 to 16) input from the random number generation unit 109 and the division unit 1
Compare with the remainder value (0-16) entered from 05,
Only when the remainder is larger than the random value, a value of “1” is output, and otherwise, “0” is output. This output value is added with the quotient value (0 to 15) from the division unit 105 by the addition unit 107, and a 4-bit signal is output to a t-value processing unit described later.

【0020】以上の処理により、入力信号を4bit信
号に変換した後、t(t≦4)値化処理をt値化処理部
108で施し、出力する構成となっている。
After the input signal is converted into a 4-bit signal by the above processing, a t (t ≦ 4) value conversion process is performed by the t-value conversion processing unit 108 and output.

【0021】しかし、上述した図1に示した手法の場
合、加算部104と加算部107とで、入力画像に2度
乱数を加えていることになり、ハード規模が大きくなる
だけでなく、画質の低下にもつながるという問題点があ
った。
However, in the case of the method shown in FIG. 1 described above, the addition unit 104 and the addition unit 107 add a random number twice to the input image, which not only increases the hardware scale but also increases the image quality. There is a problem that it also leads to a decrease in

【0022】本発明は、上記課題を解決するためになさ
れたもので、ハードウェアの簡略化を図れると共に、多
値画像データの階調変換処理を高画質に行える画像処理
装置及び方法を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and provides an image processing apparatus and method which can simplify hardware and perform high-quality gradation conversion of multi-valued image data. The purpose is to:

【0023】[0023]

【課題を解決するための手段】上記目的を達成するため
に、本発明は、入力した多値の画像データを階調変換し
て出力する画像処理装置において、乱数値を生成する乱
数生成手段と、入力した多値の画像データに前記乱数値
を加算する加算手段と、前記加算手段での加算結果を所
定の値で除算し、商のみを出力して階調変換を行う階調
変換手段とを有することを特徴とする。
According to the present invention, there is provided an image processing apparatus for converting input multi-valued image data into gradations and outputting the converted data. An addition unit that adds the random number value to input multi-valued image data, and a gradation conversion unit that divides an addition result by the addition unit by a predetermined value, outputs only a quotient, and performs gradation conversion. It is characterized by having.

【0024】また上記目的を達成するために、本発明
は、入力した多値の画像データを階調変換して出力する
画像処理方法において、乱数値を生成する乱数生成工程
と、入力した多値の画像データに前記乱数値を加算する
加算工程と、前記加算工程での加算結果を所定の値で除
算し、商のみを出力して階調変換を行う階調変換工程と
を有することを特徴とする。
According to another aspect of the present invention, there is provided an image processing method for converting input multi-valued image data into gradations and outputting the same, the method comprising the steps of: And a tone conversion step of dividing the addition result in the addition step by a predetermined value, outputting only a quotient, and performing tone conversion. And

【0025】[0025]

【発明の実施の形態】以下、図面を参照しながら本発明
に係る実施の形態について詳細に説明する。尚、本実施
形態では、本発明をカラー複写機の2値化処理に適用し
た場合を例に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings. In this embodiment, a case where the present invention is applied to a binarization process of a color copying machine will be described as an example.

【0026】●処理概略 図5は、実施形態におけるカラー複写機の概略構成を示
すブロック図である。同図において、509は画像読取
部であり、レンズ501、CCDセンサ502、アナロ
グ信号処理部503により構成される。ここで、レンズ
501を介してCCDセンサ502に結像された原稿5
00の画像情報が、CCDセンサ502によりR(Re
d),G(Green),B(Blue)のアナログ電
気信号に光電変換される。変換された画像信号は、アナ
ログ信号処理部503に入力され、R,G,B,の各色
毎にサンプル&ホールド、ダークレベルの補正等が行わ
れた後にアナログ・デジタル(A/D)変換される。そ
して、デジタル変換されたフルカラー画像信号は、50
4の画像処理部に入力される。
FIG. 5 is a block diagram showing a schematic configuration of a color copying machine according to the embodiment. In the figure, reference numeral 509 denotes an image reading unit, which includes a lens 501, a CCD sensor 502, and an analog signal processing unit 503. Here, the original 5 imaged on the CCD sensor 502 via the lens 501
Image information of R (Re)
d), G (Green), and B (Blue) are photoelectrically converted into analog electric signals. The converted image signal is input to an analog signal processing unit 503, where the image signal is sampled and held for each of R, G, and B colors, corrected for a dark level, and the like, and then subjected to analog / digital (A / D) conversion. You. The digitally converted full-color image signal is 50
4 is input to the image processing unit.

【0027】画像処理部504では、シェーディング補
正、色補正、Υ補正等の画像読取系で必要な補正処理
や、スムージング処理、エッジ強調、その他の処理、加
工等が行われ、505のプリンタ部に出力される。
The image processing unit 504 performs correction processing necessary for the image reading system such as shading correction, color correction, and Υ correction, smoothing processing, edge enhancement, other processing, processing, and the like. Is output.

【0028】プリンタ部505は、レーザ等からなる露
光制御部(図示せず)、画像形成部(図示せず)、転写
紙の搬送制御部(図示せず)等により構成され、入力さ
れた画像信号により転写紙上に画像を記録する。
The printer unit 505 is composed of an exposure control unit (not shown) composed of a laser or the like, an image forming unit (not shown), a transfer paper transport control unit (not shown), and the like. An image is recorded on the transfer paper by a signal.

【0029】510はCPU回路部であり、CPU50
6,ROM507,RAM508等により構成され、画
像読取部509、画像処理部504、プリンタ部505
等を制御し、本装置のシーケンスを統括的に制御する。
Reference numeral 510 denotes a CPU circuit, and the CPU 50
6, an image reading unit 509, an image processing unit 504, and a printer unit 505.
And the like to control the sequence of the apparatus in a comprehensive manner.

【0030】●画像処理部 次に、上述の画像処理部504について詳細に説明す
る。図6は、実施形態における画像処理部504の構成
を示すブロック図である。同図において、601はシェ
ーディング補正部、602は階調補正部、603はカラ
ー/モノクロ変換部、604は階調変換処理部である。
Image processing unit Next, the image processing unit 504 will be described in detail. FIG. 6 is a block diagram illustrating a configuration of the image processing unit 504 according to the embodiment. In the figure, 601 is a shading correction unit, 602 is a gradation correction unit, 603 is a color / monochrome conversion unit, and 604 is a gradation conversion processing unit.

【0031】上記の構成において、まずアナログ信号処
理部503より出力されるデジタル画像信号は、シェー
ディング補正部601に入力される。シェーディング補
正部601では、原稿を読み取るセンサのばらつきや原
稿照明用ランプの配光特性の補正を行っている。次に、
補正演算された画像信号は、輝度信号から濃度データに
変換するために階調補正部602に入力され、濃度画像
データが作成される。濃度データに変換された画像信号
は、カラー/モノクロ変換部603に入力され、モノク
ロデータとして出力される。そして、カラー/モノクロ
変換部603から出力されたデータは、階調変換処理部
604に入力され、擬似中間調表現として誤差拡散処理
(ED処理)若しくは平均濃度保存処理(MD処理)が
行われる。
In the above configuration, first, the digital image signal output from the analog signal processing unit 503 is input to the shading correction unit 601. The shading correction unit 601 corrects variations in sensors that read the original and light distribution characteristics of the original illumination lamp. next,
The corrected image signal is input to the tone correction unit 602 to convert the luminance signal into density data, and density image data is created. The image signal converted into the density data is input to the color / monochrome conversion unit 603, and is output as monochrome data. The data output from the color / monochrome conversion unit 603 is input to the gradation conversion processing unit 604, and error diffusion processing (ED processing) or average density storage processing (MD processing) is performed as pseudo halftone expression.

【0032】次に、本発明に係る階調変換処理部604
について詳細に説明する。
Next, a gradation conversion processing section 604 according to the present invention.
Will be described in detail.

【0033】●階調変換処理部 図7は、実施形態における階調変換処理部604の詳細
な構成を示すブロック図である。尚、実施形態において
は、テクスチャ制御を可能とした2値のMD法を例に挙
げて説明する。
FIG. 7 is a block diagram showing a detailed configuration of the gradation conversion processing unit 604 in the embodiment. In the embodiment, a binary MD method that enables texture control will be described as an example.

【0034】カラー/モノクロ変換部603からの画像
信号Dに後述する乱数が加算され、更に後述する定数
“17”による除算処理が行われた信号DR’と、2値
化処理で発生した誤差データEとが誤差補正部702に
入力される。そして、後述する誤差補正を行い、画像信
号DEとして2値化部701に出力する。
A random number, which will be described later, is added to the image signal D from the color / monochrome conversion unit 603, and a signal DR ′ obtained by performing a division process by a constant “17”, which will be described later, and error data generated by the binarization process. E is input to the error correction unit 702. Then, an error correction, which will be described later, is performed, and the image signal is output to the binarizing unit 701 as an image signal DE.

【0035】2値化部701は、誤差補正された画像信
号DEと、後述する2値化スライス値Sと、後述する平
均濃度値mとを入力し、画像信号DEと2値化スライス
値Sとを比較することによって2値出力Nを求める。ま
た、画像信号DEと平均濃度値mとを減算処理すること
によって2値化誤差データEを算出する。
The binarization section 701 receives the error-corrected image signal DE, a binarized slice value S described later, and an average density value m described later, and receives the image signal DE and the binarized slice value S. To obtain a binary output N. Further, the binarization error data E is calculated by subtracting the image signal DE from the average density value m.

【0036】2値化結果遅延部703は、2値化された
2値出力Nを入力し、所定のライン数の遅延を行い、遅
延されたデータを複数ライン2値化結果Nmn及びB*
ijとして平均濃度算出部704、及びしきい値算出部
705に送出する。
The binarization result delay section 703 receives the binarized binary output N, delays the data by a predetermined number of lines, and converts the delayed data into a plurality of line binarization results Nmn and B *.
ij is sent to the average density calculator 704 and the threshold calculator 705.

【0037】平均濃度算出部704は、遅延された複数
ライン2値化結果Nmnを入力し、予め設定してある係
数と積和演算を行って平均濃度値mを算出し、加算部7
06及び2値化部701へ平均濃度値mを出力する。
The average density calculating section 704 receives the delayed multi-line binarization result Nmn, performs a product-sum operation with a preset coefficient, calculates an average density value m, and outputs an average density value m.
06 and an average density value m to the binarization unit 701.

【0038】しきい値算出部705は、上述の2値化結
果遅延部703の複数ライン2値化結果B*ijと、入
力多値データDと、ヒステリシス制御量算出部708の
出力Tとを入力し、過去の2値化状況(パターン)であ
るB*ij信号に応じて任意の領域におけるしきい値制
御量を算出して、それを2値化スライス値S’として加
算部706へ送出する。
The threshold value calculation unit 705 calculates the binarization result B * ij of the plurality of lines of the above-described binarization result delay unit 703, the input multi-value data D, and the output T of the hysteresis control amount calculation unit 708. A threshold control amount in an arbitrary area is calculated in accordance with the input B * ij signal which is a past binarization situation (pattern), and the calculated threshold control amount is sent to the addition unit 706 as a binarized slice value S '. I do.

【0039】加算部706は、平均濃度算出部704の
平均濃度値mと、しきい値算出部705の2値化スライ
ス値S’との信号を入力し、加算処理を行って、その結
果を2値化スライス値として2値化部701へ出力す
る。
The addition section 706 receives the signal of the average density value m of the average density calculation section 704 and the binary slice value S ′ of the threshold value calculation section 705, performs addition processing, and outputs the result. Output to the binarization section 701 as a binarized slice value.

【0040】乱数発生部710は、後述する手法により
「−17〜17」のm系列の乱数Rを発生させ、セレク
タ712と符号反転及びデータ保持部711へ出力す
る。
The random number generating section 710 generates an m-sequence random number R of “−17 to 17” by a method described later, and outputs it to the selector 712 and the sign inversion and data holding section 711.

【0041】符号反転及びデータ保持部711は、乱数
発生部710から入力した乱数Rの符号反転を行い、後
述する一定画素間だけデータを保持した後、セレクタ7
12に保持乱数を出力する。
The sign inversion and data holding unit 711 inverts the sign of the random number R input from the random number generation unit 710 and holds data only for a certain number of pixels, which will be described later.
The stored random number is output to 12.

【0042】セレクタ712は、後述するタイミングの
画素位置信号に基づき、乱数発生部710から入力した
乱数Rと符号反転及びデータ保持部711からの保持乱
数とを切り替えて出力する。
The selector 712 switches and outputs the random number R input from the random number generator 710 and the random number held from the sign inversion and data holding unit 711 based on the pixel position signal at the timing described later.

【0043】加算量制御部713は、画像信号Dの値に
応じて、後述する手法を用いて乱数出力値の制御を行
う。
The addition amount control unit 713 controls a random number output value according to the value of the image signal D by using a method described later.

【0044】加算部707は、入力された画像信号Dと
加算量制御部713との加算処理を行う。ヒステリシス
制御量算出部708は、加算部707からの信号によっ
て後述する手法でヒステリシスの制御量を算出し、しき
い値算出部705へ出力する。除算部709は、入力さ
れた画像信号DRを定数17で除算し、その商のみを出
力する。この時、余りはすべて切り捨てている。
The addition section 707 performs an addition process between the input image signal D and the addition amount control section 713. The hysteresis control amount calculation unit 708 calculates a hysteresis control amount by a method described later based on a signal from the addition unit 707, and outputs the control amount to the threshold value calculation unit 705. The division unit 709 divides the input image signal DR by a constant 17 and outputs only the quotient. At this time, all remainders have been truncated.

【0045】以上の構成により、階調変換処理部604
で2値化処理が行われる。
With the above configuration, the gradation conversion processing section 604
Performs a binarization process.

【0046】次に、階調変換処理部604の各処理部に
ついて詳細に説明する。まず、乱数発生部710は、前
述した図1と同様な構成で乱数が生成される。
Next, each processing unit of the gradation conversion processing unit 604 will be described in detail. First, the random number generation unit 710 generates a random number with a configuration similar to that of FIG. 1 described above.

【0047】まず、初期化で、p[ii]:(0≦ii≦2
5)のレジスタに“0”を書き込み、p[12]のレジス
タのみに“1”を設定する。そして、乱数値を出力する
前に、画素毎にp[0]=(p[25]^p[24]^p
[23]^p[22]&1)の演算を行った後、以下の演算
により、−17〜17の乱数値を生成する。
First, in initialization, p [ii] :( 0 ≦ ii ≦ 2
Write "0" to the register of 5), and set "1" only to the register of p [12]. Then, before outputting a random value, p [0] = (p [25] ^ p [24] ^ p
[23] After performing the calculation of p [22] & 1), a random number value of -17 to 17 is generated by the following calculation.

【0048】乱数=(1−2*p[22])*(((p
[15]*64+p[16]*32+p[17]*16+p[18]*
8+p[19]*4+p[20]*2+p[21])*17/12
8) 実施形態では、−17〜17の乱数を用いているが、乱
数発生部を以下の演算により、−15〜15までの乱数
値を生成するように変更してもよい。
Random number = (1-2 * p [22]) * (((p
[15] * 64 + p [16] * 32 + p [17] * 16 + p [18] *
8 + p [19] * 4 + p [20] * 2 + p [21]) * 17/12
8) In the embodiment, random numbers from -17 to 17 are used. However, the random number generation unit may be changed to generate random numbers from -15 to 15 by the following calculation.

【0049】乱数=(1−2*p[2])*(p[18]
*8+p[19]*4+p[20]*2+p[21]) ここで、重要なことは、生成した乱数の最大値(実施形
態では17)が、後述する除算部709で除算する数
(実施形態では17)の1/2以上(少数部切り捨て)
にする必要があることである。
Random number = (1-2 * p [2]) * (p [18]
* 8 + p [19] * 4 + p [20] * 2 + p [21] Here, what is important is that the maximum value of the generated random numbers (17 in the embodiment) is divided by a division unit 709 described later (the embodiment). In this case, more than 1/2 of 17) (fraction cut off)
That is what you need to do.

【0050】尚、実施形態では、除算部706で除算す
る数が17であるため、17/2=8(少数部切り捨
て)となり、乱数発生部710の最大乱数生成値は8以
上の値に設定する必要があることになる(実施形態では
8以上の17に設定している)。もし、除算部706で
除算する数が7であるならば、7/2=3(少数部切り
捨て)となり、乱数発生手段310の最大乱数生成値
は、3以上の値にする必要があることは言うまでもな
い。
In the embodiment, since the number to be divided by the division unit 706 is 17, 17/2 = 8 (decimal part truncation), and the maximum random number generation value of the random number generation unit 710 is set to a value of 8 or more. (In this embodiment, 17 is set to 8 or more). If the number to be divided by the division unit 706 is 7, 7/2 = 3 (decimal point truncation), and the maximum random number generation value of the random number generation unit 310 needs to be 3 or more. Needless to say.

【0051】このように、乱数生成を全ての画素に対し
て行う。
As described above, random number generation is performed for all pixels.

【0052】次に、乱数反転及びデータ保持部711で
は、“p×X”(p≧2の偶数、X:主走査方向のアド
レス値)の画素位置で生成した乱数発生部710の乱数
値を、符号のみ反転して、“p/2”画素の間保持した
後、出力構成となっている。例えば、pの値が“2”の
場合、“p×X”の画素位置、つまり、画素位置が
“0,2,4,6,8,10,12,14,…”で発生
した乱数値を一時的に保持し、画素位置が“1,3,
5,7,9,11,13,15,…”で保持していた乱
数値の符号を反転して出力することになる。無論、全て
の画素の乱数値を保持し続ける必要はなく、一画素ずつ
リフレッシュしていく構成で十分である。
Next, the random number inversion and data holding section 711 calculates the random number value of the random number generation section 710 generated at the pixel position of “p × X” (even number of p ≧ 2, X: address value in the main scanning direction). , Only the sign is inverted, and the output is held for “p / 2” pixels. For example, when the value of p is “2”, a random number generated at a pixel position of “p × X”, that is, a pixel position of “0, 2, 4, 6, 8, 10, 12, 14,. Are temporarily held, and the pixel positions are “1, 3,
5, 7, 9, 11, 13, 15,... ”, The sign of the random number value is inverted and output. Of course, it is not necessary to keep the random number values of all the pixels. A configuration in which each pixel is refreshed is sufficient.

【0053】一方、セレクタ712は、画素毎に生成さ
れる乱数発生部710の乱数値と、符号反転及びデータ
保持部711とからの乱数値を、画素位置信号によって
切り替えて出力する構成となっている。
On the other hand, the selector 712 is configured to switch and output the random number value of the random number generation unit 710 generated for each pixel and the random number value from the sign inversion and data holding unit 711 according to the pixel position signal. I have.

【0054】この画素位置信号とは、“p×X+p/
2”(p≧2の偶数、X:主走査方向のアドレス値)の
画素位置のときのみ、符号反転及びデータ保持部711
からの乱数値をセレクトし、それ以外のときは、すべ
て、乱数発生部710からの乱数値をセレクトするもの
である。
This pixel position signal is “p × X + p /
Only at the pixel position of 2 ″ (even number of p ≧ 2, X: address value in the main scanning direction), sign inversion and data holding unit 711
Is selected, and otherwise, the random number value from the random number generator 710 is selected.

【0055】加算量制御部713は、上述の乱数発生部
710における量大乱数値が、後述する除算部709で
割る数(実施形態では17)の1/2(少数部切り捨て
で8)より大きい場合に、その大きい乱数に対しての
み、入力多値信号Dに応じた出力制御を行う構成が重要
なポイントとなっている。
The addition amount control unit 713 determines that the large random number value in the above-described random number generation unit 710 is larger than 1/2 (8 in the embodiment) divided by the division unit 709 (17 in the embodiment). In addition, an important point is that the output control according to the input multi-level signal D is performed only for the large random number.

【0056】図8は、加算量制御部713の加算量制御
をプログラム言語Cで示したものである。ここで、重要
なことは、セレクタ712の出力RDを定数SLで除算
する定数SLの設定法である。
FIG. 8 shows the addition amount control of the addition amount control unit 713 in a program language C. What is important here is a method of setting a constant SL for dividing the output RD of the selector 712 by a constant SL.

【0057】定数SLは、RD/SLの結果が、除算部
709で割る数の1/2になるように決定してある。つ
まり、実施形態では、除算部709で割る数が17であ
るため、17/2=8(少数部切り捨て)となり、RD
/SL=8、17/SL=8(少数部切り捨て)からS
L値を“2”に設定する必要がある。
The constant SL is determined so that the result of RD / SL is 1 / of the number divided by the divider 709. That is, in the embodiment, since the number divided by the division unit 709 is 17, 17/2 = 8 (decimal part truncation), and RD
/ SL = 8, 17 / SL = 8 (fraction truncated) to S
It is necessary to set the L value to “2”.

【0058】入力多値信号DがN1(例えば16)以下
の場合には、“P1=RD/SL”の演算により、必要
最小限の乱数が加算されることになる。ここでいう必要
最小限の乱数とは、除算部709において“17”で除
算するため、乱数の振れ幅を“−8〜8”に設定したと
いうことである。つまり、乱数の振れ幅をα(ここで
は、16)とすると、除算部709で割る数は、(α+
1)(ここでは、17)となる関係になる。
When the input multi-level signal D is equal to or smaller than N1 (for example, 16), the minimum necessary random number is added by the calculation of "P1 = RD / SL". Here, the minimum necessary random number means that the amplitude of the random number is set to “−8 to 8” in order to divide by “17” in the division unit 709. That is, assuming that the amplitude of the random number is α (here, 16), the number divided by the division unit 709 is (α +
1) (here, 17).

【0059】また、入力多値信号DがN1より大きくN
2(例えば32)以下の場合には、“P1=(RD−R
D/SL)*(D−N1)/(N2−N1)+RD/S
L”の演算により、振幅制御された乱数が加算されるこ
とになる。ここでのポイントは、必要最小限の乱数以上
の部分に対してのみ、振幅制御されると言うことであ
る。その部分が、上式の中の“(RD−TD/SL)*
(D−N1)/(N2−N1)”である。
When the input multi-level signal D is larger than N1 and N
2 (for example, 32) or less, "P1 = (RD-R
D / SL) * (D-N1) / (N2-N1) + RD / S
By the calculation of L ″, the amplitude-controlled random numbers are added. The point here is that the amplitude is controlled only for the portion that is equal to or more than the minimum necessary random number. Is "(RD-TD / SL) *" in the above equation.
(D-N1) / (N2-N1) ".

【0060】同様に、入力多値信号DがN3(例えば2
01)以上でN4(例えば233)より小さい場合に
は、“P1=(RD−RD/SL)*(N4−D)/
(N4−N3)+RD/SL”の演算により、上述した
処理と同様に振幅制御された乱数が加算されることにな
る。このとき、必要以上の乱数で振幅制御されている部
分は同様に“(RD−RD/SL)*(N4−D)/
(N4−N3)”である。
Similarly, when the input multilevel signal D is N3 (for example, 2
01) and smaller than N4 (for example, 233), "P1 = (RD-RD / SL) * (N4-D) /
By the calculation of (N4−N3) + RD / SL ”, a random number whose amplitude is controlled in the same manner as in the above-described processing is added. (RD-RD / SL) * (N4-D) /
(N4-N3) ".

【0061】また、入力多値信号DがN4以上の場合に
は、“P1=RD/SL”の演算により、必要最小限の
乱数のみが加算される。更に、入力多値信号Dが上記の
範囲外の場合は、入力された乱数RDすべてが加算量制
御部713から乱数P1として出力される構成となって
いる。
When the input multi-level signal D is equal to or larger than N4, only the minimum necessary random numbers are added by the calculation of "P1 = RD / SL". Further, when the input multi-level signal D is out of the above range, all the input random numbers RD are output from the addition amount control unit 713 as the random numbers P1.

【0062】加算部707は、上述した乱数P1と入力
多値信号Dと定数8とを加算する処理を行う。定数8を
加算するということが、ここでも重要なポイントとなっ
ている。これは、後述する除算部709で割る定数が
“17”であるため、除算した余りが最大16になるこ
とから、加算する乱数の振幅を16以上の偶数にする必
要があり、16/2の演算から定数8が求められてい
る。これが、バイアス成分として加算されている。
The adder 707 performs the process of adding the random number P1, the input multi-level signal D, and the constant 8 described above. The addition of the constant 8 is also an important point here. This is because, since the constant to be divided by the divider 709 described later is “17”, the remainder after division becomes 16 at the maximum, the amplitude of the random number to be added needs to be an even number of 16 or more. The constant 8 is obtained from the calculation. This is added as a bias component.

【0063】無論、もし、除算部709で割る数が
“5”の場合には、加算部707で加算する定数を
“2”とすることになる。図示はしていないが、加算結
果が“0”,“255”の範囲に入るようにリミッタが
かけられている。そして、この加算部707からの信号
は、除算部709とヒステリシス制御量算出部708と
に入力されている。
Of course, if the number to be divided by the divider 709 is "5", the constant to be added by the adder 707 is "2". Although not shown, a limiter is set so that the addition result falls within the range of “0” and “255”. The signal from the adder 707 is input to the divider 709 and the hysteresis control amount calculator 708.

【0064】除算部709は、既に上述したように、定
数17で除算する演算を行っている。このとき、出力す
る信号は除算を行った商のみであり、余りはすべて切り
捨てていることを特徴としている。つまり、実施形態で
は、従来例で用いられていた“除算した余り”と“乱
数”とを比較するコンパレータを必要とせず、除算処理
の商のみで8bit信号化する処理が可能となってい
る。無論、4bit化された画質は、従来例以上である
ことは言うまでもない。この除算部709からの出力信
号DR’は、後述する誤差補正部702に入力され、誤
差補正処理が行われる。
The division unit 709 performs the operation of dividing by the constant 17 as described above. At this time, the output signal is only the quotient after the division, and all the remainders are discarded. That is, in the embodiment, it is not necessary to use a comparator for comparing the “remainder of division” and the “random number” used in the conventional example, and it is possible to perform processing of converting the signal into an 8-bit signal only by the quotient of the division processing. Needless to say, the 4-bit image quality is higher than that of the conventional example. The output signal DR ′ from the division unit 709 is input to an error correction unit 702 described later, and an error correction process is performed.

【0065】次に、テクスチャ制御を行う2値化手法に
ついて説明する。上述したように、誤差補正部702
は、画像信号DRと2値化誤差データEとを入力し、画
像信号DR’に誤差補正を行った画像信号DEを算出
し、2値化部701へと出力するもので、図9に示すよ
うに構成されている。
Next, a binarization method for performing texture control will be described. As described above, the error correction unit 702
Is used to input the image signal DR and the binarized error data E, calculate the image signal DE obtained by performing error correction on the image signal DR ′, and output the image signal DE to the binarizing unit 701, as shown in FIG. It is configured as follows.

【0066】入力された2値化誤差データEは、除算回
路901によって1/2にされる。その結果は2系統に
分岐され、その一方は減算回路902に入力され、もう
一方はラインバッファ903に入力される。減算回路9
02では、2値化誤差データEとE/2との差EB(=
E−E/2)を算出し、加算回路904にその結果を入
力する。この時、図示していないが、リミッタ処理によ
り、2値化誤差データEの取り得る値を、“−6〜+
6”にしてある。
The input binarization error data E is halved by the division circuit 901. The result is branched into two systems, one of which is input to a subtraction circuit 902 and the other is input to a line buffer 903. Subtraction circuit 9
02, the difference EB between the binarization error data E and E / 2 (=
EE / 2) is calculated, and the result is input to the addition circuit 904. At this time, although not shown, possible values of the binarized error data E are changed to “−6 to +
6 ".

【0067】加算回路904では、複数ビット(実施形
態の場合は3ビット)1ライン分のラインバッファ90
3によって1ライン分遅延されたEAと減算回路からの
EBとの和を算出し、加算回路905に出力する。加算
回路905では、加算結果のEA+EBと、画像信号D
R’との和を算出し、画像信号DEとして出力する。つ
まり、誤差補正部702では、図10に示すように、注
目画素「*」に対して1ライン上の画素Aを2値化した
ときの2値化誤差EAと、1画素前の画素Bを2値化し
たときの2値化誤差EBの値を注目画素の値に加算する
処理を行う。
The addition circuit 904 includes a line buffer 90 for one line of a plurality of bits (three bits in the embodiment).
The sum of EA delayed by one line by 3 and EB from the subtraction circuit is calculated and output to the addition circuit 905. The adding circuit 905 calculates the sum of EA + EB and the image signal D
The sum with R ′ is calculated and output as an image signal DE. That is, as shown in FIG. 10, the error correction unit 702 calculates the binarization error EA when the pixel A on one line is binarized with respect to the target pixel “*” and the pixel B one pixel before. A process of adding the value of the binarization error EB at the time of binarization to the value of the target pixel is performed.

【0068】次に、2値化部701は、前述した画像信
号DEと、後述する2値化スライス値Sと、後述する平
均濃度算出値mとを入力し、これらを比較することによ
り、2値出力N及び2値化誤差データEを出力するもの
で、図11に示すように構成されている。
Next, the binarizing section 701 inputs the above-mentioned image signal DE, a binarized slice value S which will be described later, and an average density calculation value m which will be described later, and compares them to obtain a binary signal. It outputs a value output N and binarization error data E, and is configured as shown in FIG.

【0069】入力された画像信号DEは、2系統に分岐
され、その一方は比較回路1101に入力され、もう一
方は減算回路1102に入力される。比較回路1101
では、画像信号DEと2値化スライス値Sとの値を比較
し、以下のように2値出力Nを出力する。
The input image signal DE is branched into two systems, one of which is input to a comparison circuit 1101 and the other is input to a subtraction circuit 1102. Comparison circuit 1101
Then, the value of the image signal DE is compared with the value of the binary slice value S, and the binary output N is output as follows.

【0070】DE>S の時は、N=1 DE≦S の時は、N=0 また、減算回路1102では、平均濃度算出値mから画
像信号DEの値を差し引き、2値化誤差データEとして
出力する。
When DE> S, N = 1 when DE ≦ S. N = 0. In the subtraction circuit 1102, the value of the image signal DE is subtracted from the average density calculation value m, and the binarization error data E Output as

【0071】E=m−DE この時、前述したように、図示していないが、Eの値が
“−6〜+6”の範囲に入るようにリミッタ処理が行わ
れている。
E = m-DE At this time, as described above, although not shown, limiter processing is performed so that the value of E falls within the range of "-6 to +6".

【0072】次に、2値化結果遅延部703は、2値化
部701からの2値出力Nを入力し、所定のライン数の
遅延を行い、複数ライン2値化結果Nmn,B*ijと
して平均濃度算出部704及びしきい値算出部705に
データを送るもので、図12に示すように構成されてい
る。
Next, the binarization result delay section 703 receives the binary output N from the binarization section 701, delays the signal by a predetermined number of lines, and converts the binary result Nmn, B * ij of a plurality of lines. The data is sent to the average density calculation unit 704 and the threshold value calculation unit 705 as shown in FIG.

【0073】まず、入力された2値出力Nは1ビット1
ライン分のラインバッファ1201からラインバッファ
1202へと送られていき、データがライン毎に遅延さ
れていく。また同時に、1画素分の遅延回路からなる遅
延1203から遅延1208によって次々と1画素分の
遅延がなされる。そして、遅延1206の出力、遅延1
207の出力をそれぞれN14,N15として出力す
る。
First, the input binary output N is 1 bit 1
The data is sent from the line buffer 1201 for the line to the line buffer 1202, and the data is delayed for each line. At the same time, the delay of one pixel is successively performed by the delay 1203 to the delay 1208, which is a delay circuit for one pixel. Then, the output of the delay 1206, the delay 1
The outputs of 207 are output as N14 and N15, respectively.

【0074】ラインバッファ1201によって1ライン
分遅延がなされた2値化データは、遅延1209から遅
延1214によって遅延され、遅延1209から遅延1
213の出力がN21からN25として出力される。ま
た、ラインバッファ1202によって更に1ライン分遅
延がなされた2値化データは、遅延1215から遅延1
220によって遅延され、遅延1215から遅延121
9の出力がN31からN35として出力される。
The binarized data delayed by one line by the line buffer 1201 is delayed by the delay 1209 to the delay 1214, and the delay 1209 is delayed by the delay 1209.
213 is output as N25 from N21. The binarized data further delayed by one line by the line buffer 1202 is output from the delay 1215 to the delay 1
Delayed by 220 and delayed 1215 to delay 121
9 is output as N35 from N31.

【0075】同時に、遅延1206から遅延1208の
各出力をそれぞれB10,B20,B30として出力す
る。また、ラインバッファ1201によって1ライン分
遅延がなされた2値化データは、遅延された後、それぞ
れB32からB02、Bi12からBi32として出力
する。更に、ラインバッファ1202によって更に1ラ
イン分遅延がなされた2値化データは、遅延された後、
それぞれB31からB01、Bi11からBi31とし
て出力される。
At the same time, the outputs of the delays 1206 to 1208 are output as B10, B20 and B30, respectively. The binarized data delayed by one line by the line buffer 1201 is output as B32 to B02 and Bi12 to Bi32, respectively, after being delayed. Further, the binarized data further delayed by one line by the line buffer 1202 is
They are output as B31 to B01 and Bi11 to Bi31, respectively.

【0076】つまり、平均濃度算出部704には、2次
元の画像を2値化したデータが複数ライン、複数画素の
遅延処理が施され、複数ライン2値化結果Nmnとし
て、図13に示すような状態で平均濃度算出部704に
入力される。
That is, the average density calculation section 704 performs delay processing of a plurality of lines and a plurality of pixels of data obtained by binarizing a two-dimensional image, and obtains a multi-line binarization result Nmn as shown in FIG. Is input to the average density calculation unit 704 in an appropriate state.

【0077】次に、平均濃度算出部704は、複数ライ
ン2値化結果Nmnを入力し、予め設定してある係数と
遅延された2値結果とから積和演算を行い、2値化部7
01と加算部706とで使用するデータmの出力を行う
もので、図14に示すように構成されている。
Next, the average density calculation section 704 receives the multi-line binarization result Nmn, performs a product-sum operation on the preset coefficient and the delayed binarization result, and
01 and the adder 706 output data m used, and are configured as shown in FIG.

【0078】つまり、乗算回路1401では、2値化デ
ータN15と係数M15とを入力し、両者の乗算結果を
出力する。また乗算回路1402では、2値化データN
14と係数M14とを入力し、両者の乗算結果を出力す
る。以下同様に、上述の演算を乗算回路1403から乗
算回路1412の各々の回路によって行い、それらの乗
算結果を加算回路1413によって全て足し込む。その
結果を平均濃度算出値mとして出力する。図15は、平
均濃度算出の処理を行うときの係数の例を示す図であ
る。
That is, the multiplication circuit 1401 inputs the binary data N15 and the coefficient M15, and outputs the result of multiplication of the two. In addition, in the multiplication circuit 1402, the binarized data N
14 and a coefficient M14, and outputs the result of multiplication of the two. Similarly, the above operation is performed by each of the multiplication circuits 1403 to 1412, and the multiplication results are all added by the addition circuit 1413. The result is output as the average density calculation value m. FIG. 15 is a diagram illustrating an example of coefficients when performing the process of calculating the average density.

【0079】次に、ヒステリシス制御量算出部708
は、入力信号DRに応じて定数ALF(=32)の値を
変化させてS’信号として出力する。これは、任意の濃
度領域で、ヒステリシス量を調整するためである。つま
り、これにより任意の濃度領域でテクスチャ制御が可能
となっている。
Next, the hysteresis control amount calculating section 708
Changes the value of the constant ALF (= 32) according to the input signal DR and outputs it as the S ′ signal. This is for adjusting the amount of hysteresis in an arbitrary density region. That is, this enables texture control in an arbitrary density region.

【0080】図16は、ヒステリシス制御量の算出処理
をプログラム言語Cで示したものである。入力された信
号DRが定数LR1(=16)以下の場合、llを
“0”に設定するような処理を行い、入力された信号D
Rが定数LR1より大きく、かつ定数LR2(=48)
以下の場合には、llを次式により求める。
FIG. 16 shows the process of calculating the hysteresis control amount in a program language C. When the input signal DR is equal to or less than the constant LR1 (= 16), processing is performed to set 11 to “0”, and the input signal D
R is greater than constant LR1 and constant LR2 (= 48)
In the following case, 11 is obtained by the following equation.

【0081】ll=((DR-LR1)*(ALF*256/(LR2-LR1)))/256; この演算により、入力信号DRの値が定数LR1から定
数LR2に増加するに従い、llの値は、徐々に0から
定数ALF(=32)に近づくことになる。
Ll = ((DR-LR1) * (ALF * 256 / (LR2-LR1))) / 256; By this operation, as the value of the input signal DR increases from the constant LR1 to the constant LR2, the value of 11 Gradually approaches from 0 to the constant ALF (= 32).

【0082】一方、入力信号DRが定数LR2より大き
く、かつ定数LR3(=233)以下の場合には、ll
を一定な定数ALFとして出力する。また、入力信号D
Rが定数LR3より大きく、かつ定数LR4(=25
5)以下の場合には、llを次式により求める。
On the other hand, if the input signal DR is larger than the constant LR2 and equal to or smaller than the constant LR3 (= 233),
Is output as a constant ALF. Also, the input signal D
R is larger than the constant LR3 and the constant LR4 (= 25
5) In the following cases, 11 is obtained by the following equation.

【0083】 ll=ALF-((DR-LR3)*(ALF*256/(LR4-LR3)))/256; これは、入力信号DRの値がLR3から定数LR4に増
加するに従い、出力llが、徐々に定数ALFから0に
近づくことを示している。また、入力信号DRがLR4
より大きい場合には、llを0に設定するような処理が
行われる。
Ll = ALF-((DR-LR3) * (ALF * 256 / (LR4-LR3))) / 256; This is because as the value of the input signal DR increases from LR3 to a constant LR4, the output 11 , Gradually approaching 0 from the constant ALF. When the input signal DR is LR4
If it is larger, processing is performed to set 11 to 0.

【0084】以上の処理後、llから定数ALFm(=
16)を減算したものが、出力信号Tとして出力され
る。この減算を行う目的は、ヒステリシス制御量算出部
708の信号Tを負の値から正の値まで変化させるため
である。これにより、ラチチュードが広い範囲で任意の
濃度領域におけるテクスチャ制御が可能となる。
After the above processing, the constant ALFm (=
16) is output as the output signal T. The purpose of this subtraction is to change the signal T of the hysteresis control amount calculation unit 708 from a negative value to a positive value. As a result, it is possible to perform texture control in an arbitrary density region in a wide latitude range.

【0085】次に、しきい値算出部705について説明
する。図17は、しきい値算出処理をプログラム言語C
で示したものである。
Next, the threshold value calculation section 705 will be described. FIG. 17 shows that the threshold value calculation processing is performed in the programming language C.
It is shown by.

【0086】まず、しきい値算出部705は、入力され
たヒステリシス制御量算出部708の信号Tの値を、そ
れぞれ定数LT1(=2),LT2(=4),LT3
(=8),LT4(=16)で割って、内部で用いる変
数A(=T/LT1),B(=T/LT2),(C(=
T/LT3),D(=T/LT4)を求める。
First, the threshold value calculating section 705 converts the value of the input signal T of the hysteresis control amount calculating section 708 into constants LT1 (= 2), LT2 (= 4), and LT3.
(= 8), divided by LT4 (= 16), and variables A (= T / LT1), B (= T / LT2), (C (=
T / LT3) and D (= T / LT4).

【0087】次に、後述する手法で、2値化結果遅延部
703からの出力B’*ijの2値化結果配置状態(パ
ターン)に応じて2値化スライス値S’の値を変数A,
B,C,Dと定数で制御する。図18は、2値化結果配
置状態(パターン)を示す図である。この例では、高速
処理のために注目画素の1つ前の画素を参照していな
い。無論、十分高速なロジックが組める場合は、注目画
素の1つ前の画素を参照しても問題無いことは言うまで
もない。
Next, the value of the binarized slice value S ′ is changed to the variable A according to the binarized result arrangement state (pattern) of the output B ′ * ij from the binarized result delay unit 703 by a method described later. ,
It is controlled by B, C, D and constants. FIG. 18 is a diagram showing a binarization result arrangement state (pattern). In this example, the pixel immediately before the pixel of interest is not referred to for high-speed processing. Of course, if a sufficiently high-speed logic can be constructed, it goes without saying that there is no problem even if the pixel immediately before the target pixel is referred to.

【0088】次に、実際に2値化結果の配置(パター
ン)に応じて、2値化スライス値Sを制御する処理につ
いて説明する。
Next, processing for controlling the binarized slice value S according to the arrangement (pattern) of the binarized result will be described.

【0089】注目画素の周りの2値化状況が以下の場合
には、2値化スライス値Sを強制的にmaxの定数15
にして出力する。これは、強制的にドットを打ちにくく
するためである。
When the binarization state around the target pixel is as follows, the binarization slice value S is forcibly set to the constant 15 of max.
And output. This is to make it difficult to form dots.

【0090】 B32==0&&B22==1&&B12==0&&B21==0&&B11==1&&B01==0 or Bi12=0&&Bi22==1&&Bi32==0&&B01==0&&Bi11==1&&Bi21==0 また、注目画素の周りの2値化状況が以下で、かつ入力
値データDが、31(0〜255中の31)未満の場合
にも、2値化スライス値Sを強制的にmaxの定数15
にして出力する。これも、上記の条件のときに、強制的
にドットを打ちにくくするためである。
B32 == 0 && B22 == 1 && B12 == 0 && B21 == 0 && B11 == 1 && B01 == 0 or Bi12 = 0 && Bi22 == 1 && Bi32 == 0 && B01 == 0 && Bi11 == 1 && Bi21 == 0 Also, two values around the pixel of interest When the binarization status is as follows and the input value data D is less than 31 (31 of 0 to 255), the binarized slice value S is forcibly set to the constant 15 of max.
And output. This is also to make it difficult to forcibly print dots under the above conditions.

【0091】 B12==0&&B02==0&&Bi12==0&&Bi22==0&&Bi32==0&& B11==0&&B01==0&&Bi11==1&&Bi21==0&&Bi31==0&&B20==0 一方、上記の条件で、入力多値データDが31(0〜2
55中の31)以上の場合には、2値化スライス値Sを
平均濃度算出値mに設定して出力を行う。これは、過去
の2値化結果が特定の配列(パターン)になった場合に
は、テクスチャ制御を行わないようにするためである。
無論、ここで定数31は、決まった値ではなく、パラメ
ータであり、48や64などの別な値にも設定可能であ
る。
B12 == 0 && B02 == 0 && Bi12 == 0 && Bi22 == 0 && Bi32 == 0 && B11 == 0 && B01 == 0 && Bi11 == 1 && Bi21 == 0 && Bi31 == 0 && B20 == 0 On the other hand, under the above conditions, the input multi-value data D Is 31 (0-2
In the case of 31) or more of 55, the binarized slice value S is set to the average density calculation value m and output. This is to prevent texture control from being performed when the past binarization result has a specific arrangement (pattern).
Of course, here, the constant 31 is not a fixed value but a parameter, and can be set to another value such as 48 or 64.

【0092】このとき、31の値を大きくすると、積極
的にテクスチャ制御がかかりやすくなり、逆に、小さく
するとテクスチャ制御がかかりにくくなることは言うま
でもない。
At this time, if the value of 31 is increased, it is needless to say that texture control is more likely to be positively applied, and conversely, if it is smaller, texture control is less likely to be applied.

【0093】注目画素の周りの2値化状況が、以下の場
合には、2値化スライス値Sを平均濃度算出値mから、
変数Aを減算した値(S=m−A)に設定して出力す
る。
When the binarization state around the target pixel is as follows, the binarization slice value S is calculated from the average density calculation value m.
The value is set to a value obtained by subtracting the variable A (S = mA) and output.

【0094】B02==0&&Bi12==0&&B11==0&&B01==1&&Bi11=
=1&&Bi21==0&&B20==0 これは上記の条件のときに、強制的にドットを打ち易く
するためである。このときも、注目画素直前の2値化結
果は参照しないで処理をおこなっている。
B02 == 0 && Bi12 == 0 && B11 == 0 && B01 == 1 && Bi11 =
= 1 && Bi21 == 0 && B20 == 0 This is to make it easy to forcibly print dots under the above conditions. Also at this time, the processing is performed without referring to the binarization result immediately before the target pixel.

【0095】同様に、各2値化結果のパターンに応じ
て、注目画素直前の結果を参照せずに2値化スライス値
Sの値を内部変数A,B,C,Dと定数とを用いて2値
化スライス値S’を制御していく。その結果、ヒステリ
シス制御量算出値Tが正の場合には、ドットが打たれや
すい方に制御され、ヒステリシス制御量算出値Tが負の
場合には、ドットが打たれにくい方に制御される。
Similarly, according to the pattern of each binarization result, the value of the binarization slice value S is used by using the internal variables A, B, C, D and constants without referring to the result immediately before the target pixel. To control the binarized slice value S ′. As a result, when the hysteresis control amount calculation value T is positive, the control is performed so that the dot is easily hit, and when the hysteresis control amount calculation value T is negative, the control is performed so that the dot is hard to hit.

【0096】以上のような処理を各画素に関して順次行
っていくと、ヒステリシス制御量算出値Tの値に応じて
任意の濃度領域で、かつ、2値化結果遅延部の出力値
B’*ijの値に応じて任意の形のテクスチャに制御が
可能となる。
When the above-described processing is sequentially performed for each pixel, the output value B ′ * ij of the binarization result delay unit is obtained in an arbitrary density area according to the value of the hysteresis control amount calculation value T. Can be controlled to an arbitrary texture according to the value of.

【0097】実施形態では、2×2の画素単位のテクス
チャになるような制御を行っている。これにより、プリ
ンタの特性で一画素が安定しない領域で任意の数のドッ
トを集めて安定化させた画像形成が可能となる。
In the embodiment, control is performed so that a texture of 2 × 2 pixels is obtained. This makes it possible to form an image in which an arbitrary number of dots are collected and stabilized in an area where one pixel is not stable due to the characteristics of the printer.

【0098】このようにして求められた2値化スライス
値S’は、平均濃度算出部704の出力mと共に、加算
部706に入力されて加算処理が行われる。このとき、
S’の信号が15のときには、2値化スライス値Sを1
5として出力し、それ以外のときには、S=S’+mの
演算を行って出力している。図19は、上述の演算をプ
ログラム言語Cで示したものである。
The binarized slice value S ′ obtained in this way is input to the adding section 706 together with the output m of the average density calculating section 704, and the adding processing is performed. At this time,
When the signal of S ′ is 15, the binarized slice value S is set to 1
5; otherwise, S = S ′ + m is calculated and output. FIG. 19 shows the above-described calculation in the programming language C.

【0099】上述の加算処理により、2値化スライス値
Sが求められた後、上述した2値化部701により2値
化処理が行われ、その2値信号が階調変換処理部604
から出力され、プリンタ部505でプリントアウトされ
るように構成されている。
After the binarization slice value S is obtained by the above-described addition processing, the binarization processing is performed by the above-described binarization section 701, and the binary signal is converted into a gradation conversion processing section 604.
And is printed out by the printer unit 505.

【0100】[変形例]次に、前述した階調変換処理部
の変形例について説明する。変形例は、図7に示した乱
数発生部周辺の構成を簡略化したものである。
[Modification] Next, a modification of the above-described gradation conversion processing unit will be described. In the modification, the configuration around the random number generation unit shown in FIG. 7 is simplified.

【0101】図20は、変形例における階調変換処理部
の詳細な構成を示すブロック図である。図7に示す構成
と同様なものには同一符号を付け説明を省略する。
FIG. 20 is a block diagram showing a detailed configuration of the gradation conversion processing section in the modification. The same components as those shown in FIG. 7 are denoted by the same reference numerals and description thereof is omitted.

【0102】図20において、2001は乱数発生部で
あり、0から16までの正の乱数を生成する。具体的な
構成は、図2に示した構成と同様である。つまり、初期
化でp[ii]:(0≦ii≦25)のレジスタに“0”を書
き込み、p[12]のレジスタのみに“1”を設定する。
そして、乱数値を出力する前に、画素毎に p[0]=(p[25]^p[24]^p[23]^p[22]
&1) の演算を行った後、以下の演算により、0〜16の乱数
値を生成している。 乱数=((p[15]*64+p[16]*32+p[17]*16
+p[18]*8+p[19]*4+p[20]*2+p[2
1]*16)/128) ここで、16以上の乱数を生成し、最後に128で除算
しているのは、乱数の発生率に偏りをなくすためであ
る。
In FIG. 20, reference numeral 2001 denotes a random number generation unit which generates a positive random number from 0 to 16. The specific configuration is the same as the configuration shown in FIG. That is, “0” is written to the register of p [ii] :( 0 ≦ ii ≦ 25) at initialization, and “1” is set only to the register of p [12].
Then, before outputting a random value, p [0] = (p [25] ^ p [24] ^ p [23] ^ p [22] for each pixel
After performing the calculation of & 1), random numbers of 0 to 16 are generated by the following calculation. Random number = ((p [15] * 64 + p [16] * 32 + p [17] * 16
+ P [18] * 8 + p [19] * 4 + p [20] * 2 + p [2
1] * 16) / 128) The reason why 16 or more random numbers are generated and finally divided by 128 is to eliminate a bias in the random number generation rate.

【0103】また、2002は加算部であり、入力され
た乱数Rと入力多値データとを加算する処理を行う。変
形例の特徴は、図7に示した加算部707と異なり、除
算部709で除算した最大余り値16の1/2をバイア
ス成分として加算していないことである。これは、加算
する乱数が正の値のみをとり、負の値をとらないため、
バイアス成分が必要なくなっているからである。
An adder 2002 performs a process of adding the input random number R and the input multi-value data. The feature of the modification is that, unlike the adding unit 707 shown in FIG. 7, 1/2 of the maximum remainder value 16 divided by the dividing unit 709 is not added as a bias component. This is because the random numbers to be added only take positive values and do not take negative values,
This is because the bias component is no longer needed.

【0104】加算部2002からの出力値は、図7に示
した構成と同様に、除算部709で除算処理され、商の
値のみが出力される構成となっている。これにより、従
来例で行っていた除算した結果の余りと乱数とを比較す
るコンパレータが省略可能となり、ハードウェア規模の
簡略化を実現している。
The output value from the adder 2002 is divided by the divider 709 in the same manner as the configuration shown in FIG. 7, and only the quotient value is output. This makes it possible to omit the comparator for comparing the remainder of the result of the division performed with the random number, which has been performed in the conventional example, thereby simplifying the hardware scale.

【0105】以降、前述した実施形態と同様な処理の2
値化処理が行われ、その2値信号が階調変換処理部60
4から出力され、プリンタ部505でプリントアウトさ
れるように構成されている。
[0105] Thereafter, 2 of the same processing as in the above-described embodiment is performed.
The binarization processing is performed, and the binary signal is
4, and is printed out by the printer unit 505.

【0106】この変形例におけるポイントは、除算部7
09で除算する数が17であるため、乱数発生部200
1で生成する最大乱数値を16以上(除算部709で除
算する数;17−1)に設定していることである。無
論、入力多値データが“0”,“255”以外の時に加
算する乱数の量を多くすると、テクスチャの改善効果が
大きくなることは言うまでもないが、大きな値に設定す
ると画質も低下する傾向がある。よって、31以下に設
定することが好ましい。
The point in this modification is that the division unit 7
Since the number to be divided by 09 is 17, the random number generation unit 200
That is, the maximum random number value generated in 1 is set to 16 or more (the number to be divided by the division unit 709; 17-1). Of course, if the amount of random numbers to be added is large when the input multi-valued data is other than "0" and "255", the effect of improving the texture is obviously increased. is there. Therefore, it is preferable to set it to 31 or less.

【0107】また、前述した実施形態では、符号反転及
びデータ保持部711において±に規則正しく変化する
乱数を生成し、入力多値データDに加算したが、本発明
は、これに限定するものではなく、符号反転及びデータ
保持部711を用いず無作為に±に変化する乱数発生部
の乱数を加算しても同様な効果が得られることは言うま
でもない。
Further, in the above-described embodiment, the sign inversion and data holding unit 711 generates a random number that regularly changes to ± and adds the generated random number to the input multi-value data D. However, the present invention is not limited to this. It is needless to say that the same effect can be obtained by adding the random number of the random number generation unit that changes to ± at random without using the sign inversion and data holding unit 711.

【0108】これにより、ハードウェアの規模を小さく
することができる。但し、実施形態で示した±に規則正
しく変化する乱数の方が、低周波成分が低くなるため、
画質の劣化が少ない傾向にある。
As a result, the scale of the hardware can be reduced. However, since the low-frequency component is lower in the random numbers that regularly change to ± shown in the embodiment,
Image quality tends to be less deteriorated.

【0109】更に、前述した実施形態において、必要最
小限の乱数8(絶対値で[除算部709の数値;17/
2]、演算結果の少数部は切り捨て)のみを加算すると
きは、加算量制御部713が省略できることも言うまで
もない。
Furthermore, in the above-described embodiment, the minimum necessary random number 8 (the absolute value [the value of the division unit 709; 17 /
2] When adding only the fractional part of the operation result), it goes without saying that the addition amount control unit 713 can be omitted.

【0110】そして、前述した実施形態の除算部709
で除算する数が偶数(例えば18)の場合は、入力多値
データを1bitシフトにより、2倍にして演算する構
成とすることができる。
Then, the dividing unit 709 of the embodiment described above.
When the number to be divided by is an even number (for example, 18), the input multi-valued data may be doubled by 1-bit shift to perform the calculation.

【0111】これは、18で除算する場合、除算した余
りが最大17となるため、加算する乱数の振幅を17以
上の奇数にする必要があるのだが、この奇数の振幅を均
等な±に振り分けることはできないからである(バイア
ス成分が17/2=8.5となり割り切れないため)。
言いかえると、加算部707でバイアス成分を8.5と
いう数値に設定することができないためである。
This is because, when dividing by 18, the remainder of the division is up to 17, so the amplitude of the random number to be added needs to be an odd number of 17 or more. This odd number is equally distributed to ±. This is because the bias component is 17/2 = 8.5 and cannot be divided.
In other words, the bias component cannot be set to a value of 8.5 by the adding unit 707.

【0112】よって、入力多値データを2倍にして処理
を行うように構成しても良い。
Therefore, the processing may be performed by doubling the input multi-value data.

【0113】入力多値データを2倍し、除算部709で
除算する数も2倍の36にし(18×2)、加算部70
7のバイアス成分を17([除算部709の数値;36
/2−1])に設定することにより、加算する乱数の振
幅を均等な±17に分割することが可能となる。これに
より、除算部709で除算する数が偶数の場合でも、前
述した構成で実現できることになる。
The input multi-valued data is doubled, and the number to be divided by the division unit 709 is also doubled to 36 (18 × 2).
The bias component of 7 is calculated as 17 ([the numerical value of the division unit 709; 36
/ 2-1]), it is possible to divide the amplitude of the random number to be added into equal ± 17. As a result, even when the number to be divided by the division unit 709 is an even number, it can be realized with the above-described configuration.

【0114】前述した実施形態と変形例では、2値化に
ついて説明したが、本発明はこれに限定するものではな
い。つまり、4値化、8値化などの前処理にも適用がで
きると共に、前述した平均濃度保存法(MD法)に限定
するものでもなく、一般的な誤差拡散法(ED法)にも
適用できることは言うまでもない。
Although the binarization has been described in the above-described embodiments and modifications, the present invention is not limited to this. In other words, it can be applied to pre-processing such as quaternary and octal, and is not limited to the above-mentioned average density preservation method (MD method), but can also be applied to a general error diffusion method (ED method). It goes without saying that you can do it.

【0115】また、本発明は、白黒(単色)の処理のみ
に限らず、カラーの信号に対しても適用できることも言
うまでもない。
Further, it goes without saying that the present invention can be applied not only to monochrome (monochromatic) processing but also to color signals.

【0116】以上説明したように、実施形態によれば、
テクスチャを改善する乱数加算処理とt値化処理の前処
理として乱数を用いた8ビット→4ビット変換処理とを
一つに纏めることにより、乱数加算量を減らしながら
も、従来と同様なテクスチャの改善を図ることができ、
かつ、入力データ8ビットを4ビットに変換する前処理
が可能となる。
As described above, according to the embodiment,
By combining random number addition processing for improving texture and 8-bit to 4-bit conversion processing using random numbers as pre-processing for t-value conversion processing into one, it is possible to reduce the amount of random number addition and obtain a texture similar to the conventional one. Can be improved,
In addition, preprocessing for converting 8 bits of input data into 4 bits becomes possible.

【0117】また、ハードウェア規模を小さくでき、画
質も向上させることができる。
Further, the hardware scale can be reduced, and the image quality can be improved.

【0118】尚、本発明は複数の機器(例えば、ホスト
コンピュータ,インタフェイス機器,リーダ,プリンタ
など)から構成されるシステムに適用しても、一つの機
器からなる装置(例えば、複写機,ファクシミリ装置な
ど)に適用してもよい。
The present invention can be applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), but it can be applied to a single device (for example, a copier, a facsimile). Device).

【0119】また、本発明の目的は前述した実施形態の
機能を実現するソフトウェアのプログラムコードを記録
した記憶媒体を、システム或いは装置に供給し、そのシ
ステム或いは装置のコンピュータ(CPU若しくはMP
U)が記憶媒体に格納されたプログラムコードを読出し
実行することによっても、達成されることは言うまでも
ない。
Further, an object of the present invention is to supply a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or an apparatus, and to provide a computer (CPU or MP) of the system or apparatus.
It goes without saying that U) can also be achieved by reading and executing the program code stored in the storage medium.

【0120】この場合、記憶媒体から読出されたプログ
ラムコード自体が前述した実施形態の機能を実現するこ
とになり、そのプログラムコードを記憶した記憶媒体は
本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0121】プログラムコードを供給するための記憶媒
体としては、例えばフロッピーディスク,ハードディス
ク,光ディスク,光磁気ディスク,CD−ROM,CD
−R,磁気テープ,不揮発性のメモリカード,ROMな
どを用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD
-R, a magnetic tape, a nonvolatile memory card, a ROM, or the like can be used.

【0122】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働しているOS(オペレ
ーティングシステム)などが実際の処理の一部又は全部
を行い、その処理によって前述した実施形態の機能が実
現される場合も含まれることは言うまでもない。
When the computer executes the readout program code, not only the functions of the above-described embodiment are realized, but also the OS (Operating System) running on the computer based on the instruction of the program code. ) May perform some or all of the actual processing, and the processing may realize the functions of the above-described embodiments.

【0123】更に、記憶媒体から読出されたプログラム
コードが、コンピュータに挿入された機能拡張ボードや
コンピュータに接続された機能拡張ユニットに備わるメ
モリに書込まれた後、そのプログラムコードの指示に基
づき、その機能拡張ボードや機能拡張ユニットに備わる
CPUなどが実際の処理の一部又は全部を行い、その処
理によって前述した実施形態の機能が実現される場合も
含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instructions of the program code, It goes without saying that the CPU included in the function expansion board or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.

【0124】[0124]

【発明の効果】以上説明したように、本発明によれば、
ハードウェアの簡略化を図れると共に、多値画像データ
の階調変換処理を高画質に行うことが可能となる。
As described above, according to the present invention,
The hardware can be simplified, and the gradation conversion processing of the multi-valued image data can be performed with high image quality.

【0125】[0125]

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

【図1】t値化処理の前処理における従来例の構成を示
す図である。
FIG. 1 is a diagram showing a configuration of a conventional example in a pre-process of a t-value conversion process.

【図2】図1に示す乱数生成部101の構成を示すブロ
ック図である。
FIG. 2 is a block diagram showing a configuration of a random number generation unit 101 shown in FIG.

【図3】乱数発生をプログラム言語Cで示したものであ
る。
FIG. 3 is a diagram illustrating random number generation in a programming language C;

【図4】乱数発生部109の乱数発生をプログラム言語
Cで示したものである。
FIG. 4 is a diagram illustrating random number generation by a random number generation unit 109 in a programming language C;

【図5】実施形態におけるカラー複写機の概略構成を示
すブロック図である。
FIG. 5 is a block diagram illustrating a schematic configuration of a color copying machine according to the embodiment.

【図6】図5に示す画像処理部504の構成を示すブロ
ック図である。
6 is a block diagram illustrating a configuration of an image processing unit 504 illustrated in FIG.

【図7】図6に示す階調変換処理部604の詳細な構成
を示すブロック図である。
FIG. 7 is a block diagram showing a detailed configuration of a gradation conversion processing unit 604 shown in FIG.

【図8】加算量制御部713の加算量制御をプログラム
言語Cで示したものである。
FIG. 8 illustrates an addition amount control of an addition amount control unit 713 in a programming language C.

【図9】誤差補正部702の詳細な構成を示す図であ
る。
FIG. 9 is a diagram showing a detailed configuration of an error correction unit 702.

【図10】誤差補正部702で2値化誤差を注目画素に
加算する処理を示す図である。
FIG. 10 is a diagram illustrating a process in which an error correction unit 702 adds a binarization error to a target pixel.

【図11】2値化部701の詳細な構成を示す図であ
る。
FIG. 11 is a diagram illustrating a detailed configuration of a binarizing unit 701.

【図12】2値化結果遅延部703の詳細な構成を示す
図である。
FIG. 12 is a diagram illustrating a detailed configuration of a binarization result delay unit 703.

【図13】2値化結果遅延部703で用いるデータの構
成を示す図である。
FIG. 13 is a diagram showing a configuration of data used in a binarization result delay unit 703.

【図14】平均濃度算出部704の詳細な構成を示す図
である。
FIG. 14 is a diagram illustrating a detailed configuration of an average density calculation unit 704.

【図15】平均濃度算出部704で用いる係数の構成を
示す図である。
FIG. 15 is a diagram illustrating a configuration of coefficients used in an average density calculation unit 704.

【図16】ヒステリシス制御量の算出処理をプログラム
言語Cで示したものである。
FIG. 16 illustrates a process of calculating a hysteresis control amount in a program language C.

【図17】しきい値算出部705の処理をプログラム言
語Cで示したものである。
FIG. 17 illustrates processing of the threshold value calculation unit 705 in a programming language C.

【図18】2値化結果配置状態(パターン)を示す図で
ある。
FIG. 18 is a diagram showing a binarization result arrangement state (pattern).

【図19】2値化スライス値Sの演算をプログラム言語
Cで示したものである。
FIG. 19 illustrates the calculation of a binarized slice value S in a programming language C.

【図20】変形例における階調変換処理部の詳細な構成
を示すブロック図である。
FIG. 20 is a block diagram illustrating a detailed configuration of a gradation conversion processing unit according to a modification.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 入力した多値の画像データを階調変換し
て出力する画像処理装置において、 乱数値を生成する乱数生成手段と、 入力した多値の画像データに前記乱数値を加算する加算
手段と、 前記加算手段での加算結果を所定の値で除算し、商のみ
を出力して階調変換を行う階調変換手段とを有すること
を特徴とする画像処理装置。
1. An image processing apparatus for converting input multi-valued image data into gradations and outputting the same, wherein a random number generating means for generating a random value, and an addition for adding the random value to the input multi-valued image data An image processing apparatus comprising: means for dividing a result of addition by the adding means by a predetermined value, and outputting only a quotient to perform gradation conversion.
【請求項2】 前記乱数生成手段は、±に変化する所定
の振幅を有する乱数値を生成することを特徴とする請求
項1記載の画像処理装置。
2. The image processing apparatus according to claim 1, wherein said random number generating means generates a random number having a predetermined amplitude that changes to ±.
【請求項3】 前記加算手段は、前記前記所定の値によ
る除算値の1/2をバイアス値として更に加算すること
を特徴とする請求項2記載の画像処理装置。
3. The image processing apparatus according to claim 2, wherein said adding means further adds 1/2 of a value divided by said predetermined value as a bias value.
【請求項4】 前記乱数生成手段は、正の値を有する乱
数値を生成することを特徴とする請求項1記載の画像処
理装置。
4. The image processing apparatus according to claim 1, wherein said random number generating means generates a random number value having a positive value.
【請求項5】 前記所定の値が偶数の場合、前記画像デ
ータ及び所定の値を2倍にして演算することを特徴とす
る請求項1記載の画像処理装置。
5. The image processing apparatus according to claim 1, wherein when the predetermined value is an even number, the image data and the predetermined value are doubled for the calculation.
【請求項6】 更に、前記階調変換手段の出力値をt値
化するt値化手段を有することを特徴とする請求項1記
載の画像処理装置。
6. The image processing apparatus according to claim 1, further comprising a t-value converting means for converting an output value of said gradation converting means into a t-value.
【請求項7】 入力した多値の画像データを階調変換し
て出力する画像処理方法において、 乱数値を生成する乱数生成工程と、 入力した多値の画像データに前記乱数値を加算する加算
工程と、 前記加算工程での加算結果を所定の値で除算し、商のみ
を出力して階調変換を行う階調変換工程とを有すること
を特徴とする画像処理方法。
7. An image processing method for converting input multi-valued image data into gradations and outputting the same, wherein a random number generating step of generating a random number value, and adding the random number value to the input multi-valued image data And a gradation conversion step of dividing the addition result in the addition step by a predetermined value and outputting only a quotient to perform gradation conversion.
JP12915898A 1998-05-12 1998-05-12 Image processing apparatus and method Expired - Fee Related JP3809274B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12915898A JP3809274B2 (en) 1998-05-12 1998-05-12 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12915898A JP3809274B2 (en) 1998-05-12 1998-05-12 Image processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH11328389A true JPH11328389A (en) 1999-11-30
JP3809274B2 JP3809274B2 (en) 2006-08-16

Family

ID=15002587

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12915898A Expired - Fee Related JP3809274B2 (en) 1998-05-12 1998-05-12 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP3809274B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8009327B2 (en) 2002-07-11 2011-08-30 Canon Kabushiki Kaisha Method and apparatus for image processing
US8335018B2 (en) 2008-06-18 2012-12-18 Canon Kabushiki Kaisha Image forming method and apparatus for reducing input image gradation

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8009327B2 (en) 2002-07-11 2011-08-30 Canon Kabushiki Kaisha Method and apparatus for image processing
US8335018B2 (en) 2008-06-18 2012-12-18 Canon Kabushiki Kaisha Image forming method and apparatus for reducing input image gradation

Also Published As

Publication number Publication date
JP3809274B2 (en) 2006-08-16

Similar Documents

Publication Publication Date Title
EP0781034B1 (en) Image processing apparatus and method
JP3976863B2 (en) Image processing apparatus and method
JP3809274B2 (en) Image processing apparatus and method
JPH11339016A (en) Image processor, image processing method and memory medium
JPH0738767A (en) Image binarizing processor
JPH11331590A (en) Image processor and its method
JP3937645B2 (en) Image processing apparatus and image processing method
JPH11346311A (en) Gradation reproduction method
US7170636B2 (en) Image processing apparatus and its control method
JP3679522B2 (en) Image processing method and apparatus
JP2749985B2 (en) Image processing device
JPH01238373A (en) Picture signal processor
KR100490244B1 (en) Error diffusion method using variable threshold value in image processing system
JPH11339032A (en) Image processing method and device therefor
JPH01303869A (en) Picture processor
JP2857906B2 (en) Halftone binarization processor
JP3432064B2 (en) Image processing apparatus and method
JP3459725B2 (en) Image processing apparatus and method
JP2000188685A (en) Image output device
JPH11154229A (en) Image processor and its method
JPH0691605B2 (en) Image processing device
JP2002027238A (en) Image processor and its method
JP2755309B2 (en) Image processing device
JPH11308448A (en) Image processor and image processing method
JPH11266365A (en) Image processor and image processing method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040910

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040922

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041112

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050513

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050712

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051219

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060118

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060428

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060522

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100526

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100526

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110526

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120526

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120526

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130526

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140526

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees