JP3475425B2 - Image processing apparatus, image processing method thereof, and recording medium recording image processing program - Google Patents

Image processing apparatus, image processing method thereof, and recording medium recording image processing program

Info

Publication number
JP3475425B2
JP3475425B2 JP19247299A JP19247299A JP3475425B2 JP 3475425 B2 JP3475425 B2 JP 3475425B2 JP 19247299 A JP19247299 A JP 19247299A JP 19247299 A JP19247299 A JP 19247299A JP 3475425 B2 JP3475425 B2 JP 3475425B2
Authority
JP
Japan
Prior art keywords
value
data
image processing
threshold
error
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.)
Expired - Fee Related
Application number
JP19247299A
Other languages
Japanese (ja)
Other versions
JP2001024890A (en
Inventor
透 清水
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP19247299A priority Critical patent/JP3475425B2/en
Publication of JP2001024890A publication Critical patent/JP2001024890A/en
Application granted granted Critical
Publication of JP3475425B2 publication Critical patent/JP3475425B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

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, an image processing method therefor, and a recording medium on which an image processing program is recorded. In particular, error diffusion processing is performed when original data has a gradation characteristic reduced by gamma correction. The present invention relates to an improved image processing method.

【0002】[0002]

【従来の技術】従来、プリンタやディスプレイ等の出力
装置においては、その特性に合わせて元画像データを変
換するガンマ補正を行っている。例えば、プリンタにお
いては、用紙搬送の精度やドットの着弾精度の問題から
生じるバンディングと呼ばれる横すじを消す等の目的
で、1ドットのドット径が画素間隔よりも大きめに設定
されている。
2. Description of the Related Art Conventionally, in an output device such as a printer or a display, gamma correction for converting original image data according to its characteristics is performed. For example, in printers, the dot diameter of one dot is set to be larger than the pixel interval for the purpose of eliminating horizontal stripes called banding caused by problems of paper conveyance accuracy and dot landing accuracy.

【0003】そのため、低濃度領域で孤立して存在する
1ドットは周囲のドットOFF(空白)の画素へはみ出
していることになり、補正なしでは元画像データに対す
る理想の濃度よりも大きくなってしまう。その問題を解
決するために、出力装置の特性とは逆の特性の補正をか
けることがガンマ補正である。
Therefore, one dot that exists independently in the low-density area is projected to the surrounding pixels whose pixels are OFF (blank), and becomes larger than the ideal density for the original image data without correction. . In order to solve the problem, gamma correction is a correction of characteristics opposite to those of the output device.

【0004】通常、ガンマ補正は元画像データの持つ全
階調を出力することができない出力装置において必須で
ある誤差拡散法やディザ法等、画素の階調数を減らすハ
ーフトーン処理に先だって行われる。
Normally, gamma correction is performed prior to halftone processing such as an error diffusion method or a dither method, which is essential in an output device that cannot output all gradations of original image data, to reduce the number of gradations of pixels. .

【0005】誤差拡散法は各画素の低階調化(以後量子
化と称す)によって生じた量子化誤差を周辺の未だ量子
化されていない画素に拡散して加えた後、閾値と比較し
て量子化することで、画像全体として量子化誤差を少な
くすることができるハーフトーン手法である。
In the error diffusion method, a quantization error caused by gradation reduction (hereinafter referred to as quantization) of each pixel is diffused and added to surrounding pixels which have not been quantized yet, and then compared with a threshold value. This is a halftone method that can reduce the quantization error in the entire image by quantizing.

【0006】しかしながら、ガンマ補正処理の後、通常
のハーフトーン処理を行うのでは、元画像の階調数が有
効に活用されないという問題が生ずる。上記のプリンタ
の例のように、出力が理想値よりも大きくなってしまう
場合にはガンマ補正によって、例えば元画像データの
「0,1,2」が「0,0,0」に、「3,4,5」が
「1,1,1」に、「6,7,8」が「3,3,3」
に、……、「254」が「250」に、「255」が
「255」に変換されることになる。
However, if the normal halftone processing is performed after the gamma correction processing, there arises a problem that the number of gradations of the original image is not effectively utilized. When the output becomes larger than the ideal value as in the above example of the printer, gamma correction is performed, for example, "0, 1, 2" of the original image data becomes "0, 0, 0", and "3. , 4, 5 ”is“ 1, 1, 1 ”and“ 6, 7, 8 ”is“ 3, 3, 3 ”
, ..., "254" is converted to "250", and "255" is converted to "255".

【0007】元画像の持っている微妙な階調の情報が失
われてしまった(例えば、「1,2,3」が1つの出力
階調値「0」に圧縮される)状態でハーフトーン処理さ
れることになり、出力画像においてディテールが潰れた
り、疑似輪郭が発生したりするという問題が生ずる。
Halftone in a state in which the information of the subtle gradation which the original image has is lost (for example, "1, 2, 3" is compressed into one output gradation value "0"). As a result, the problem arises that details are destroyed or pseudo contours are generated in the output image.

【0008】この問題を解決するために、誤差拡散法に
おいて、ドットONを示す2階調画像データに対応した
出力評価値(この場合、量子化誤差=量子化前データ値
−出力評価値)をガンマ特性に対応して変化させること
で対応する方法がある。
In order to solve this problem, in the error diffusion method, the output evaluation value (in this case, quantization error = pre-quantization data value−output evaluation value) corresponding to the two-gradation image data indicating dot ON is calculated. There is a method of responding by changing the gamma characteristic.

【0009】すなわち、出力評価値を実際の量子化後デ
ータ値よりもより大きくしておけば、量子化誤差はより
小さくなり、この小さくなった量子化誤差が拡散された
画素は値がより小さくなり、量子化された際にドットO
Nによりなりにくくなるというように、ドットの生成を
制御することができる。
That is, if the output evaluation value is made larger than the actual quantized data value, the quantization error becomes smaller, and the pixel in which this reduced quantization error is diffused has a smaller value. And the dot O when quantized
It is possible to control the generation of dots so that N is less likely to occur.

【0010】この出力評価値の変更の度合いをガンマ曲
線と対応させることで、ガンマの特性をドットの生成に
対応させることが可能となる。上記の方法については、
特開平9−163141号公報に開示されている。
By making the degree of change of the output evaluation value correspond to the gamma curve, it becomes possible to make the gamma characteristic correspond to the dot generation. For the above method,
It is disclosed in Japanese Patent Laid-Open No. 9-163141.

【0011】[0011]

【発明が解決しようとする課題】上述した従来の画像処
理方法では、ガンマ曲線の特性が反映されるのが、注目
画素から生じた量子化誤差であるため、注目画素の近傍
の画素である。すなわち、実際にガンマ補正される画素
は注目画素ではないという問題がある。
In the above-described conventional image processing method, the characteristics of the gamma curve are reflected in the pixels in the vicinity of the pixel of interest because of the quantization error generated from the pixel of interest. That is, there is a problem that the pixel that is actually gamma-corrected is not the pixel of interest.

【0012】均一な濃度の画素が連続している領域なら
ば問題は少ないが、非常に小さな領域やエッジ部では最
適なガンマ補正がされないという問題がある。また、上
記公報記載の方法ではドットがON,OFFの2値の場
合のみしか言及されておらず、多値のハーフトーンを行
う場合には対処されない。
Although there are few problems in a region where pixels of uniform density are continuous, there is a problem that optimum gamma correction is not performed in a very small region or an edge portion. Further, the method described in the above publication only mentions the case where the dots are binary values of ON and OFF, and does not deal with the case where multivalued halftone is performed.

【0013】そこで、本発明の目的は上記の問題点を解
消し、ガンマ補正によって階調特性が低減することのな
い誤差拡散処理を行うことができる画像処理装置及びそ
の画像処理方法並びに画像処理プログラムを記録した記
録媒体を提供することにある。
Therefore, an object of the present invention is to solve the above-mentioned problems, and to perform an error diffusion process that does not reduce the gradation characteristics by gamma correction, an image processing apparatus, an image processing method thereof, and an image processing program. It is to provide a recording medium in which is recorded.

【0014】[0014]

【課題を解決するための手段】本発明による画像処理装
置は、量子化誤差を近傍の画素に重み付けして拡散させ
るためのマトリクスが予め設定されて記憶されている誤
差重みマトリクス記憶手段と、量子化された際の誤差を
逐次記憶する量子化誤差バッファと、周辺画素の量子化
誤差を周辺画素の誤差重みマトリクスによって重み付け
平均する重み付け平均処理手段と、注目画素を量子化す
る際の閾値を設定する閾値設定手段と、前記閾値と前記
注目画素の近傍の画素の量子化誤差の重み付け平均値及
び前記注目画素の値の加算値とを比較して2値化以上の
多値に量子化する量子化手段とを含み、多値誤差拡散処
理を行う画像処理装置であって、元画像データを予め定
めておいたガンマ特性にしたがってガンマ変換するガン
マ補正手段と、前記ガンマ補正手段によるガンマ変換後
のデータと元画像データとを参照して閾値を修正する閾
値修正手段とを備えている。
An image processing apparatus according to the present invention comprises an error weight matrix storage unit in which a matrix for weighting and diffusing a quantization error to neighboring pixels to diffuse is set and stored, and Quantization error buffer for sequentially storing the error when the pixel is quantized, weighted averaging means for weighting and averaging the quantized error of the peripheral pixel by the error weight matrix of the peripheral pixel, and setting a threshold value for quantizing the pixel of interest. And a threshold value setting means for comparing the threshold value with a weighted average value of quantization errors of pixels in the vicinity of the pixel of interest and an added value of the values of the pixel of interest to quantize into a multi-valued binary value or more. And an image processing device for performing multi-valued error diffusion processing, including: a gamma correction unit for gamma-converting original image data according to a predetermined gamma characteristic; And a threshold value correction means for correcting the threshold value by referring to the after gamma conversion by the gamma correction unit data and the original image data.

【0015】本発明による画像処理方法は、量子化誤差
を近傍の画素に重み付けして拡散させるためのマトリク
スが予め設定されて記憶されている誤差重みマトリクス
記憶手段と、量子化された際の誤差を逐次記憶する量子
化誤差バッファと、周辺画素の量子化誤差を周辺画素の
誤差重みマトリクスによって重み付け平均する重み付け
平均処理手段と、注目画素を量子化する際の閾値を設定
する閾値設定手段と、前記閾値と前記注目画素の近傍の
画素の量子化誤差の重み付け平均値及び前記注目画素の
値の加算値とを比較して2値化以上の多値に量子化する
量子化手段とを含み、多値誤差拡散処理を行う画像処理
装置の画像処理方法であって、元画像データを予め定め
ておいたガンマ特性にしたがってガンマ変換するステッ
プと、そのガンマ変換後のデータと元画像データとを参
照して閾値を修正するステップとを備えている。
In the image processing method according to the present invention, an error weight matrix storage means in which a matrix for weighting and quantizing the quantization error to neighboring pixels and diffusing it is stored in advance, and an error when quantized. A quantization error buffer that sequentially stores, a weighted average processing unit that weights and averages the quantization error of the peripheral pixels by the error weight matrix of the peripheral pixels, and a threshold setting unit that sets a threshold value when the pixel of interest is quantized. A quantizing means for comparing the threshold value with a weighted average value of quantization errors of pixels in the vicinity of the pixel of interest and an added value of the values of the pixel of interest to quantize into a multivalued binary or higher value; An image processing method of an image processing device for performing multi-valued error diffusion processing, comprising the steps of gamma conversion of original image data according to a predetermined gamma characteristic, and the gamma conversion thereof. And a step of modifying the threshold value with reference to the 換後 data and the original image data.

【0016】本発明による画像処理プログラムを記録し
た記録媒体は、量子化誤差を近傍の画素に重み付けして
拡散させるためのマトリクスが予め設定されて記憶され
ている誤差重みマトリクス記憶手段と、量子化された際
の誤差を逐次記憶する量子化誤差バッファと、周辺画素
の量子化誤差を周辺画素の誤差重みマトリクスによって
重み付け平均する重み付け平均処理手段と、注目画素を
量子化する際の閾値を設定する閾値設定手段と、前記閾
値と前記注目画素の近傍の画素の量子化誤差の重み付け
平均値及び前記注目画素の値の加算値とを比較して2値
化以上の多値に量子化する量子化手段とを含み画像処理
装置に多値誤差拡散処理を行わせるための画像処理プロ
グラムを記録した記録媒体であって、前記画像処理プロ
グラムは前記画像処理装置に、元画像データを予め定め
ておいたガンマ特性にしたがってガンマ変換させ、その
ガンマ変換後のデータと元画像データとを参照して閾値
を修正させている。
The recording medium recording the image processing program according to the present invention includes an error weight matrix storage unit in which a matrix for weighting and diffusing a quantization error to neighboring pixels and diffusing it is stored, and a quantization. Quantization error buffer for sequentially storing the errors in the case of being processed, weighted averaging means for weighting and averaging the quantization errors of the peripheral pixels by the error weight matrix of the peripheral pixels, and a threshold value for quantizing the pixel of interest are set. The threshold value setting means compares the threshold value with the weighted average value of the quantization errors of the pixels in the vicinity of the target pixel, and the added value of the values of the target pixel, and quantizes to quantize into a binary value or more. A recording medium storing an image processing program for causing an image processing apparatus to perform a multi-valued error diffusion process, the image processing program comprising: Sense device, and according to the gamma characteristic which has been predetermined the original image data is gamma-converted, to correct the threshold value with reference to its after gamma conversion data and the original image data.

【0017】すなわち、本発明の画像処理装置は、上記
の課題を解決するために、誤差拡散法における閾値をガ
ンマ特性に対応して変化させることで、ドットの出力状
態を制御し、ガンマ補正によって階調特性が低減するこ
とのない2値化以上の多値誤差拡散処理を行う。
That is, in order to solve the above-mentioned problems, the image processing apparatus of the present invention controls the output state of dots by changing the threshold value in the error diffusion method according to the gamma characteristic, and performs gamma correction. Binary or higher multi-valued error diffusion processing that does not reduce gradation characteristics is performed.

【0018】より具体的に、本発明の画像処理装置は、
元画像データをガンマ特性に合わせて変換する(以後ガ
ンマ変換と称する)手段と、ガンマ変換後のデータから
閾値を設定する手段と、元画像データとガンマ変換後の
データとから閾値を修正する手段とを有している。
More specifically, the image processing apparatus of the present invention is
Means for converting the original image data according to the gamma characteristic (hereinafter referred to as gamma conversion), means for setting a threshold value from the gamma converted data, and means for correcting the threshold value from the original image data and the gamma converted data. And have.

【0019】元画像データとガンマ変換後のデータとか
ら閾値を修正する手段はガンマ変換手段によって得られ
たガンマ変換後データと元画像データとを参照し、ガン
マ変換後のデータが同じ値で元データの値が異なるなら
ば、元データが濃い方が濃い階調に量子化されるよう
に、誤差拡散処理の閾値の修正を行う。これによって、
ガンマ補正により階調特性が低減することのない誤差拡
散処理が実現可能となる。
The means for correcting the threshold value from the original image data and the gamma-converted data refers to the gamma-converted data obtained by the gamma conversion means and the original image data, and the gamma-converted data has the same value. If the data values are different, the threshold value of the error diffusion process is modified so that the darker grayscale of the original data is quantized. by this,
By the gamma correction, it is possible to realize the error diffusion processing without the gradation characteristic being reduced.

【0020】[0020]

【発明の実施の形態】次に、本発明の一実施例について
図面を参照して説明する。図1は本発明の一実施例によ
る画像処理装置の構成を示すブロック図である。図1に
おいて、本発明の一実施例による画像処理装置はガンマ
補正部1と、閾値設定部2と、閾値修正部3と、量子化
誤差バッファ4と、誤差重みマトリクス記憶部5と、量
子化部6と、重み付け平均処理部7と、減算処理部8、
加算処理部9とから構成されている。
BEST MODE FOR CARRYING OUT THE INVENTION Next, an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing the arrangement of an image processing apparatus according to an embodiment of the present invention. 1, an image processing apparatus according to an embodiment of the present invention includes a gamma correction unit 1, a threshold value setting unit 2, a threshold value correction unit 3, a quantization error buffer 4, an error weight matrix storage unit 5, and a quantization unit. Unit 6, weighted average processing unit 7, subtraction processing unit 8,
It is composed of an addition processing unit 9.

【0021】ガンマ補正部1は注目画素の元画像データ
を予め定めておいたガンマ特性にしたがってガンマ変換
する。閾値設定部2はガンマ変換後のデータの値に基づ
いて、そのデータを量子化する際の閾値を設定する。こ
の閾値の設定法としては多数考えられるが、最も簡単な
方法としてはガンマ変換後データの値に最も近い2つの
出力レベルの中間値である。
The gamma correction unit 1 gamma-converts the original image data of the pixel of interest according to a predetermined gamma characteristic. The threshold setting unit 2 sets a threshold for quantizing the data based on the value of the data after gamma conversion. There are many possible methods for setting this threshold value, but the simplest method is the intermediate value of the two output levels that are closest to the value of the data after gamma conversion.

【0022】また、通常の誤差拡散法の欠点である超低
濃度領域・超高濃度領域におけるドット出現の遅れや点
線上になるといった欠点の解決のために、ガンマ変換後
のデータの値と出力レベルの値との差によって閾値を変
更することも可能である。しかしながら、閾値の設定法
に関しては本発明の最も主張したい特徴ではないので、
その詳細な説明については省略する。
Further, in order to solve the drawbacks of the ordinary error diffusion method, such as the delay of dots appearing in the ultra-low density region and the ultra-high density region and the dot line, the data value and output after gamma conversion It is also possible to change the threshold depending on the difference from the level value. However, since the threshold setting method is not the most desired feature of the present invention,
Detailed description thereof will be omitted.

【0023】閾値修正部3はガンマ変換後データと元画
像データとを参照し、誤差拡散処理の閾値を修正する。
閾値の修正の基準はガンマ変換後のデータが同じ値で元
データの値が異なるならば、元データが濃い方が濃い階
調に量子化されるように行う。この閾値修正部3が本発
明の最も特徴とするところである。
The threshold correction unit 3 refers to the gamma-converted data and the original image data to correct the threshold value of the error diffusion process.
The threshold is modified so that if the data after gamma conversion has the same value but the value of the original data is different, the darker original data is quantized into a deeper gradation. This threshold correction unit 3 is the most characteristic of the present invention.

【0024】量子化誤差バッファ4は注目画素とその画
素が量子化された際の誤差とを逐次記憶する。誤差重み
マトリクス記憶部5は従来と同じ誤差拡散処理における
量子化誤差を近傍の画素に重み付けして拡散させるため
のマトリクス(以下、誤差重みマトリクスとする)が、
予め設定されて記憶されている。
The quantization error buffer 4 sequentially stores the pixel of interest and the error when the pixel is quantized. The error weight matrix storage unit 5 has a matrix (hereinafter referred to as an error weight matrix) for weighting and diffusing the quantization error in the same error diffusion processing as in the conventional case to neighboring pixels.
It is preset and stored.

【0025】量子化部6は修正された閾値と、注目画素
の近傍の画素の量子化誤差の重み付け平均及び注目画素
の値が加算された値とを比較し、2値化以上の多値に量
子化する。これは従来の誤差拡散処理における比較処理
と同様である。
The quantizer 6 compares the corrected threshold value with a value obtained by adding the weighted average of the quantization errors of the pixels in the vicinity of the pixel of interest and the value of the pixel of interest to obtain a binary value or more multivalue. Quantize. This is similar to the comparison process in the conventional error diffusion process.

【0026】重み付け平均処理部7は量子化誤差バッフ
ァ4に記憶されている近傍画素の量子化誤差に対し、誤
差重みマトリクス記憶部5に予め記憶されている近傍画
素の誤差重みマトリクスによって重み付け平均を施して
近傍画素誤差重み平均値を計算する。減算処理部8は量
子化部6で得られた近傍画素の量子化データとガンマ補
正部1からの近傍画素のガンマ補正後データとの減算処
理を行い、量子化誤差を計算する。重み付け平均処理部
9は周辺画素の量子化誤差を、対応する周辺画素の誤差
重みマトリクスによって重み付け平均を計算する。
The weighted average processing unit 7 performs a weighted average on the quantization error of the neighboring pixels stored in the quantization error buffer 4 by using the error weight matrix of the neighboring pixels stored in advance in the error weight matrix storage unit 5. Then, the weighted average value of neighboring pixel errors is calculated. The subtraction processing unit 8 performs a subtraction process between the quantized data of the neighboring pixels obtained by the quantizing unit 6 and the gamma-corrected data of the neighboring pixels from the gamma correction unit 1 to calculate the quantization error. The weighted average processing unit 9 calculates the weighted average of the quantization error of the peripheral pixels by using the error weight matrix of the corresponding peripheral pixels.

【0027】図2は本発明の一実施例による画像処理装
置の動作を示すフローチャートであり、図3は本発明の
一実施例による画像処理装置の近傍画素データの量子化
処理を示すフローチャートである。これら図1〜図3を
参照して本発明の一実施例による画像処理装置の動作に
ついて説明する。
FIG. 2 is a flow chart showing the operation of the image processing apparatus according to one embodiment of the present invention, and FIG. 3 is a flow chart showing the quantization processing of neighboring pixel data of the image processing apparatus according to one embodiment of the present invention. . The operation of the image processing apparatus according to the embodiment of the present invention will be described with reference to FIGS.

【0028】尚、図2及び図3に示す処理動作は本発明
の一実施例による画像処理装置の各部が図示せぬ制御メ
モリに記録されたプログラムを実行することで実現さ
れ、制御メモリとしてはROM(リードオンリメモリ)
やIC(集積回路)メモリ等が使用可能である。
The processing operations shown in FIGS. 2 and 3 are realized by each unit of the image processing apparatus according to the embodiment of the present invention executing a program recorded in a control memory (not shown). ROM (Read Only Memory)
An IC (integrated circuit) memory or the like can be used.

【0029】ガンマ補正部1に入力された注目画素のデ
ータは予め定められたガンマ特性にしたがってガンマ変
換され(以下、ガンマ変換されたデータをガンマ変換後
データとする)(図2ステップS1,S2)、ガンマ変
換後データが閾値設定部2と閾値修正部3と減算処理部
8と加算処理部9とに送られる。
The data of the pixel of interest input to the gamma correction unit 1 is gamma-converted according to a predetermined gamma characteristic (hereinafter, the gamma-converted data is referred to as gamma-converted data) (steps S1 and S2 in FIG. 2). ), The gamma-converted data is sent to the threshold setting unit 2, the threshold correction unit 3, the subtraction processing unit 8, and the addition processing unit 9.

