JPH0691614B2 - Image signal binarization device - Google Patents

Image signal binarization device

Info

Publication number
JPH0691614B2
JPH0691614B2 JP4267916A JP26791692A JPH0691614B2 JP H0691614 B2 JPH0691614 B2 JP H0691614B2 JP 4267916 A JP4267916 A JP 4267916A JP 26791692 A JP26791692 A JP 26791692A JP H0691614 B2 JPH0691614 B2 JP H0691614B2
Authority
JP
Japan
Prior art keywords
average value
pixel
difference
value
interest
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 - Lifetime
Application number
JP4267916A
Other languages
Japanese (ja)
Other versions
JPH05199414A (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.)
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 JP4267916A priority Critical patent/JPH0691614B2/en
Publication of JPH05199414A publication Critical patent/JPH05199414A/en
Publication of JPH0691614B2 publication Critical patent/JPH0691614B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、画素分解形スキャナか
ら順次出力される画信号を白黒画素に2値化する画信号
2値化装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image signal binarizing device for binarizing image signals sequentially output from a pixel decomposition type scanner into black and white pixels.

【0002】[0002]

【従来の技術】貼り合わせ原稿、絵混じり文書、およ
び、カラー原稿等、地肌の色や濃度が部分的に変化して
いる原稿上の画像を画素に分解して2値化するために
は、2値化のための閾値を原稿の地肌の色や濃度に応じ
て変化する必要がある。
2. Description of the Related Art In order to decompose an image on an original, such as a laminated original, a mixed document, a color original, or the like, in which the background color or density is partially changed into pixels, and binarize it, It is necessary to change the threshold for binarization according to the background color and density of the document.

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

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うな従来装置では、低域ろ波する手段に時定数要素を用
いているため、原稿の貼り合わせ部の境界等地肌の濃度
が急激に変化する部分では、この濃度変化に充分追従で
きず、また、閾値を高精度に設定できないという問題が
あった。
However, in such a conventional apparatus, since the time constant element is used for the means for low-pass filtering, the density of the background such as the boundary between the originals is drastically changed. In the part, there was a problem that it was not possible to sufficiently follow this change in density and the threshold value could not be set with high accuracy.

【0005】本発明は、かかる従来装置の不都合を解消
し、原稿の地肌の濃度が変化しても、画信号を適切に2
値化できる画信号2値化装置を提供することを目的とし
ている。
The present invention eliminates the inconvenience of such a conventional apparatus, and appropriately adjusts the image signal to 2 even if the background density of the document changes.
It is an object of the present invention to provide an image signal binarization device that can be digitized.

【0006】[0006]

【課題を解決するための手段】本発明は、画素分解形ス
キャナから順次出力される画信号を白黒画素に2値化す
る画信号2値化装置において、2値化される注目画素お
よびこの注目画素に連続した複数個の参照画素の濃度の
平均値を、上記注目画素をスキャナの走査方向に移動し
ながら順次算出する第1の平均値演算手段と、注目画素
および参照画素の濃度の平均値を、上記注目画素をスキ
ャナの走査方向と逆方向に移動しながら順次算出する第
2の平均値演算手段と、上記第1の平均値演算手段が算
出した第1の平均値と上記第2の平均値演算手段が算出
した第2の平均値との差を各注目画素について順次算出
する差演算手段と、特定の画素を中心とした所定領域内
での上記差の変化に基づいて、上記所定領域内で、上記
特定の画素より走査開始位置側の部分で上記第1の平均
値を、注目画素より走査終了位置側の部分で上記第2の
平均値を選択する選択手段と、この選択手段の出力に基
づいて変更閾値を算出する変更閾値算出手段と、上記第
1の平均値および第2の平均値に基づいて閾値を算出す
る閾値算出手段を備え、上記変更閾値によって上記閾値
を修正するようにしたものである。
SUMMARY OF THE INVENTION The present invention is a pixel signal binarizing apparatus for binarizing image signals sequentially output from a pixel decomposition type scanner into black and white pixels. First average value calculating means for sequentially calculating an average value of the densities of a plurality of reference pixels continuous to the pixel while moving the target pixel in the scanning direction of the scanner, and an average value of the densities of the target pixel and the reference pixel. Are sequentially calculated while moving the target pixel in the direction opposite to the scanning direction of the scanner, the first average value calculated by the first average value calculation means, and the second average value calculation means. The difference calculating means for sequentially calculating the difference from the second average value calculated by the average value calculating means for each pixel of interest, and the predetermined value based on the change in the difference within a predetermined area centered on a specific pixel. Within the area, run from the above specific pixel Selection means for selecting the first average value at the portion on the start position side and the second average value at the portion on the scanning end position side from the pixel of interest, and a change threshold value is calculated based on the output of the selection means. A change threshold calculation means and a threshold calculation means for calculating a threshold value based on the first average value and the second average value are provided, and the threshold value is corrected by the change threshold value.

