JP4453583B2 - Image processing apparatus and program - Google Patents

Image processing apparatus and program Download PDF

Info

Publication number
JP4453583B2
JP4453583B2 JP2005077993A JP2005077993A JP4453583B2 JP 4453583 B2 JP4453583 B2 JP 4453583B2 JP 2005077993 A JP2005077993 A JP 2005077993A JP 2005077993 A JP2005077993 A JP 2005077993A JP 4453583 B2 JP4453583 B2 JP 4453583B2
Authority
JP
Japan
Prior art keywords
signal
pixel
value
error
threshold
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
JP2005077993A
Other languages
Japanese (ja)
Other versions
JP2006262196A (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 JP2005077993A priority Critical patent/JP4453583B2/en
Publication of JP2006262196A publication Critical patent/JP2006262196A/en
Application granted granted Critical
Publication of JP4453583B2 publication Critical patent/JP4453583B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理装置及びプログラムに係り、特に、誤差拡散処理により得られる二値画像の画質の向上を図る画像処理装置及びプログラムに関する。 The present invention relates to an image processing instrumentation 置及 beauty program, particularly to an image processing instrumentation 置及 beauty programs to improve the image quality of binary images obtained by the error diffusion process.

プリンタやファクシミリ等の画像処理装置、ディスプレイ等の画像出力装置は、それぞれ構成部材のばらつきなどがある。このため、記録媒体や表示媒体上の画像に、元のデータには存在しないムラやスジなどが生じて、最終的に得られる画像の画質劣化が起きることがある。このムラやスジを補正するための様々な画像処理に関する技術が開示されている。   An image processing apparatus such as a printer or a facsimile, and an image output apparatus such as a display have variations in constituent members. For this reason, the image on the recording medium or the display medium may have unevenness or streaks that do not exist in the original data, resulting in image quality deterioration of the finally obtained image. Various techniques relating to image processing for correcting the unevenness and streaks are disclosed.

基本的には、入力画像に対して補正信号(正負の値を持つ多値データであることが多い)を重畳することにより、出力装置で生じるムラやスジを目立たないようにすることが行われている。入力画像が多値である場合、この補正は入力画像に補正信号を単に加算するにより可能である。   Basically, the correction signal (often multi-valued data having positive and negative values) is superimposed on the input image to make the unevenness and streaks generated in the output device inconspicuous. ing. If the input image is multivalued, this correction can be done by simply adding a correction signal to the input image.

近年では、ホストコンピュータにインストールされたプリンタドライバで多値の入力画像を出力装置で出力可能なデータ形式である2値あるいは数値を取る画像に変換する擬似中間調処理がおこなわれることが多い。しかし、このムラやスジは出力装置個々で異なっており、出力装置側で既に擬似中間調処理がおこなわれた画像に対してムラやスジの補正をおこなう必要性が生じている。   In recent years, pseudo halftone processing is often performed in which a multi-value input image is converted into an image having a binary value or a numerical value that can be output by an output device by a printer driver installed in a host computer. However, the unevenness and streaks are different in each output device, and there is a need to correct unevenness and streaks for images that have already been subjected to pseudo halftone processing on the output device side.

そこで、簡単な構成により、2値データを記録する際に、発生する記録濃度ムラを補正する画像処理装置が開示されている(例えば、特許文献1を参照。)
特許文献1には、既に二値化された画像の注目画素とその周辺画素の画素値から平均濃度値を求め、この平均濃度値を記録素子の特性に応じて補正し、補正された平均濃度値を誤差拡散処理により二値化する技術が記載されている。
Thus, an image processing apparatus that corrects recording density unevenness that occurs when binary data is recorded with a simple configuration is disclosed (for example, see Patent Document 1).
In Patent Document 1, an average density value is obtained from the pixel values of a pixel of interest of an already binarized image and its surrounding pixels, the average density value is corrected according to the characteristics of the printing element, and the corrected average density is corrected. A technique for binarizing values by error diffusion processing is described.

また、低濃度領域及び高濃度領域の立ち上がり部でのドット生成の遅延や、低濃度領域又は高濃度領域が終わった後の尾引きの問題を解決する画像処理装置が開示されている(例えば、特許文献2を参照。)。特許文献2には、通常の誤差拡散において入力された多値の多階調画像データの階調値に応じて量子化閾値を変更することにより、このドット遅延や尾引きを低減させる技術が記載されている。
特許第2833666号公報 特許第3554077号公報
Also disclosed is an image processing apparatus that solves the problem of delay in dot generation at the rising portion of the low density area and the high density area and the problem of tailing after the low density area or high density area ends (for example, (See Patent Document 2). Patent Document 2 describes a technique for reducing this dot delay and tailing by changing the quantization threshold according to the tone value of multi-value multi-tone image data input in normal error diffusion. Has been.
Japanese Patent No. 2833666 Japanese Patent No. 3554077

特許文献1に記載された画像処理装置は、元の二値画像を一旦平均化することにより多値画像を生成している。このため、元の二値画像に含まれる網点などを構成する画素の値が変更されてしまい、元の二値画像と補正後の二値画像の見た目が変わってしまう問題があった。   The image processing apparatus described in Patent Document 1 generates a multi-valued image by once averaging the original binary image. For this reason, the value of the pixel which comprises the halftone dot etc. which are contained in the original binary image will be changed, and there existed a problem that the appearance of the original binary image and the corrected binary image will change.

特許文献2に記載された画像処理装置は、量子化閾値を変更しても、2値画像に含まれるデータには既にドットが形成された画素が存在するので、新たにドットを形成できる画素に制限が生じてしまう。これにより、ドット遅延や尾引きを十分に改善することができなかった。   Even if the quantization threshold is changed, the image processing apparatus described in Patent Document 2 includes pixels in which dots are already formed in the data included in the binary image. Limitation will occur. Thereby, dot delay and tailing could not be improved sufficiently.

本発明は、上述した課題を解決するために提案されたものであり、2値画像の誤差拡散処理においてドット遅延や尾引を更に一層低減させる画像処理装置及びプログラムを提供することを目的とする。 The present invention has been proposed in order to solve the above problems, it aims to provide an image processing instrumentation 置及 beauty program further further reduced dot delay and trailing in the error diffusion processing in the binary image And

上述した課題を解決するため、本発明に係る画像処理装置は、二値画像の注目画素とその周辺画素から、前記二値画像が多値画像であった時の注目画素の画素値を推定する画素値推定手段と、前記画素値推定手段により推定された前記注目画素の画素値と、前記画素値推定手段により推定され階調補正された前記注目画素の画素値と、の差分に基づいて前記注目画素の正信号を生成する正信号生成手段と、前記二値画像の注目画素の画素値と、前記補正信号生成手段により生成された前記補正信号と、誤差拡散補正信号と、を加算する加算手段と、加算手段により生成された信号と閾値とを比較して前記注目画素の二値画像信号を生成する二値化手段と、前記加算手段により生成された信号と、前記二値化手段により生成された二値画像信号に対応する多値信号と、の差である二値化誤差信号を生成する二値化誤差信号生成手段と、前記二値化誤差信号生成手段により生成された二値化誤差信号を記憶する記憶手段と、前記記憶手段に記憶された二値化誤差信号と所定の誤差拡散係数とを注目画素毎に乗じて加算することで前記誤差拡散補正信号を生成する誤差拡散補正信号生成手段と、前記記憶手段に記憶された二値化誤差信号の蓄積量が略一定になるように前記閾値を生成する閾値生成手段と、を備えている。 In order to solve the above-described problem, the image processing apparatus according to the present invention estimates a pixel value of a target pixel when the binary image is a multi-valued image from the target pixel of the binary image and its surrounding pixels. Based on a difference between a pixel value estimating unit, a pixel value of the target pixel estimated by the pixel value estimating unit, and a pixel value of the target pixel estimated by the pixel value estimating unit and subjected to gradation correction adding the compensation signal generating means for generating a compensation signal of the target pixel, the pixel value of the pixel of interest of the binary image, the correction signal generated by the correction signal generation means, and the error diffusion correction signal, the Adding means for comparing, a binarizing means for comparing the signal generated by the adding means with a threshold value to generate a binary image signal of the pixel of interest, the signal generated by the adding means, and the binarization Binary image generated by means A binarization error signal generation unit that generates a binarization error signal that is a difference between the multilevel signal corresponding to the signal and a binarization error signal generated by the binarization error signal generation unit A storage means, and an error diffusion correction signal generation means for generating the error diffusion correction signal by multiplying the binarized error signal stored in the storage means and a predetermined error diffusion coefficient for each pixel of interest and adding them; Threshold value generating means for generating the threshold value so that the accumulated amount of the binarization error signal stored in the storage means becomes substantially constant .

また、本発明に係る画像処理装置は、二値画像の注目画素とその周辺画素から、前記二値画像が多値画像であった時の注目画素の画素値を推定する画素値推定手段と、前記画素値推定手段により推定された前記注目画素の画素値と、前記画素値推定手段により推定され階調補正された前記注目画素の画素値と、の差分に基づいて前記注目画素の補正信号を生成する補正信号生成手段と、前記補正信号生成手段により生成された前記補正信号と、誤差拡散補正信号と、を加算する加算手段と、加算手段により生成された信号と閾値とを比較して前記注目画素の二値画像信号を生成する二値化手段と、前記二値画像の注目画素の画素値と、前記二値化手段により生成された二値画像信号の画素値と、の差である変動信号を生成する変動信号生成手段と、前記加算手段により生成された信号と、前記変動信号生成手段により生成された変動信号に対応する多値と、の誤差である二値化誤差信号を生成する二値化誤差生成手段と、前記二値化誤差信号生成手段により生成された二値化誤差信号を記憶する記憶手段と、前記記憶手段に記憶された二値化誤差信号と所定の誤差拡散係数とを注目画素毎に乗じて加算することで前記誤差拡散補正信号を生成する誤差拡散補正信号生成手段と、前記記憶手段に記憶された二値化誤差信号の蓄積量が略一定になるように前記閾値を生成する閾値生成手段と、を備えている。  Further, the image processing apparatus according to the present invention includes a pixel value estimating unit that estimates a pixel value of a target pixel when the binary image is a multi-valued image from the target pixel of the binary image and its peripheral pixels, Based on a difference between the pixel value of the target pixel estimated by the pixel value estimation unit and the pixel value of the target pixel estimated by the pixel value estimation unit and subjected to gradation correction, a correction signal for the target pixel is obtained. A correction signal generating means for generating; an adding means for adding the correction signal generated by the correction signal generating means; and an error diffusion correction signal; a signal generated by the adding means and a threshold value A difference between a binarization unit that generates a binary image signal of the pixel of interest, a pixel value of the pixel of interest of the binary image, and a pixel value of the binary image signal generated by the binarization unit Fluctuation signal generator that generates fluctuation signals Binarization error generation means for generating a binarization error signal that is an error between the signal generated by the addition means and the multivalue corresponding to the fluctuation signal generated by the fluctuation signal generation means; A storage unit that stores the binarization error signal generated by the binarization error signal generation unit, and a binarization error signal stored in the storage unit and a predetermined error diffusion coefficient are multiplied for each pixel of interest. Error diffusion correction signal generation means for generating the error diffusion correction signal by adding, and threshold generation means for generating the threshold value so that the accumulated amount of the binarized error signal stored in the storage means becomes substantially constant And.

また、本発明に係る画像処理装置は、二値画像の注目画素とその周辺画素から、前記二値画像が多値画像であった時の注目画素の画素値を推定する画素値推定手段と、前記画素値推定手段により推定された前記注目画素の画素値と、前記画素値推定手段により推定され階調補正された前記注目画素の画素値と、の差分に基づいて前記注目画素の補正信号を生成する補正信号生成手段と、前記補正信号生成手段により生成された前記補正信号と、誤差拡散補正信号と、を加算する加算手段と、加算手段により生成された加算信号と第1及び第2の閾値とを比較して、前記加算信号の値が前記第1の閾値以上前記第2の閾値未満である場合は、前記注目画素の二値画像信号を出力し、前記加算信号の値が前記第1の閾値以上前記第2の閾値未満でない場合は、前記加算信号と前記第2の閾値との比較結果を示す二値信号を出力することで、前記注目画素の二値画像信号を生成する二値化手段と、前記二値画像の注目画素の画素値と、前記二値化手段により生成された二値画像信号の画素値と、の差である変動信号を生成する変動信号生成手段と、前記加算手段により生成された信号と、前記変動信号生成手段により生成された変動信号に対応する多値と、誤差である二値化誤差信号を生成する二値化誤差生成手段と、前記二値化誤差信号生成手段により生成された二値化誤差信号を記憶する記憶手段と、前記記憶手段に記憶された二値化誤差信号と所定の誤差拡散係数とを注目画素毎に乗じて加算することで前記誤差拡散補正信号を生成する誤差拡散補正信号生成手段と、前記記憶手段に記憶された二値化誤差信号の蓄積量に(−1)を乗じた値である前記第1の閾値と、前記第1の閾値より大きい前記第2の閾値と、を生成する閾値生成手段と、を備えている。  Further, the image processing apparatus according to the present invention includes a pixel value estimating unit that estimates a pixel value of a target pixel when the binary image is a multi-valued image from the target pixel of the binary image and its peripheral pixels, Based on a difference between the pixel value of the target pixel estimated by the pixel value estimation unit and the pixel value of the target pixel estimated by the pixel value estimation unit and subjected to gradation correction, a correction signal for the target pixel is obtained. A correction signal generating means for generating; an adding means for adding the correction signal generated by the correction signal generating means; and an error diffusion correction signal; an addition signal generated by the adding means; and a first and a second When the value of the addition signal is greater than or equal to the first threshold and less than the second threshold by comparing with a threshold, a binary image signal of the target pixel is output, and the value of the addition signal is the first Greater than or equal to 1 and less than the second threshold The binary signal indicating the result of comparison between the added signal and the second threshold value, and generating a binary image signal of the pixel of interest; A variation signal generation unit that generates a variation signal that is a difference between the pixel value of the target pixel and the pixel value of the binary image signal generated by the binarization unit; and the signal generated by the addition unit; A multi-value corresponding to the fluctuation signal generated by the fluctuation signal generation means, a binarization error generation means for generating a binarization error signal as an error, and a binary value generated by the binarization error signal generation means. An error for generating the error diffusion correction signal by multiplying the storage means for storing the binarization error signal and the binarization error signal stored in the storage means and a predetermined error diffusion coefficient for each pixel of interest and adding them Diffusion correction signal generating means and the storage means Threshold generating means for generating the first threshold that is a value obtained by multiplying the accumulated amount of the binarized error signal stored by (−1) and the second threshold that is larger than the first threshold; It is equipped with.

したがって、上記発明によれば、ドット遅延や尾引を更に一層低減させることができる。 Therefore, according to the invention, the Dots delay or tailing still can be further reduced.

本発明に係る画像処理装置及びプログラムによれば、ドット遅延や尾引を更に一層低減させることができる。 According to the image processing instrumentation 置及 beauty program according to the present invention, the Dots delay or tailing still can be further reduced.

以下、本発明の好ましい実施の形態について図面を参照しながら詳細に説明する。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings.

[第1の実施形態]
図1は、本発明の第1の実施形態に係る画像処理装置の構成を示すブロック図である。
[First Embodiment]
FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to the first embodiment of the present invention.

第1の実施形態に係る画像処理装置は、二値画像の誤差拡散処理を行うものであり、入力された二値画像信号から多値画像であったときの注目画素の画素値を推定する画素値推定部10と、画素値と画素位置信号とに基づいて出力装置のムラや筋を補正するための補正信号を生成する補正信号生成部20と、誤差拡散処理を行う誤差拡散処理部30と、を備えている。   The image processing apparatus according to the first embodiment performs error diffusion processing of a binary image, and is a pixel that estimates a pixel value of a target pixel when the image is a multi-value image from an input binary image signal A value estimation unit 10, a correction signal generation unit 20 that generates a correction signal for correcting unevenness and streaks of the output device based on the pixel value and the pixel position signal, and an error diffusion processing unit 30 that performs error diffusion processing It is equipped with.

画素値推定部10は、注目画素及びその周辺画素の二値画像信号に基づいて、二値画像が多値画像であったときの注目画素の画素値を表す推定画素信号(本実施形態では8ビット)を生成する。画素値推定部10は、具体的には、注目画素とその周辺画素の二値画像信号を記憶し、8ビットに変換された注目画素及びその周辺画素の多値画像信号の平均値を求め、その平均値を推定画素信号とする。また、画素値推定部10は、注目画素及びその周辺画素の多値画像信号の和又は加重和を求め、求めた値を推定画素信号としてもよい。さらに、ローパスフィルタを使用したり、他の多値復元方法を用いて推定画素信号を求めることも可能である。   Based on the binary image signal of the pixel of interest and its surrounding pixels, the pixel value estimation unit 10 is an estimated pixel signal (8 in this embodiment) representing the pixel value of the pixel of interest when the binary image is a multi-valued image. Bit). Specifically, the pixel value estimation unit 10 stores the binary image signal of the target pixel and its peripheral pixels, obtains the average value of the multi-value image signal of the target pixel and its peripheral pixels converted to 8 bits, The average value is used as the estimated pixel signal. In addition, the pixel value estimation unit 10 may obtain a sum or a weighted sum of the multi-value image signals of the target pixel and its surrounding pixels, and the obtained value may be used as the estimated pixel signal. Furthermore, it is also possible to obtain the estimated pixel signal using a low-pass filter or using another multilevel restoration method.

補正信号生成部20は、二値画像中の注目画素の位置を示す画素位置信号と、画素値推定部10で生成された注目画素の画素値とに基づいて、注目画素の補正信号を生成する。   The correction signal generation unit 20 generates a correction signal for the target pixel based on the pixel position signal indicating the position of the target pixel in the binary image and the pixel value of the target pixel generated by the pixel value estimation unit 10. .

ここでは、補正信号生成部20は、画素値推定部10で生成された推定画素信号を階調補正した階調補正データの値と、画素値推定部10で生成された推定画素信号の値と、の差分を補正信号として求めてもよい。また、補正信号生成部20は、二値画像が1つの画像を構成する複数色成分の内の1成分である場合、該二値画像に対して画素値推定部10が生成した推定画素信号の値と、他の色成分を構成する二値画像に対して画素値推定部10が生成した推定画素信号の内少なくとも1つ推定画素信号と、に基づいて注目画素に対する補正信号を生成してもよい。   Here, the correction signal generation unit 20 performs gradation correction data values obtained by performing gradation correction on the estimated pixel signals generated by the pixel value estimation unit 10, and estimated pixel signal values generated by the pixel value estimation unit 10. May be obtained as a correction signal. In addition, when the binary image is one of a plurality of color components constituting one image, the correction signal generation unit 20 generates an estimated pixel signal generated by the pixel value estimation unit 10 for the binary image. A correction signal for the target pixel may be generated based on the value and at least one estimated pixel signal among the estimated pixel signals generated by the pixel value estimating unit 10 for the binary image constituting the other color component Good.

誤差拡散処理部30は、閾値を生成する閾値生成部31と、現在の注目画素の次に誤差拡散処理が行われる注目画素についての補正値を示す補正信号(以下「誤差拡散補正信号」という。)を算出する補正算出部32と、補正信号に誤差拡散補正信号を加算する補正加算部33と、二値化処理を行う二値化部34と、二値化誤差信号を算出する誤差算出部35と、二値化誤差信号を記憶する誤差記憶部36と、を備えている。   The error diffusion processing unit 30 is a threshold generation unit 31 that generates a threshold value, and a correction signal (hereinafter referred to as an “error diffusion correction signal”) that indicates a correction value for a target pixel that is subjected to error diffusion processing next to the current target pixel. ), A correction addition unit 33 that adds an error diffusion correction signal to the correction signal, a binarization unit 34 that performs binarization processing, and an error calculation unit that calculates a binarization error signal 35 and an error storage unit 36 for storing a binarized error signal.