【0030】閾値設定部2はガンマ変換後データの値に
基づいて、そのデータを量子化する際の閾値を設定し
(図2ステップS3)、その閾値を閾値修正部3に送
る。閾値修正部3に入力された閾値はガンマ変換部1か
らのガンマ変換後データと元画像データとを参照し、上
記の修正基準に基づいて修正処理が施され(図2ステッ
プS4)、修正された閾値は量子化部6に送られる。
The threshold setting unit 2 sets a threshold for quantizing the data based on the value of the gamma-converted data (step S3 in FIG. 2) and sends the threshold to the threshold correcting unit 3. The threshold value input to the threshold value correction unit 3 is corrected by referring to the gamma-converted data from the gamma conversion unit 1 and the original image data, and a correction process is performed based on the above-mentioned correction reference (step S4 in FIG. 2). The threshold value is sent to the quantizer 6.

【0031】重み付け平均処理部7は量子化誤差バッフ
ァ4に記憶されている近傍画素の量子化誤差に対し、誤
差重みマトリクス記憶部5に予め記憶されている近傍画
素の誤差重みマトリクスによって重み付け平均を施して
近傍画素誤差重み平均値を計算し(図2ステップS
5)、その計算結果を加算処理部9に送る。
The weighted average processing unit 7 performs a weighted average on the quantization error of the neighboring pixels stored in the quantization error buffer 4 by using the error weight matrix of the neighboring pixels stored in advance in the error weight matrix storage unit 5. Then, the weighted average value of neighboring pixel errors is calculated (step S in FIG. 2).
5), and sends the calculation result to the addition processing unit 9.

