JPH11328357A - Device and method for image processing - Google Patents

Device and method for image processing

Info

Publication number
JPH11328357A
JPH11328357A JP10135736A JP13573698A JPH11328357A JP H11328357 A JPH11328357 A JP H11328357A JP 10135736 A JP10135736 A JP 10135736A JP 13573698 A JP13573698 A JP 13573698A JP H11328357 A JPH11328357 A JP H11328357A
Authority
JP
Japan
Prior art keywords
valued image
value
valued
noise
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP10135736A
Other languages
Japanese (ja)
Inventor
Nobuyuki Shigee
伸之 重枝
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 JP10135736A priority Critical patent/JPH11328357A/en
Publication of JPH11328357A publication Critical patent/JPH11328357A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a binary image of good quality which is not noisy while eliminating texture characteristic of an error diffusing method when a multi- valued image is binarized. SOLUTION: By this image processing method, a noise generation part 206 generates noises of -5 to +5 in amplitude which are equal in occurrence probability, a threshold value generation part 207 adds an intermediate value '128' of an input density value range to the noise values to obtain a threshold value, and a data comparison part 205 binarizes a multi-valued image from an error adding process part 204 by using the threshold value. An error generation part 209 extracts error components at the time of the binarization, a weight adding process part 202 performs a weighted adding process and stores the result in an error memory, and an error adding process part 204 adds the error components to the input multi-valued image data to perform error diffusion.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は画像処理装置及び方
法に関し、例えば、多値(多階調)画像を入力画像の階
調数よりも低いn階調へ変換する画像処理装置及び方法
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and method, for example, an image processing apparatus and method for converting a multi-value (multi-tone) image into n-tones lower than the number of tones of an input image. It is.

【0002】[0002]

【従来の技術】従来、多階調(多値)画像を二値プリン
タより印刷出力するためには、階調変換により多値画像
を二値化する必要がある。多値画像の二値化方法として
は、単純二値化法、ディザ法、誤差拡散法、及び平均濃
度法等の手法があり、これらの手法を基礎として種々の
改良を加えた手法を合わせ、多くの階調変換方法が考案
され実用化されてきている。
2. Description of the Related Art Conventionally, in order to print and output a multi-tone (multi-value) image from a binary printer, it is necessary to binarize the multi-value image by gradation conversion. As a method of binarizing a multi-valued image, there are methods such as a simple binarization method, a dither method, an error diffusion method, and an average density method.A combination of various methods based on these methods, Many gradation conversion methods have been devised and put into practical use.

【0003】特に写真画像のように多階調画像を二値プ
リンタに出力する際に、誤差拡散法及び平均濃度法を基
礎とした手法は良好な階調表現が可能である事から、従
来より多用されている。さらに、これら誤差拡散法及び
平均濃度法は、その手法に依存した特有のテクスチャー
が階調変換後の画像に現れるという欠点があるが、ラン
ダムノイズを入力多値画像に付加することで、見かけ上
この問題も解消しつつある。
[0003] In particular, when a multi-tone image such as a photographic image is output to a binary printer, a method based on the error diffusion method and the average density method can provide good tone expression. It is heavily used. Further, the error diffusion method and the average density method have a drawback that a specific texture depending on the method appears in the image after gradation conversion, but by adding random noise to the input multi-valued image, it is apparently added. This problem is also being resolved.

【0004】特有のテクスチャーは誤差拡散法の場合、
入力多値画像の濃度がちょうど中間の領域において(2
56階調画像で、濃度128の領域)、二値化処理の結
果均一なテクスチャーが現れ、これが見かけ上の画像輪
郭(疑似輪郭)として現れることがある。
[0004] In the case of the error diffusion method,
In the region where the density of the input multi-valued image is exactly intermediate (2
In a 56-tone image, an area having a density of 128), a uniform texture appears as a result of the binarization processing, and this may appear as an apparent image contour (pseudo contour).

【0005】また、平均濃度法の場合、そのアルゴリズ
ム上の特性から黒ドット若しくは白ドットが2画素以上
連続する場合が多い。ランダムノイズを付加する手法
は、予め入力画像に微小振幅のノイズを付加するため
に、二値化の際に現れるドットの出現がランダムにな
る。このため特有のドットの配列がテクスチャーとして
現れにくくなるものである。
In the case of the average density method, black or white dots are often continuous for two or more pixels due to the algorithmic characteristics. In the method of adding random noise, the appearance of dots appearing at the time of binarization becomes random in order to add noise of a minute amplitude to an input image in advance. This makes it difficult for the specific arrangement of dots to appear as texture.

【0006】このように特有のテクスチャーに起因した
疑似輪郭は、ランダムノイズの入力画像への付加によっ
て解消可能となる。しかし一方で、画像に対しノイズを
付加するため、二値化後の画像がノイジーになるという
弊害が発生している。
[0006] Pseudo contours caused by such a unique texture can be eliminated by adding random noise to an input image. However, on the other hand, noise is added to the image, so that the image after binarization becomes noisy.

【0007】[0007]

