JPH11205599A - Image processor and image processing method - Google Patents

Image processor and image processing method

Info

Publication number
JPH11205599A
JPH11205599A JP10005083A JP508398A JPH11205599A JP H11205599 A JPH11205599 A JP H11205599A JP 10005083 A JP10005083 A JP 10005083A JP 508398 A JP508398 A JP 508398A JP H11205599 A JPH11205599 A JP H11205599A
Authority
JP
Japan
Prior art keywords
pixel
binarization
density
image
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.)
Pending
Application number
JP10005083A
Other languages
Japanese (ja)
Inventor
Arinori Hikosaka
有儀 彦阪
Katsuya Honda
勝也 本田
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.)
Kyocera Mita Industrial Co Ltd
Original Assignee
Mita Industrial Co Ltd
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 Mita Industrial Co Ltd filed Critical Mita Industrial Co Ltd
Priority to JP10005083A priority Critical patent/JPH11205599A/en
Publication of JPH11205599A publication Critical patent/JPH11205599A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processor which performs gradation representation satisfactorily and an image processing method. SOLUTION: A binarization error HG is calculated with HG=D+RG-GSLVB (S5) when an attentional pixel is binarized into a black pixel (S3). Also, a binarization error is calculated with HG=D+RG-GSLVW (S6) when the attentioal pixel is binarized into a white pixel. In such cases, GSLVB =255+(255-D)×HENB, GSLVW=D/HENW, HENB and HENW are constants. Consequently, it is possible to perform γ correction at the same time when error diffusion processing is performed because a binarization error is corrected in accordance with value of density data D.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、ディジタル複写
機、ファクシミリ装置およびイメージスキャナ装置など
に適用され、光学的に読み取られた画像の多値濃度デー
タに対して施される中間調再現のための画像処理装置お
よび画像処理方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is applied to a digital copying machine, a facsimile machine, an image scanner and the like, and is used for reproducing halftones applied to multi-value density data of an optically read image. The present invention relates to an image processing device and an image processing method.

【0002】[0002]

【従来の技術】ディジタル複写機は、原稿画像を光学的
に読み取るためのスキャナと、このスキャナによって読
み取られた画像のデータを処理するための画像処理部
と、画像処理部が出力する画像データに基づいて記録紙
上に画像を記録する画像形成部とを備えている。画像形
成部は、たとえば、電子写真プロセスによって画像を形
成するように構成されており、感光体と、感光体を選択
的に露光して静電潜像を書き込むためのレーザ走査ユニ
ットと、感光体上の静電潜像をトナー像に現像するため
の現像ユニットとを備えている。
2. Description of the Related Art A digital copying machine includes a scanner for optically reading a document image, an image processing unit for processing data of the image read by the scanner, and an image processing unit. And an image forming unit that records an image on recording paper based on the image. The image forming unit is configured to form an image by, for example, an electrophotographic process, and includes a photosensitive member, a laser scanning unit for selectively exposing the photosensitive member to write an electrostatic latent image, and a photosensitive member. And a developing unit for developing the above electrostatic latent image into a toner image.

【0003】原稿上の濃度とスキャナの出力データとの
関係は必ずしもリニアではなく、また、画像形成部に入
力されるデータと記録紙上に形成される記録画像の濃度
との関係もまた必ずしもリニアではない。そこで、この
ような読み取り特性および現像特性を補正して、原稿画
像の濃度と記録紙に記録される記録画像の濃度との関係
をリニアにするために、画像処理部には、γ補正回路が
備えられている。γ補正回路は、読み取り特性および現
像特性の補正以外にも、画像を意図的に加工したりする
目的で用いられる場合もあるが、このようなデータの加
工は、本来的な意味でのγ補正ではない。
The relationship between the density on the original and the output data of the scanner is not always linear, and the relationship between the data input to the image forming unit and the density of the recorded image formed on the recording paper is not necessarily linear. Absent. Therefore, in order to correct such reading characteristics and developing characteristics and make the relationship between the density of the original image and the density of the recorded image recorded on the recording paper linear, a gamma correction circuit is provided in the image processing unit. Provided. The gamma correction circuit may be used for the purpose of intentionally processing an image in addition to the correction of the reading characteristics and the development characteristics, but such data processing is performed in the original sense of the gamma correction. is not.

【0004】γ補正回路は、たとえば、γ補正テーブル
を格納したメモリにより実現される。具体的には、γ補
正テーブルは、図6に示すように、処理対象の画素の濃
度値Dをアドレスとして与えることにより、γ補正後の
データGOUTを出力するように構成されている。濃度
値Dとγ補正後のデータGOUTとの関係はリニアでは
なく、或る濃度領域においては、濃度値Dに対するデー
タGOUTの勾配は緩やかであり、また、或る濃度領域
においては、濃度値Dに対するデータGOUTの勾配が
急になっている。勾配の緩やかな濃度領域においては、
複数の異なる濃度値Dに対して同一値のγ補正データG
OUTが割り当てられており、原データの階調が或る程
度失われ、表現可能な階調数が減少することになる。こ
れは、γ補正テーブルを用いたディジタル処理によるγ
補正においては、避けがたい問題である。
[0004] The γ correction circuit is realized by, for example, a memory storing a γ correction table. Specifically, as shown in FIG. 6, the gamma correction table is configured to output the data GOUT after the gamma correction by giving the density value D of the pixel to be processed as an address. The relationship between the density value D and the data GOUT after the γ correction is not linear, the gradient of the data GOUT with respect to the density value D is gentle in a certain density region, and the density value D is Is steeper. In the concentration area where the gradient is gentle,
Γ correction data G having the same value for a plurality of different density values D
OUT is assigned, the gradation of the original data is lost to some extent, and the number of gradations that can be expressed is reduced. This is because of the γ by digital processing using the γ correction table.
Correction is an unavoidable problem.