図2は、画像処理装置における誤差拡散処理ルーチンを示すフローチャートである。以上のように構成された画像処理装置では、二値画像信号及び画素位置信号が供給されると、次のような処理が行われる。なお、二値画像信号の1は黒を意味し、0は白を意味する。   FIG. 2 is a flowchart showing an error diffusion processing routine in the image processing apparatus. In the image processing apparatus configured as described above, when a binary image signal and a pixel position signal are supplied, the following processing is performed. In the binary image signal, 1 means black and 0 means white.

画素値推定部10は、二値画像の注目画素である入力二値画像信号が供給されると、二値画像が多値画像であったときの注目画素の画素値を推定し、推定画素信号を生成する(ステップS1)。そして、画素値推定部10は、推定画素信号を補正信号生成部20及び閾値生成部31に供給する。   When the input binary image signal that is the target pixel of the binary image is supplied, the pixel value estimation unit 10 estimates the pixel value of the target pixel when the binary image is a multi-valued image, and the estimated pixel signal Is generated (step S1). Then, the pixel value estimation unit 10 supplies the estimated pixel signal to the correction signal generation unit 20 and the threshold generation unit 31.

補正信号生成部20は、注目画素の二値画像中の位置を示す画素位置信号と、画素値推定部10で生成された推定画素信号とに基づいて、注目画素の補正信号を生成し(ステップS2)、この補正信号を閾値生成部31及び補正加算部33に供給する。   The correction signal generation unit 20 generates a correction signal for the target pixel based on the pixel position signal indicating the position of the target pixel in the binary image and the estimated pixel signal generated by the pixel value estimation unit 10 (step S <b> 2), this correction signal is supplied to the threshold value generation unit 31 and the correction addition unit 33.