【0032】加算処理部9は重み付け平均部7からの近
傍画素誤差重み平均値とガンマ補正部1からの注目画素
のガンマ補正後データの値とを加算し(図2ステップS
6)、その加算結果を量子化部6に送る。
The addition processing unit 9 adds the neighboring pixel error weighted average value from the weighted average unit 7 and the value of the gamma-corrected data of the pixel of interest from the gamma correction unit 1 (step S in FIG. 2).
6), and sends the addition result to the quantizer 6.

【0033】量子化部6は閾値修正部3からの修正され
た閾値と、加算処理部9からの加算結果、つまり加算処
理部7からの注目画素の近傍の画素の量子化誤差の重み
付け平均と注目画素の値とが加算された値とを比較し、
2値化以上の多値に量子化して量子化データとして出力
する(図2ステップS7)。
The quantizing unit 6 calculates the corrected threshold value from the threshold correcting unit 3 and the addition result from the addition processing unit 9, that is, the weighted average of the quantization error of the pixels in the vicinity of the pixel of interest from the addition processing unit 7. Compare the value of the pixel of interest with the added value,
It is quantized into multi-values of binary or higher and output as quantized data (step S7 in FIG. 2).

【0034】量子化部6の量子化処理によって全ての画
素のデータが量子化されると(図2ステップS8)、上
記の処理を終了する。また、量子化部6の量子化処理に
よって全ての画素のデータが量子化されなければ(図2
ステップS8)、注目画素を隣の画素に切換え(図2ス
テップS9)、ステップS2に戻って上記の処理動作を
繰り返し行う。尚、閾値修正部3に関する動作以外は従
来の誤差拡散処理と変わらないので、これ以上の詳細な
説明については省略する。
When the data of all the pixels are quantized by the quantization processing of the quantization unit 6 (step S8 in FIG. 2), the above processing is ended. In addition, if the data of all pixels are not quantized by the quantization processing of the quantization unit 6 (see FIG.
In step S8), the target pixel is switched to the adjacent pixel (step S9 in FIG. 2), the process returns to step S2, and the above processing operation is repeated. The operation other than the operation related to the threshold correction unit 3 is the same as that of the conventional error diffusion processing, and a detailed description thereof will be omitted.