【発明が解決しようとする課題】上記従来技術で述べた
ように、ランダムノイズを付加する方法は、誤差拡散法
等により発生する特有のテクスチャーを緩和する効果が
ある。しかし、テクスチャーを消すためのノイズ付加を
入力画像に対して直接行うことから、二値化した画像が
ノイジーになるという弊害があった。
As described in the above-mentioned prior art, the method of adding random noise has an effect of alleviating a unique texture generated by an error diffusion method or the like. However, since noise addition for eliminating the texture is performed directly on the input image, there is a problem that the binarized image becomes noisy.

【0008】本発明は上述した課題を解決することを目
的としてなされたもので、例えば、多値画像を二値化す
るに際して、誤差拡散法等の特有のテクスチャーを解消
すると同時に、ノイジーでない良好な画質の二値画像を
得ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems. For example, when binarizing a multi-valued image, a unique texture such as an error diffusion method is eliminated, and at the same time, a good image without noise is obtained. The purpose is to obtain a binary image of high image quality.

【0009】[0009]

【課題を解決するための手段】上記目的を達成するため
に、本発明は例えば以下の構成を有する。
To achieve the above object, the present invention has, for example, the following constitution.

【0010】すなわち、多値画像を該多値画像より階調
数の少ないn階調へ変換する画像処理装置であって、生
起確率が等しいノイズを発生させ、発生させたノイズ値
に所定の値を加算してしきい値を生成するしきい値生成
手段と、多値画像を前記しきい値生成手段で生成したし
きい値を用いて該多値画像より階調数の少ないn階調へ
変換する変換手段とを備えることを特徴とする。
That is, an image processing apparatus for converting a multi-valued image into n gradations having a smaller number of gradations than the multi-valued image, wherein noise having the same occurrence probability is generated, and a predetermined value is added to the generated noise value And a threshold value generating means for generating a threshold value by adding the threshold value to the multi-valued image, and using the threshold value generated by the threshold value generating means to reduce the number of gradations to n gradations. Conversion means for conversion.

【0011】そして例えば、更に、前記変換手段の変換
値と多値画素データ値との差分値を誤差量として生成す
る誤差量発生手段と、前記誤差量発生手段の発生した誤
差量を所定の重み係数に基づいて蓄積加算して入力され
る多値画像データに加算して階調変換する多値画像デー
タとする誤差加算手段とを備えることを特徴とする。
Further, for example, an error amount generating means for generating a difference value between the conversion value of the conversion means and the multi-valued pixel data value as an error amount, and an error amount generated by the error amount generating means is weighted by a predetermined weight. An error adding means is provided which accumulates and adds based on the coefficients, adds the multi-valued image data to the input, and converts the multi-valued image data into multi-valued image data for gradation conversion.

【0012】また、多値画像を該多値画像より階調数の
少ないn階調へ変換する画像処理装置であって、生起確
率が等しいノイズを発生させるノイズ生成手段と、前記
ノイズ発生手段で発生したノイズを基に所定のしきい値
を生成するしきい値生成手段と、前記しきい値生成手段
で生成したしきい値と階調変換する多値画像データとを
比較し、比較結果に対応して多値画像データを該多値画
像データより階調数の少ないn階調へ変換する変換手段
と、前記変換手段の変換値と多値画素データ値との差分
値を誤差量として生成する誤差量発生手段と、前記誤差
量発生手段の発生した誤差量を所定の重み係数に基づい
て蓄積加算して入力される多値画像データに加算して階
調変換する多値画像データとする誤差加算手段とを備え
ることを特徴とする。
An image processing apparatus for converting a multi-valued image into n gradations having a smaller number of gradations than the multi-valued image, wherein the noise generation means generates noise having an equal probability of occurrence; The threshold value generating means for generating a predetermined threshold value based on the generated noise is compared with the threshold value generated by the threshold value generating means and the multi-valued image data for gradation conversion. A conversion unit for converting the multi-valued image data into n gradations having a smaller number of gradations than the multi-valued image data, and generating a difference value between the conversion value of the conversion unit and the multi-valued pixel data value as an error amount Error amount generating means, and multi-valued image data to be subjected to gradation conversion by accumulating and adding the error amount generated by the error amount generating means to input multi-valued image data based on a predetermined weighting coefficient. Error adding means. .

【0013】そして例えば、前記ノイズ生成手段は、所
定の振幅を有するノイズを発生させ、所定の振幅は入力
される多値画像データの範囲に比べ十分小さいことを特
徴とする。
For example, the noise generation means generates noise having a predetermined amplitude, and the predetermined amplitude is sufficiently smaller than a range of the input multi-valued image data.

【0014】[0014]

【発明の実施の形態】以下、図面を参照して本発明に係
る一発明の実施の形態例について詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of the present invention according to the present invention will be described in detail with reference to the drawings.