ここで、補正信号は正又は負の値を有する信号である。本実施形態では、補正信号は、画素位置信号に応じて生成されるものであるが、注目画素の二値画像中の位置に関わらず補正をおこなう場合や、推定画素信号の値に関わらず画素位置信号にのみ応じて補正を行う場合でも、適用可能である。   Here, the correction signal is a signal having a positive or negative value. In the present embodiment, the correction signal is generated according to the pixel position signal. However, the correction signal is generated regardless of the position of the target pixel in the binary image, or the pixel regardless of the value of the estimated pixel signal. The present invention is applicable even when correction is performed only in accordance with the position signal.

閾値生成部31は、画素値推定部10で生成された推定画素信号と、補正信号生成部20で生成された補正信号と、に基づいて、誤差記憶部36内の平均誤差蓄積量に−1を乗じた値と略一致するように閾値信号を生成する(ステップS3)。つまり、閾値生成部31は、誤差記憶部36内の平均誤差蓄積量が略ゼロとなるように閾値信号を生成し、閾値信号を二値化部34へ供給する。なお、平均誤差蓄積量とは、誤差記憶部36に記憶される二値化誤差信号の平均蓄積量をいう。   Based on the estimated pixel signal generated by the pixel value estimation unit 10 and the correction signal generated by the correction signal generation unit 20, the threshold generation unit 31 sets the average error accumulation amount in the error storage unit 36 to -1. A threshold signal is generated so as to substantially match the value multiplied by (step S3). That is, the threshold generation unit 31 generates a threshold signal so that the average error accumulation amount in the error storage unit 36 becomes substantially zero, and supplies the threshold signal to the binarization unit 34. The average error accumulation amount means the average accumulation amount of the binarized error signal stored in the error storage unit 36.