【0035】本発明の一実施例による画像処理装置では
上述した注目画素のデータの量子化処理に先立ち、注目
画素の近傍の画素のデータに対して同様の量子化処理が
実行され、その量子化処理で計算された量子化誤差が量
子化誤差バッファ4に記憶されている。
In the image processing apparatus according to the embodiment of the present invention, prior to the above-described quantization processing of the data of the pixel of interest, the same quantization processing is executed on the data of the pixels in the vicinity of the pixel of interest, and the quantization is performed. The quantization error calculated in the process is stored in the quantization error buffer 4.

【0036】すなわち、量子化部6で得られた近傍画素
の量子化データは減算処理部8に送られ、ガンマ補正部
1からの近傍画素のガンマ補正後データとの減算処理が
行われて量子化誤差が計算され(図3ステップS1
1)、その量子化誤差は逐次量子化誤差バッファ4に記
憶される(図3ステップS12)。この量子化処理は全
ての画素のデータが量子化されるまで繰り返し行われる
(図3ステップS11〜S13)。
That is, the quantized data of the neighboring pixels obtained by the quantizing unit 6 is sent to the subtraction processing unit 8 and subjected to the subtraction process with the gamma-corrected data of the neighboring pixels from the gamma correction unit 1 to perform the quantization. Error is calculated (step S1 in FIG. 3).
1), the quantization error is sequentially stored in the quantization error buffer 4 (step S12 in FIG. 3). This quantization processing is repeatedly performed until the data of all pixels are quantized (steps S11 to S13 in FIG. 3).

