JPS6080368A - Binary coding device of picture signal - Google Patents

Binary coding device of picture signal

Info

Publication number
JPS6080368A
JPS6080368A JP58188489A JP18848983A JPS6080368A JP S6080368 A JPS6080368 A JP S6080368A JP 58188489 A JP58188489 A JP 58188489A JP 18848983 A JP18848983 A JP 18848983A JP S6080368 A JPS6080368 A JP S6080368A
Authority
JP
Japan
Prior art keywords
threshold value
value
density
pixel
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.)
Pending
Application number
JP58188489A
Other languages
Japanese (ja)
Inventor
Susumu Shimotoono
享 下遠野
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP58188489A priority Critical patent/JPS6080368A/en
Priority to DE19843433493 priority patent/DE3433493A1/en
Publication of JPS6080368A publication Critical patent/JPS6080368A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To binary-code properly a picture signal for a small or large density by providing upper/lower limits to a threshold value so as to set the range varying the threshold value. CONSTITUTION:An average value operating section 1 calculates an average the value Ma of the density at the surrounding of a noted picture element desired to be binary-coded based on density signal of a picture element applied from a scanner. The average value Ma is fed to a threshold value operating section 2 and the threshold value TH is corrected at a threshold value correcting section 3. The maximum value Lh and the minimum value Ll of the threshold value are preset to the threshold value correcting section 3 so as to output a corrected threshold value THm whose threshold value TH is corrected to obtain the range. A signal limited to the maximum value Lh is obtained from the corrected threshold value THm when the threshold value TH is larger than the maximum value Lh and a signal limited to the minimum value Ll is obtained when the TH is smaller than the minimum value Ll. The corrected threshold value THm is fed to a binary-coding circuit 4, where the density signal Px is binary-coded.

Description

【発明の詳細な説明】 [技術分野] 本発明は、原稿の地肌の濃度が変化しても、両信号を適
正に2値化する画信号2値化装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to an image signal binarization device that properly binarizes both signals even if the density of the background of a document changes.

[従来技術] 貼り合せ原稿、絵まじり文書およびカラー原稿等、地肌
の色や濃度が部分的に変化している原稿上の画像を画素
に分解して2値化するためには、2値化のための閾値を
原稿の地肌の色や濃度に応して変化する必要がある。
[Prior art] In order to decompose an image on a document whose background color or density has partially changed, such as a pasted document, a mixed-picture document, or a color document, into pixels and convert it into a binary image, it is necessary to perform binarization. It is necessary to change the threshold value according to the background color and density of the document.

そこで従来、各画素の濃度レベル信号を分割抵抗を用い
て所定の割合で分割し、分割した信号を低域ろ波してい
わゆる浮動閾値を形成し、この浮動閾値によって濃度レ
ベル信号を2値化する装置が実用されている。
Conventionally, the density level signal of each pixel is divided at a predetermined ratio using a dividing resistor, the divided signal is low-pass filtered to form a so-called floating threshold, and the density level signal is binarized using this floating threshold. A device that does this is in practical use.

しかしながら、このような従来装置では低域ろ波する手
段に時定数要素を坩いているため、原稿の貼り合せ部の
境界等地肌の濃度が急激に変化する部分ではこの濃度変
化に充分追従できない。また、特に濃度の低い部分では
浮動閾値が小さくなりすぎて、明らかに白画素である画
素が黒画素と判別されるという不都合を生じていた。
However, in such a conventional device, since a time constant element is used in the low-pass filtering means, it is not possible to sufficiently follow density changes in areas where the background density changes rapidly, such as at the boundary between the bonded portions of originals. Furthermore, the floating threshold becomes too small especially in areas with low density, resulting in the inconvenience that a pixel that is clearly a white pixel is determined to be a black pixel.