平均誤差蓄積量は、推定画素信号と補正信号以外にも、AM/FMスクリーンのようなスクリーンタイプ、スクリーン線数、スクリーン角度などの疑似中間処理方法によっても変化する。このため、閾値生成部31は、これらのいずれかの疑似中間処理方法を示す情報を用いて閾値信号を発生してもよい。これにより、平均誤差蓄積量を更に一層ゼロに近づけることができる。また、誤差拡散の度合いは誤差拡散係数に依存する。そこで、閾値生成部31は、誤差拡散係数が変更される場合は、誤差拡散係数ごとに閾値信号を生成することが望ましい。閾値生成部31は、上述のような処理を行うにあたり、ルックアップテーブルあるいは補間機能付きルックアップテーブルを用いてもよい。   In addition to the estimated pixel signal and the correction signal, the average error accumulation amount varies depending on a pseudo intermediate processing method such as a screen type such as an AM / FM screen, the number of screen lines, and a screen angle. For this reason, the threshold generation unit 31 may generate a threshold signal using information indicating any one of these pseudo intermediate processing methods. As a result, the average error accumulation amount can be made closer to zero. The degree of error diffusion depends on the error diffusion coefficient. Therefore, it is desirable that the threshold generation unit 31 generates a threshold signal for each error diffusion coefficient when the error diffusion coefficient is changed. The threshold generation unit 31 may use a lookup table or a lookup table with an interpolation function when performing the above-described processing.

さらに本実施形態では、閾値生成部31は、平均誤差蓄積量が略ゼロとなるように閾値信号を生成しているが、平均誤差蓄積量が略一定の状態であればドット遅延と尾引きの解消は可能である。そこで、平均誤差蓄積量を略一定にするために、誤差記憶部36の平均誤差蓄積量がその一定の値と等しくなるよう初期化しておけばよい。   Furthermore, in the present embodiment, the threshold generation unit 31 generates a threshold signal so that the average error accumulation amount becomes substantially zero. However, if the average error accumulation amount is substantially constant, dot delay and tailing are performed. It can be resolved. Therefore, in order to make the average error accumulation amount substantially constant, initialization may be performed so that the average error accumulation amount in the error storage unit 36 becomes equal to the certain value.

補正算出部32は、誤差記憶部36に記憶されている平均誤差蓄積量(二値化誤差信号)と誤差拡散係数との積和演算を行うことによって、誤差拡散補正信号を算出する(ステップS4)。   The correction calculation unit 32 calculates an error diffusion correction signal by performing a product-sum operation on the average error accumulation amount (binarized error signal) stored in the error storage unit 36 and the error diffusion coefficient (step S4). ).

補正加算部33は、入力二値画像信号、補正信号生成部20で生成された補正信号、補正算出部32で生成された誤差拡散補正信号を加算して補正加算信号を生成し(ステップS5)、この補正加算信号を二値化部34及び誤差算出部35へ供給する。   The correction addition unit 33 adds the input binary image signal, the correction signal generated by the correction signal generation unit 20, and the error diffusion correction signal generated by the correction calculation unit 32 to generate a correction addition signal (step S5). The correction addition signal is supplied to the binarization unit 34 and the error calculation unit 35.

二値化部34は、閾値生成部31で生成された閾値信号と補正加算部33で生成された補正加算信号とを比較し、補正加算信号が閾値以上であれば“1”、補正加算信号が閾値未満であれば“0”を生成し、補正加算信号を二値化した二値画像信号を出力する(ステップS6)。   The binarization unit 34 compares the threshold signal generated by the threshold generation unit 31 with the correction addition signal generated by the correction addition unit 33. If the correction addition signal is equal to or greater than the threshold, the correction addition signal is “1”. Is less than the threshold value, “0” is generated, and a binary image signal obtained by binarizing the correction addition signal is output (step S6).

なお、出力される二値画像信号の値は、再設定された二値画像の注目画素の画素値となる。二値化部34は、上述した閾値信号と補正値加算信号を比較することのほか、一般的な量子化手法であるならばどのような手法を用いて二値化しても良い。   Note that the value of the output binary image signal is the pixel value of the target pixel of the reset binary image. In addition to comparing the threshold signal and the correction value addition signal, the binarization unit 34 may binarize using any method as long as it is a general quantization method.

誤差算出部35は、二値化部34で生成された出力二値画像信号と補正加算部33で生成された補正加算信号とに基づいて、二値化誤差信号を生成し(ステップS7)、誤差記憶部36へ供給する。ここでは、誤差算出部35は、出力二値画像信号が1ならば量子化レベル255、出力二値画像信号が0ならば量子化レベル0を割り当て、補正加算信号から割り当てた値を減算することによって、二値化誤差信号を生成する。   The error calculation unit 35 generates a binarization error signal based on the output binary image signal generated by the binarization unit 34 and the correction addition signal generated by the correction addition unit 33 (step S7). This is supplied to the error storage unit 36. Here, the error calculation unit 35 assigns a quantization level 255 if the output binary image signal is 1, and assigns a quantization level 0 if the output binary image signal is 0, and subtracts the assigned value from the correction addition signal. To generate a binarized error signal.

誤差記憶部36には、誤差算出部35で算出された二値化誤差信号が逐次記憶される(ステップS8)。この二値化誤差信号は、平均誤差蓄積量として補正算出部32によって読み出され、次の誤差拡散処理における注目画素を補正するために使用される。   The binarization error signal calculated by the error calculation unit 35 is sequentially stored in the error storage unit 36 (step S8). This binarized error signal is read by the correction calculation unit 32 as an average error accumulation amount and used to correct the pixel of interest in the next error diffusion process.

最後に、入力二値画像信号において未処理の画素があるかが判定され(ステップS9)、未処理の画素が存在するときは再びステップS1からの処理が実行される。また、未処理の画素が存在しないときは本ルーチンが終了する。   Finally, it is determined whether or not there is an unprocessed pixel in the input binary image signal (step S9). If there is an unprocessed pixel, the process from step S1 is executed again. Further, when there is no unprocessed pixel, this routine ends.

図3は、閾値生成部31で生成される閾値が定数であると仮定した場合に、ドットが定常的に出現する状態となった後の誤差バッファ(誤差記憶部36)内の平均誤差蓄積量を示す図である。横軸は補正信号生成部20で生成される補正信号の値(補正量)、縦軸は平均誤差蓄積量を示す。各線は推定画素信号の値が異なる場合の平均誤差信号の値の変化を示している。   FIG. 3 shows an average error accumulation amount in the error buffer (error storage unit 36) after the dots appear in a steady state, assuming that the threshold value generated by the threshold value generation unit 31 is a constant. FIG. The horizontal axis indicates the value (correction amount) of the correction signal generated by the correction signal generation unit 20, and the vertical axis indicates the average error accumulation amount. Each line shows a change in the value of the average error signal when the value of the estimated pixel signal is different.