【0037】上記のように、閾値修正部3において誤差
拡散処理における閾値に対して、ガンマ変換後データが
同じ値であっても元データの値が異なるならば、元デー
タが濃い方が濃い階調に量子化されるように行うこと
で、ガンマ補正によって階調特性が低減することのない
誤差拡散処理を実現することができる。
As described above, in the threshold correction unit 3, if the value of the original data is different from the threshold value in the error diffusion processing even if the data after gamma conversion is the same value, the darker the original data is, the darker the data is. By performing so that the tone characteristics are quantized, it is possible to realize the error diffusion processing in which the gradation characteristics are not reduced by the gamma correction.

【0038】次に、具体例を用いて本発明の一実施例に
よる画像処理装置の動作について図面を参照して詳細に
説明する。本実施例は、例えばスキャナやディジタルカ
メラによって得られた画像データ(0−255、値が大
きいほど濃い)を、4階調出力のプリンタ向けに4値
(0,85,170,255)に量子化する画像処理装
置である。
Next, the operation of the image processing apparatus according to one embodiment of the present invention will be described in detail with reference to the drawings using a specific example. In this embodiment, for example, image data (0-255, the larger the value, the darker) the image data obtained by a scanner or a digital camera is quantized into four values (0, 85, 170, 255) for a printer having four gradations. Is an image processing device.

【0039】図1において、ガンマ補正部1は注目画素
の元画像データを、予め定めておいたガンマ特性にした
がってガンマ変換する。本実施例における元画像データ
xとガンマ変換後データγ(x)との関係は、 であるとする。ガンマ補正部1にはこのような変換テー
ブル(図示せず)が記憶されており、この変換テーブル
を基に画像データを変換する。
In FIG. 1, the gamma correction unit 1 gamma-converts the original image data of the pixel of interest according to a predetermined gamma characteristic. The relationship between the original image data x and the gamma-converted data γ (x) in this embodiment is Suppose Such a conversion table (not shown) is stored in the gamma correction unit 1, and the image data is converted based on this conversion table.

【0040】この場合、ガンマ変化後、「1,2,3,
4」というデータが全て「0」に、「5,6,7,8,
9」というデータが全て「1」となってしまうように、
微妙な階調の情報が失われてしまう。この状態で通常の
ハーフトーン処理を行うと、出力画像においてディテー
ルが潰れたり、疑似輪郭が発生したりするという問題が
生ずる。
In this case, after the gamma change, "1, 2, 3,
All the data of "4" becomes "0", "5, 6, 7, 8,
So that all the data "9" becomes "1",
The information of the subtle gradation is lost. If the normal halftone process is performed in this state, there arises a problem that details are crushed or a pseudo contour is generated in the output image.

【0041】閾値設定部2はガンマ変換後のデータの値
に基づいて、そのデータを量子化する際の閾値を設定す
る。本実施例の閾値設定法はガンマ変換後データの値に
最も近い2つの出力レベルの中間値とする。
The threshold setting unit 2 sets a threshold for quantizing the data based on the value of the data after gamma conversion. In the threshold value setting method of this embodiment, the intermediate value of the two output levels closest to the value of the data after gamma conversion is used.

【0042】すなわち、ガンマ変換後データγ(x)と
閾値th(γ(x))とは、 0≦γ(x)<85の時 th(γ(x))=43 85≦γ(x)<170の時 th(γ(x))=128 170≦γ(x)≦255の時 th(γ(x))=213 である。
That is, the gamma-converted data γ (x) and the threshold value th (γ (x)) are as follows: 0 ≦ γ (x) <85 th (γ (x)) = 43 85 ≦ γ (x) When 170 <th (γ (x)) = 128 When 170 ≦ γ (x) ≦ 255, th (γ (x)) = 213.

【0043】閾値修正部3はガンマ変換後データと元画
像データとを参照し、誤差拡散処理の閾値を修正する。
閾値の修正の基準は、ガンマ変換後データが同じ値で元
データの値が異なるならば、元データが濃い方が濃い階
調に量子化されるように行う。
The threshold correction unit 3 refers to the gamma-converted data and the original image data to correct the threshold value of the error diffusion process.
When the gamma-converted data has the same value and the original data has a different value, the threshold value is corrected so that the darker original data is quantized into a darker gradation.

【0044】この処理の具体な例について述べる。以
下、元画像データXa(a=1,2,3,…)に対して
の閾値の修正処理について説明する。閾値修正部3は、
まず元画像データXaに対するガンマ変換後データの値
γ(Xa)と、Xa以外でXaと隣接する他の画像デー
タXa+n(nは整数)に対するガンマ変換後データの
値γ(Xa+n)とが同じであるデータ(以下、このデ
ータを同一ガンマ変換値元データとする)を求める。
A specific example of this processing will be described. Hereinafter, the threshold value correction process for the original image data Xa (a = 1, 2, 3, ...) Will be described. The threshold correction unit 3
First, the value γ (Xa) of the gamma-converted data for the original image data Xa and the value γ (Xa + n) of the gamma-converted data for other image data Xa + n (n is an integer) adjacent to Xa other than Xa are the same. Certain data (hereinafter, this data is referred to as the same gamma-converted value original data) is obtained.

【0045】本実施例のガンマ変換テーブルでは元画像
データ「7」に対する同一ガンマ変換値元データは
「5,6,7,8,9」となる。同一ガンマ変換値元デ
ータが1つの場合には閾値を修正する必要はない。同一
ガンマ変換値元データが2つ以上存在する場合にはそれ
らの中で、量子化結果に差を持たせる(元データが濃い
方が濃い階調に量子化されるようにする)ことが可能な
ように、閾値を修正する必要がある。
In the gamma conversion table of this embodiment, the original gamma conversion value original data for the original image data "7" is "5, 6, 7, 8, 9". If there is only one original gamma-converted value original data, it is not necessary to correct the threshold value. If there are two or more original data with the same gamma conversion value, it is possible to give a difference in the quantization result among them (so that the original data is quantized into darker gradation). Therefore, it is necessary to modify the threshold.