【0007】また、前記選択手段は、前記注目画素を中
心とした所定領域内でこの注目画素にかかる上記差が最
大値をとるとき、この所定領域のうち上記注目画素より
走査開始位置側の部分で前記第1の平均値を、上記注目
画素より走査終了位置側の部分で前記第2の平均値を選
択するものを用いることができる。
Further, when the difference of the target pixel has a maximum value within a predetermined area centered on the target pixel, the selecting means selects a portion of the predetermined area closer to the scanning start position than the target pixel. Then, the first average value may be selected so that the second average value is selected at a portion closer to the scanning end position than the pixel of interest.

【0008】あるいは、前記選択手段は、前記差演算手
段が算出した差の絶対値の変動に注目して、ある一定値
以上の大きさをもつ差の絶対値が連続して続く場合、そ
の連続する上記差の絶対値の中で最大のものを検出し、
その最大の絶対値をもつ差に対応する画素を中心とした
所定領域内で、上記対応する画素より走査開始位置側の
部分で前記第1の平均値を、上記注目画素より走査終了
位置側の部分で前記第2の平均値を選択するものをもち
いることができる。また、前記第1の平均値演算手段お
よび第2の平均値演算手段は、前記注目画素からの距離
に応じて指数関数的に小さくなる重み係数を前記各参照
画素に割り当てた重み付け平均値演算を実行するものを
用いるとよい。
Alternatively, the selecting means pays attention to the variation of the absolute value of the difference calculated by the difference calculating means, and when the absolute value of the difference having a magnitude equal to or larger than a certain value continues continuously, the continuous Detect the largest of the absolute values of the above differences,
Within the predetermined area centered on the pixel corresponding to the difference having the maximum absolute value, the first average value is calculated at a portion closer to the scanning start position than the corresponding pixel and closer to the scanning end position than the target pixel. It is possible to use a part that selects the second average value. Further, the first average value calculation means and the second average value calculation means perform weighted average value calculation in which a weighting coefficient that decreases exponentially according to the distance from the pixel of interest is assigned to each reference pixel. Use what you do.

【0009】[0009]

【作用】したがって、画素濃度の順方向平均値、逆方向
平均値、および、これらの平均値の各画素での差に基づ
いて閾値を算出しているので、濃度が急激に変化する部
分の画信号も適切に2値化することができる。
Therefore, since the threshold value is calculated based on the forward average value, the backward average value of the pixel densities, and the difference between these average values at each pixel, the image of the portion where the density changes abruptly is calculated. The signal can also be appropriately binarized.

【0010】[0010]

【実施例】以下、添付図面を参照しながら、本発明の実
施例を詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the accompanying drawings.

【0011】図1は、本発明の一実施例を示したブロッ
ク図である。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【0012】同図において、図示しないスキャナより加
わる画素毎の濃度信号(画信号)Pxは、いったんライ
ンメモリ1に複数走査線分が記憶される。
In the figure, a density signal (image signal) Px for each pixel applied from a scanner (not shown) is temporarily stored in the line memory 1 for a plurality of scanning lines.