図3によると、補正量が負から正へと変化するゼロ近傍において平均誤差蓄積量が大きくジャンプした。これにより、面内ムラの補正などで補正量が負から正へ、又は正から負へと変化するゼロ近傍の地点において、ドット遅延や尾引きが生じやすいことがわかる。   According to FIG. 3, the average error accumulation amount jumped greatly in the vicinity of zero where the correction amount changes from negative to positive. Thereby, it can be seen that dot delay and tailing are likely to occur at a point in the vicinity of zero where the correction amount changes from negative to positive or from positive to negative due to in-plane unevenness correction.

また、補正量及び推定画素信号の値が共に大きくなるにしたがって、平均誤差蓄積量は正の大きな値になる。逆に、補正量及び推定画素信号の値が共に小さくなるにしたがって、平均誤差蓄積量は負の大きな値になる。   Further, as both the correction amount and the estimated pixel signal value increase, the average error accumulation amount becomes a positive large value. Conversely, as the correction amount and the estimated pixel signal value both decrease, the average error accumulation amount becomes a negative large value.

このような図3の特性について、補正量及び推定画素信号の値が共に大きい場合を例に説明する。   3 will be described by taking as an example a case where both the correction amount and the estimated pixel signal value are large.

二値化部34で二値画像信号“1”が生成され、ドットを印刷する場合であっても、入力二値画像信号“1”の画素の場合は補正信号の分はそっくり周辺画素へ誤差として拡散されてしまう。このため、誤差が蓄積されやすい傾向がある。   Even when a binary image signal “1” is generated by the binarization unit 34 and a dot is printed, in the case of a pixel of the input binary image signal “1”, the correction signal has an error to the surrounding pixels. Will be spread as. For this reason, errors tend to accumulate.

このため、既に二値化された画像を補正する場合(特許文献1を参照。)において、単純に入力補正量に応じて量子化閾値の変更をおこなったとしても(特許文献2を参照。)、(1)補正量の変化が多い場合、(2)補正量が0を跨いで変化する場合、(3)上記の(1)及び(2)を満たさなくても推定画素信号が変化する場合は、ドット遅延や尾引きが生じることがわかる。   For this reason, even when an already binarized image is corrected (see Patent Document 1), even if the quantization threshold is simply changed according to the input correction amount (see Patent Document 2). (1) When the change in the correction amount is large, (2) When the correction amount changes across 0, (3) When the estimated pixel signal changes without satisfying the above (1) and (2) It can be seen that dot delay and tailing occur.

一般に面内ムラ補正のような場合は、補正量は、画像中の位置に応じてなだらかに連続的に変化する。このような場合における平均誤差蓄積量の急激な変化は、ムラを補正しているのに新たなムラを発生させてしまうというような画質の大きな劣化を引き起こしてしまうことを意味する。   In general, in the case of in-plane unevenness correction, the correction amount changes smoothly and continuously according to the position in the image. A sudden change in the average error accumulation amount in such a case means that the image quality is greatly deteriorated such that new unevenness is generated even though the unevenness is corrected.

これに対して、閾値生成部31は、補正信号生成部20で生成された補正信号を用いるだけでなく、画素値推定部10で生成された推定画素信号も用いて、平均誤差蓄積量が略0になるように閾値信号を生成する。これによって、推定画素信号の変化したとしても平均誤差蓄積量を略0にすることができるので、ドット遅延や尾引きを抑制することができる。   On the other hand, the threshold generation unit 31 uses not only the correction signal generated by the correction signal generation unit 20 but also the estimated pixel signal generated by the pixel value estimation unit 10, and the average error accumulation amount is substantially reduced. A threshold signal is generated so as to be zero. Thereby, even if the estimated pixel signal changes, the average error accumulation amount can be made substantially zero, so that dot delay and tailing can be suppressed.

以上のように、第1の実施形態に係る画像処理装置は、注目画素の補正信号を用いるだけでなく、二値画像が多値画像であった時の注目画素の画素値も用いて再二値化のための閾値を設定し、二値画像の誤差拡散処理を行うことにより、誤差拡散処理において生じた二値化誤差信号の平均誤差蓄積量をほぼ一定にすることができる。これにより、誤差拡散処理において発生していたドット遅延や尾引きを一層抑制することができる。   As described above, the image processing apparatus according to the first embodiment not only uses the correction signal for the target pixel, but also uses the pixel value of the target pixel when the binary image is a multi-valued image. By setting a threshold for binarization and performing error diffusion processing of a binary image, the average error accumulation amount of the binarization error signal generated in the error diffusion processing can be made substantially constant. As a result, dot delay and tailing that have occurred in the error diffusion process can be further suppressed.

[第2の実施形態]
つぎに、本発明の第2の実施形態について説明する。第1の実施形態と同一の部位には同一の符号を付し、重複する説明は省略する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described. The same parts as those in the first embodiment are denoted by the same reference numerals, and redundant description is omitted.

図4は、第2の実施形態に係る画像処理装置の構成を示すブロック図である。第2の実施形態に係る画像処理装置は、二値画像の誤差拡散処理を行うものであり、入力された二値画像信号から画素値推定部10と、画素信号と画素位置信号とに基づいて補正信号を生成する補正信号生成部20と、誤差拡散処理を行う誤差拡散処理部30Aと、を備えている。   FIG. 4 is a block diagram illustrating a configuration of an image processing apparatus according to the second embodiment. The image processing apparatus according to the second embodiment performs error diffusion processing of a binary image, and based on the input binary image signal, the pixel value estimation unit 10, the pixel signal, and the pixel position signal. A correction signal generation unit 20 that generates a correction signal and an error diffusion processing unit 30A that performs error diffusion processing are provided.

誤差拡散処理部30Aは、図1に示す誤差拡散処理部30の構成に、変動計算部37を備えたものである。変動計算部37は、二値化部34で生成された出力二値画像信号から入力二値画像信号を減算して、変動信号を生成し、この変動信号を誤差算出部35に供給する。   The error diffusion processing unit 30A includes a variation calculation unit 37 in the configuration of the error diffusion processing unit 30 shown in FIG. The fluctuation calculator 37 subtracts the input binary image signal from the output binary image signal generated by the binarizer 34 to generate a fluctuation signal, and supplies the fluctuation signal to the error calculator 35.

一方、補正加算部33は、補正信号生成部20で生成された補正信号と補正算出部32で生成された誤差拡散補正信号とを加算して、補正加算信号を生成し、この補正加算信号を二値化部34及び誤差算出部35に供給する。   On the other hand, the correction addition unit 33 adds the correction signal generated by the correction signal generation unit 20 and the error diffusion correction signal generated by the correction calculation unit 32 to generate a correction addition signal. The binarization unit 34 and the error calculation unit 35 are supplied.

誤差算出部35は、変動計算部37で生成された変動信号が1ならば量子化レベル255、出力二値画像信号が0ならば量子化レベル0を割り当てて、補正加算信号から割り当てた値を減算することによって、二値化誤差信号を生成する。そして、二値化誤差信号は、誤差記憶部36に供給される。なお、閾値生成部31は、第1の実施形態と同様に、閾値信号を生成する。   The error calculator 35 assigns a quantization level 255 if the fluctuation signal generated by the fluctuation calculator 37 is 1, and assigns a quantization level 0 if the output binary image signal is 0, and uses the value assigned from the corrected addition signal. By subtracting, a binarized error signal is generated. Then, the binarized error signal is supplied to the error storage unit 36. Note that the threshold generation unit 31 generates a threshold signal as in the first embodiment.