【0046】そのため、同一ガンマ変換値元データの値
が大きいほど、閾値を小さい値に修正する。同一ガンマ
変換値元データの中間の値(以下、同一元データ中間値
とする。例えば、「1,2,3,4」では「2」、
「5,6,7,8,9」では「7」)を修正なしの基準
閾値として、同一データ中間値から値が大きくなるほど
対応する閾値を基準閾値から小さく、同一データ中間値
から値が小さくなるほど対応する閾値を基準閾値から大
きくする。
Therefore, the larger the value of the same gamma-converted value original data is, the smaller the threshold value is corrected. Intermediate value of the same gamma-converted value original data (hereinafter referred to as the same original data intermediate value. For example, “2” in “1, 2, 3, 4”,
For “5, 6, 7, 8, 9”, “7”) is used as a reference threshold without correction, and as the value increases from the same data intermediate value, the corresponding threshold decreases from the reference threshold and decreases from the same data intermediate value. The corresponding threshold value is increased from the reference threshold value.

【0047】一例を一般式で記述すると、同一ガンマ変
換値元データをXa+n(nは整数)、その中の同一デ
ータ中間値をXaMとすると、修正閾値f_th(Xa
+n)は、 f_th(Xa+n)=th(Xa)−α×((a+
n)−(aM)) となる。ここで、αは修正の度合いを表す定数で、通常
は1とする。(a+n)−(aM)は注目画素データX
a+nが同一データ中間値XaMといくつ離れているか
を表している。
When an example is described by a general formula, if the same gamma-converted value original data is Xa + n (n is an integer) and the same data intermediate value is XaM, the correction threshold f_th (Xa
+ N) is f_th (Xa + n) = th (Xa) −α × ((a +
n)-(aM)). Here, α is a constant indicating the degree of correction, and is normally set to 1. (A + n)-(aM) is the target pixel data X
It indicates how far a + n is from the same data intermediate value XaM.

【0048】量子化誤差バッファ4は注目画素Xaとそ
の画素が量子化された値Out(Xa)との量子化誤差
Er(Xa)を逐次記憶する。誤差重みマトリクス記憶
部5には、従来と同じ誤差拡散処理における誤差重みマ
トリクスWa−r(rは注目画素Xaの近傍の度合いを
表す)が予め設定されて記憶されている。
The quantization error buffer 4 sequentially stores the quantization error Er (Xa) between the pixel of interest Xa and the value Out (Xa) obtained by quantizing the pixel. In the error weight matrix storage unit 5, an error weight matrix Wa-r in the same error diffusion process as in the conventional case (r represents the degree of the vicinity of the target pixel Xa) is preset and stored.

【0049】重み付け平均処理部7は量子化誤差バッフ
ァ4に記憶されている近傍画素の量子化誤差Er(Xa
−r)を、誤差重みマトリクス記憶部5に予め記憶され
ている近傍画素の誤差重みマトリクスWrによって重み
付け平均し、近傍画素誤差重み平均値MEarを計算
し、近傍画素誤差重み平均値MEarを加算処理部9に
送る。
The weighted average processing unit 7 stores the quantization error Er (Xa) of the neighboring pixels stored in the quantization error buffer 4.
-R) is weighted and averaged by the error weight matrix Wr of the neighboring pixels stored in advance in the error weight matrix storage unit 5, the neighboring pixel error weight average value MEar is calculated, and the neighboring pixel error weight average value MEar is added. Send to Part 9.

【0050】加算処理部9では重み付け平均部7からの
近傍画素誤差重み平均値MEarと、ガンマ補正部1か
らの注目画素Xaのガンマ補正後データの値γ(Xa)
とを加算し、その値Vaを量子化部6に送る。
In the addition processing unit 9, the neighboring pixel error weighted average value MEar from the weighted averaging unit 7 and the value γ (Xa) of the gamma-corrected data of the target pixel Xa from the gamma correction unit 1 are calculated.
And are added and the value Va is sent to the quantizer 6.

【0051】量子化部6は閾値修正部3からの修正され
た閾値f_th(Xa)と、加算処理部9で加算された
値Va、つまり加算処理部7からの注目画素の近傍画素
誤差重み平均値MEarと注目画素のガンマ変換後デー
タ値γ(Xa)とが加算された値Vaとを比較し、4値
のうちのどれかに量子化し、量子化データOut(X
a)として出力する。
The quantizing unit 6 adds the corrected threshold value f_th (Xa) from the threshold correcting unit 3 and the value Va added by the addition processing unit 9, that is, the weighted average of neighboring pixels of the target pixel from the addition processing unit 7. The value MEar and the value Va obtained by adding the gamma-converted data value γ (Xa) of the target pixel are compared and quantized into any one of four values, and the quantized data Out (X
Output as a).

【0052】本実施例では、 0≦Va<85の時: Va>f_th(Xa)ならばOut(Xa)=85 Va≦f_th(Xa)ならばOut(Xa)=0 85≦Va<170の時: Va>f_th(Xa)ならばOut(Xa)=170 Va≦f_th(Xa)ならばOut(Xa)=85 170≦Va<=255の時: Va>f_th(Xa)ならばOut(Xa)=255 Va≦f_th(Xa)ならばOut(Xa)=170 である。これは従来の誤差拡散処理における比較処理と
同様である。
In this embodiment, when 0 ≦ Va <85: Out (Xa) = 85 if Va> f_th (Xa) Out (Xa) = 0 if Va ≦ f_th (Xa) 85 ≦ Va <170 When: Va> f_th (Xa) Out (Xa) = 170 If Va ≦ f_th (Xa) Out (Xa) = 85 When 170 ≦ Va <= 255: If Va> f_th (Xa) Out (Xa) ) = 255 Va ≦ f_th (Xa), Out (Xa) = 170. This is similar to the comparison process in the conventional error diffusion process.

【0053】量子化部6の量子化処理によって全ての画
素のデータが量子化されると、上記の処理を終了する。
また、量子化部6の量子化処理によって全ての画素のデ
ータが量子化されなければ、注目画素を隣の画素に切換
え、上記の処理動作を繰り返し行う。尚、閾値修正部3
に関する動作以外は従来の誤差拡散処理と変わらないの
で、これ以上の詳細な説明については省略する。
When the data of all the pixels are quantized by the quantization processing of the quantization unit 6, the above processing is ended.
If the data of all the pixels are not quantized by the quantization processing of the quantization unit 6, the target pixel is switched to the adjacent pixel and the above processing operation is repeated. The threshold correction unit 3
Since the operation other than the operation related to is the same as that of the conventional error diffusion processing, detailed description thereof will be omitted.

【0054】本発明の一実施例による画像処理装置では
上述した注目画素のデータXaの量子化処理に先立ち、
注目画素の近傍の画素のデータXa−rに対して同様の
量子化処理が実行されており、量子化誤差バッファ4に
記憶されている。
In the image processing apparatus according to the embodiment of the present invention, prior to the quantization processing of the data Xa of the target pixel described above,
Similar quantization processing is performed on the data Xa-r of the pixel in the vicinity of the pixel of interest and is stored in the quantization error buffer 4.