【0015】図1は本発明に係る一発明の実施の形態例
の画像処理装置における階調変換方法を、多値画像の二
値化手段として実現した例を示す図である。以下、図1
を参照して本実施の形態例における、階調変換方法を説
明する。図1に示す画像処理装置は、デジタル画像処理
機器として実施したものである。デジタル画像処理機器
としては、複写機、ファクシミリ等を代表的な事例とし
て挙げることができる。
FIG. 1 is a diagram showing an example in which a gradation conversion method in an image processing apparatus according to an embodiment of the present invention is realized as a means for binarizing a multi-valued image. Hereinafter, FIG.
The gradation conversion method in the present embodiment will be described with reference to FIG. The image processing apparatus shown in FIG. 1 is implemented as a digital image processing device. As digital image processing equipment, a copying machine, a facsimile and the like can be mentioned as typical examples.

【0016】図1において、101はデジタル画像処理
機器の画像入力手段である。具体的にはCCDやコンタ
クトセンサーを利用した画像読み取り装置(スキャナ
ー)や、デジタルカメラ等が挙げられる。また、既にデ
ジタル画像データとしてコンピュータ上に取り込んであ
る画像データを入力するインタフェースでも良い。画像
入力手段より入力する画像は、例えば1画素8ビットの
256階調多値モノクロ画像である。
In FIG. 1, reference numeral 101 denotes an image input means of a digital image processing device. Specific examples include an image reading device (scanner) using a CCD or a contact sensor, a digital camera, and the like. Further, an interface for inputting image data that has already been captured on a computer as digital image data may be used. The image input from the image input means is, for example, a 256 gradation multi-valued monochrome image of 8 bits per pixel.

【0017】102は、画像入力手段101で入力した
多値画像に対し、所定の画像処理を施す画像処理手段で
ある。画像処理手段102で処理する画像処理には、輝
度データを濃度データに変換する機能や、読み取り系及
び記録系の濃度特性に応じて濃度を補正するガンマ補正
機能等を有する。また、画像のエッジ部分を強調した
り、デジタル画像処理の過程で生じるエイリアシングエ
ラーに起因したモアレ等を除去するフィルタリング機能
も有する。
Reference numeral 102 denotes an image processing means for performing predetermined image processing on the multi-valued image input by the image input means 101. The image processing performed by the image processing unit 102 has a function of converting luminance data into density data, a gamma correction function of correcting density according to density characteristics of a reading system and a recording system, and the like. Further, it has a filtering function for enhancing an edge portion of an image and removing moire or the like caused by an aliasing error generated in the course of digital image processing.

【0018】103は本実施の形態例における階調変換
処理手段である多値画像の階調変換方法を実施した二値
化手段である。本実施の形態例では、1画素8ビットの
256階調画像を1画素1ビットの2階調画像に変換す
る場合を例示した。従って、二値化手段103から出力
され、画像出力手段104に入力される画像データは、
1画素1ビットの画データである。
Reference numeral 103 denotes a binarizing unit which executes a gradation conversion method of a multi-valued image, which is a gradation conversion processing unit in the embodiment. In the present embodiment, a case is described in which a 256-tone image of 8 bits per pixel is converted into a 2-tone image of 1 bit per pixel. Therefore, the image data output from the binarization unit 103 and input to the image output unit 104 is
This is image data of one bit per pixel.

【0019】104は画像出力手段であり、例えばデジ
タルデータの”0”と”1”をそれぞれ白と黒で表現す
る二値プリンタが該当する。なお、本実施の形態例の画
像出力手段は、単に二値化された画像データを取り込む
汎用のコンピュータでも良く、更にはファクシミリ装置
の場合は画像を通信に必要な周波数に変調するモデムで
も良い。
Reference numeral 104 denotes an image output unit, which corresponds to, for example, a binary printer that expresses digital data "0" and "1" in white and black, respectively. Note that the image output means of the present embodiment may be a general-purpose computer which simply takes in binarized image data, or in the case of a facsimile apparatus, may be a modem which modulates an image to a frequency required for communication.

【0020】次に、図1に示す本実施の形態例の二値化
手段103について、図2を参照して更に詳しく説明す
る。図2は図1に示す階調変換処理手段である二値化手
段103の詳細構成を説明するための図である。
Next, the binarizing means 103 of the embodiment shown in FIG. 1 will be described in more detail with reference to FIG. FIG. 2 is a diagram for explaining a detailed configuration of the binarizing means 103 which is the gradation conversion processing means shown in FIG.

【0021】図2において、201は画素値入力部であ
る。先に説明したように1画素は8ビットで表現されて
おり、”0”から”255”の範囲の値を有する。画素
値入力部201より入力される画素値は輝度濃度変換さ
れており、”0”は白を”255”は黒を表現するもの
としている。
In FIG. 2, reference numeral 201 denotes a pixel value input unit. As described above, one pixel is represented by 8 bits and has a value in a range from “0” to “255”. The pixel value input from the pixel value input unit 201 has been subjected to luminance density conversion, and “0” represents white and “255” represents black.

【0022】202は前画素までに発生した濃度誤差値
に対し、重み係数を考慮して加算・蓄積する重み加算処
理部である。203は誤差メモリである。重み加算処理
部202における重み加算処理の際に、この誤差メモリ
203が利用される。
A weight addition processing unit 202 adds and accumulates the density error values generated up to the previous pixel in consideration of the weight coefficient. 203 is an error memory. The error memory 203 is used at the time of weight addition processing in the weight addition processing unit 202.