これにより、第2の実施形態に係る画像処理装置は、第1の実施形態と同様に、誤差拡散処理において発生していたドット遅延や尾引きを一層抑制することができる。   As a result, the image processing apparatus according to the second embodiment can further suppress the dot delay and tailing that have occurred in the error diffusion processing, as in the first embodiment.

[第3の実施形態]
つぎに、本発明の第3の実施形態について説明する。上述した実施形態と同一の部位には同一の符号を付し、重複する説明は省略する。
[Third Embodiment]
Next, a third embodiment of the present invention will be described. The same parts as those in the above-described embodiment are denoted by the same reference numerals, and redundant description is omitted.

図5は、第3の実施形態に係る画像処理装置の構成を示すブロック図である。第2の実施形態に係る画像処理装置は、二値画像の誤差拡散処理を行うものであり、入力された二値画像信号から画素値推定部10と、画素信号と画素位置信号とに基づいて補正信号を生成する補正信号生成部20と、誤差拡散処理を行う誤差拡散処理部30Bと、を備えている。   FIG. 5 is a block diagram illustrating a configuration of an image processing apparatus according to the third embodiment. The image processing apparatus according to the second embodiment performs error diffusion processing of a binary image, and based on the input binary image signal, the pixel value estimation unit 10, the pixel signal, and the pixel position signal. A correction signal generation unit 20 that generates a correction signal and an error diffusion processing unit 30B that performs error diffusion processing are provided.

誤差拡散処理部30Bは、誤差拡散処理部30Aとほぼ同様の構成であるが、閾値生成部31の代わりに閾値生成部31A、二値化部34の代わりに二値化部34Aを備えている。二値化部34Aは、第1比較部41と、第2比較部42と、EXOR演算部43と、セレクタ44と、を備えている。   The error diffusion processing unit 30B has substantially the same configuration as the error diffusion processing unit 30A, but includes a threshold value generation unit 31A instead of the threshold value generation unit 31 and a binarization unit 34A instead of the binarization unit 34. . The binarization unit 34A includes a first comparison unit 41, a second comparison unit 42, an EXOR operation unit 43, and a selector 44.

閾値生成部31Aは、画素値推定部10で生成された推定画素信号と補正信号生成部20で生成された補正信号とに基づいて、2つの異なる閾値を示す第1及び第2閾値信号を生成する。ここでは、閾値生成部31Aは、平均誤差蓄積量に−1を乗じた値と略一致するような第1及び第2閾値信号を生成する。但し、第2閾値信号が示す第2閾値は、第1閾値信号が示す第1閾値より大きな値とする。そして、閾値生成部31Aは、第1閾値信号を第1比較部41へ、第2閾値信号を第2比較部42へ供給する。   The threshold generation unit 31A generates first and second threshold signals indicating two different thresholds based on the estimated pixel signal generated by the pixel value estimation unit 10 and the correction signal generated by the correction signal generation unit 20. To do. Here, the threshold generation unit 31A generates first and second threshold signals that substantially match a value obtained by multiplying the average error accumulation amount by -1. However, the second threshold value indicated by the second threshold signal is set to a value larger than the first threshold value indicated by the first threshold signal. The threshold generation unit 31A supplies the first threshold signal to the first comparison unit 41 and the second threshold signal to the second comparison unit 42.

第1比較部41は、第1閾値信号と補正加算部33で生成された補正加算信号とを比較して、補正加算信号が第1閾値以上であれば“1”、補正加算信号が第1閾値未満であれば“0”を生成し、この値をEXOR演算部43に供給する。   The first comparison unit 41 compares the first threshold signal with the correction addition signal generated by the correction addition unit 33. If the correction addition signal is greater than or equal to the first threshold, the first comparison unit 41 is “1”, and the correction addition signal is the first. If it is less than the threshold value, “0” is generated, and this value is supplied to the EXOR operation unit 43.

第2比較部42は、第2閾値信号と補正加算部33で生成された補正加算信号とを比較して、補正加算信号が第2閾値以上であれば“1”、補正加算信号が第2閾値未満であれば“0”を生成し、この値をEXOR演算部43及びセレクタ44に供給する。   The second comparison unit 42 compares the second threshold signal with the correction addition signal generated by the correction addition unit 33. If the correction addition signal is greater than or equal to the second threshold, the second comparison unit 42 is “1”, and the correction addition signal is the second. If it is less than the threshold value, “0” is generated, and this value is supplied to the EXOR operation unit 43 and the selector 44.

EXOR演算部43は、第1比較部41及び第2比較部42の比較結果を示す信号の排他的論理和を演算し、演算結果をセレクタ44に供給する。EXOR演算部43の出力である排他的論理和“1”は、補正加算信号の値が第1閾値以上第2閾値未満であることを示す。上記排他的論理和“0”は、補正加算信号の値が第1閾値未満又は第2閾値以上であることを示す。   The EXOR operation unit 43 calculates an exclusive OR of signals indicating the comparison results of the first comparison unit 41 and the second comparison unit 42 and supplies the operation result to the selector 44. The exclusive OR “1” that is the output of the EXOR operation unit 43 indicates that the value of the correction addition signal is greater than or equal to the first threshold and less than the second threshold. The exclusive OR “0” indicates that the value of the correction addition signal is less than the first threshold or greater than or equal to the second threshold.

セレクタ44は、EXOR演算部43の出力が“1”のときは入力二値画像信号を出力二値画像信号とし、その出力が“0”のときは第2比較部42の出力を出力二値画像信号とする。   The selector 44 sets the input binary image signal as an output binary image signal when the output of the EXOR operation unit 43 is “1”, and outputs the output of the second comparison unit 42 as an output binary when the output is “0”. Let it be an image signal.

図6は、閾値生成部31Aで生成される第1及び第2閾値が定数であると仮定した場合に、ドットが定常的に出現する状態となった後の誤差バッファ(誤差記憶部36)内の平均誤差蓄積量を示す図である。図6によると、図3の場合と異なり、補正量が負から正へと変化するゼロ近傍において平均誤差蓄積量がジャンプしていないことが分かる。但し、補正量の変化が多い場合、又は推定画素信号が変化する場合は、ドット遅延や尾引きが生じてしまう。   FIG. 6 shows that in the error buffer (error storage unit 36) after the dots appear in a steady state, assuming that the first and second threshold values generated by the threshold generation unit 31A are constants. It is a figure which shows the average error accumulation amount. According to FIG. 6, it can be seen that, unlike FIG. 3, the average error accumulation amount does not jump in the vicinity of zero where the correction amount changes from negative to positive. However, when there is a large change in the correction amount, or when the estimated pixel signal changes, dot delay or tailing occurs.