【0055】すなわち、近傍画素の量子化データOut
(Xa−r)は減算処理部8に送られ、ガンマ補正部1
からの近傍画素Xa−rのガンマ補正後データγ(Xa
−r)との減算処理が行われ、量子化誤差Er(Xa−
r)が計算され、逐次量子化誤差バッファ4に記憶され
る。
That is, the quantized data Out of the neighboring pixels
(Xa-r) is sent to the subtraction processing unit 8 and the gamma correction unit 1
After the gamma correction of the neighboring pixels Xa-r from γ (Xa
-R) and the quantization error Er (Xa-
r) is calculated and stored in the successive quantization error buffer 4.

【0056】このように、ガンマ変換後データが同じ値
であっても元データの値が異なるならば、誤差拡散処理
における閾値を、元データが濃い方が濃い階調に量子化
されるように修正を行うことで、ガンマ補正によって階
調特性が低減することのない誤差拡散処理を実現するこ
とができる。
As described above, if the original data has different values even if the gamma-converted data has the same value, the threshold value in the error diffusion process is quantized into a darker gradation when the original data is darker. By performing the correction, it is possible to realize the error diffusion process without the gradation characteristic being reduced by the gamma correction.

【0057】[0057]

【発明の効果】以上説明したように本発明によれば、量
子化誤差を近傍の画素に重み付けして拡散させるための
マトリクスが予め設定されて記憶されている誤差重みマ
トリクス記憶手段と、量子化された際の誤差を逐次記憶
する量子化誤差バッファと、周辺画素の量子化誤差を周
辺画素の誤差重みマトリクスによって重み付け平均する
重み付け平均処理手段と、注目画素を量子化する際の閾
値を設定する閾値設定手段と、閾値と注目画素の近傍の
画素の量子化誤差の重み付け平均値及び注目画素の値の
加算値とを比較して2値化以上の多値に量子化する量子
化手段とを含み、多値誤差拡散処理を行う画像処理装置
において、元画像データを予め定めておいたガンマ特性
にしたがってガンマ変換し、そのガンマ変換後のデータ
と元画像データとを参照して閾値を修正することによっ
て、ガンマ補正によって階調特性が低減することのない
誤差拡散処理を行うことができるという効果がある。
As described above, according to the present invention, an error weight matrix storage means in which a matrix for weighting and diffusing a quantization error to neighboring pixels and diffusing it is stored in advance, and a quantization Quantization error buffer for sequentially storing the errors in the case of being processed, weighted averaging means for weighting and averaging the quantization errors of the peripheral pixels by the error weight matrix of the peripheral pixels, and a threshold value for quantizing the pixel of interest are set. The threshold value setting means and the quantizing means for comparing the threshold value with the weighted average value of the quantization errors of the pixels in the vicinity of the pixel of interest and the added value of the values of the pixel of interest to quantize into a multivalued binary or higher value. In the image processing device that performs multi-valued error diffusion processing, the original image data is gamma-converted according to a predetermined gamma characteristic, and the gamma-converted data and the original image data are By modifying the threshold referring to, there is an effect that it is possible to perform the error diffusion processing gradation characteristic without reducing the gamma correction.

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

【図1】本発明の一実施例による画像処理装置の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention.

【図2】本発明の一実施例による画像処理装置の動作を
示すフローチャートである。
FIG. 2 is a flowchart showing the operation of the image processing apparatus according to the embodiment of the present invention.

【図3】本発明の一実施例による画像処理装置の近傍画
素データの量子化処理を示すフローチャートである。
FIG. 3 is a flowchart showing a quantization process of neighboring pixel data of the image processing apparatus according to the embodiment of the present invention.

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