【0005】一方、画像処理部には、写真画像などの中
間調画像を良好に再生するための誤差拡散処理を行う誤
差拡散回路が備えられる場合がある。誤差拡散処理で
は、或る画素を二値化したときに、この画素の二値化前
の多値濃度データと二値化後の濃度データとの誤差であ
る二値化誤差が演算される。すなわち、二値化処理で
は、注目画素の濃度データと一定のしきい値とが比較さ
れ、その画素が白画素または黒画素とされる。このた
め、中間的な濃度データを有する画素については、二値
化前の画素と二値化後の画素との間で、必然的に誤差が
生じる。
On the other hand, the image processing section may be provided with an error diffusion circuit for performing an error diffusion process for favorably reproducing a halftone image such as a photographic image. In the error diffusion process, when a certain pixel is binarized, a binarization error which is an error between the multi-value density data before binarization and the density data after binarization of this pixel is calculated. That is, in the binarization processing, the density data of the target pixel is compared with a certain threshold value, and the pixel is determined as a white pixel or a black pixel. For this reason, for a pixel having intermediate density data, an error necessarily occurs between a pixel before binarization and a pixel after binarization.

【0006】この二値化誤差が周辺の画素に適当な重み
付けをして分配される。そして、或る注目画素に対する
二値化処理では、当該注目画素の濃度データと周辺の画
素から分配される二値化誤差とが加算され、この加算結
果と所定の二値化しきい値とが比較される。たとえば、
図2に示されているように、ディジタル複写機が備える
スキャナによる読取時の主走査方向に沿った或るライン
の画素P0に対する二値化が行われるときに、上記の二
値化誤差が発生する。この二値化誤差は、画素P0の周
辺の画素P1〜P6に誤差拡散係数1/4または1/8
を乗じて分配される。
[0006] This binarization error is distributed to peripheral pixels with appropriate weighting. Then, in the binarization processing for a certain pixel of interest, the density data of the pixel of interest and the binarization error distributed from the peripheral pixels are added, and the addition result is compared with a predetermined binarization threshold. Is done. For example,
As shown in FIG. 2, the above-described binarization error occurs when binarization is performed on a pixel P0 of a certain line along the main scanning direction during reading by a scanner provided in the digital copying machine. I do. This binarization error is caused by adding an error diffusion coefficient of 1/4 or 1/8 to pixels P1 to P6 around the pixel P0.
Multiplied by

【0007】逆に、二値化誤差が分配される側の画素に
注目すると、図3に示されているように、注目画素Aに
は、その周辺の画素B,C,D,E,F,Gから二値化
誤差が分配されることになる。したがって、注目画素A
に対する二値化処理は、この画素Aの濃度データに周辺
の画素B,C,D,E,F,Gから分配される誤差を加
算した値に基づいて行われることになる。
Conversely, focusing on the pixel on the side where the binarization error is distributed, as shown in FIG. 3, the pixel of interest A has pixels B, C, D, E, and F around it. , G, the binarization error is distributed. Therefore, attention pixel A
Is performed based on the value obtained by adding the error distributed from the surrounding pixels B, C, D, E, F, and G to the density data of the pixel A.

【0008】このようにして、個々の画素で生じた二値
化誤差を周辺の画素に分配することにより、中間調の表
現が達成される。二値化処理は、一定のしきい値に基づ
いて行われる。たとえば、256階調の多値データ
(白:「0」,黒:「255」)を二値化する場合に
は、二値化しきい値は、たとえば中間の値である「12
8」とされる。そして、周辺の画素B,C,D,E,
F,Gから分配される二値化誤差を累積した値である累
積誤差値と、注目画素の値とに基づき、下記第(1) 式お
よび第(2) 式にしたがって、注目画素が白画素または黒
画素と判定される。
[0008] In this way, by distributing the binarization error generated in each pixel to peripheral pixels, the expression of halftone is achieved. The binarization process is performed based on a certain threshold value. For example, when binarizing multi-valued data of 256 gradations (white: “0”, black: “255”), the binarization threshold is, for example, an intermediate value “12”.
8 ". Then, the peripheral pixels B, C, D, E,
Based on the cumulative error value, which is a value obtained by accumulating the binarization errors distributed from F and G, and the value of the target pixel, the target pixel becomes a white pixel according to the following equations (1) and (2). Or, it is determined as a black pixel.

【0009】 黒判定:(累積誤差値)+(注目画素値)≧128 ・・・・・・ (1) 白判定:(累積誤差値)+(注目画素値)<128 ・・・・・・ (2) この二値化の後に、注目画素の二値化誤差が、下記第
(3) 式または第(4) 式に従って算出される。すなわち、
黒判定のときには、二値化誤差は負の値をとり、白判定
のときには、二値化誤差は正の値をとる。
Black judgment: (cumulative error value) + (pixel value of interest) ≧ 128 (1) White judgment: (cumulative error value) + (pixel value of interest) <128 (2) After this binarization, the binarization error of the pixel of interest is
It is calculated according to equation (3) or equation (4). That is,
At the time of black determination, the binarization error has a negative value, and at the time of white determination, the binarization error has a positive value.

【0010】 黒判定のとき:(二値化誤差)=(累積誤差値)+(注目画素値)−255 ・・・・・・ (3) 白判定のとき:(二値化誤差)=(累積誤差値)+(注目画素値)−0 ・・・・・・ (4) For black determination: (binary error) = (cumulative error value) + (pixel value of interest) −255 (3) For white determination: (binary error) = ( (Cumulative error value) + (target pixel value) −0 (4)

【0011】[0011]

【発明が解決しようとする課題】上述の従来技術におい
ては、γ補正によって階調数が減少したデータGOUT
に対して、誤差拡散処理が施されることになるが、γ補
正によって失われた階調を誤差拡散処理で復元できるわ
けではない。したがって、中間調画像の表現は、減少し
た階調数により行われることになるので、必然的に濃度
変化が段階的となり、なめらかな中間調画像の表現が困
難であった。
In the above-mentioned prior art, the data GOUT in which the number of gradations is reduced by the gamma correction is used.
Is subjected to the error diffusion processing, but the gradation lost by the γ correction cannot be restored by the error diffusion processing. Therefore, since the expression of the halftone image is performed with the reduced number of gradations, the density change necessarily becomes stepwise, and it is difficult to express the smooth halftone image.

【0012】また、γ補正テーブルを格納するメモリお
よびそれに関連する入出力回路が必要であるので、画像
処理部の回路規模が大きく、生産コストが高くつくとい
う問題もあった。そこで、この発明の目的は、上述の技
術的課題を解決し、階調表現を良好に行うことができる
画像処理装置および画像処理方法を提供することであ
る。
Further, since a memory for storing the γ correction table and an input / output circuit related thereto are required, there is a problem that the circuit scale of the image processing unit is large and the production cost is high. Therefore, an object of the present invention is to provide an image processing apparatus and an image processing method capable of solving the above-described technical problem and performing good gradation expression.

【0013】また、この発明の他の目的は、小規模な回
路で階調表現を良好に行うことができる画像処理装置お
よび画像処理方法を提供することである。
It is another object of the present invention to provide an image processing apparatus and an image processing method capable of favorably expressing gradation with a small-scale circuit.

【0014】[0014]

【課題を解決するための手段および発明の効果】上記の
目的を達成するための請求項1記載の発明は、画像を構
成する各画素の多値濃度を誤差拡散処理によって二値化
する画像処理装置であって、画像を構成する各画素を順
次注目画素とし、この注目画素の濃度と周辺の所定の位
置関係の画素における二値化時の発生誤差である二値化
誤差との加算値を二値化基準値に照らして、注目画素を
高濃度画素または低濃度画素に二値化する誤差拡散処理
手段(図4のステップS1,S2,S3)と、注目画素
の二値化時における二値化誤差を、注目画素の濃度値に
応じて補正する二値化誤差補正手段を有する二値化誤差
演算手段(図4のステップS5,S6)とを含むことを
特徴とする画像処理装置である。
According to the first aspect of the present invention, there is provided an image processing apparatus for binarizing a multi-value density of each pixel constituting an image by an error diffusion process. An apparatus, in which each pixel constituting an image is sequentially regarded as a target pixel, and an added value of a density of the target pixel and a binarization error which is an error generated at the time of binarization in surrounding pixels having a predetermined positional relationship is calculated. An error diffusion processing unit (steps S1, S2, and S3 in FIG. 4) for binarizing the target pixel into a high-density pixel or a low-density pixel based on the binarization reference value. An image processing apparatus comprising: a binarization error calculating unit (steps S5 and S6 in FIG. 4) having a binarization error correction unit that corrects the binarization error according to the density value of the pixel of interest. is there.

【0015】上記の構成によれば、注目画素を二値化す
るときの二値化誤差が注目画素の濃度値に応じて補正さ
れるので、誤差拡散処理の際に、濃度調整処理を併せて
行うことができる。たとえば、二値化誤差に対して、ス
キャナの読取特性や画像形成手段の記録特性を補正する
ためのγ補正に相当する補正を施せば、γ補正のための
別の回路を設ける必要がなくなるから、画像処理装置の
構成を簡単にすることができる。すなわち、γ補正テー
ブルを記憶するためのメモリおよびそれに関連する回路
が不要になる。また、γ補正テーブルを用いたγ補正で
は階調数が減少してしまうのに対して、この発明によれ
ば、階調数が減少することがないので、とくに中間調画
像を良好に表現することができる。
According to the above arrangement, the binarization error when the target pixel is binarized is corrected in accordance with the density value of the target pixel. It can be carried out. For example, if a correction corresponding to γ correction for correcting the reading characteristics of the scanner and the recording characteristics of the image forming means is performed on the binarization error, it is not necessary to provide another circuit for γ correction. The configuration of the image processing apparatus can be simplified. That is, a memory for storing the γ correction table and a circuit related thereto are not required. Further, while the number of gradations is reduced in the γ correction using the γ correction table, according to the present invention, since the number of gradations does not decrease, the halftone image is particularly well represented. be able to.

【0016】なお、上記二値化誤差補正手段は、注目画
素の濃度値の増加に対する高濃度画素の出現数の増加の
割合が、低濃度領域においては中濃度領域よりも小さ
く、高濃度領域においては中濃度領域よりも大きくなる
ように、二値化誤差を補正するものであることが好まし
い。これにより、実質的なγ補正を行うことができる。
より具体的には、上記二値化誤差演算手段は、注目画素
の濃度値D、周辺の画素の二値化誤差を加算した累積誤
差値RG、および注目画素の濃度値Dに応じて、高濃度
画素に二値化された画素については、 HG=D+RG−GSLVB ただし、GSLVB=UL+(UL−D)×HENB、
ULは、濃度値Dの上限値、HENBは、定数である。
により、二値化誤差HGを求め、低濃度画素に二値化さ
れた画素については、 HG=D+RG−GSLVW ただし、GSLVW=(D−LL)/HENW、LL
は、濃度値Dの下限値、HENWは、定数である。によ
り、二値化誤差を求めるものであってもよい。
The above-mentioned binarization error correcting means is characterized in that the ratio of the increase in the number of appearances of the high-density pixels to the increase in the density value of the target pixel is smaller in the low-density region than in the medium-density region. Preferably corrects the binarization error so as to be larger than the medium density region. Thereby, substantial gamma correction can be performed.
More specifically, the binarization error calculation means calculates a high value in accordance with the density value D of the target pixel, the cumulative error value RG obtained by adding the binarization errors of peripheral pixels, and the density value D of the target pixel. For a pixel binarized into a density pixel, HG = D + RG−GSLVB, where GSLVB = UL + (UL−D) × HENB,
UL is the upper limit of the density value D, and HENB is a constant.
HG = D + RG−GSLVW where GSLVW = (D−LL) / HENW, LL
Is the lower limit of the density value D, and HENW is a constant. Thus, a binarization error may be obtained.

【0017】請求項2記載の発明は、画像を構成する各
画素の多値濃度を誤差拡散処理によって二値化する画像
処理方法であって、画像を構成する各画素を順次注目画
素とし、この注目画素の濃度と周辺の所定の位置関係の
画素における二値化時の発生誤差である二値化誤差との
加算値を二値化基準値に照らして、注目画素を高濃度画
素または低濃度画素に二値化するステップと、注目画素
の二値化時における二値化誤差を、注目画素の濃度値に
応じた補正を加えて演算するステップとを含むことを特
徴とする画像処理方法である。
According to a second aspect of the present invention, there is provided an image processing method for binarizing a multi-value density of each pixel constituting an image by an error diffusion process, wherein each pixel constituting the image is sequentially set as a target pixel. The sum of the density of the target pixel and a binarization error, which is an error generated when binarizing pixels in a predetermined positional relationship around the target pixel, is illuminated with a binarization reference value, and the target pixel is set to a high density pixel or a low density An image processing method comprising: a step of binarizing a pixel; and a step of calculating a binarization error at the time of binarization of the target pixel by adding a correction corresponding to a density value of the target pixel. is there.

【0018】これにより、請求項1の発明と同様な効果
を奏することができる。
Thus, the same effect as the first aspect of the invention can be obtained.

【0019】[0019]

【発明の実施の形態】以下では、この発明の実施の形態
を、添付図面を参照して詳細に説明する。図1は、この
発明の一実施形態が適用されたディジタル複写機の画像
処理に関連する部分の電気的構成を示すブロック図であ
る。ディジタル複写機にセットされた原稿は、スキャナ
1で読み取られる。スキャナ1には、CCDイメージセ
ンサやCISイメージセンサ等の画像読取のためのイメ
ージセンサが含まれている。イメージセンサは、2次元
データを読み取るエリアセンサであってもよく、ライン
データを読み取るニリアイメージセンサであってもよ
い。通常は、装置を廉価に構成するために、ラインイメ
ージセンサが使用される。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. FIG. 1 is a block diagram showing an electrical configuration of a portion related to image processing of a digital copying machine to which an embodiment of the present invention is applied. The document set on the digital copying machine is read by the scanner 1. The scanner 1 includes an image sensor for reading an image, such as a CCD image sensor or a CIS image sensor. The image sensor may be an area sensor that reads two-dimensional data, or a niria image sensor that reads line data. Usually, a line image sensor is used to make the device inexpensive.

【0020】スキャナ1で読み取られた原稿のイメージ
データは、入力インタフェース部2へ与えられ、このイ
ンタフェース部2で信号のサンプルホールド処理等が行
われる。入力インタフェース部2は、この実施形態にお
いては、アナログ回路で構成されており、上記処理はア
ナログ的に行われる。入力インタフェース部2で処理さ
れたイメージデータは、ディジタルAGC回路3へ与え
られて、信号(イメージデータ)のレベルを所望の範囲
に納めるためのゲインコントロールが行われ、かつ、ア
ナログ信号からディジタル信号への変換が行われる。
The image data of the document read by the scanner 1 is supplied to an input interface unit 2, where the signal sample and hold processing is performed. In this embodiment, the input interface unit 2 is configured by an analog circuit, and the above processing is performed in an analog manner. The image data processed by the input interface unit 2 is applied to a digital AGC circuit 3, where a gain control for keeping the level of a signal (image data) within a desired range is performed, and an analog signal is converted to a digital signal. Is performed.

【0021】次いで、ゲインコントロールされたイメー
ジデータは、シェーディング補正回路4へ与えられ、シ
ェーディング歪みが軽減または除去される。シェーディ
ング歪みとは、スキャナ1で原稿を読み取る際の読み取
り用光源の照明むらやその他の原因による画素間濃度む
らをいう。シェーディング歪みが軽減または除去された
イメージデータは、次に、領域分離回路5へ与えられ
る。領域分離回路5では、入力されるイメージデータが
文字を読み取ったイメージデータ(文字データ)である
か、写真を読み取ったイメージデータ(写真データ)で
あるか、または、印刷写真、たとえば新聞紙や雑誌等の
写真画像を読み取った網点のイメージデータ(網点デー
タ)であるのかの判別か行われる。
Next, the gain-controlled image data is applied to a shading correction circuit 4 to reduce or eliminate shading distortion. The shading distortion refers to unevenness in illumination of a reading light source when reading an original by the scanner 1 or unevenness in density between pixels due to other causes. The image data from which the shading distortion has been reduced or removed is next provided to the area separating circuit 5. In the region separating circuit 5, the input image data is image data (character data) obtained by reading characters, image data (photo data) obtained by reading a photograph, or a printed photograph, such as newspaper or magazine. It is determined whether the image data is image data (halftone data) of halftone dots obtained by reading the photographic image.

【0022】もし、入力されるイメージデータに、文字
データ、写真データおよび網点データが混在されている
場合には、各データの領域分離が行われる。領域分離回
路5の出力側には、領域分離されたデータの種類別に異
なる処理を施すフィルタ部6が接続されている。フィル
タ部6は、微分フィルタ6A、積分フィルタ6B、積分
微分フィルタ6Cおよびデータスルーフィルタ6Dを備
えている。そして、フィルタ部6は、領域分離回路5か
ら各画素がいずれの領域のデータであるかを表す領域分
離信号を受けて、各画素に対して適切なフィルタによる
処理を施す。すなわち、文字データは、微分フィルタ6
Aに与えられ、輪郭を鮮明にするための処理が施され
る。網点データは、積分フィルタ6Bに与えられ、デー
タの平滑化がされる。また、各領域の境界画素は、積分
微分フィルタ6Cに与えられ、異なる画素情報の急激な
濃度変化を緩和するための処理が施される(この場合、
データスルーフィルタ6Dが選択されてもよい。)。さ
らに、文字データおよび網点データ以外のデータ、すな
わち、写真データは、データスルーフィルタ6Dに与え
られ、そのまま、次の回路に送られる。領域分離信号に
対応するフィルタの決定は、レジスタで選択可能であ
る。
If character data, photograph data and halftone data are mixed in the input image data, area separation of each data is performed. On the output side of the region separation circuit 5, a filter unit 6 that performs different processing for each type of region-separated data is connected. The filter unit 6 includes a differentiation filter 6A, an integration filter 6B, an integration differentiation filter 6C, and a data through filter 6D. Then, the filter unit 6 receives, from the region separation circuit 5, a region separation signal indicating which region each pixel belongs to, and performs an appropriate filter process on each pixel. That is, the character data is stored in the differential filter 6.
A, and a process for sharpening the outline is performed. The halftone data is supplied to the integration filter 6B, and the data is smoothed. Also, the boundary pixels of each region are given to the integral / differential filter 6C, and are subjected to a process for alleviating a sudden change in density of different pixel information (in this case,
Data through filter 6D may be selected. ). Further, data other than the character data and the halftone dot data, that is, the photographic data, is given to the data through filter 6D and sent to the next circuit as it is. The determination of the filter corresponding to the region separation signal can be selected by a register.

【0023】フィルタ部6からのデータは、ズーム・ス
ムージング回路9へ与えられる。ズーム・スムージング
回路9では、画像を拡大または縮小する場合に、その拡
大または縮小処理およびそれに伴う画像の歪みを補正す
る処理が行われる。もし、画像を拡大または縮小しない
場合には、ズーム・スムージング回路9は、イメージデ
ータに何らの処理も施さない。
The data from the filter section 6 is applied to a zoom / smoothing circuit 9. In the case of enlarging or reducing an image, the zoom / smoothing circuit 9 performs an enlarging or reducing process and a process of correcting image distortion accompanying the enlarging or reducing process. If the image is not enlarged or reduced, the zoom / smoothing circuit 9 does not perform any processing on the image data.

【0024】ズーム・スムージング回路9までの処理を
経たイメージデータは、その後、種類に応じて次のいず
れかの回路での処理が施され、多値データ(たとえば、
8ビット(0〜255))から二値データ(0または
1)への変換が行われる。すなわち、イメージデータが
写真データまたは網点データであって、中間調処理を施
すべきものである場合には、誤差拡散回路11へ与えら
れて良好な中間調表現のための処理が施されたうえで、
二値化される。この実施形態は、この誤差拡散回路11
の構成および処理に特徴がある。
The image data that has undergone the processing up to the zoom / smoothing circuit 9 is then subjected to processing in one of the following circuits depending on the type, and multi-valued data (for example,
Conversion from 8 bits (0 to 255)) to binary data (0 or 1) is performed. In other words, if the image data is photographic data or halftone data and should be subjected to halftone processing, it is provided to the error diffusion circuit 11 and subjected to processing for good halftone expression. so,
It is binarized. In this embodiment, the error diffusion circuit 11
Is characterized by its configuration and processing.

【0025】他方、イメージデータが文字データであ
り、単純二値化処理を施すべきデータの場合には、二値
化回路12へ与えられる。二値化回路12は、二値化の
ためのスライスレベルを調整して、背景と文字や線画等
とを区別する。このとき、濃度が適正になるよう、自動
濃度調整処理も行われる。そして二値化回路12の出力
は、孤立点除去回路13へ与えられて、ノイズ等のため
に現れた孤立した黒点や白点等の除去がなされる。
On the other hand, if the image data is character data and data to be subjected to simple binarization processing, it is supplied to the binarization circuit 12. The binarization circuit 12 adjusts a slice level for binarization to distinguish a background from characters, line drawings, and the like. At this time, an automatic density adjustment process is also performed so that the density becomes appropriate. The output of the binarizing circuit 12 is supplied to an isolated point removing circuit 13 to remove isolated black points and white points that appear due to noise or the like.

【0026】以上の処理により生成された二値化データ
は、出力回路14へ与えられ、図示しない印刷回路へ出
力される。この実施形態の装置では、スキャナの読み取
り特性や、印刷回路からの信号を受けて電子写真プロセ
スにより画像を形成する画像形成部における現像特性を
補正するためのγ補正は、誤差拡散回路11による誤差
拡散処理の際に併せて行われるようになっている。
The binarized data generated by the above processing is applied to an output circuit 14 and output to a printing circuit (not shown). In the apparatus of this embodiment, the gamma correction for correcting the reading characteristics of the scanner and the development characteristics in the image forming unit that forms an image by an electrophotographic process in response to a signal from the printing circuit is performed by the error diffusion circuit 11. This is performed together with the diffusion process.

【0027】図2は、誤差拡散回路11での処理を説明
するための図である。誤差拡散処理は、或る画素P0を
二値化したときに、この画素P0の多値濃度データと二
値化結果(白または黒)とに基づいて、後述する方法に
より二値化誤差を求め、この二値化誤差を画素P0の周
辺の画素に所定の分配比率で分配する処理である。この
実施形態では、画素P0で発生した二値化誤差は、画素
P0に対してスキャナ1による画像読取時の主走査方向
RMおよび副走査方向RSの各下流側にそれぞれ隣接す
る画素P1,P5に対して誤差拡散係数1/4を乗じて
分配される。また、画素P1に対して主走査方向RMの
下流側に隣接する画素P2と、画素P5に対して主走査
方向RMの上流側の2つの画素P3,P4と、画素P5
に対して主走査方向RMの下流側に隣接する画素P6と
に、誤差拡散係数1/8を乗じて分配される。
FIG. 2 is a diagram for explaining the processing in the error diffusion circuit 11. In the error diffusion processing, when a certain pixel P0 is binarized, a binarization error is obtained by a method described later based on the multi-value density data of the pixel P0 and the binarization result (white or black). This is a process of distributing the binarization error to pixels around the pixel P0 at a predetermined distribution ratio. In this embodiment, the binarization error generated at the pixel P0 is caused by the pixels P1 and P5 adjacent to the pixel P0 on the downstream side in the main scanning direction RM and the sub-scanning direction RS when the image is read by the scanner 1, respectively. On the other hand, it is distributed by multiplying the error diffusion coefficient by 1/4. Further, a pixel P2 adjacent to the pixel P1 on the downstream side in the main scanning direction RM, a pixel P5, two pixels P3 and P4 on the upstream side in the main scanning direction RM, and a pixel P5
Is distributed to the pixel P6 adjacent on the downstream side in the main scanning direction RM by multiplying the error diffusion coefficient by 1/8.

【0028】誤差拡散回路11は、画像を構成する各画
素を順次注目画素として処理していく。注目画素に対す
る誤差拡散処理では、周辺の画素から分配される誤差を
注目画素の濃度データに加算し、この加算結果に対して
二値化処理が施されることになる。この処理を図3を参
照して説明する。注目画素Aを中心に考えると、この注
目画素Aには、前ラインL1の画素G,E,Dでの二値
化誤差HG(G),HG(E),HG(D)が、誤差拡
散係数1/8を乗じて分配される。または、画素Fでの
二値化誤差HG(F)は、誤差拡散係数1/4を乗じて
分配される。注目画素Aを含む現ラインL2について
は、その主走査方向RMの上流側に隣接する画素Bでの
二値化誤差HG(B)が誤差拡散係数1/4を乗じて分
配され、さらに画素Bに対して主走査方向RMの上流側
に位置する画素Cでの二値化誤差HG(C)が誤差拡散
係数1/8を乗じて分配される。
The error diffusion circuit 11 sequentially processes each pixel constituting the image as a target pixel. In the error diffusion process for the pixel of interest, an error distributed from surrounding pixels is added to the density data of the pixel of interest, and the result of this addition is subjected to a binarization process. This processing will be described with reference to FIG. When the pixel of interest A is considered as the center, the binarization errors HG (G), HG (E), and HG (D) at the pixels G, E, and D of the previous line L1 are distributed to the pixel of interest A. The distribution is multiplied by a factor of 1/8. Alternatively, the binarization error HG (F) at the pixel F is distributed by multiplying the error diffusion coefficient by 1/4. With respect to the current line L2 including the pixel of interest A, the binarization error HG (B) at the pixel B adjacent on the upstream side in the main scanning direction RM is distributed by multiplying the error diffusion coefficient by 1/4. , The binarization error HG (C) at the pixel C located on the upstream side in the main scanning direction RM is distributed by multiplying the error diffusion coefficient by 1/8.

【0029】注目画素Aに対する二値化処理では、ま
ず、この注目画素Aに分配される誤差を加算した累積誤
差値RG(A)が下記第(5) 式に従って演算される。
In the binarization processing for the target pixel A, first, a cumulative error value RG (A) obtained by adding the errors distributed to the target pixel A is calculated according to the following equation (5).

【0030】[0030]

【数1】 そして、注目画素Aに関してズーム・スムージング回路
9から与えられた多値濃度データD(A)と累積誤差値
RG(A)とを加算した下記第(6) 式に示す二値化処理
対象値T(A)と、所定の二値化しきい値THとを比較
して、注目画素Aに関する二値化が行われる。
(Equation 1) Then, the binarization processing target value T shown in the following equation (6), which is obtained by adding the multi-value density data D (A) given from the zoom / smoothing circuit 9 and the cumulative error value RG (A) for the target pixel A, By comparing (A) with a predetermined binarization threshold TH, binarization for the target pixel A is performed.

【0031】 T(A)=D(A)+RG(A) ・・・・・・ (6) 図4は、誤差拡散回路11による処理内容を説明するた
めのフローチャートである。まず、ズーム・スムージン
グ回路9から入力される濃度データDと累積誤差値RG
とが加算され、二値化処理対象値Tが演算される(ステ
ップS1)。この二値化対象値Tと二値化しきい値「1
28」とが比較され(ステップS2)、二値化処理対象
値Tが二値化しきい値「128」以上のときには、注目
画素が黒画素に二値化され(ステップS3)、二値化処
理対象値Tが二値化しきい値「128」未満のときに
は、注目画素が白画素に二値化される(ステップS
4)。
T (A) = D (A) + RG (A) (6) FIG. 4 is a flowchart for explaining the processing performed by the error diffusion circuit 11. First, the density data D input from the zoom / smoothing circuit 9 and the accumulated error value RG
Are added, and the binarization processing target value T is calculated (step S1). The binarization target value T and the binarization threshold “1”
28 (step S2), and when the binarization target value T is greater than or equal to the binarization threshold "128", the pixel of interest is binarized to a black pixel (step S3), and the binarization process is performed. When the target value T is less than the binarization threshold “128”, the target pixel is binarized to a white pixel (Step S)
4).

【0032】注目画素が黒画素に二値化されるときに
は、さらに、下記第(7) 式によって、注目画素における
二値化誤差HGが求められる。また、注目画素が白画素
に二値化されるときには、下記第(9) 式によって、注目
画素における二値化誤差HGが求められる。 HG=D+RG−GSLVB ・・・・・・ (7) ただし、 GSLVB=255+(255−D)×HENB ・・・・・・ (8) HENBは、定数であり、たとえば、「1」とされる。
When the target pixel is binarized to a black pixel, the binarization error HG of the target pixel is further obtained by the following equation (7). When the pixel of interest is binarized to a white pixel, the binarization error HG of the pixel of interest is determined by the following equation (9). HG = D + RG-GSLVB (7) GSLVB = 255 + (255-D) × HENB (8) HENB is a constant, for example, “1”. .

【0033】 HG=D+RG−GSLVW ・・・・・・ (9) ただし、GSLVW=D/HENW ・・・・・・ (10) HENWは、定数であり、たとえば「2」とされる。上
記第(8) 式および第(10)式のGSLVBおよびGSLV
Wは、二値化誤差の算出の際の基準値であり、濃度デー
タDに応じて変化する変数である。したがって、二値化
誤差HGは、濃度データDの値に応じて、補正されるこ
とになる。
HG = D + RG−GSLVW (9) where GSLVW = D / HENW (10) HENW is a constant, for example, “2”. GSLVB and GSLV of the above equations (8) and (10)
W is a reference value when calculating the binarization error, and is a variable that changes according to the density data D. Therefore, the binarization error HG is corrected according to the value of the density data D.

【0034】さらに具体的に説明すると、注目画素が黒
画素に二値化されるときの二値化誤差HGは負の値をと
る。一方、注目画素が黒画素に二値化されるときの基準
値GSLVBは、濃度データDが「128」(黒画素と
判定される最小濃度データ)のときに最大値をとり、濃
度データDが大きくなるほど小さな値となる。よって、
濃度データDが大きくなるに従い、基準値GSLVBが
一定値(たとえば「255」)の場合よりも、二値化誤
差HGの絶対値は速やかに小さくなる。そのため、注目
画素の濃度データDが大きくなるに従い、注目画素の周
辺の画素における黒画素の出現数が急増する。
More specifically, the binarization error HG when the target pixel is binarized to a black pixel takes a negative value. On the other hand, the reference value GSLVB when the target pixel is binarized into a black pixel takes the maximum value when the density data D is “128” (minimum density data determined as a black pixel), and the density data D is The larger the value, the smaller the value. Therefore,
As the density data D increases, the absolute value of the binarization error HG decreases more quickly than when the reference value GSLVB is a constant value (for example, “255”). Therefore, as the density data D of the target pixel increases, the number of black pixels appearing in pixels around the target pixel sharply increases.

【0035】また、注目画素が白画素に二値化されると
きの二値化誤差HGは正の値をとる。そして、注目画素
が白画素に二値化されるときの基準値GSLVWは、濃
度データDが127のときに最大の値をとり、濃度デー
タDが小さくなるほど小さな値をとる。しかし、第(10)
式に従って濃度データDに応じて定められる基準値GS
LVWのために、二値化誤差HGは、濃度データDが小
さくなるに従い、基準値GSLVWを一定値(たとえば
「0」)とする場合よりも、緩慢に減少する。そのた
め、注目画素の濃度データDが小さくなるに従い、注目
画素の周辺の画素における黒画素の出現数は緩慢に減少
する。
The binarization error HG when the target pixel is binarized to a white pixel takes a positive value. The reference value GSLVW when the target pixel is binarized to a white pixel takes the maximum value when the density data D is 127, and takes a smaller value as the density data D becomes smaller. But the (10)
Reference value GS determined according to density data D according to the equation
Due to the LVW, the binarization error HG decreases more slowly as the density data D becomes smaller than when the reference value GSLVW is set to a constant value (for example, “0”). Therefore, as the density data D of the target pixel becomes smaller, the number of appearances of black pixels in pixels around the target pixel gradually decreases.

【0036】図5は、上述の誤差拡散処理を一様濃度の
領域の原稿画像に適用した場合における原稿画像濃度と
単位面積あたりの黒画素数(出力画像の濃度に対応)と
の関係を図解的に示すグラフである。直線C0は、基準
値GSLVBを「255」に固定し、基準値GSLVW
を「0」に固定した場合に相当する。また、曲線C1,
C2,C3は、それぞれ、定数HENBおよびHENW
を次のように設定した場合に相当している。
FIG. 5 illustrates the relationship between the original image density and the number of black pixels per unit area (corresponding to the density of the output image) when the above-described error diffusion processing is applied to an original image in a region of uniform density. It is a graph shown typically. The straight line C0 fixes the reference value GSLVB to “255” and sets the reference value GSLVW
Is fixed to “0”. Also, the curves C1,
C2 and C3 are constants HENB and HENW, respectively.
Is set as follows.

【0037】 C1: HENB=1, HENW=2 C2: HENB=2, HENW=3 C3: HENB=3, HENW=4 黒画素数の原稿画像濃度に対する変化の割合は、高濃度
領域において大きく、低濃度領域において小さく、中間
濃度領域においては、その間の値をとる。そして、ニリ
アな特性を表す直線C0とのその他の曲線C1〜C3と
の比較により、とくに中間濃度領域においては、黒画素
の出現が抑制されていることが理解される。こうして、
曲線的な入出力特性を実現でき、スキャナ1における読
み取り特性および画像形成部における現像特性の補正、
すなわちγ補正が実現される。この際、γ補正テーブル
を用いる従来技術とは異なり、階調数が減少することが
ないので、中間調画像の濃度変化をなめらかに表現する
ことができる。
C1: HENB = 1, HENW = 2 C2: HENB = 2, HENW = 3 C3: HENB = 3, HENW = 4 The ratio of the change in the number of black pixels to the original image density is large in the high density region and low in the high density region. It is small in the density region and takes a value in the middle density region. By comparing the straight line C0 representing the nilia characteristic with the other curves C1 to C3, it is understood that the appearance of black pixels is suppressed particularly in the intermediate density region. Thus,
Curve input / output characteristics can be realized, and correction of reading characteristics in the scanner 1 and development characteristics in the image forming unit;
That is, γ correction is realized. At this time, unlike the related art using the γ correction table, the number of gradations does not decrease, so that the density change of the halftone image can be expressed smoothly.