そこで、第3の実施形態に係る画像処理装置は、注目画素の補正信号を用いるだけでなく、二値画像が多値画像であった時の注目画素の画素値も用いて再二値化のための第1及び第2閾値を設定し、二値画像の誤差拡散処理を行うことにより、誤差拡散処理において生じた二値化誤差信号の平均誤差蓄積量をほぼ一定にする。これにより、誤差拡散処理において発生していたドット遅延や尾引きを一層抑制することができる。また、補正量がゼロを跨いで変化する場合でも、ドット遅延や尾引きを抑制することができる。   Therefore, the image processing apparatus according to the third embodiment uses not only the correction signal of the target pixel but also the re-binarization using the pixel value of the target pixel when the binary image is a multi-valued image. The first and second threshold values are set and the error diffusion process of the binary image is performed, thereby making the average error accumulation amount of the binarized error signal generated in the error diffusion process substantially constant. As a result, dot delay and tailing that have occurred in the error diffusion process can be further suppressed. Further, even when the correction amount changes across zero, dot delay and tailing can be suppressed.

なお、本発明は、上述した実施の形態に限定されるものではなく、特許請求の範囲に記載された範囲内で設計上の変更をされたものにも適用可能であるのは勿論である。   It should be noted that the present invention is not limited to the above-described embodiment, and it is needless to say that the present invention can also be applied to a design modified within the scope described in the claims.

例えば、本発明は、上述した処理を行うことができれば、プリンタ、ファクシミリ等の画像形成装置に搭載されたものでもよいし、コンピュータに上述した処理を実行させるプログラムであってもよい。   For example, the present invention may be installed in an image forming apparatus such as a printer or a facsimile as long as the above-described processing can be performed, or may be a program that causes a computer to execute the above-described processing.

本発明の第1の実施形態に係る画像処理装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus according to a first embodiment of the present invention. 画像処理装置における誤差拡散処理ルーチンを示すフローチャートである。It is a flowchart which shows the error diffusion process routine in an image processing apparatus. 閾値生成部で生成される閾値が定数であると仮定した場合に、ドットが定常的に出現する状態となった後の誤差バッファ内の平均誤差蓄積量を示す図である。It is a figure which shows the average error accumulation | storage amount in an error buffer after it will be in the state where a dot appears regularly when it is assumed that the threshold value produced | generated by a threshold value generation part is a constant. 第2の実施形態に係る画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus which concerns on 2nd Embodiment. 第3の実施形態に係る画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus which concerns on 3rd Embodiment. 閾値生成部で生成される第1及び第2閾値が定数であると仮定した場合に、ドットが定常的に出現する状態となった後の誤差バッファ内の平均誤差蓄積量を示す図である。It is a figure which shows the average error accumulation | storage amount in an error buffer after it will be in the state where a dot appears regularly, when the 1st and 2nd threshold value produced | generated by a threshold value production | generation part is assumed to be a constant.

符号の説明Explanation of symbols

10 画素値推定部
20 補正信号生成部
30,30A,30B 誤差拡散処理部
31,31A 閾値生成部
10 pixel value estimation unit 20 correction signal generation unit 30, 30A, 30B error diffusion processing unit 31, 31A threshold generation unit

Claims (6)