1 ガンマ補正部 2 閾値設定部 3 閾値修正部 4 量子化誤差バッファ 5 誤差重みマトリクス記憶部 6 量子化部 7 重み付け平均処理部 8 減算処理部 9 加算処理部 1 Gamma correction section 2 Threshold setting section 3 Threshold correction unit 4 Quantization error buffer 5 Error weight matrix storage unit 6 Quantizer 7 Weighted average processing unit 8 Subtraction processing unit 9 Addition processing unit

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 量子化誤差を近傍の画素に重み付けして
拡散させるためのマトリクスが予め設定されて記憶され
ている誤差重みマトリクス記憶手段と、量子化された際
の誤差を逐次記憶する量子化誤差バッファと、周辺画素
の量子化誤差を周辺画素の誤差重みマトリクスによって
重み付け平均する重み付け平均処理手段と、注目画素を
量子化する際の閾値を設定する閾値設定手段と、前記閾
値と前記注目画素の近傍の画素の量子化誤差の重み付け
平均値及び前記注目画素の値の加算値とを比較して2値
化以上の多値に量子化する量子化手段とを含み、多値誤
差拡散処理を行う画像処理装置であって、元画像データ
を予め定めておいたガンマ特性にしたがってガンマ変換
するガンマ補正手段と、前記ガンマ補正手段によるガン
マ変換後のデータと元画像データとを参照して閾値を修
正する閾値修正手段とを有することを特徴とする画像処
理装置。
1. An error weight matrix storage means in which a matrix for weighting and diffusing a quantization error to neighboring pixels to be diffused is stored in advance, and a quantization for sequentially storing errors when quantized. An error buffer, a weighted average processing means for weighting and averaging the quantization error of the peripheral pixels by an error weight matrix of the peripheral pixels, a threshold setting means for setting a threshold when quantizing the target pixel, the threshold and the target pixel And a quantization means for comparing the weighted average value of the quantization error of the pixels in the vicinity of and the added value of the values of the pixel of interest to quantize into a multi-valued binary or higher value. An image processing apparatus that performs gamma conversion of original image data according to a predetermined gamma characteristic, and data after gamma conversion by the gamma correction means. An image processing apparatus, comprising: a threshold correction unit that corrects a threshold with reference to original image data.
【請求項2】 前記閾値修正手段は、前記ガンマ補正手
段によるガンマ変換後のデータが同じ値で元データの値
が異なるならば、元データが濃い方が濃い階調に量子化
されるように閾値の修正を行うよう構成したことを特徴
とする請求項1記載の画像処理装置。
2. The threshold correction means is configured such that, if the data after gamma conversion by the gamma correction means has the same value but the value of the original data is different, the original data is quantized into a darker gradation. The image processing apparatus according to claim 1, wherein the image processing apparatus is configured to correct the threshold value.
【請求項3】 量子化誤差を近傍の画素に重み付けして
拡散させるためのマトリクスが予め設定されて記憶され
ている誤差重みマトリクス記憶手段と、量子化された際
の誤差を逐次記憶する量子化誤差バッファと、周辺画素
の量子化誤差を周辺画素の誤差重みマトリクスによって
重み付け平均する重み付け平均処理手段と、注目画素を
量子化する際の閾値を設定する閾値設定手段と、前記閾
値と前記注目画素の近傍の画素の量子化誤差の重み付け
平均値及び前記注目画素の値の加算値とを比較して2値
化以上の多値に量子化する量子化手段とを含み、多値誤
差拡散処理を行う画像処理装置の画像処理方法であっ
て、元画像データを予め定めておいたガンマ特性にした
がってガンマ変換するステップと、そのガンマ変換後の
データと元画像データとを参照して閾値を修正するステ
ップとを有することを特徴とする画像処理方法。
3. An error weight matrix storage means in which a matrix for weighting and diffusing a quantization error to neighboring pixels to be diffused is stored in advance, and a quantization for sequentially storing the error when quantized. An error buffer, a weighted average processing means for weighting and averaging the quantization error of the peripheral pixels by an error weight matrix of the peripheral pixels, a threshold setting means for setting a threshold when quantizing the target pixel, the threshold and the target pixel And a quantization means for comparing the weighted average value of the quantization error of the pixels in the vicinity of and the added value of the values of the pixel of interest to quantize into a multi-valued binary or higher value. An image processing method of an image processing apparatus, comprising: a step of gamma-converting original image data according to a predetermined gamma characteristic, the gamma-converted data, and the original image data. And a step of correcting the threshold value with reference to.
【請求項4】 前記閾値を修正するステップは、ガンマ
変換後のデータが同じ値で元データの値が異なるなら
ば、元データが濃い方が濃い階調に量子化されるように
閾値の修正を行うようにしたことを特徴とする請求項3
記載の画像処理方法。
4. If the data after gamma conversion has the same value and the value of the original data is different, the step of correcting the threshold is modified so that the darker original data is quantized into a darker gradation. The method according to claim 3, wherein
The described image processing method.
【請求項5】 量子化誤差を近傍の画素に重み付けして
拡散させるためのマトリクスが予め設定されて記憶され
ている誤差重みマトリクス記憶手段と、量子化された際
の誤差を逐次記憶する量子化誤差バッファと、周辺画素
の量子化誤差を周辺画素の誤差重みマトリクスによって
重み付け平均する重み付け平均処理手段と、注目画素を
量子化する際の閾値を設定する閾値設定手段と、前記閾
値と前記注目画素の近傍の画素の量子化誤差の重み付け
平均値及び前記注目画素の値の加算値とを比較して2値
化以上の多値に量子化する量子化手段とを含み画像処理
装置に多値誤差拡散処理を行わせるための画像処理プロ
グラムを記録した記録媒体であって、前記画像処理プロ
グラムは前記画像処理装置に、元画像データを予め定め
ておいたガンマ特性にしたがってガンマ変換させ、その
ガンマ変換後のデータと元画像データとを参照して閾値
を修正させることを特徴とする画像処理プログラムを記
録した記録媒体。
5. An error weight matrix storage means in which a matrix for weighting and diffusing a quantization error to neighboring pixels to be diffused is stored in advance, and a quantization for sequentially storing the error when quantized. An error buffer, a weighted average processing means for weighting and averaging the quantization error of the peripheral pixels by an error weight matrix of the peripheral pixels, a threshold setting means for setting a threshold when quantizing the target pixel, the threshold and the target pixel The image processing apparatus includes a quantizing means for comparing the weighted average value of the quantization errors of the pixels in the vicinity of and the added value of the values of the pixel of interest to quantize into a multivalued binary value or more. A recording medium recording an image processing program for performing a diffusion process, wherein the image processing program causes the image processing apparatus to set a gamma characteristic in which original image data is predetermined. A recording medium on which an image processing program is recorded, characterized by performing gamma conversion in accordance with the above and correcting the threshold value by referring to the data after the gamma conversion and the original image data.
【請求項6】 前記画像処理プログラムは前記画像処理
装置に、前記閾値を修正させる際に、ガンマ変換後のデ
ータが同じ値で元データの値が異なるならば、元データ
が濃い方が濃い階調に量子化されるように閾値の修正を
行わせることを特徴とする請求項5記載の画像処理プロ
グラムを記録した記録媒体。
6. When the image processing program causes the image processing apparatus to correct the threshold, if the data after gamma conversion has the same value but the value of the original data is different, the darker the original data is, the darker the original data is. 6. A recording medium recording an image processing program according to claim 5, wherein the threshold value is modified so that the image processing program is quantized.
JP19247299A 1999-07-07 1999-07-07 Image processing apparatus, image processing method thereof, and recording medium recording image processing program Expired - Fee Related JP3475425B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19247299A JP3475425B2 (en) 1999-07-07 1999-07-07 Image processing apparatus, image processing method thereof, and recording medium recording image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19247299A JP3475425B2 (en) 1999-07-07 1999-07-07 Image processing apparatus, image processing method thereof, and recording medium recording image processing program

Publications (2)

Publication Number Publication Date
JP2001024890A JP2001024890A (en) 2001-01-26
JP3475425B2 true JP3475425B2 (en) 2003-12-08

Family

ID=16291871

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19247299A Expired - Fee Related JP3475425B2 (en) 1999-07-07 1999-07-07 Image processing apparatus, image processing method thereof, and recording medium recording image processing program

Country Status (1)

Country Link
JP (1) JP3475425B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006159810A (en) 2004-12-10 2006-06-22 Seiko Epson Corp Printer and image processor for print

Also Published As

Publication number Publication date
JP2001024890A (en) 2001-01-26

Similar Documents

Publication Publication Date Title
EP0659012A2 (en) Method for quantization of gray level pixel data with extended distribution set
JP3247737B2 (en) Pixel value quantization method in image
JPH07111591A (en) Image processing device
US6552822B1 (en) Image processing method and apparatus
JP3959698B2 (en) Image processing method and apparatus
JP2974363B2 (en) Image processing device
EP1133162A2 (en) Method and apparatus for gradation reproduction of continuous tone image
EP2111032B1 (en) Image processing apparatus and method thereof
JP3700357B2 (en) Image processing device
US6333793B1 (en) Image quality in error diffusion scheme
JP3475425B2 (en) Image processing apparatus, image processing method thereof, and recording medium recording image processing program
EP0382581B1 (en) Image processing apparatus
JP3722955B2 (en) Pseudo halftone processing method, apparatus and recording medium
US7295701B2 (en) Methods and systems for efficiently processing image data for reproduction
JP2683085B2 (en) Image processing device
JP3108526B2 (en) Image quantization and its coding method
JPH05183737A (en) Picture processor
JP2000270210A (en) Picture processor
US20040075868A1 (en) Apparatus for eliminating moire in scanned image and method for the same
JP2810396B2 (en) Image processing device
JP2702593B2 (en) Isolated point removal device
JP2860039B2 (en) Pseudo halftone image reduction device
JPH1188693A (en) Pseudo-gradation processing unit
JPH03186063A (en) Picture processor
KR100438712B1 (en) Binary image generating method using minority pixel location information

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070926

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080926

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090926

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100926

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110926

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120926

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120926

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130926

Year of fee payment: 10

LAPS Cancellation because of no payment of annual fees