[目的コ 本発明は、上述した従来技術の欠点を解消するためにな
されたものであり、閾値に」1下限値を設けることで濃
度が非常に大きい部分および小さし)部分における2値
化ミスを防止できる画信号2値化装置を提供すること髪
目的とする。
[Purpose] The present invention has been made to eliminate the above-mentioned drawbacks of the prior art, and by setting a lower limit of 1 for the threshold value, it is possible to prevent binarization errors in areas where the density is very high and areas where the density is very low. An object of the present invention is to provide an image signal binarization device that can prevent the above problems.

[構成] 第】図は、本発明の一実施例を示すブロック図である。[composition] FIG. 1 is a block diagram showing one embodiment of the present invention.

この実施例では、白画素の濃度の平均値を加味した閾値
を用いている。
In this embodiment, a threshold value that takes into account the average value of the density of white pixels is used.

同図において、平均値演算部1は、スキャナより加わる
画素毎の濃度信号(両信号)Pxに基づき、2値化しよ
うとする画素(以下、注目画素という)周辺の濃度の平
均値Maを次式(1)によって算出する。
In the figure, an average value calculation unit 1 calculates the average value Ma of the density around the pixel to be binarized (hereinafter referred to as the pixel of interest) based on the density signal (both signals) Px for each pixel added from the scanner. Calculated using equation (1).

Ma=(+−nt)So 4−mMa’ −−=(1)
たたし、Soは注目画素の濃度、nは重み係数、Ma’
 は直前の画素が注目画素であったときの平均値である
Ma=(+-nt)So 4-mMa' --=(1)
Where, So is the density of the pixel of interest, n is the weighting coefficient, and Ma'
is the average value when the immediately previous pixel is the pixel of interest.

この式(1)について以下に説明する。This equation (1) will be explained below.

一般に、注目画素の濃度と、この注目画素の近傍に位置
する画素(以下、参照画素という)の濃度の間には相関
関係があり、また、注目画素の近くに位置する参照画素
はど、注目画素に強く関係しており、濃度の相関も強い
Generally, there is a correlation between the density of a pixel of interest and the density of a pixel located near the pixel of interest (hereinafter referred to as a reference pixel). It is strongly related to pixels and has a strong correlation with density.

したがって、注目画素からの距離が大きくなるにつれて
指数関数的に減少する重み係数を、おのおのの距離に応
じて各参照画素に割当てて算出した重みづけ平均値は、
注目画素近傍の画像の濃度分布すなわち地肌濃度を反映
したものとなる。
Therefore, the weighted average value calculated by assigning a weighting coefficient that decreases exponentially as the distance from the pixel of interest increases to each reference pixel according to its distance is:
This reflects the density distribution of the image near the pixel of interest, that is, the background density.

そこで、この重みづけ平均値に所定の演算(例えば1次
関数による変換)を施すことにより、地肌濃度を反映し
た閾値を得ることができる。
Therefore, by performing a predetermined calculation (for example, conversion using a linear function) on this weighted average value, a threshold value that reflects the background density can be obtained.

さて、注目画素の濃度をSoとし、注目画素から距ta
I (i X r> (iは整数、rは1画素の幅)だ
け離れた参照画素の濃度と重み係数をそれぞれSi 、
 m”(0<m<])とすると、注目画素を含む参照画
素の重みづけ平均値Maは次式(+1)のようになる。
Now, let the density of the pixel of interest be So, and the distance ta from the pixel of interest is
The density and weighting coefficient of the reference pixel separated by I (i X r> (i is an integer, r is the width of one pixel) are Si,
m''(0<m<]), the weighted average value Ma of the reference pixels including the pixel of interest is expressed by the following equation (+1).

この式(1■)を変形すると次式(Ill)を得る。By transforming this equation (1), the following equation (Ill) is obtained.

ここで、Ill”云0であるから、上式(m ) +’
i次のようになる。
Here, since Ill'' is 0, the above formula (m) +'
i It becomes as follows.

Ma = (] −m)S o + mMa’このよう
にして、上式(1)が得られた。
Ma = (] - m)S o + mMa' In this way, the above formula (1) was obtained.