【0013】ラインメモリ1に記憶した濃度信号Px
は、1走査線毎、スキャナの走査方向に対応した順に順
方向平均値演算部2に加えられるとともに、反走査方向
に対応した順に逆方向平均値演算部3に加えられる。
The density signal Px stored in the line memory 1
Is added to the forward direction average value calculation unit 2 in the order corresponding to the scanning direction of the scanner for each scanning line, and is also added to the backward direction average value calculation unit 3 in the order corresponding to the anti-scanning direction.

【0014】順方向平均値演算部2は、順次加えられる
濃度信号Pxに基づき、各画素の周辺の濃度の順方向平
均値Mfを次式(I)によって算出する。
The forward average value calculation unit 2 calculates the forward average value Mf of the densities around each pixel by the following equation (I) based on the sequentially added density signals Px.

【0015】[0015]

【数1】 [Equation 1]

【0016】ただし、S0は順方向平均値を算出しよう
とする画素の濃度、m1は重み係数、Mf’は直前の画
素について求めた順方向平均値である。
However, S 0 is the density of the pixel for which the forward average value is to be calculated, m 1 is the weighting coefficient, and Mf ′ is the forward average value obtained for the immediately preceding pixel.

【0017】この式(I)について以下に説明する。The formula (I) will be described below.

【0018】一般に、2値化しようとする注目画素の濃
度と、この注目画素の近傍に位置する画素(以下、参照
画素という)の濃度の間には、相関関係があり、また、
注目画素の近くに位置する参照画素ほど、注目画素に強
く関係しており、濃度の相関も強い。
Generally, there is a correlation between the density of the pixel of interest to be binarized and the density of a pixel (hereinafter referred to as a reference pixel) located in the vicinity of this pixel of interest, and
The closer the reference pixel is to the target pixel, the stronger the relationship with the target pixel, and the stronger the correlation in density.

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

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

【0021】さて、注目画素の濃度をS0とし、注目画
素から距離(i×r)(iは整数、rは1画素の幅)だ
け離れた参照画素の濃度と重み係数をそれぞれ
Now, assuming that the density of the pixel of interest is S 0 , the density and the weighting coefficient of the reference pixel that are separated from the pixel of interest by a distance (i × r) (i is an integer, r is the width of one pixel) are respectively set.

【0022】[0022]

【数2】 [Equation 2]

【0023】(0<m1<1)とすると、注目画素を含
む参照画素の重み付け平均値Mfは次式(II)のよう
になる。
When (0 <m1 <1), the weighted average value Mf of the reference pixels including the target pixel is given by the following equation (II).

【0024】[0024]

【数3】 [Equation 3]

【0025】この式(II)を変形すると、次式(II
I)を得る。
Transforming this equation (II), the following equation (II
I) is obtained.

【0026】[0026]

【数4】 [Equation 4]

【0027】ここで、Here,

【0028】[0028]

【数5】 [Equation 5]

【0029】であるから、上式(III)は、次のよう
になる。
Therefore, the above formula (III) is as follows.

【0030】[0030]

【数6】 [Equation 6]

【0031】このようにして、上式(I)が得られた。In this way, the above formula (I) was obtained.

【0032】逆方向平均値演算部3は、順方向平均値演
算部2と同様に、各画素の周辺の濃度の逆方向平均値M
rを次式(IV)によって算出する。
The reverse direction average value calculation unit 3 is similar to the forward direction average value calculation unit 2, and the reverse direction average value M of the densities around each pixel.
r is calculated by the following equation (IV).

【0033】[0033]

【数7】 [Equation 7]

【0034】ただし、S0は逆方向平均値を算出しよう
とする画素の濃度、m2は重み係数、Mr’は直前の画
素について求めた逆方向平均値である。
However, S 0 is the density of the pixel for which the backward average value is to be calculated, m 2 is the weighting coefficient, and Mr ′ is the backward average value obtained for the immediately preceding pixel.

【0035】順方向平均値演算部2が算出した順方向平
均値Mfと、逆方向平均値演算部3が算出した逆方向平
均値Mrは、1走査線分毎に平均値演算部4、差演算部
5、および、平均値選択部6に加えられる。
The forward direction average value Mf calculated by the forward direction average value calculation unit 2 and the backward direction average value Mr calculated by the backward direction average value calculation unit 3 are different from each other by the average value calculation unit 4 for each scanning line segment. It is added to the calculation unit 5 and the average value selection unit 6.