【0023】204は誤差加算処理部であり、重み加算
処理部202により誤差メモリ203中に生成された誤
差量と、画素値入力部201予路の画素入力値とを加算
する。206はデジタルノイズを生成するノイズ生成部
である。ノイズ生成部206で生成するノイズは、予め
範囲を制限したランダムノイズ(ホワイトノイズ)であ
る。ノイズ生成部206で生成するノイズレンジは、−
5〜+5であるが、この値は任意に設定可能である。
An error addition processing unit 204 adds the error amount generated in the error memory 203 by the weight addition processing unit 202 and the pixel input value of the pixel value input unit 201 on the preliminary route. Reference numeral 206 denotes a noise generation unit that generates digital noise. The noise generated by the noise generation unit 206 is random noise (white noise) whose range is limited in advance. The noise range generated by the noise generation unit 206 is −
5 to +5, but this value can be set arbitrarily.

【0024】207はしきい値生成部である。従来、誤
差拡散法ではこの部分に該当するしきい値は、入力濃度
レンジの中間値を取り、かつ固定であった。しかしなが
ら、本実施の形態例では、このしきい値が先に説明した
ノイズ生成部206の出力値に応じて変化する。
Reference numeral 207 denotes a threshold generator. Conventionally, in the error diffusion method, the threshold value corresponding to this portion takes an intermediate value of the input density range and is fixed. However, in the present embodiment, this threshold value changes according to the output value of the noise generation unit 206 described above.

【0025】具体的には、ノイズ生成部206により生
成された−5〜+5レンジのランダムノイズが、しきい
値生成部207に送られ予め定められた固定値”12
8”に加算される。この結果、しきい値生成部207よ
りデータ比較部205に出力される出力しきい値とし
て、123〜133レンジのしきい値がランダムに発生
することとなる。固定値”128”は入力濃度値レンジ
の中間値を取ったものである。
More specifically, the random noise in the range of -5 to +5 generated by the noise generator 206 is sent to the threshold generator 207 and a predetermined fixed value "12" is set.
8 ". As a result, a threshold value in the range of 123 to 133 is randomly generated as an output threshold value output from the threshold value generation unit 207 to the data comparison unit 205. Fixed value "128" is an intermediate value of the input density value range.

【0026】ノイズ発生部206よりランダムに発生さ
れるノイズは、等しい生起確率で−5〜+5の範囲の値
が出力されるので、巨視的にはしきい値の平均値は”1
28”となり、従来の誤差拡散法と同じく入力画素濃度
を保存することができる。一方、しきい値が入力濃度レ
ンジの中間で、ランダムな値を取ることになり、従来テ
クスチャーが顕著に現れていた濃度値”128”近傍
で、選択的にテクスチャーを消去せしめることが可能で
ある。
The noise randomly generated by the noise generating unit 206 is output in the range of -5 to +5 with the same probability of occurrence, so that macroscopically the average value of the threshold is "1".
28 ", so that the input pixel density can be preserved in the same manner as in the conventional error diffusion method. On the other hand, the threshold value takes a random value in the middle of the input density range, and the conventional texture is conspicuous. In the vicinity of the density value “128”, the texture can be selectively erased.

【0027】図2に示す205はデータ比較部であり、
誤差加算処理部204から出力された誤差加算値(画素
濃度値)と、しきい値生成部207から出力されるしき
い値とを比較する。そして、画素濃度値がしきい値以上
の値である場合には、データ比較手段205は”1”を
出力する。逆に、画素濃度値がしきい値未満の値である
場合は、データ比較手段205は”0”を出力する。
Reference numeral 205 shown in FIG. 2 is a data comparison unit.
The error addition value (pixel density value) output from the error addition processing unit 204 is compared with the threshold value output from the threshold value generation unit 207. If the pixel density value is equal to or greater than the threshold value, the data comparison means 205 outputs "1". Conversely, if the pixel density value is less than the threshold value, the data comparison means 205 outputs “0”.

【0028】このデータ比較部205よりの出力値は、
1画素を”0”と”1”の1ビットで表現する二値デー
タである。
The output value from the data comparison unit 205 is
This is binary data in which one pixel is represented by one bit of “0” and “1”.

【0029】以上に説明した本実施の形態例において
は、階調変換処理として多値画像の二値化処理を述べた
が、しきい値生成部207を複数設けることで、データ
比較部205の出力を多値にすることも可能である。
In the present embodiment described above, binarization processing of a multi-valued image has been described as gradation conversion processing. The output can be multi-valued.

【0030】例えば、しきい値が3つある場合、データ
比較部205は4通りの結果を出力することができ、こ
の場合の出力画像は2ビット、4値出力となる。従っ
て、上述した多値/二値変換のみならず、多値/多値変
換といった階調変換が全く同様の構成で可能となる。
For example, when there are three threshold values, the data comparison unit 205 can output four types of results, and the output image in this case is a 2-bit quaternary output. Accordingly, not only the above-described multi-value / binary conversion, but also gradation conversion such as multi-value / multi-value conversion can be realized with exactly the same configuration.