さて、平均値演算部1が算出した平均(直Malよ閾値
演算部2に加えられる。
Now, the average calculated by the average value calculation unit 1 (directly Mal) is added to the threshold value calculation unit 2.

閾値演算部2は1次式(IV)によって閾イ直THを算
出し、これを閾値修正部3に加える。
The threshold calculation section 2 calculates the threshold value TH using the linear equation (IV), and adds this to the threshold correction section 3.

TI=にビトIa + k 2 −− (IV )ただ
し、l(1,に2は定数である。
TI=Ia+k2--(IV)where l(1, 2 are constants).

閾値修正値3には、閾値の最大値Lhおよび最)」1値
L(lが予め設定されており、閾値Tll力1この範囲
内になるように修正した修正閾値T)1mを84力する
The threshold correction value 3 includes the maximum threshold value Lh and the maximum value L (l is set in advance, and the corrected threshold T) 1m is set in advance to be within this range. .

すなわち、閾値Tl+が最大値1、hと最小値LQの間
開;あるときは閾値Tl+を、最大値Lhより太きLN
とき′&マ最犬値I、11を、最小値1、Qより小さし
)とき番ま最、JX(直L Q、を出力する。
That is, the threshold Tl+ is between the maximum value 1, h and the minimum value LQ; in some cases, the threshold Tl+ is set to a value LN thicker than the maximum value Lh.
When the maximum value I, 11 is smaller than the minimum value 1, Q), JX (direct LQ) is output.