【0036】平均値演算部4は、順方向平均値Mfと逆
方向平均値Mrの平均値Mmを各画素について算出し、
この平均値Mmを閾値演算部7に加える。
The average value calculation unit 4 calculates the average value Mm of the forward average value Mf and the backward average value Mr for each pixel,
This average value Mm is added to the threshold value calculation unit 7.

【0037】閾値演算部7は、加えられる平均値Mmに
基づいて次式(V)を実行し、各画素の閾値THを算出
し、これを閾値修正部8に加える。
The threshold value calculation unit 7 executes the following equation (V) based on the added average value Mm to calculate the threshold value TH of each pixel and adds it to the threshold value correction unit 8.

【0038】[0038]

【数8】 [Equation 8]

【0039】だだし、k1,k2は定数である。However, k 1 and k 2 are constants.

【0040】さて、濃度信号Pxが図2(a)のように
変化している場合を考える。同図において、左から右の
方向を走査方向とする。
Now, consider the case where the density signal Px changes as shown in FIG. In the figure, the direction from left to right is the scanning direction.

【0041】上述したように、順方向平均値演算部2は
式(I)により、また、逆方向平均値演算部3は式(I
V)によってそれぞれ順方向平均値Mfおよび逆方向平
均値Mrを算出している。
As described above, the forward average value computing unit 2 uses the equation (I), and the backward average value computing unit 3 uses the equation (I).
V) calculates the forward average value Mf and the backward average value Mr, respectively.

【0042】これらの式(I),(IV)は、ともに漸
化式の形をとるため、演算回路の構成を非常に簡素に実
現できるという大きな利点がある一方、各画素の濃度状
態が直接あらわれないため、同図に示したように遅延特
性をもつ。
Since the expressions (I) and (IV) both take the form of a recurrence expression, there is a great advantage that the structure of the arithmetic circuit can be realized very simply, while the density state of each pixel is directly changed. Since it does not appear, it has a delay characteristic as shown in the figure.

【0043】すなわち、順方向平均値Mfは濃度信号P
xの走査方向の変化に対して遅延し、逆方向平均値Mr
は濃度信号Pxの反走査方向の変化に対して遅延する。
That is, the forward average value Mf is the density signal P
The backward average value Mr is delayed with respect to the change of x in the scanning direction.
Is delayed with respect to the change of the density signal Px in the anti-scanning direction.

【0044】したがって、走査方向に沿って考えると、
濃度信号Pxの立ち上がり点P1および立ち下がり点P
2では、2つの平均値の差がその付近の状態に比べて著
しく大きい。
Therefore, considering the scanning direction,
The rising point P1 and the falling point P of the density signal Px
In the case of 2, the difference between the two average values is remarkably large as compared with the state in the vicinity thereof.

【0045】そこで、各画素毎に順方向平均値Mfと逆
方向平均値Mrとの差を算出し、各画素を中心に前後
(A+B)の範囲内でこの差が最も大きい画素を探し、
その画素より反走査方向に距離Aだけ離れた画素までの
部分では順方向平均値Mfを選択する。一方、その画素
より走査方向に距離Bだけ離れた画素までの部分では逆
方向平均値Mrを選択する。
Therefore, the difference between the forward average value Mf and the backward average value Mr is calculated for each pixel, and the pixel having the largest difference in the front and rear (A + B) range around each pixel is searched for,
The forward average value Mf is selected for the portion up to the pixel that is separated from the pixel by the distance A in the anti-scanning direction. On the other hand, the backward average value Mr is selected in the portion up to the pixel which is separated from the pixel by the distance B in the scanning direction.

【0046】このようにすれば、濃度信号Pxの立ち上
がり部と立ち下がり部、および、その付近でそれぞれ濃
度信号Pxの平均をより的確にあらわした平均値を得る
ことができる。
By doing so, it is possible to obtain an average value that more accurately represents the average of the density signal Px at the rising portion and the falling portion of the density signal Px and in the vicinity thereof.