【0031】また、図2の208はデータ出力部であ
り、データ比較部205によって二値化された画像デー
タを出力する。二値化後の画像データは、図1に示す画
像出力手段104に転送され、所定の出力画像を得る。
A data output unit 208 in FIG. 2 outputs image data binarized by the data comparison unit 205. The binarized image data is transferred to the image output unit 104 shown in FIG. 1 to obtain a predetermined output image.

【0032】図2の209は誤差発生部である。二値化
後の画像データは、”1”若しくは”0”の2階調しか
持たないため、実際の濃度値とのずれが生じる。そこで
本実施の形態例では誤差発生部209において、通常の
誤差拡散法のアルゴリズムに基づいて、実際の濃度値と
のずれを濃度誤差値として生成し、以降の画素における
二値化処理の際にこれを考慮できるようにしている。
Reference numeral 209 in FIG. 2 denotes an error generating unit. Since the binarized image data has only two gradations of "1" or "0", a deviation from the actual density value occurs. Therefore, in the present embodiment, the error generation unit 209 generates a deviation from the actual density value as a density error value based on an algorithm of a normal error diffusion method, and generates a deviation in a subsequent pixel binarization process. This is taken into account.

【0033】すなわち、出力画像が”1”の時は入力多
値画像データから”255”を差し引いた値を誤差量と
して出力し、一方、出力画像が”0”の場合は入力画像
データをそのまま誤差量として出力する。
That is, when the output image is "1", a value obtained by subtracting "255" from the input multi-valued image data is output as an error amount. On the other hand, when the output image is "0", the input image data is left as it is. Output as error amount.

【0034】そして、重み加算処理部201及び誤差メ
モリ203で上述した様に誤差発生部209で発生した
誤差を所定の重み係数を考慮して乗・加算処理を行い、
結果を誤差メモリ203に格納する。
Then, as described above, the weight addition processing unit 201 and the error memory 203 multiply and add the error generated by the error generation unit 209 in consideration of a predetermined weight coefficient.
The result is stored in the error memory 203.

【0035】なお、重み加算処理部202における重み
加算処理では、発生した誤差を着目画素を中心とする所
定の2次元領域に重み係数に従って分割し拡散させる手
法と、誤差を分割せずにそのまま重み係数を考慮して所
定の2次元領域に蓄積する手法(誤差最小法)がある。
本実施の形態例ではいずれの手法でも、適用することが
可能である。
In the weight addition processing in the weight addition processing unit 202, the generated error is divided and diffused into a predetermined two-dimensional area centered on the pixel of interest in accordance with the weighting coefficient. There is a method (minimum error method) of accumulating data in a predetermined two-dimensional area in consideration of coefficients.
In this embodiment, any of the methods can be applied.

【0036】以上のようにして、多値入力画像は二値化
処理され、二値プリンタヘの出力が可能となる。従来、
誤差拡散法では、二値化するためのしきい値は固定であ
り変動することはない。これは入力多値画像の濃度を保
存したまま二値化するためである。従って、このしきい
値に対しノイズを加えると、性格には濃度を保存しなく
なる。しかし、付加ノイズのすべての値の生起確率を同
一にすることで、生成するしきい値の期待値を一定とす
ることができる。このために本実施の形態例では、巨視
的には入力画像の濃度を保存したまま、画像の二値化が
可能となる。
As described above, the multi-valued input image is subjected to the binarization processing, and can be output to the binary printer. Conventionally,
In the error diffusion method, the threshold value for binarization is fixed and does not change. This is because binarization is performed while maintaining the density of the input multi-valued image. Therefore, if noise is added to this threshold value, the density will not be preserved in the character. However, by making the occurrence probabilities of all the values of the additional noise the same, the expected value of the threshold to be generated can be made constant. For this reason, in the present embodiment, binarization of an image can be performed macroscopically while keeping the density of the input image.

【0037】また、従来例のごとくノイズを直接画像デ
ータに付加せず、二値化するためのしきい値に付加して
間接的かつ濃度に対して選択的にノイズを付加すること
から、画像全体としてノイジーな出力が得られていた問
題が緩和されるのである。更に、誤差拡散法特有のテク
スチャーは、選択的なノイズの付加により消去せしめる
ことが可能である。
Further, since noise is not directly added to image data as in the conventional example but is added to a threshold value for binarization and noise is added indirectly and selectively with respect to density, image noise is reduced. This alleviates the problem of noisy output as a whole. Further, the texture peculiar to the error diffusion method can be eliminated by selectively adding noise.

【0038】以上説明した様に本実施の形態例によれ
ば、ランダムノイズは従来法のごとく入力多値画像デー
タに直接ノイズが付加されることなく、二値化を実行す
るためのしきい値に対して付加されるため、出力二値画
像に対しては、誤差拡散法特有のテクスチャーを解消す
るためのランダムノイズが、しきい値を経由して間接的
に重畳されることとなる。
As described above, according to the present embodiment, random noise is a threshold value for executing binarization without directly adding noise to input multi-valued image data as in the conventional method. Is added to the output binary image, random noise for eliminating the texture unique to the error diffusion method is indirectly superimposed via the threshold value.