したがって、第2図に示したような濃度(言分Pxか加
わったとすると、修正閾値T)1mlま、閾値Tl+の
磨−入・、trxr 1.hより大きい部分をLhに、
最小[LQより小さい部分を1.Qに制限した信号とな
る。
Therefore, the concentration as shown in FIG. 2 (if Px is added, the corrected threshold T) is increased by 1 ml, the threshold Tl+ is polished, trxr 1. The part larger than h is set to Lh,
Minimum [portion smaller than LQ is 1. The signal is limited to Q.

この修正閾値THmは2値化回路4に加えられる。This modified threshold THm is applied to the binarization circuit 4.

2値化回路4は、濃度信号Pxを修正閾値THmによっ
て2値して2値化信号SBを形成し、これを次段装置(
図示せず)に出力する。
The binarization circuit 4 binarizes the density signal Px using a modified threshold value THm to form a binarized signal SB, which is sent to the next stage device (
(not shown).

なお、」二連した実施例においては、閾値修正部3にお
ける最大値[、h(すなわち上限)および最小値Lll
!(すなわち下限)が固定になっているが、これを平均
値Maの値によって段階的に変化させてもよい。
In addition, in the two consecutive embodiments, the maximum value [, h (i.e., upper limit) and the minimum value Lll
! (that is, the lower limit) is fixed, but it may be changed stepwise depending on the value of the average value Ma.

[効果コ 以上説明したように、本発明によれは閾値のとりうる範
囲を設定しているので、濃度が大きい部分や小さい部分
において、画信号を適正に2値化できるという利点を得
る。
[Effects] As explained above, according to the present invention, the possible range of the threshold value is set, so there is an advantage that the image signal can be properly binarized in areas where the density is high or where the density is low.

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

第1図は本発明の一実施例を示したブロック図、第2図
は濃度信号、閾値および修正閾値を例示した波形図であ
る。 1 ・ 平均値演算部、2・・・閾値演算部、3・ 閾
値修正部、4・・ 2値化回路。 (−、ヨノ
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is a waveform diagram illustrating a density signal, a threshold value, and a modified threshold value. 1. Average value calculation section, 2.. Threshold calculation section, 3. Threshold correction section, 4.. Binarization circuit. (-, Yono

Claims (1)

【特許請求の範囲】[Claims] (1)2値化される注目画素およびこの注目画素に連続
した複数個の参照画素の濃度の平均値を算出する平均値
演算手段と、この平均値演算手段の演算結果に所定の演
算髪施して閾値を算出する閾値演算手段と、この閾値演
算手段が算出した閾値を予め設定された範囲内に修正す
る閾値修正手段を備えたことを特徴とする画信号2値化
装置。 (2、特許請求の範囲第1項記載において、前記平均値
演算手段は、前記注目画素からの距離に応じて指数関数
的に小さくなる重み係数を前記各参照画素に割り当てた
重みづけ平均値演算をすることを特徴とした画信号2値
化装置。
(1) An average value calculation means for calculating the average value of the density of a pixel of interest to be binarized and a plurality of reference pixels consecutive to the pixel of interest, and a predetermined calculation method applied to the calculation result of the average value calculation means. 1. An image signal binarization device comprising: a threshold value calculation means for calculating a threshold value; and a threshold value correction means for correcting the threshold value calculated by the threshold value calculation means to within a preset range. (2. In claim 1, the average value calculation means calculates a weighted average value by assigning to each reference pixel a weighting coefficient that decreases exponentially according to the distance from the pixel of interest. An image signal binarization device characterized by:
JP58188489A 1983-09-12 1983-10-11 Binary coding device of picture signal Pending JPS6080368A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP58188489A JPS6080368A (en) 1983-10-11 1983-10-11 Binary coding device of picture signal
DE19843433493 DE3433493A1 (en) 1983-09-12 1984-09-12 System for digitising picture signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58188489A JPS6080368A (en) 1983-10-11 1983-10-11 Binary coding device of picture signal

Publications (1)

Publication Number Publication Date
JPS6080368A true JPS6080368A (en) 1985-05-08

Family

ID=16224621

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58188489A Pending JPS6080368A (en) 1983-09-12 1983-10-11 Binary coding device of picture signal

Country Status (1)

Country Link
JP (1) JPS6080368A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61238832A (en) * 1985-04-17 1986-10-24 Toray Ind Inc Crosslinked polyethylene resin foam of high expansion ratio
JPS63122381A (en) * 1986-11-11 1988-05-26 Toshiba Corp Picture processor

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5668873A (en) * 1979-11-08 1981-06-09 Fujitsu Ltd Picture signal binary system
JPS56140461A (en) * 1980-04-02 1981-11-02 Matsushita Electric Ind Co Ltd Picture processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5668873A (en) * 1979-11-08 1981-06-09 Fujitsu Ltd Picture signal binary system
JPS56140461A (en) * 1980-04-02 1981-11-02 Matsushita Electric Ind Co Ltd Picture processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61238832A (en) * 1985-04-17 1986-10-24 Toray Ind Inc Crosslinked polyethylene resin foam of high expansion ratio
JPS63122381A (en) * 1986-11-11 1988-05-26 Toshiba Corp Picture processor

Similar Documents

Publication Publication Date Title
JPH10261077A (en) Device and method for correcting gradation of image pickup device
JPS6080368A (en) Binary coding device of picture signal
JP3137702B2 (en) Image processing device
JPH04175065A (en) Image processor
JPS6080367A (en) Picture signal binary coding device
JPH05199414A (en) Picture signal binarizing device
JPS6083468A (en) Binary coding device for picture signal
JP3032238B2 (en) Image processing device
JPS6016768A (en) Binary-coding system of picture signal
JPS59272A (en) Encoding system of facsimile signal
JPH0129348B2 (en)
JPH07154675A (en) Method for dividing picture data detection pattern and image pickup device
JPH11331597A (en) Gradation correcting device of image pickup device and gradation correcting method
JP2001177736A (en) Gradation correction device and gradation correction method for imaging device
JPS61105973A (en) Picture signal processing method
JPS6339275A (en) Threshold correcting method
JPH05316343A (en) Picture reader
JPS60220661A (en) Picture signal processing system
JPH01188071A (en) Picture signal corrector
JPS6245281A (en) Picture reader
JPS6339267A (en) Quantizing method
JPS6052164A (en) Picture processing device
JPH0229271B2 (en)
JPH0575860A (en) Transmission processing method for picture data
JPH0846788A (en) Method and device for image processing