【0047】なお、距離A,Bは、それぞれ逆方向平均
値演算部3、順方向平均値演算部2の遅延時間に相当す
る距離である。
The distances A and B are distances corresponding to the delay times of the backward average value calculation unit 3 and the forward direction average value calculation unit 2, respectively.

【0048】このような平均値の選択を、差演算部5お
よび平均値演算部6によって実現している。
The selection of such an average value is realized by the difference calculator 5 and the average calculator 6.

【0049】差演算部5は、順方向平均値Mfと逆方向
平均値Mrとの差Smを各画素毎に算出して、それを平
均値演算部6に出力する。
The difference calculator 5 calculates the difference Sm between the forward average value Mf and the backward average value Mr for each pixel and outputs it to the average value calculator 6.

【0050】平均値演算部6は、差Smをその画素から
前後(A+B)の範囲で比較して差Smが最大となる画
素を探し、上述のように、その画素の前後の部分で順方
向平均値Mfと逆方向平均値Mrを選択して、それを変
更閾値演算部9に加える。
The average value calculation unit 6 compares the difference Sm in the range (A + B) before and after that pixel to find the pixel having the maximum difference Sm, and as described above, the forward and backward portions of the pixel. The average value Mf and the reverse direction average value Mr are selected and added to the change threshold calculation unit 9.

【0051】変更閾値演算部9は、平均値選択部6より
加わる平均値に基づき、閾値演算部7と同様にして各画
素の変更閾値THvを算出し、これを閾値修正部8に出
力する。
The change threshold calculation unit 9 calculates the change threshold THv of each pixel based on the average value added by the average value selection unit 6 in the same manner as the threshold calculation unit 7, and outputs this to the threshold correction unit 8.

【0052】閾値修正部8は、変更閾値THvが出力さ
れている画素についてはこの変更閾値THv、その他の
画素については閾値THからなる修正閾値THm(図2
(b)参照)を形成してこれを2値化回路10に出力す
る。
The threshold correction unit 8 changes the threshold THv for the pixel for which the change threshold THv is output, and for the other pixels, the correction threshold THm (FIG. 2).
(See (b)) and outputs it to the binarization circuit 10.

【0053】2値化回路10は、各画素毎に濃度信号P
xと修正閾値THmを比較して2値化画信号SBを形成
し、これを次段装置(図示せず)に出力する。
The binarization circuit 10 has a density signal P for each pixel.
x is compared with the correction threshold value THm to form the binarized image signal SB, which is output to the next-stage device (not shown).

【0054】ところで、順方向平均値Mfと逆方向平均
値Mrの選択する条件としては、上述したもののほか
に、次のようなものを用いることができる。
By the way, in addition to the above-mentioned conditions, the following conditions can be used as the conditions for selecting the forward average value Mf and the backward average value Mr.

【0055】すなわち、各画素毎に順方向平均値Mfと
逆方向平均値Mrとの差を算出し、この差の絶対値の変
動に注目して、ある一定値以上の大きさをもつ差の絶対
値が連続して続く部分があれば、その連続する部分の中
で、最大の絶対値を探し、その差に対応する画素を検出
して、その画素より反走査方向に距離Aだけ離れた画素
までの部分では順方向平均値Mfを選択する。一方、そ
の画素より走査方向に距離Bだけ離れた画素までの部分
では逆方向平均値Mrを選択する。
That is, the difference between the forward average value Mf and the backward average value Mr is calculated for each pixel, and paying attention to the variation of the absolute value of this difference, the difference having a magnitude greater than a certain value is calculated. If there is a portion where the absolute value continues in succession, the maximum absolute value is searched for in the continuous portion, the pixel corresponding to the difference is detected, and the pixel is separated from the pixel by the distance A in the anti-scanning direction. For the portion up to the pixel, the forward average value Mf is selected. On the other hand, the backward average value Mr is selected in the portion up to the pixel which is separated from the pixel by the distance B in the scanning direction.

【0056】また、この場合、距離A,Bは、それぞれ
逆方向平均値演算部3、および、順方向平均値演算部2
の出力の濃度信号Pxの走査方向での急激な変化に対応
する応答遅延時間に相当する距離であり、その統計結果
に基づいて設定するか、あるいは、2つの平均値の差S
mに基づいて、例えば、次式(VI),(VII)のよ
うに可変設定する。
Further, in this case, the distances A and B are respectively calculated as the backward average value calculation unit 3 and the forward direction average value calculation unit 2.
Is the distance corresponding to the response delay time corresponding to the abrupt change in the scanning direction of the density signal Px of the output of the above, and is set based on the statistical result, or the difference S between the two average values is
Based on m, it is variably set as in the following equations (VI) and (VII).

【0057】[0057]

【数9】 [Equation 9]

【0058】ただし、k3,k4,k5,k6は定数であ
る。
However, k 3 , k 4 , k 5 , and k 6 are constants.

【0059】また、この場合、平均値選択部6は、差の
絶対値|Sm|の走査方向での変動状態に注目して、あ
る一定値S以上の大きさをもつ差の絶対値が連続して続
く部分を探す。そして、その部分の中で最大の絶対値を
もつ差が対応する画素を検出し、上述のようにその画素
の前後の部分で順方向平均値Mfと逆方向平均値Mrを
選択して、それを変更閾値演算部9に加える。ただし、
一定値Sは、2値化された画像の品質によって統計的に
決められる定数である。
Further, in this case, the average value selection unit 6 pays attention to the variation state of the absolute value of the difference | Sm | in the scanning direction, and the absolute value of the difference having a magnitude equal to or larger than a certain constant value S is continuous. And search for the part that follows. Then, the pixel corresponding to the difference having the maximum absolute value is detected in that portion, and the forward direction average value Mf and the backward direction average value Mr are selected in the portions before and after the pixel as described above. Is added to the change threshold calculation unit 9. However,
The constant value S is a constant statistically determined by the quality of the binarized image.

【0060】なお、上述の実施例では順方向平均値Mf
と逆方向平均値Mrの平均値Mmをさらに算出し、この
平均値Mmに基づいて閾値THを算出しているが、濃度
信号Pxの変化がとくに大きい部分以外では順方向平均
値Mfと逆方向平均値Mrの差があまりないので、どち
らか一方を用いて閾値THを算出するようにしてもよ
い。
In the above embodiment, the forward average value Mf
Further, the average value Mm of the reverse direction average values Mr is further calculated, and the threshold value TH is calculated based on the average value Mm. Since there is not much difference between the average values Mr, either one may be used to calculate the threshold value TH.

【0061】また、一般に連続する走査線ではあまり濃
度信号が変動しないことが多い。そこで、順方向平均値
と逆方向平均値を1主走査線毎に交互に算出するように
してもよい。
In general, the density signal does not change much in continuous scanning lines. Therefore, the forward average value and the backward average value may be alternately calculated for each main scanning line.

【0062】さらに、走査線と反走査線方向のみならず
第3の方向で画素の濃度信号の平均値を算出し、この平
均値の状態を閾値に反映するようにしてもよい。
Furthermore, the average value of the density signals of the pixels may be calculated not only in the scanning line and anti-scanning line directions but also in the third direction, and the state of this average value may be reflected in the threshold value.

【0063】また、上述した実施例の各要素を機能ブロ
ックとして実現するマイクロコンピュータでも、本発明
を実施できる。
The present invention can also be implemented by a microcomputer that realizes each element of the above-described embodiment as a functional block.

【0064】[0064]

【発明の効果】以上説明したように、本発明によれば、
濃度信号の変化の大きい部分で順方向平均値と逆方向平
均値を切り換えているから、濃度信号の平均値をより確
実に得ることができる。その結果、閾値を濃度信号の変
化によく追従させることができ、濃度信号の変化が大き
い部分を適切に2値化できるという効果を得る。
As described above, according to the present invention,
Since the forward direction average value and the backward direction average value are switched in the portion where the change in the density signal is large, the average value of the density signal can be obtained more reliably. As a result, the threshold value can be made to follow the change of the density signal well, and the effect that the portion where the change of the density signal is large can be appropriately binarized is obtained.

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

【図1】本発明の一実施例を示すブロック図。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】濃度信号と順方向平均値および逆方向平均値の
関係を例示した波形図((a))、および、濃度信号と
修正閾値を例示した波形図((b))。
FIG. 2 is a waveform diagram ((a)) illustrating a relationship between a density signal and a forward direction average value and a backward direction average value, and a waveform diagram ((b)) illustrating a density signal and a correction threshold value.

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

2 順方向平均値演算部 3 逆方向平均値演算部 4 平均値演算部 5 差演算部 6 平均値演算部 7 閾値演算部 8 閾値修正部 9 変更閾値演算部 10 2値化回路 2 forward direction average value calculation unit 3 reverse direction average value calculation unit 4 average value calculation unit 5 difference calculation unit 6 average value calculation unit 7 threshold value calculation unit 8 threshold value correction unit 9 change threshold value calculation unit 10 binarization circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 画素分解形スキャナから順次出力される
画信号を白黒画素に2値化する画信号2値化装置におい
て、 2値化される注目画素およびこの注目画素に連続した複
数個の参照画素の濃度の平均値を、上記注目画素をスキ
ャナの走査方向に移動しながら順次算出する第1の平均
値演算手段と、 注目画素および参照画素の濃度の平均値を、上記注目画
素をスキャナの走査方向と逆方向に移動しながら順次算
出する第2の平均値演算手段と、 上記第1の平均値演算手段が算出した第1の平均値と上
記第2の平均値演算手段が算出した第2の平均値との差
を各注目画素について順次算出する差演算手段と、 特定の画素を中心とした所定領域内での上記差の変化に
基づいて、上記所定領域内で、上記特定の画素より走査
開始位置側の部分で上記第1の平均値を、注目画素より
走査終了位置側の部分で上記第2の平均値を選択する選
択手段と、 この選択手段の出力に基づいて変更閾値を算出する変更
閾値算出手段と、 上記第1の平均値および第2の平均値に基づいて閾値を
算出する閾値算出手段を備え、 上記変更閾値によって上記閾値を修正することを特徴と
した画信号2値化装置。
1. An image signal binarizing device for binarizing image signals sequentially output from a pixel decomposition type scanner into black and white pixels, wherein a pixel of interest to be binarized and a plurality of references continuous to the pixel of interest. A first average value calculating means for sequentially calculating an average value of the pixel densities while moving the target pixel in the scanning direction of the scanner; and an average value of the density of the target pixel and the reference pixel for the target pixel of the scanner Second average value calculating means for sequentially calculating while moving in the opposite direction to the scanning direction, first average value calculated by the first average value calculating means, and second average value calculating means for the second average value calculating means. Based on the change of the difference within a predetermined area centered on the specific pixel, a difference calculation means for sequentially calculating a difference from the average value of 2 for each target pixel, and within the predetermined area, the specific pixel Above at the scanning start position side Selecting means for selecting the second average value of the first average value at a portion closer to the scanning end position than the pixel of interest; change threshold calculating means for calculating a change threshold based on the output of the selecting means; An image signal binarizing apparatus comprising: a threshold value calculating unit that calculates a threshold value based on a first average value and a second average value, and correcting the threshold value by the change threshold value.
【請求項2】 前記選択手段は、前記注目画素を中心と
した所定領域内でこの注目画素にかかる上記差が最大値
をとるとき、この所定領域のうち上記注目画素より走査
開始位置側の部分で前記第1の平均値を、上記注目画素
より走査終了位置側の部分で前記第2の平均値を選択す
ることを特徴とする請求項1記載の画信号2値化装置。
2. The selecting means, when the difference of the target pixel has a maximum value within a predetermined area centered on the target pixel, a portion of the predetermined area closer to the scanning start position than the target pixel. 2. The image signal binarizing apparatus according to claim 1, wherein the first average value is selected as the second average value at a portion closer to the scanning end position than the pixel of interest.
【請求項3】 前記選択手段は、前記差演算手段が算出
した差の絶対値の変動に注目して、ある一定値以上の大
きさをもつ差の絶対値が連続して続く場合、その連続す
る上記差の絶対値の中で最大のものを検出し、その最大
の絶対値をもつ差に対応する画素を中心とした所定領域
内で、上記対応する画素より走査開始位置側の部分で前
記第1の平均値を、上記注目画素より走査終了位置側の
部分で前記第2の平均値を選択することを特徴とする請
求項1記載の画信号2値化装置。
3. The selecting means pays attention to the variation of the absolute value of the difference calculated by the difference calculating means, and when the absolute value of the difference having a magnitude equal to or larger than a certain constant value continues continuously, the continuous Detecting the maximum of the absolute values of the difference, and within a predetermined area centered on the pixel corresponding to the difference having the maximum absolute value, in the portion closer to the scanning start position than the corresponding pixel, 2. The image signal binarization apparatus according to claim 1, wherein the second average value is selected in a portion of the first average value closer to the scanning end position than the pixel of interest.
【請求項4】 前記第1の平均値演算手段および第2の
平均値演算手段は、前記注目画素からの距離に応じて指
数関数的に小さくなる重み係数を前記各参照画素に割り
当てた重み付け平均値演算を実行することを特徴とする
請求項1、または、請求項2、または、請求項3記載の
画信号2値化装置。
4. The weighted average in which the first average value calculation means and the second average value calculation means assign a weighting coefficient that becomes exponentially smaller according to the distance from the pixel of interest to each of the reference pixels. The image signal binarization apparatus according to claim 1, 2, or 3, wherein a value operation is executed.
JP4267916A 1992-09-11 1992-09-11 Image signal binarization device Expired - Lifetime JPH0691614B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4267916A JPH0691614B2 (en) 1992-09-11 1992-09-11 Image signal binarization device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4267916A JPH0691614B2 (en) 1992-09-11 1992-09-11 Image signal binarization device