二値画像の注目画素とその周辺画素から、前記二値画像が多値画像であった時の注目画素の画素値を推定する画素値推定手段と、
前記画素値推定手段により推定された前記注目画素の画素値と、前記画素値推定手段により推定され階調補正された前記注目画素の画素値と、の差分に基づいて前記注目画素の正信号を生成する正信号生成手段と、
前記二値画像の注目画素の画素値と、前記補正信号生成手段により生成された前記補正信号と、誤差拡散補正信号と、を加算する加算手段と、
加算手段により生成された信号と閾値とを比較して前記注目画素の二値画像信号を生成する二値化手段と、
前記加算手段により生成された信号と、前記二値化手段により生成された二値画像信号に対応する多値信号と、の差である二値化誤差信号を生成する二値化誤差信号生成手段と、
前記二値化誤差信号生成手段により生成された二値化誤差信号を記憶する記憶手段と、
前記記憶手段に記憶された二値化誤差信号と所定の誤差拡散係数とを注目画素毎に乗じて加算することで前記誤差拡散補正信号を生成する誤差拡散補正信号生成手段と、
前記記憶手段に記憶された二値化誤差信号の蓄積量が略一定になるように前記閾値を生成する閾値生成手段と、
を備えた画像処理装置。
Pixel value estimating means for estimating the pixel value of the target pixel when the binary image is a multi-valued image from the target pixel of the binary image and its surrounding pixels;
The pixel value of the pixel of interest estimated by the pixel value estimating means, compensation signal of the pixel of interest on the basis of the gradation-corrected pixel value of the pixel of interest is estimated by the pixel value estimating means, of the difference a compensation signal generating means for generating a,
Adding means for adding the pixel value of the target pixel of the binary image, the correction signal generated by the correction signal generating means, and the error diffusion correction signal;
Binarization means for comparing the signal generated by the addition means with a threshold value to generate a binary image signal of the pixel of interest;
A binarization error signal generation unit that generates a binarization error signal that is a difference between the signal generated by the addition unit and the multilevel signal corresponding to the binary image signal generated by the binarization unit. When,
Storage means for storing the binarization error signal generated by the binarization error signal generation means;
An error diffusion correction signal generating means for generating the error diffusion correction signal by multiplying the binarization error signal stored in the storage means and a predetermined error diffusion coefficient for each pixel of interest and adding them;
Threshold generation means for generating the threshold so that the accumulated amount of the binarization error signal stored in the storage means is substantially constant;
An image processing apparatus.
二値画像の注目画素とその周辺画素から、前記二値画像が多値画像であった時の注目画素の画素値を推定する画素値推定手段と、  Pixel value estimation means for estimating the pixel value of the target pixel when the binary image is a multi-valued image from the target pixel of the binary image and its surrounding pixels;
前記画素値推定手段により推定された前記注目画素の画素値と、前記画素値推定手段により推定され階調補正された前記注目画素の画素値と、の差分に基づいて前記注目画素の補正信号を生成する補正信号生成手段と、  Based on a difference between the pixel value of the target pixel estimated by the pixel value estimation unit and the pixel value of the target pixel estimated by the pixel value estimation unit and subjected to gradation correction, a correction signal for the target pixel is obtained. Correction signal generating means for generating,
前記補正信号生成手段により生成された前記補正信号と、誤差拡散補正信号と、を加算する加算手段と、Adding means for adding the correction signal generated by the correction signal generating means and the error diffusion correction signal;
加算手段により生成された信号と閾値とを比較して前記注目画素の二値画像信号を生成する二値化手段と、Binarization means for comparing the signal generated by the addition means with a threshold value to generate a binary image signal of the pixel of interest;
前記二値画像の注目画素の画素値と、前記二値化手段により生成された二値画像信号の画素値と、の差である変動信号を生成する変動信号生成手段と、Fluctuation signal generating means for generating a fluctuation signal that is a difference between the pixel value of the target pixel of the binary image and the pixel value of the binary image signal generated by the binarization means;
前記加算手段により生成された信号と、前記変動信号生成手段により生成された変動信号に対応する多値と、の誤差である二値化誤差信号を生成する二値化誤差生成手段と、A binarization error generation unit that generates a binarization error signal that is an error between the signal generated by the addition unit and the multivalue corresponding to the variation signal generated by the variation signal generation unit;
前記二値化誤差信号生成手段により生成された二値化誤差信号を記憶する記憶手段と、  Storage means for storing the binarization error signal generated by the binarization error signal generation means;
前記記憶手段に記憶された二値化誤差信号と所定の誤差拡散係数とを注目画素毎に乗じて加算することで前記誤差拡散補正信号を生成する誤差拡散補正信号生成手段と、  Error diffusion correction signal generation means for generating the error diffusion correction signal by multiplying and adding the binarized error signal stored in the storage means and a predetermined error diffusion coefficient for each pixel of interest;
前記記憶手段に記憶された二値化誤差信号の蓄積量が略一定になるように前記閾値を生成する閾値生成手段と、  Threshold generation means for generating the threshold so that the accumulated amount of the binarization error signal stored in the storage means is substantially constant;
を備えた画像処理装置。  An image processing apparatus.
二値画像の注目画素とその周辺画素から、前記二値画像が多値画像であった時の注目画素の画素値を推定する画素値推定手段と、  Pixel value estimation means for estimating the pixel value of the target pixel when the binary image is a multi-valued image from the target pixel of the binary image and its surrounding pixels;
前記画素値推定手段により推定された前記注目画素の画素値と、前記画素値推定手段により推定され階調補正された前記注目画素の画素値と、の差分に基づいて前記注目画素の補正信号を生成する補正信号生成手段と、  Based on a difference between the pixel value of the target pixel estimated by the pixel value estimation unit and the pixel value of the target pixel estimated by the pixel value estimation unit and subjected to gradation correction, a correction signal for the target pixel is obtained. Correction signal generating means for generating,
前記補正信号生成手段により生成された前記補正信号と、誤差拡散補正信号と、を加算する加算手段と、Adding means for adding the correction signal generated by the correction signal generating means and the error diffusion correction signal;
加算手段により生成された加算信号と第1及び第2の閾値とを比較して、前記加算信号の値が前記第1の閾値以上前記第2の閾値未満である場合は、前記注目画素の二値画像信号を出力し、前記加算信号の値が前記第1の閾値以上前記第2の閾値未満でない場合は、前記加算信号と前記第2の閾値との比較結果を示す二値信号を出力することで、前記注目画素の二値画像信号を生成する二値化手段と、When the addition signal generated by the adding means is compared with the first and second threshold values and the value of the addition signal is equal to or greater than the first threshold value and less than the second threshold value, A value image signal is output, and if the value of the addition signal is not less than the first threshold value and less than the second threshold value, a binary signal indicating the comparison result between the addition signal and the second threshold value is output. Thus, binarization means for generating a binary image signal of the pixel of interest,
前記二値画像の注目画素の画素値と、前記二値化手段により生成された二値画像信号の画素値と、の差である変動信号を生成する変動信号生成手段と、Fluctuation signal generating means for generating a fluctuation signal that is a difference between the pixel value of the target pixel of the binary image and the pixel value of the binary image signal generated by the binarization means;
前記加算手段により生成された信号と、前記変動信号生成手段により生成された変動信号に対応する多値と、誤差である二値化誤差信号を生成する二値化誤差生成手段と、A signal generated by the adding means, a multi-value corresponding to the fluctuation signal generated by the fluctuation signal generating means, and a binarization error generating means for generating a binarization error signal which is an error;
前記二値化誤差信号生成手段により生成された二値化誤差信号を記憶する記憶手段と、  Storage means for storing the binarization error signal generated by the binarization error signal generation means;
前記記憶手段に記憶された二値化誤差信号と所定の誤差拡散係数とを注目画素毎に乗じて加算することで前記誤差拡散補正信号を生成する誤差拡散補正信号生成手段と、  Error diffusion correction signal generation means for generating the error diffusion correction signal by multiplying and adding the binarized error signal stored in the storage means and a predetermined error diffusion coefficient for each pixel of interest;
前記記憶手段に記憶された二値化誤差信号の蓄積量に(−1)を乗じた値である前記第1の閾値と、前記第1の閾値より大きい前記第2の閾値と、を生成する閾値生成手段と、  The first threshold value, which is a value obtained by multiplying the accumulated amount of the binarization error signal stored in the storage means by (−1), and the second threshold value greater than the first threshold value are generated. Threshold generation means;
を備えた画像処理装置。  An image processing apparatus.
前記閾値生成手段は、前記画素値推定手段により推定された前記注目画素の画素値と前記正信号とに基づいて閾値を生成する
請求項1から請求項3のいずれか1項に記載の画像処理装置。
Said threshold generating means, the image according to any one of claims 1 to 3 for generating a threshold value based pixel value of the pixel of interest estimated by the pixel value estimating means and to said compensation signal Processing equipment.
前記閾値生成手段は、前記記憶手段に記憶された二値化誤差信号の蓄積量が略ゼロになるように前記閾値を生成する
請求項1または請求項2に記載の画像処理装置。
The threshold generation means generates the threshold so that the accumulated amount of the binarization error signal stored in the storage means becomes substantially zero.
The image processing apparatus according to claim 1 .
コンピュータを、請求項1から請求項5のいずれか1項に記載の画像処理装置の各手段として機能させるための画像処理プログラム。 An image processing program for causing a computer to function as each unit of the image processing apparatus according to any one of claims 1 to 5 .
JP2005077993A 2005-03-17 2005-03-17 Image processing apparatus and program Expired - Fee Related JP4453583B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005077993A JP4453583B2 (en) 2005-03-17 2005-03-17 Image processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005077993A JP4453583B2 (en) 2005-03-17 2005-03-17 Image processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2006262196A JP2006262196A (en) 2006-09-28
JP4453583B2 true JP4453583B2 (en) 2010-04-21

Family

ID=37100919

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005077993A Expired - Fee Related JP4453583B2 (en) 2005-03-17 2005-03-17 Image processing apparatus and program

Country Status (1)

Country Link
JP (1) JP4453583B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5369851B2 (en) 2008-09-16 2013-12-18 株式会社リコー Image processing apparatus, image processing method, computer-executable program, and computer-readable recording medium
JP4731595B2 (en) * 2008-11-21 2011-07-27 シャープ株式会社 Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP7187278B2 (en) * 2018-11-15 2022-12-12 キヤノン株式会社 Image processing device, image processing method, and program

Also Published As

Publication number Publication date
JP2006262196A (en) 2006-09-28

Similar Documents

Publication Publication Date Title
US9749496B2 (en) Performing halftone processing using intra-cell sum value differences applied so as to correct boundary pixels
JP4610517B2 (en) Method and system for extending binary image data to contone image data
US8917419B2 (en) Image processing apparatus and control method thereof
JP4243854B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
JP2006065834A (en) Image processing device and image processing method
JP3992789B2 (en) Input image conversion method and pixel value quantization method
US20140146367A1 (en) Gamma correction table generation method or image processing method using gamma correction table and control method thereof
JP4453583B2 (en) Image processing apparatus and program
JP5254740B2 (en) Image processing apparatus and image processing method
US8120817B2 (en) Revising halftone image by adding dot to or filtering edge pixel
JP3648142B2 (en) Method and apparatus for improving image of digital copying apparatus
JP2006270897A (en) Image processing device, method and program
JP2011176556A (en) Image processing apparatus, program and recording medium
JP2006287623A (en) Input image correction device, method, and program, image processor, image formation apparatus, and recording medium
JP5024112B2 (en) Image signal processing apparatus and image signal processing program
JP2005149266A (en) Image processing apparatus, image processing method, and image processing program
JP4459837B2 (en) Image processing apparatus, image processing method, program for causing computer to execute the method, and recording medium
JPH1075360A (en) Level number reduction method and system for multi-level gradation picture element value
JP5504740B2 (en) Image processing device
JP4243855B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
JP5471135B2 (en) Image processing device
JP6342762B2 (en) Missing pixel interpolator
JP2005051337A (en) Image processing method, image processing apparatus, and program
JPH11150659A (en) Method for processing image
JP2004304814A (en) Image processing unit and method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090525

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090609

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090810

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: 20100112

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100125

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

Free format text: PAYMENT UNTIL: 20130212

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4453583

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130212

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140212

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees