JPH03184472A - Picture information binarizing device - Google Patents

Picture information binarizing device

Info

Publication number
JPH03184472A
JPH03184472A JP1323497A JP32349789A JPH03184472A JP H03184472 A JPH03184472 A JP H03184472A JP 1323497 A JP1323497 A JP 1323497A JP 32349789 A JP32349789 A JP 32349789A JP H03184472 A JPH03184472 A JP H03184472A
Authority
JP
Japan
Prior art keywords
pixel
error
forecasting
interest
value
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
JP1323497A
Other languages
Japanese (ja)
Inventor
Motoharu Mizutani
元春 水谷
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1323497A priority Critical patent/JPH03184472A/en
Publication of JPH03184472A publication Critical patent/JPH03184472A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To prevent a picture from being degraded and to binarize an attention picture element without fail by calculating error between a forecasted level and the real level of the attention picture element by a forecasting error calculating means and determining a threshold value for binarizing the attention picture element by a threshold value determining means based on this calculated forecasting error. CONSTITUTION:Picture information positioned around the attention picture element read from a memory 12 are supplied to a forecasting value calculation part 14 and at this forecasting value calculation part 14, a forecasting value x' of an attention picture element (x) is calculated. This forecasting value x' is supplied to an error calculation part 15 together with the attention picture element (x) read from the memory 12. At this error calculation part 15, the forecasting error is calculated and this calculated forecasting error is supplied to a threshold value decision part 16. At this threshold value decision part 16, a dither method is selected when the supplied forecasting error is within an allowable value set in advance, and a simple binarizing method is selected when the forecasting error is more than the allowable value set in advance. Then, the threshold value is supplied to a binarizing circuit 17 corresponding to these selected binarizing methods.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、例えばスキャナ装置によって読取った画像
情報を2値画像に変換する弯換装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a conversion device that converts image information read by, for example, a scanner device into a binary image.

(従来の技術) 例えばスキャナ装置で読取った画像情報を2値化するに
は、固定された閾値によって2値化する単純2値化法と
、閾値を意識的に変化させるデイザ法等がある。単純2
値化法は、中間調を含まない活字のような画像情報を2
値化する場合に適し、デイザ法は、写真の画像のように
中間調を含む画像情報を2値化する場合に適している。
(Prior Art) For example, to binarize image information read by a scanner device, there are a simple binarization method in which the image information is binarized using a fixed threshold value, a dither method in which the threshold value is intentionally changed, and the like. simple 2
The value conversion method converts image information such as print that does not include halftones into 2
The dither method is suitable for converting image information including halftones, such as a photographic image, into binarization.

したがって、中間調を含む画像情報を単純2値化法で2
値化した場合や、中間調を含まない画像情報をデイザ法
等で2値化した場合は、画質が劣化するものであり、画
像情報の特性に応じた2値化法を採用することが必要で
ある。
Therefore, image information including halftones can be digitized using the simple binarization method.
When converting into a value, or when image information that does not include halftones is converted into a binary image using a dither method, etc., the image quality deteriorates, and it is necessary to adopt a binary conversion method that is appropriate for the characteristics of the image information. It is.

従来、スキャナ装置で読取った画像情報が中間調を含む
画像であるか、含まない画像であるかは、例えば空間フ
ィルタリングによって判断していた。
Conventionally, whether image information read by a scanner device is an image containing halftones or not is determined by, for example, spatial filtering.

しかし、空間フィルタリングを行った場合、画像の情報
量が減少するため、特に、中間調を含む画像の場合、画
像が全体的にぼけてしまい、画質が劣化するという問題
を有していた。
However, when spatial filtering is performed, the amount of information in the image decreases, so particularly in the case of an image including halftones, the image becomes blurred as a whole, resulting in a problem that the image quality deteriorates.

(発明が解決しようとする課題) この発明は、空間フィルタリングを使用した画像領域の
判別に係わる課題を解決するものであり、その目的とす
るところは、画質の劣化を防止して、中間調を含む画像
および含まない画像を2値化することが可能な画像情報
2値化装置を提供しようとするものである。
(Problems to be Solved by the Invention) This invention solves the problems related to image region discrimination using spatial filtering, and its purpose is to prevent deterioration of image quality and improve halftones. It is an object of the present invention to provide an image information binarization device capable of binarizing images that include images and images that do not include images.

[発明の構成] (課題を解決するための手段) この発明は、上記課題を解決するため、多値で量子化さ
れた画像情報のうち、注目画素のレベルをその画素の周
囲の画素のレベルから予測する予測手段と、この予測手
段によって予測されたレベルと注目画素が有するレベル
の差より、予測誤差を求める予測誤差算出手段と、この
求めた予測誤差に従って、注目画素を2値化するための
閾値を決定する閾値決定手段とを設けている。
[Structure of the Invention] (Means for Solving the Problems) In order to solve the above problems, the present invention converts the level of a pixel of interest out of multivalued quantized image information into the level of pixels surrounding the pixel. a prediction means for predicting from the pixel of interest; a prediction error calculation means for calculating a prediction error from the difference between the level predicted by the prediction means and the level of the pixel of interest; and a means for binarizing the pixel of interest according to the obtained prediction error. and a threshold value determining means for determining the threshold value of the threshold value.

(作 用) すなわち、この発明は、予測手段によって多値で量子化
された画像情報の注目画素のレベルをその周囲の画素の
レベルから予測し、この予測したレベルと注目画素の実
際のレベルとの誤差を予測誤差算出手段によって求め、
この求めた予測誤差に基づいて、閾値決定手段により注
目画素を2値化するための閾値を決定することにより、
画質の劣化を防止して、注目画素を適確に2値化可能と
している。
(Function) That is, the present invention predicts the level of a pixel of interest in multivalued quantized image information by a prediction means from the levels of surrounding pixels, and compares this predicted level with the actual level of the pixel of interest. Calculate the error by using a prediction error calculation means,
Based on the obtained prediction error, the threshold value determining means determines a threshold value for binarizing the pixel of interest.
This prevents deterioration of image quality and enables accurate binarization of the pixel of interest.

(実施例) 以下、この発明の一実施例について図面を参照して説明
する。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

先ず、第2図乃至第4図を用いて、この発明の原理につ
いて説明する。
First, the principle of this invention will be explained using FIGS. 2 to 4.

多値で量子化された画像情報の一部が、第2図に示すご
と(、a−hおよびXであり、処理対象としての注目画
素が、これらの中心のXである場合、先ず、この注目画
素Xの周囲の画素a −hのレベルを用いて、注目画素
Xのレベルが予測される。この予測値X°は x ’ m (B+l)+c+d+6+r+g+h)7
g     −・−rt)で示すごとく、注目画素Xの
周囲の画素のレベルa −hの平均値から求められる。
If a part of multivalued quantized image information is as shown in Figure 2 (, ah, and X, and the pixel of interest as the processing target is the center The level of the pixel of interest X is predicted using the levels of pixels a - h surrounding the pixel of interest X. This predicted value X° is x' m (B+l)+c+d+6+r+g+h)7
It is determined from the average value of the levels a - h of the pixels around the pixel of interest X, as shown by g -.-rt).

次に、この求めた予測値X゛と注目画素Xの実際のレベ
ルの誤差から予11PI誤差xdが次式のようにして求
められる。
Next, a pre-11PI error xd is calculated from the error between the calculated predicted value X' and the actual level of the pixel of interest X as shown in the following equation.

xd −1x−x’  l         −(2)
この予測誤差xdが小さい場合は、注目画素Xのレベル
と周囲の画素のレベルに大差がないため、例えば背景と
判別し、この注目画素Xをデイザ法によって2値化する
。また、予測誤差が大きい場合は、注目画素Xのレベル
と周囲の画素のレベル差が大きいため、例えば細線と判
別し、この注目画素Xをデイザ法によって2値化する。
xd −1x−x′ l −(2)
If this prediction error xd is small, there is not much difference between the level of the pixel of interest X and the level of surrounding pixels, so the pixel of interest X is determined to be the background, for example, and the pixel of interest X is binarized by the dither method. If the prediction error is large, the difference between the level of the pixel of interest X and the surrounding pixels is large, so the pixel of interest X is determined to be a thin line, for example, and the pixel of interest X is binarized by the dither method.

第3図、第4図は上記原理を具体的に示すものであり、
それぞれ各画素が16階調で量子化されている場合を示
すものである。
Figures 3 and 4 specifically illustrate the above principle.
This shows the case where each pixel is quantized with 16 gradations.

第3図は、注目画素Xが背景画像の一部である場合を示
すものである。
FIG. 3 shows a case where the pixel of interest X is part of a background image.

この場合、注目画素Xの予測値X°は x ’ −(5+5+4+14+5+6+5)/8−4
0/8−5であり、予#J誤差は x −x ’  I J−5−2 と小さいものである。したがって、注目画素Xは、周囲
の画素と同様のレベルであり、背景と判別される。
In this case, the predicted value X° of the pixel of interest X is x' - (5+5+4+14+5+6+5)/8-4
0/8-5, and the pre-#J error is as small as x-x' I J-5-2. Therefore, the pixel of interest X has the same level as the surrounding pixels and is determined to be the background.

第4図は、−点破線で示す細線りを含む多値画像のうち
注目画素Xが細線gの一部である場合を示すものである
FIG. 4 shows a case where a pixel of interest X is part of a thin line g in a multivalued image including a thin line indicated by a - dotted broken line.

この場合、注目画素Xの予測値X゛は x  ’  =(4+4+14+l+5+2+13+3
)/8−48/8−6であり、予測誤差は I x −x  l =14−8−8 と大きいものである。したがって、注目画素Xは、周囲
の画素とレベル差が大であるため、細線pの一部である
と判別される。
In this case, the predicted value X' of the pixel of interest X is x' = (4+4+14+l+5+2+13+3
)/8-48/8-6, and the prediction error is as large as Ix-xl=14-8-8. Therefore, since the pixel of interest X has a large level difference from the surrounding pixels, it is determined that the pixel X is part of the thin line p.

第1図は、上記原理に基づく画像情報2値化装置の一実
施例を示すものである。
FIG. 1 shows an embodiment of an image information binarization device based on the above principle.

スキャナ装置11は画像情報を1ラインずつ読取るもの
であり、このスキャナ装置11からは読取った画像情報
に対応して、多値画像情報が出力される。この多値画像
情報はメモリ12に記憶される。このメモリ12は例え
ば4つのラインバツフy12a、12b、12c、12
dによって構成されており、スキャナ装置11から出力
される画像情報は、このラインバッファ12a、12b
The scanner device 11 reads image information line by line, and the scanner device 11 outputs multivalued image information corresponding to the read image information. This multivalued image information is stored in the memory 12. This memory 12 includes, for example, four line buffers y12a, 12b, 12c, 12
d, and the image information output from the scanner device 11 is transmitted through these line buffers 12a and 12b.
.

12c、12dに順次記憶される。このメモリ12には
、アドレス制御部13が設けられており、このアドレス
制御部13によって、ラインバッファ12a〜12dに
対する画像情報の書込み制御および読出し制御が行われ
る。すなわち、例えばラインバッファ12bに記憶され
ている画像情報を2値化処理する場合、このラインバッ
ファ12bに隣接するラインバッファ12a、12cか
ら注目画素に対応する周囲の画像情報が順次読出される
。また、残りのラインバッファ12dにはスキャナ装置
11から出力される画像情報が書込まれる。
12c and 12d. This memory 12 is provided with an address control section 13, and the address control section 13 controls writing and reading of image information to and from the line buffers 12a to 12d. That is, when performing binarization processing on image information stored in the line buffer 12b, for example, image information around the pixel of interest is sequentially read out from the line buffers 12a and 12c adjacent to the line buffer 12b. Furthermore, image information output from the scanner device 11 is written into the remaining line buffer 12d.

上記メモリ12から読出された注目画素の周囲に位置す
るに画像情報は予測値算出部14に供給され、この予測
値算出部14では、(1)式に従って注目画素Xの予測
値X゛が算出される。この予測値X゛は前記メモリ12
から読出された注目画素Xとともに誤差算出部15に供
給される。この誤差算出部15では、(2)式に従って
、予測誤差が求められ、この求めた予測誤差は、閾値決
定部16に供給される。この閾値決定部16では、供給
された予測誤差が予め設定された許容値以内の場合は、
デイザ法を選択し、予測誤差が予め設定された許容値以
上の場合は、単純2値化法を選択し、これら選択された
2値化法に対応する閾値が2値化回路17に供給される
。この2値化回路17は単純2値化法あるいはデイザ法
によって画像情報を2値化するものである。この2値化
回路17には、前記メモリ・12から注目画素Xの画像
情報が供給されており、この画像情報が供給された閾値
に応じて2値化される。
The image information located around the pixel of interest read out from the memory 12 is supplied to the predicted value calculation section 14, and the predicted value calculation section 14 calculates the predicted value X' of the pixel of interest X according to equation (1). be done. This predicted value X' is the memory 12
It is supplied to the error calculation unit 15 together with the pixel of interest X read out from the pixel of interest. The error calculation unit 15 calculates a prediction error according to equation (2), and supplies the calculated prediction error to the threshold determination unit 16. In this threshold determination unit 16, if the supplied prediction error is within a preset tolerance value,
If the dither method is selected and the prediction error is greater than a preset tolerance value, the simple binarization method is selected, and the threshold values corresponding to these selected binarization methods are supplied to the binarization circuit 17. Ru. This binarization circuit 17 binarizes image information by a simple binarization method or a dither method. This binarization circuit 17 is supplied with image information of the pixel of interest X from the memory 12, and this image information is binarized in accordance with the supplied threshold.

上記実施例によれば、注目画素の周囲の画素から注目画
素のレベルを予測し、この予測したレベルが注目画素の
有するレベルに近いか否かを判別することによって、注
目画素をデイザ法によって2値化するか、単純2値化法
によって2値化するかを決定している。したがって、注
目画素の閾値をその周囲の画素との関係から求めている
ため、画素の性質に応じて最適な閾値を設定することが
でき、中間調を含む画像情報の場合は、中間調を確実に
表現することができ、図形や活字等の画像の場合は、細
線が消えること無く表現できるものである。
According to the above embodiment, the level of the pixel of interest is predicted from the pixels surrounding the pixel of interest, and it is determined whether or not the predicted level is close to the level of the pixel of interest. It is determined whether to convert into a value or to binarize using a simple binarization method. Therefore, since the threshold value of the pixel of interest is determined from the relationship with the surrounding pixels, it is possible to set the optimal threshold value according to the characteristics of the pixel. In the case of images such as figures and printed characters, thin lines can be expressed without disappearing.

しかも、空間フィルタリング処理を行う場合のように、
画素数が減少することがないため、画質の劣化を防止す
ることができる。
Moreover, as in the case of spatial filtering processing,
Since the number of pixels does not decrease, deterioration of image quality can be prevented.

なお、上記実施例では、注目画素の周囲の8画素から注
目画素のレベルを予測したが、これに限定されるもので
はなく、注目画素の直前の画素や連続した画素群による
マルコフモデル等による方法によって予測することも可
能である。
Note that in the above embodiment, the level of the pixel of interest is predicted from eight pixels surrounding the pixel of interest, but the present invention is not limited to this, and a method using a Markov model using a pixel immediately before the pixel of interest or a group of consecutive pixels may be used. It is also possible to predict by

また、閾値も組織的デイザ法と固定値に限定されるもの
ではない。
Further, the threshold value is not limited to the systematic dither method and a fixed value.

その他、この発明の要旨を変えない範囲において、種々
変形実施可能なことは勿論である。
It goes without saying that various other modifications can be made without departing from the gist of the invention.

[発明の効果] 以上詳述したようにこの発明によれば、画質の劣化を防
止して、注目画素を適確に2値化することが可能な画像
情報2値化装置を提供できる。
[Effects of the Invention] As described in detail above, according to the present invention, it is possible to provide an image information binarization device that can prevent deterioration of image quality and accurately binarize a pixel of interest.

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

第1図はこの発明の一実施例を示す構成図、第2図乃至
第4図はそれぞれこの発明の詳細な説明するために示す
図である。 11・・・スキャナ装置、12・・・メモリ、14・・
・予IJj値算出部、15・・・誤差算出部、16・・
・閾値決定部、17・・・2値化部。
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIGS. 2 to 4 are diagrams for explaining the invention in detail. 11... Scanner device, 12... Memory, 14...
・Preliminary IJj value calculation unit, 15...Error calculation unit, 16...
- Threshold determination unit, 17...binarization unit.

Claims (1)

【特許請求の範囲】  多値で量子化された画像情報のうち、注目画素のレベ
ルをその画素の周囲の画素のレベルから予測する予測手
段と、 この予測手段によって予測されたレベルと注目画素のレ
ベルの差より、予測誤差を求める予測誤差算出手段と、 この求めた予測誤差に従って、注目画素を2値化するた
めの閾値を決定する閾値決定手段と、を具備したことを
特徴とする画像情報2値化装置。
[Claims] Prediction means for predicting the level of a pixel of interest from the levels of pixels surrounding the pixel in multivalued quantized image information; Image information characterized by comprising a prediction error calculation means for calculating a prediction error from the difference in levels, and a threshold determination means for determining a threshold for binarizing the pixel of interest according to the calculated prediction error. Binarization device.
JP1323497A 1989-12-13 1989-12-13 Picture information binarizing device Pending JPH03184472A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1323497A JPH03184472A (en) 1989-12-13 1989-12-13 Picture information binarizing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1323497A JPH03184472A (en) 1989-12-13 1989-12-13 Picture information binarizing device

Publications (1)

Publication Number Publication Date
JPH03184472A true JPH03184472A (en) 1991-08-12

Family

ID=18155351

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1323497A Pending JPH03184472A (en) 1989-12-13 1989-12-13 Picture information binarizing device

Country Status (1)

Country Link
JP (1) JPH03184472A (en)

Similar Documents

Publication Publication Date Title
US5077812A (en) Image processing apparatus
JPH02100575A (en) Picture processor
JPH07262374A (en) Image processing device
JPH0725064A (en) Picture forming equipment of electrophotographic printer
JPH03184472A (en) Picture information binarizing device
JPS63305672A (en) Block encoding system for multi-valued image
JPS6359272A (en) Picture processor
JP2941288B2 (en) Image processing system
JPH05183737A (en) Picture processor
KR100490244B1 (en) Error diffusion method using variable threshold value in image processing system
JPH0546749B2 (en)
KR0150164B1 (en) Quantization method and apparatus using error diffusion for image processing system
JPH10304196A (en) Apparatus and method for binarizing grayscale image information
JPH04189069A (en) Picture processor
JPS60102060A (en) Picture binary-coding device
JPH0554190A (en) Picture processor
JPH06253141A (en) Picture reader
JP2792581B2 (en) Image processing device
JP3459725B2 (en) Image processing apparatus and method
JP2000188685A (en) Image output device
JPH11328389A (en) Image processing apparatus and method
JPS6180965A (en) Picture signal processing method
JPH03292057A (en) Picture processing circuit
JPH08172522A (en) Resolution switching device
JPH0360276A (en) Picture information reader