【0039】このためノイズのパワーをしきい値近傍に
限定して付加することができるため、従来法で問題とな
っていた全濃度領域にわたるノイジーな画像が緩和さ
れ、比較的良好な画質を有する二値画像を得ることが可
能となる。
For this reason, since the noise power can be limitedly added to the vicinity of the threshold value, a noisy image over the entire density region, which is a problem in the conventional method, is alleviated, and a relatively good image quality is obtained. A binary image can be obtained.

【0040】更に、従来入力画像濃度範囲の中間部分で
顕著に現れていた特有のテクスチャーは、しきい値がラ
ンダムに変動することで選択的に消去せしめることがで
きる。
Further, the unique texture which has been conspicuously appearing in the middle portion of the input image density range can be selectively erased by randomly changing the threshold value.

【0041】[他の実施形態例]なお、本発明は、複数の
機器(例えばホストコンピュータ,インタフェイス機
器,リーダ,プリンタなど)から構成されるシステムに
適用しても、一つの機器からなる装置(例えば、複写
機,ファクシミリ装置など)に適用してもよい。
[Other Embodiments] Even if the present invention is applied to a system including a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), an apparatus including a single device can be used. (For example, a copying machine, a facsimile machine, etc.).

【0042】また、本発明の目的は、前述した実施形態
の機能を実現するソフトウェアのプログラムコードを記
録した記憶媒体を、システムあるいは装置に供給し、そ
のシステムあるいは装置のコンピュータ(またはCPU
やMPU)が記憶媒体に格納されたプログラムコードを
読出し実行することによっても、達成されることは言う
までもない。
Another object of the present invention is to provide a storage medium storing a program code of software for realizing the functions of the above-described embodiments to a system or apparatus, and to provide a computer (or CPU) of the system or apparatus.
And MPU) read and execute the program code stored in the storage medium.

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

【0044】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピディスク,ハードディス
ク,光ディスク,光磁気ディスク,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.

【0045】また、コンピュータが読出したプログラム
コードを実行することにより、前述した実施形態の機能
が実現されるだけでなく、そのプログラムコードの指示
に基づき、コンピュータ上で稼働している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.

【0046】さらに、記憶媒体から読出されたプログラ
ムコードが、コンピュータに挿入された機能拡張ボード
やコンピュータに接続された機能拡張ユニットに備わる
メモリに書込まれた後、そのプログラムコードの指示に
基づき、その機能拡張ボードや機能拡張ユニットに備わ
る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 processing realizes the functions of the above-described embodiments.

【0047】本発明を上記記憶媒体に適用する場合、そ
の記憶媒体には、先に説明した各機能を実現するプログ
ラムコードを格納することになる。
When the present invention is applied to the storage medium, the storage medium stores program codes for implementing the functions described above.

【0048】[0048]

【発明の効果】以上説明したように本発明によれば、誤
差拡散法に特有のテクスチャーを消去せしめ、なめらか
な階調画像部位に現れていた疑似輪郭を無くして画質を
向上することができる。一方、従来例のごとく付加ノイ
ズの副作用によるノイジーな画像は、しきい値に対する
間接的なノイズの付加によって緩和され、より画質向上
に寄与する効果が得られる。
As described above, according to the present invention, the texture peculiar to the error diffusion method can be eliminated, and the image quality can be improved by eliminating the false contour appearing in the smooth gradation image portion. On the other hand, a noisy image due to the side effect of the additional noise as in the conventional example is mitigated by the indirect addition of the noise to the threshold value, and the effect of further improving the image quality is obtained.

【0049】[0049]

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

【図1】本発明に係る一発明の実施の形態例の画像処理
装置における階調変換方法を、多値画像の二値化手段と
して実現した例を示す図である。
FIG. 1 is a diagram illustrating an example in which a gradation conversion method in an image processing apparatus according to an embodiment of the present invention is implemented as a binarizing unit of a multi-value image.

【図2】図1に示す階調変換処理手段である二値化手段
の詳細構成を説明するための図である。
FIG. 2 is a diagram for explaining a detailed configuration of a binarizing unit which is a gradation conversion processing unit shown in FIG. 1;

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