Publications (2)

Publication Number Publication Date
JPH05199414A JPH05199414A (en) 1993-08-06
JPH0691614B2 true JPH0691614B2 (en) 1994-11-14

Family

ID=17451406

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4267916A Expired - Lifetime JPH0691614B2 (en) 1992-09-11 1992-09-11 Image signal binarization device

Country Status (1)

Country Link
JP (1) JPH0691614B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008040557A (en) * 2006-08-01 2008-02-21 Ricoh Co Ltd Image display apparatus, image display method, and image display program
JP2009238202A (en) * 2008-03-03 2009-10-15 Dainippon Screen Mfg Co Ltd Contour extraction device, contour extraction method and contour extraction program
JP5121685B2 (en) * 2008-12-12 2013-01-16 株式会社東芝 Bar code reading apparatus, bar code reading program, and bar code reading method

Also Published As

Publication number Publication date
JPH05199414A (en) 1993-08-06

Similar Documents

Publication Publication Date Title
KR920008901B1 (en) Detecting method of picture moving vector
US4447830A (en) Image scanning apparatus and method
US4811115A (en) Image processing apparatus using approximate auto correlation function to detect the frequency of half-tone image data
US5282061A (en) Programmable apparatus for determining document background level
US6141460A (en) Method for detecting edges in an image signal
US4817174A (en) Image processing apparatus
US6041139A (en) Image processing apparatus
JPH05227425A (en) Improvement in automatic image segmentation
JP2597350B2 (en) Pixel signal processing method
KR960006477A (en) Error diffusion method binarization method and device
JPH08172532A (en) Image reader and read method
US6449389B1 (en) Method and apparatus for single channel color image segmentation using local context based adaptive weighting
JPH0691614B2 (en) Image signal binarization device
US6647155B2 (en) Inclination correction device and image reading apparatus therewith
JPS6190575A (en) Video signal processor
JPH1151644A (en) Distance measuring instrument for vehicle
JP2014176022A (en) Image reader, image formation device, and image reading method
JP2904364B2 (en) Binarization method of gradation image
JPS6080369A (en) Binary coding device of picture signal
JP2656505B2 (en) AGC circuit
JP2002262081A (en) Image processor and image processing method
JPH0898022A (en) Image reader and image reading method
CN118196162A (en) Acquiring depth maps
JP2823886B2 (en) Document size detection method
JP3748366B2 (en) Binarization and binarization threshold determination method