【0038】以上のようにこの実施形態によれば、γ補
正テーブルを用いることなく、誤差拡散処理を改良する
ことによって、γ補正を実質的に実現している。そのた
め、階調数が減少することがないので、とくに中間調画
像の表現を良好に行うことができる。しかも、γ補正テ
ーブルを記憶するためのメモリおよびこのメモリに関連
する入出力回路が不要になるので、画像処理のための回
路構成を簡素化することができ、これにより、コストダ
ウンを図ることができる。
As described above, according to this embodiment, γ correction is substantially realized by improving the error diffusion processing without using a γ correction table. Therefore, since the number of gradations does not decrease, it is possible to express a halftone image particularly well. In addition, since a memory for storing the γ correction table and an input / output circuit related to the memory are not required, a circuit configuration for image processing can be simplified, thereby reducing costs. it can.

【0039】この発明の1つの実施形態について説明し
たが、この発明は、他の形態でも実施することができ
る。たとえば、上記の実施形態では、ディジタル複写機
を例にとったが、この発明は、イメージスキャナやファ
クシミリ装置のように、光学的に画像を読み取って得ら
れた画像データを処理する装置に対して広く適用するこ
とができる。
Although one embodiment of the present invention has been described, the present invention can be implemented in other embodiments. For example, in the above embodiment, a digital copier is taken as an example. However, the present invention relates to an apparatus for processing image data obtained by optically reading an image, such as an image scanner or a facsimile apparatus. Can be widely applied.