101 画像入力手段 102 画像処理手段 103 二値化手段 104 画像出力手段 201 画素値入力部 202 重み加算処理部 203 誤差メモリ 204 誤差加算処理部 205 データ比較部 206 ノイズ生成部 207 しきい値生成部 208 データ出力部 209 誤差発生部 Reference Signs List 101 image input means 102 image processing means 103 binarization means 104 image output means 201 pixel value input section 202 weight addition processing section 203 error memory 204 error addition processing section 205 data comparison section 206 noise generation section 207 threshold value generation section 208 Data output unit 209 Error generation unit

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 多値画像を該多値画像より階調数の少な
いn階調へ変換する画像処理装置であって、 生起確率が等しいノイズを発生させ、発生させたノイズ
値に所定の値を加算してしきい値を生成するしきい値生
成手段と、 多値画像を前記しきい値生成手段で生成したしきい値を
用いて該多値画像より階調数の少ないn階調へ変換する
変換手段とを備えることを特徴とする画像処理装置。
1. An image processing apparatus for converting a multi-valued image into n gradations having a smaller number of gradations than the multi-valued image, wherein noise having an equal probability of occurrence is generated, and a predetermined value is set to the generated noise value. Threshold value generating means for generating a threshold value by adding the threshold value to the multi-valued image, and using the threshold value generated by the threshold value generating means to n gradations having a smaller number of gradations than the multi-valued image. An image processing apparatus comprising: a conversion unit configured to perform conversion.
【請求項2】 更に、前記変換手段の変換値と多値画素
データ値との差分値を誤差量として生成する誤差量発生
手段と、 前記誤差量発生手段の発生した誤差量を所定の重み係数
に基づいて蓄積加算して入力される多値画像データに加
算して階調変換する多値画像データとする誤差加算手段
とを備えることを特徴とする請求項1記載の画像処理装
置。
2. An error amount generating means for generating a difference value between a converted value of the converting means and a multi-valued pixel data value as an error amount; 2. The image processing apparatus according to claim 1, further comprising: an error adding unit that accumulates and adds to the input multi-valued image data based on the data and adds the multi-valued image data to multi-valued image data for gradation conversion.
【請求項3】 多値画像を該多値画像より階調数の少な
いn階調へ変換する画像処理装置であって、 生起確率が等しいノイズを発生させるノイズ生成手段
と、 前記ノイズ発生手段で発生したノイズを基に所定のしき
い値を生成するしきい値生成手段と、 前記しきい値生成手段で生成したしきい値と階調変換す
る多値画像データとを比較し、比較結果に対応して多値
画像データを該多値画像データより階調数の少ないn階
調へ変換する変換手段と、 前記変換手段の変換値と多値画素データ値との差分値を
誤差量として生成する誤差量発生手段と、 前記誤差量発生手段の発生した誤差量を所定の重み係数
に基づいて蓄積加算して入力される多値画像データに加
算して階調変換する多値画像データとする誤差加算手段
とを備えることを特徴とする画像処理装置。
3. An image processing apparatus for converting a multi-valued image into n gradations having a smaller number of gradations than the multi-valued image, wherein: a noise generating means for generating noise having an equal probability of occurrence; Threshold value generating means for generating a predetermined threshold value based on the generated noise; comparing the threshold value generated by the threshold value generating means with multi-valued image data for gradation conversion; A conversion means for converting the multi-valued image data into n gradations having a smaller number of gradations than the multi-valued image data; and generating a difference value between the conversion value of the conversion means and the multi-valued pixel data value as an error amount. An error amount generating unit that performs accumulation and addition of the error amount generated by the error amount generating unit on the basis of a predetermined weighting coefficient to input multi-valued image data to obtain multi-valued image data for gradation conversion Error adding means is provided. An image processing device.
【請求項4】 前記ノイズ生成手段は、所定の振幅を有
するノイズを発生させ、所定の振幅は入力される多値画
像データの範囲に比べ十分小さいことを特徴とする請求
項1乃至請求項3のいずれかに記載の画像処理装置。
4. The apparatus according to claim 1, wherein said noise generating means generates noise having a predetermined amplitude, and said predetermined amplitude is sufficiently smaller than a range of input multi-valued image data. The image processing device according to any one of the above.
【請求項5】 多値画像を該多値画像より階調数の少な
いn階調へ変換する画像処理方法であって、 生起確率が等しいノイズを発生させ、発生させたノイズ
値に所定の値を加算してしきい値を生成し、 多値画像を前記生成したしきい値を用いて該多値画像よ
り階調数の少ないn階調へ変換することを特徴とする画
像処理方法。
5. An image processing method for converting a multi-valued image into n gradations having a smaller number of gradations than the multi-valued image, wherein noise having an equal probability of occurrence is generated, and a predetermined value is added to the generated noise value. An image processing method comprising: converting a multi-valued image into n gradations having a smaller number of gradations than the multi-valued image using the generated threshold value.
【請求項6】 更に、前記変換値と多値画素データ値と
の差分値を誤差量とし、誤差量を所定の重み係数に基づ
いて蓄積加算して入力される多値画像データに加算して
階調変換する多値画像データとすることを特徴とする請
求項5記載の画像処理方法。
6. The method according to claim 1, wherein a difference value between the converted value and the multi-valued pixel data value is used as an error amount, and the error amount is accumulated and added based on a predetermined weighting coefficient and added to the input multi-valued image data. 6. The image processing method according to claim 5, wherein the image data is multi-valued image data to be subjected to gradation conversion.
【請求項7】 多値画像を該多値画像より階調数の少な
いn階調へ変換する画像処理方法であって、 生起確率が等しいノイズを発生させ、発生させたノイズ
を基に所定のしきい値を生成し、生成したしきい値と階
調変換する多値画像データとを比較し、比較結果に対応
して多値画像データを該多値画像データより階調数の少
ないn階調へ変換するとともに、 前記変換値と多値画素データ値との差分値を誤差量と
し、該誤差量を所定の重み係数に基づいて蓄積加算して
入力される多値画像データに加算して階調変換する多値
画像データとすることを特徴とする画像処理方法。
7. An image processing method for converting a multi-valued image into n gradations having a smaller number of gradations than the multi-valued image, wherein noise having an equal probability of occurrence is generated, and a predetermined value is determined based on the generated noise. A threshold value is generated, the generated threshold value is compared with the multi-valued image data to be subjected to gradation conversion, and the multi-valued image data is converted into n-order images having a smaller number of gradations than the multi-valued image data according to the comparison result And converting the difference value between the converted value and the multi-valued pixel data value into an error amount, and accumulating and adding the error amount based on a predetermined weight coefficient to the input multi-valued image data. An image processing method characterized by using multi-valued image data for gradation conversion.
【請求項8】 前記生成されるノイズは、所定の振幅を
有するノイズであり、所定の振幅は入力される多値画像
データの範囲に比べ十分小さいことを特徴とする請求項
5乃至請求項7のいずれかに記載の画像処理方法。
8. The method according to claim 5, wherein the generated noise is noise having a predetermined amplitude, and the predetermined amplitude is sufficiently smaller than a range of input multi-valued image data. The image processing method according to any one of the above.
【請求項9】 前記請求項1乃至請求項8のいずれかに
記載の機能を実現するコンピュータプログラム列。
9. A computer program sequence for realizing the function according to any one of claims 1 to 8.
【請求項10】 前記請求項1乃至請求項8のいずれか
に記載の機能を実現するコンピュータプログラムを記憶
したコンピュータ可読記録媒体。
10. A computer-readable recording medium storing a computer program for realizing the functions according to claim 1. Description:
JP10135736A 1998-05-18 1998-05-18 Device and method for image processing Withdrawn JPH11328357A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10135736A JPH11328357A (en) 1998-05-18 1998-05-18 Device and method for image processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10135736A JPH11328357A (en) 1998-05-18 1998-05-18 Device and method for image processing

Publications (1)

Publication Number Publication Date
JPH11328357A true JPH11328357A (en) 1999-11-30

Family

ID=15158678

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10135736A Withdrawn JPH11328357A (en) 1998-05-18 1998-05-18 Device and method for image processing

Country Status (1)

Country Link
JP (1) JPH11328357A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007182077A (en) * 2007-01-25 2007-07-19 Seiko Epson Corp Printer and image processor
US7286266B2 (en) 2002-07-09 2007-10-23 Seiko Epson Corporation Printer and image processing device for the same
JP2007318525A (en) * 2006-05-26 2007-12-06 Ricoh Co Ltd Image forming apparatus
US9900466B2 (en) 2016-02-24 2018-02-20 Riso Kagaku Corporation Image processing apparatus
JP2020010151A (en) * 2018-07-06 2020-01-16 国立大学法人千葉大学 Image processing device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7286266B2 (en) 2002-07-09 2007-10-23 Seiko Epson Corporation Printer and image processing device for the same
JP2007318525A (en) * 2006-05-26 2007-12-06 Ricoh Co Ltd Image forming apparatus
JP2007182077A (en) * 2007-01-25 2007-07-19 Seiko Epson Corp Printer and image processor
JP4492619B2 (en) * 2007-01-25 2010-06-30 セイコーエプソン株式会社 Printer and image processing apparatus therefor
US9900466B2 (en) 2016-02-24 2018-02-20 Riso Kagaku Corporation Image processing apparatus
JP2020010151A (en) * 2018-07-06 2020-01-16 国立大学法人千葉大学 Image processing device

Similar Documents

Publication Publication Date Title
JPS60229573A (en) Encoding and transmitting system for half-tone picture information
JPH11328357A (en) Device and method for image processing
US6693727B1 (en) Image processing apparatus for performing high-speed error diffusion
JP3480887B2 (en) Image processing apparatus and image processing method
JPH0370433B2 (en)
US6842267B1 (en) Image processing method
JP4454879B2 (en) Image processing apparatus, image processing method, and recording medium
JPH01303869A (en) Picture processor
JP4035280B2 (en) Image processing apparatus and processing method thereof
JPH11345327A (en) Picture processing method and picture processor
JPH11146203A (en) Image processor and storage medium storing program about device
JPH0546749B2 (en)
JP2860039B2 (en) Pseudo halftone image reduction device
KR0150164B1 (en) Quantization method and apparatus using error diffusion for image processing system
JP2838244B2 (en) Edge enhancement method
JP2702593B2 (en) Isolated point removal device
JP2677989B2 (en) Pseudo halftone processor
JP4069768B2 (en) Image processing method and apparatus
JPH04270561A (en) Picture processor
JP2006094239A (en) Image processing device and memory medium
JP3146516B2 (en) Image processing device
JPH0360276A (en) Picture information reader
JPH11239273A (en) Method and device for processing image
JPH06253133A (en) Picture processing device
JPH07212573A (en) Resolution conversion device for binary picture

Legal Events

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

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050802