【0040】その他、特許請求の範囲に記載された技術
的事項の範囲で種々の設計変更を施すことが可能であ
る。
In addition, various design changes can be made within the scope of the technical matters described in the claims.

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

【図1】この発明の一実施形態が適用されたディジタル
複写機の画像処理に関連する電気的構成を示すブロック
図である。
FIG. 1 is a block diagram showing an electrical configuration related to image processing of a digital copying machine to which an embodiment of the present invention is applied.

【図2】誤差拡散処理を説明するための図である。FIG. 2 is a diagram for explaining an error diffusion process.

【図3】誤差拡散処理を説明するための図である。FIG. 3 is a diagram for explaining an error diffusion process.

【図4】誤差拡散回路による処理を説明するためのフロ
ーチャートである。
FIG. 4 is a flowchart illustrating a process performed by an error diffusion circuit.

【図5】原稿画像濃度と黒画素数との関係を示す図解的
なグラフである。
FIG. 5 is an illustrative graph showing a relationship between a document image density and the number of black pixels.

【図6】従来のγ補正処理を説明するための図である。FIG. 6 is a diagram for explaining a conventional γ correction process.

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

1 スキャナ 11 誤差拡散回路 1 scanner 11 error diffusion circuit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】画像を構成する各画素の多値濃度を誤差拡
散処理によって二値化する画像処理装置であって、 画像を構成する各画素を順次注目画素とし、この注目画
素の濃度と周辺の所定の位置関係の画素における二値化
時の発生誤差である二値化誤差との加算値を二値化基準
値に照らして、注目画素を高濃度画素または低濃度画素
に二値化する誤差拡散処理手段と、 注目画素の二値化時における二値化誤差を、注目画素の
濃度値に応じて補正する二値化誤差補正手段を有する二
値化誤差演算手段とを含むことを特徴とする画像処理装
置。
An image processing apparatus for binarizing a multi-value density of each pixel constituting an image by an error diffusion process, wherein each pixel constituting an image is sequentially set as a pixel of interest, and the density of the pixel of interest and its surroundings are determined. The target pixel is binarized to a high-density pixel or a low-density pixel by illuminating an addition value with a binarization error, which is an error generated at the time of binarization, in a pixel having a predetermined positional relationship with a binarization reference value. Error diffusion processing means; and a binarization error calculation means having a binarization error correction means for correcting a binarization error at the time of binarization of the pixel of interest in accordance with the density value of the pixel of interest. Image processing apparatus.
【請求項2】画像を構成する各画素の多値濃度を誤差拡
散処理によって二値化する画像処理方法であって、 画像を構成する各画素を順次注目画素とし、この注目画
素の濃度と周辺の所定の位置関係の画素における二値化
時の発生誤差である二値化誤差との加算値を二値化基準
値に照らして、注目画素を高濃度画素または低濃度画素
に二値化するステップと、 注目画素の二値化時における二値化誤差を、注目画素の
濃度値に応じた補正を加えて演算するステップとを含む
ことを特徴とする画像処理方法。
2. An image processing method for binarizing a multi-value density of each pixel constituting an image by an error diffusion process, wherein each pixel constituting an image is sequentially set as a pixel of interest, and the density of the pixel of interest and its surroundings are determined. The target pixel is binarized to a high-density pixel or a low-density pixel by illuminating an addition value with a binarization error, which is an error generated at the time of binarization, in a pixel having a predetermined positional relationship with a binarization reference value. An image processing method, comprising: calculating a binarization error when binarizing a target pixel by adding a correction according to a density value of the target pixel.
JP10005083A 1998-01-13 1998-01-13 Image processor and image processing method Pending JPH11205599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10005083A JPH11205599A (en) 1998-01-13 1998-01-13 Image processor and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10005083A JPH11205599A (en) 1998-01-13 1998-01-13 Image processor and image processing method

Publications (1)

Publication Number Publication Date
JPH11205599A true JPH11205599A (en) 1999-07-30

Family

ID=11601504

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10005083A Pending JPH11205599A (en) 1998-01-13 1998-01-13 Image processor and image processing method

Country Status (1)

Country Link
JP (1) JPH11205599A (en)

Similar Documents

Publication Publication Date Title
US7251060B2 (en) Image-processing device using quantization threshold values produced according to a dither threshold matrix and arranging dot-on pixels in a plural-pixel field according to the dither threshold matrix
JP2002247371A (en) Image processor and recording medium having recorded image processing program
US5805723A (en) Image processing apparatus with means for adjusting image data for divided areas
JP3480924B2 (en) Image forming method, image forming apparatus, and recording medium
US5519509A (en) Image processing method utilizing error diffusion technique
JP2002101298A (en) Region separator and image processor comprising it and region separating method
JP4408771B2 (en) Image reading device
JPH06290300A (en) Image area identifying device
JPH11205599A (en) Image processor and image processing method
JP3948599B2 (en) Image processing device
JPH09212642A (en) Image processor
JP2861410B2 (en) Image processing device
JPH11275358A (en) Device and method for processing picture
JP3974236B2 (en) Image processing apparatus and method
JP3589847B2 (en) Shading correction device and shading correction method
JP2006270656A (en) Apparatus and method for image processing
JP3780664B2 (en) Image processing apparatus and image processing method
JPH11205600A (en) Image processor and image processing method
JP2001285631A (en) Area discrimination method and device
JP3725255B2 (en) Digital image processing device
JP2005229646A (en) Image processing apparatus
JP2507927B2 (en) Image processing device
JP2003234902A (en) Image processing apparatus
JP3589966B2 (en) Image processing apparatus and image processing method
JP3124168B2 (en) Shading correction device