Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3134292B2 - Image processing device - Google Patents
[go: Go Back, main page]

JP3134292B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3134292B2
JP3134292B2 JP02145100A JP14510090A JP3134292B2 JP 3134292 B2 JP3134292 B2 JP 3134292B2 JP 02145100 A JP02145100 A JP 02145100A JP 14510090 A JP14510090 A JP 14510090A JP 3134292 B2 JP3134292 B2 JP 3134292B2
Authority
JP
Japan
Prior art keywords
density
histogram
background
area
threshold 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.)
Expired - Lifetime
Application number
JP02145100A
Other languages
Japanese (ja)
Other versions
JPH0437258A (en
Inventor
昭博 伊東
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=15377375&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JP3134292(B2) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP02145100A priority Critical patent/JP3134292B2/en
Publication of JPH0437258A publication Critical patent/JPH0437258A/en
Application granted granted Critical
Publication of JP3134292B2 publication Critical patent/JP3134292B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プリスキャンで原稿情報を読み込み、メイ
ンスキャンで画像データを記録する画像処理装置に関す
る。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus that reads document information by pre-scanning and records image data by main scanning.

〔従来の技術〕[Conventional technology]

複写機やFAX等の画像記録装置では、通常の白地の用
紙を用いた原稿だけでなく例えば新聞や藁半紙、再生
紙、色紙等、様々な用紙を用いた原稿が読み取りの対象
とされている。このような通常の用紙以外の用紙を用い
た原稿は、地肌の濃度が高いため、CCDセンサ等の原稿
読取手段で読み取って、その画像データをそのまま出力
すると、再現された原稿は地肌が出て汚いものとなって
しまう。
2. Description of the Related Art In an image recording apparatus such as a copying machine or a facsimile, not only originals using ordinary white paper but also originals using various papers such as newspaper, straw half-paper, recycled paper, and colored paper are to be read. Documents using such papers other than ordinary paper have a high background density, so if they are read by a document reading means such as a CCD sensor and the image data is output as it is, the reproduced document will have no background. It will be dirty.

そこで、このような地肌が一定の濃度を持った原稿に
対しては、従来より例えば原稿の中央付近等の一定の領
域を読み取り、その平均的な光量を検出して現像バイア
ス調整する光量調整を行い、地肌のハイライト部を飽和
させて地肌の濃度が薄くなるように処理している。
Therefore, for a document having such a background with a constant density, conventionally, for example, a certain area such as near the center of the document is read, and the light quantity adjustment for detecting the average light quantity and adjusting the developing bias is conventionally performed. The processing is performed so that the highlight portion of the background is saturated to reduce the density of the background.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

しかしながら、上記のような従来の地肌除去方式で
は、一定の領域での平均的な光量を検出するだけである
ため、原稿の画像密度によっても検出レベルが変わり、
地肌が暗い原稿か、明るい原稿かの正しい判断ができな
いという問題がある。しかも、第17図に示すように入力
と出力との変換カーブをシフトしてハイライト側を飽和
させるような処理を行うと、全体として濃度が落ちてし
まう。
However, in the conventional background removal method as described above, since only the average light amount in a certain area is detected, the detection level also changes depending on the image density of the document,
There is a problem that it is not possible to correctly determine whether a document has a dark background or a bright document. In addition, if a process of shifting the conversion curve between input and output to saturate the highlight side is performed as shown in FIG. 17, the density is reduced as a whole.

また、白地の用紙に新聞や雑誌等の切り抜きを貼り合
わせ編集したような原稿を複写することがしばしば行わ
れるが、このような原稿の場合には、複数の地肌濃度が
混在することになる。しかし、従来は、このような貼り
合わせした原稿の特定領域だけを濃度調整し地肌を除去
するとういようなことはできなかった。しかも、比較的
高い濃度の地肌を除去しようとすると、白地に書かれた
手書き文字等の低コントラスト部も消去されてしまい、
高い濃度の地肌を除去すると同時に白地の手書き文字等
は残すことは不可能であった。
In addition, it is often performed to copy a manuscript in which a cutout of a newspaper, a magazine, or the like is pasted and edited on a white paper. In such a manuscript, a plurality of background densities are mixed. However, conventionally, it has not been possible to remove the background by adjusting the density only in a specific area of such an attached document. Moreover, when trying to remove a relatively high density background, low-contrast parts such as handwritten characters written on a white background are also erased,
It was impossible to remove the background of high density and at the same time leave the white handwritten characters and the like.

本発明は、上記の課題を解決するものであって、領域
毎に地肌除去の閾値を設定できるようにすることを目的
とするものである。本発明の他の目的は、複数の地肌濃
度が混在する原稿でそれぞれの地肌の濃度領域を検出
し、閾値の切り換えができるようにすることである。さ
らに本発明の他の目的は、貼り合わせ部の地肌濃度と白
地部の低コントラスト画像とを分離できるようにするこ
とである。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has as its object to set a threshold value for background removal for each region. It is another object of the present invention to detect a density region of each background in a document in which a plurality of background densities are mixed, and to be able to switch a threshold value. Still another object of the present invention is to be able to separate the background density of the bonded portion from the low-contrast image of the white portion.

〔課題を解決するための手段〕[Means for solving the problem]

そのために本発明は、原稿の各画素の濃度を検出する
濃度検出手段と、各濃度毎に画素数を計数して濃度分布
のヒストグラムを作成するヒストグラム作成手段と、該
ヒストグラムから濃度分布のピークを検出し原稿の地肌
除去のための閾値を決定する閾値決定手段とを備えると
共に、ヒストグラム作成手段は、原稿の地肌濃度が検出
される低濃度領域のみのヒストグラムを作成することを
特徴とする。
For this purpose, the present invention provides a density detecting means for detecting the density of each pixel of a document, a histogram creating means for counting the number of pixels for each density and creating a histogram of the density distribution, and obtaining a peak of the density distribution from the histogram. A threshold determining means for detecting and determining a threshold value for removing the background of the document is provided, and the histogram creating means creates a histogram of only a low density area where the background density of the document is detected.

また、原稿の各画素の濃度を検出する濃度検出手段
と、各濃度毎に画素数を計数して濃度分布のヒストグラ
ムを作成するヒストグラム作成手段と、該ヒストグラム
から濃度分布のピークを検出し地肌除去のための閾値を
決定する閾値決定手段とを備えると共に、ヒストグラム
作成手段は、濃度を複数の濃度領域に分け、該濃度領域
毎に画素数を計数して濃度分布のヒストグラムを作成
し、前記複数の濃度領域は、隣接する濃度領域を部分的
に重ねて設定したことを特徴とする。
A density detecting means for detecting the density of each pixel of the document; a histogram creating means for counting the number of pixels for each density to create a histogram of the density distribution; and detecting a peak of the density distribution from the histogram to remove the background. Threshold determination means for determining a threshold value for the density, a histogram creation means divides the density into a plurality of density areas, counts the number of pixels for each density area, creates a histogram of density distribution, Is characterized in that adjacent density regions are set so as to partially overlap each other.

さらに、原稿の各画素の濃度を検出する濃度検出手段
と、各濃度毎に画素数を計数して濃度分布のヒストグラ
ムを作成するヒストグラム作成手段と、該ヒストグラム
から濃度分布のピークを検出し地肌除去のための閾値を
決定する閾値決定手段とを備えると共に、閾値決定手段
は、ヒストグラム作成手段が作成した濃度分布のヒスト
グラムを用いて、原稿の地肌濃度が検出される低濃度領
域内においてその高濃度領域側から基準値以上の画素数
を計数したピークを検出し、該ピークに基づいて地肌除
去のための閾値を決定することを特徴とする。
Further, density detecting means for detecting the density of each pixel of the document, histogram creating means for counting the number of pixels for each density and creating a histogram of the density distribution, and detecting the peak of the density distribution from the histogram to remove the background. Threshold value determining means for determining a threshold value for the original document, and the threshold value determining means uses the histogram of the density distribution created by the histogram creating means to detect the high density in the low density area where the background density of the document is detected. It is characterized in that a peak in which the number of pixels equal to or more than the reference value is counted from the region side is detected, and a threshold value for background removal is determined based on the peak.

〔作用〕[Action]

本発明の画像処理装置では、原稿の各画素の濃度を検
出する濃度検出手段と、各濃度毎に画素数を計数して濃
度分布のヒストグラムを作成するヒストグラム作成手段
と、該ヒストグラムから濃度分布のピークを検出し地肌
除去のための閾値を決定する閾値決定手段とを備えるこ
とにより、複数の地肌濃度が混在する貼り合わせ原稿で
あっても、それぞれの地肌濃度の領域を検出することが
でき、画像データの記録では、原稿の地肌濃度を検出し
て閾値を切り換えて地肌の画像データを白に置き換え、
領域毎に地肌除去を効率よく行うことができる。
In the image processing apparatus of the present invention, a density detecting unit that detects the density of each pixel of a document, a histogram creating unit that counts the number of pixels for each density and creates a histogram of the density distribution, By providing a threshold value determination unit that detects a peak and determines a threshold value for background removal, even in a bonded document in which a plurality of background densities are mixed, it is possible to detect each background density region, In recording image data, the background density of the document is detected, the threshold is switched, and the background image data is replaced with white.
The background can be efficiently removed for each area.

〔実施例〕〔Example〕

以下、図面を参照しつつ実施例を説明する。 Hereinafter, embodiments will be described with reference to the drawings.

第1図は本発明に係る画像処理装置の1実施例を説明
するための図である。
FIG. 1 is a diagram for explaining an embodiment of the image processing apparatus according to the present invention.

本発明は、第1図に示すように地肌代表値決定回路6
の濃度検出手段1でプリスキャン時に原稿情報として各
画素の濃度を読み込み、ヒストグラム作成手段2でヒス
トグラム3を作成し、そこから新聞、色紙等の貼り合わ
せがある場合にもそれぞれの地肌除去のための閾値5を
決定するように構成し、地肌除去回路7は、その閾値を
用いてメインスキャン時の原稿読み取り入力画像データ
から地肌を除去するように構成したものである。すなわ
ち、閾値5としては、貼り合わせ原稿に対してそれぞれ
の地肌に対応した値が決定され、メインスキャン時に
は、その値からどの地肌の領域から判定しながら閾値の
切り換えを行って地肌除去の処理を行う。したがって、
白地の用紙の原稿に新聞を貼り合わせした場合であって
も、白地の用紙の部分では低い閾値が用いられるので、
手書き文字のような低コントラストの画像も除去される
ことなく再現され、新聞の貼り合わせ部では、高い閾値
に切り換えられ、高い濃度の地肌が除去される。
In the present invention, as shown in FIG.
The density detection means 1 reads the density of each pixel as document information at the time of pre-scanning, and the histogram creation means 2 creates a histogram 3 from which the background is removed even when newspapers, colored paper, etc. are stuck together. And the background removal circuit 7 is configured to remove the background from the input image data of the original read at the time of the main scan by using the threshold. That is, as the threshold value 5, a value corresponding to each background is determined for the stitched original. At the time of the main scan, the threshold value is switched while judging from which background area based on the value, and the background removal processing is performed. Do. Therefore,
Even if a newspaper is pasted on a white paper original, a low threshold is used for the white paper,
Even a low-contrast image such as a handwritten character is reproduced without being removed, and is switched to a high threshold value in a newspaper bonding portion, so that a background with a high density is removed.

まず、地肌代表値検出回路について説明する。 First, the background representative value detection circuit will be described.

第2図は地肌代表値検出回路の構成例を示す図、第3
図は各種原稿による濃度分布の違いを説明するための
図、第4図は原稿による地肌濃度分散の度合を説明する
ための図、第5図はヒストグラムの作成処理の変形例を
説明するための図、第6図は濃度領域の設定例を示す
図、第7図は濃度領域の設定の違いによるヒストグラム
の変化を示す図、第8図は実際のヒストグラムの作成例
を示す図、第9図はピーク検出例を説明するための図、
第10図は濃度領域と適用する閾値との関係を示す図であ
る。
FIG. 2 is a diagram showing a configuration example of a background representative value detection circuit, and FIG.
FIG. 4 is a diagram for explaining a difference in density distribution between various documents, FIG. 4 is a diagram for explaining the degree of background density dispersion by documents, and FIG. 5 is a diagram for explaining a modification of the histogram creation processing. FIG. 6, FIG. 6 is a view showing an example of setting a density area, FIG. 7 is a view showing a change in a histogram due to a difference in setting of a density area, FIG. 8 is a view showing an example of actual creation of a histogram, FIG. Is a diagram for explaining an example of peak detection,
FIG. 10 is a diagram showing a relationship between a density area and a threshold value to be applied.

第2図において、比較器11は、例えば8ビット、256
階調の入力画像データについて0〜138までの低濃度域
で濃度検出の基準値との比較により濃度領域の検出を行
うものであり、検出した濃度領域毎に画素数をカウント
するのがカウンタ12−1、12−2、………である。した
がって、プリスキャンによって原稿全面の入力画像デー
タを処理すると、読み取り原稿に関する濃度分布のヒス
トグラムをカウンタ12−1、12−2、………で得ること
ができる。BKG判定回路13は、カウンタ12−1、12−
2、………のカウント値から濃度分布のピークを検出
し、検出したピークからそれを代表値とする白地、新
聞、色紙等の異なる複数の地肌の濃度領域を判定するも
のであり、Threshold決定回路14は、BKG判定回路13で判
定した各濃度領域に基づいて閾値を決定するものであ
る。したがって、第1図に示す濃度検出手段1を比較器
11で、ヒストグラム作成手段2をカウンタ12−1、12−
2、………で、閾値決定手段4をBKG判定回路13とThres
hold決定回路14で構成したものである。
In FIG. 2, the comparator 11 has, for example, 8 bits, 256 bits.
A density area is detected by comparing the input image data of the gradation with a reference value of density detection in a low density area of 0 to 138, and a counter 12 counts the number of pixels for each detected density area. -1, 12-2, ..... Therefore, when the input image data of the entire original is processed by the prescan, a histogram of the density distribution relating to the read original can be obtained by the counters 12-1, 12-2,.... The BKG determination circuit 13 includes counters 12-1, 12-
2. A peak of the density distribution is detected from the count value of 2,..., And a plurality of different density regions of the background, such as a white background, a newspaper, a colored paper, etc., having the detected peak as a representative value are determined. The circuit 14 determines a threshold based on each density region determined by the BKG determination circuit 13. Therefore, the density detecting means 1 shown in FIG.
In step 11, the histogram creating means 2 sets the counters 12-1, 12-
2. The threshold determining means 4 is connected to the BKG determination circuit 13 and the threshold
It is configured by a hold determination circuit 14.

先に述べたように白地る新聞を切り抜いて貼り合わせ
した原稿の場合、地肌の濃度はかなり異なり、新聞の地
肌を除去するように閾値を設定すると、白地の用紙に書
かれた例えば手書き文字のような低コントラスト画像も
除去されてしまうという問題が生じる。そこで、複数の
地肌濃度が存在する張り合わせ原稿の場合に、それぞれ
の地肌を飛ばし、しかも低コントラストの文字が薄くな
らないように上記問題を解決するためには、それぞれ個
別の地肌レベルを検知し、また、検知された複数の地肌
レベルに対応した閾値の切り換えを的確に行うことが必
要である。
As described above, in the case of an original in which a newspaper with a white background is cut out and pasted, the density of the background is considerably different.If a threshold value is set to remove the background of the newspaper, for example, handwritten characters written on a white background paper There is a problem that such a low contrast image is also removed. Therefore, in the case of a stitched original having a plurality of background densities, in order to solve the above-described problem so that each background is skipped and low-contrast characters are not thinned, an individual background level is detected. In addition, it is necessary to accurately switch the thresholds corresponding to the plurality of detected background levels.

例えば第3図(a)に示すような通常の原稿の場合に
は、同図(b)に示すようにほぼ白に近い低濃度領域に
地肌の高い度数が現れ、黒に近い高濃度領域に画像の度
数が現れる。また、同図(c)に示すように地肌濃度が
異なる複数の原稿を貼り合わせた場合には、同図(d)
に示すようにほぼ白い近い低濃度領域の他、貼り合わせ
た原稿の地肌濃度に対応するそれぞれの低濃度領域に一
定の度数が現れる。このように地肌部の特徴は、原稿全
体に占める面積が大きく、画像部に比較して低濃度であ
る。このことから、地肌除去では、先に述べたように原
稿の低濃度域で濃度分布のヒストグラムを作成し、そし
て、そのヒストグラムからピークを探して地肌代表値を
検出すればよいことがわかる。
For example, in the case of a normal original as shown in FIG. 3 (a), as shown in FIG. 3 (b), a high frequency of the background appears in a low density area which is almost white, and in a high density area which is close to black. The frequency of the image appears. Further, when a plurality of originals having different background densities are stuck together as shown in FIG.
As shown in FIG. 5, a certain frequency appears in each of the low-density areas corresponding to the background density of the pasted original document, in addition to the nearly white low-density area. As described above, the feature of the background portion is that the area occupying the entire document is large and the density is lower than that of the image portion. From this, it can be seen that, in the background removal, as described above, a histogram of the density distribution is created in the low-density region of the document, and a peak representative value is detected by searching for a peak from the histogram.

しかし、この場合の問題点としては、原稿全面の画像
データを処理すると、A3サイズでは解像度が400spiの場
合、約3200万画素(=約4700×約6700)になるのでデー
タが膨大になり、また、新聞やジアゾ等のむらがある地
肌では、分布が急峻なピークを示す白地に較べ分散して
ブロードになり、ピークが低いことである。例えば第4
図(a)は白地原稿の場合の濃度の度数分布を示し、同
図(b)は新聞原稿の場合の濃度の度数分布を示す。と
ころが、白地に低コントラストの文字の原稿の場合に
は、同図(c)に示すような度数分布を示し、文字の濃
度が新聞原稿の地肌の濃度と変わらなくなってしまう。
したがって、白地に新聞を貼り合わせると、同図(d)
に示すように新聞の地肌と白地の低コントラスト文字と
が重なった濃度となってしまう。
However, the problem in this case is that if the image data of the entire original is processed, the resolution will be about 32 million pixels (= about 4700 x about 6700) at 400 dpi for A3 size, and the data will be enormous. On the other hand, in the case of uneven background such as newspapers and diazo, the distribution is broader than that of a white background showing a steep peak, and the peak is low. For example, the fourth
FIG. 6A shows the frequency distribution of the density in the case of a white background document, and FIG. 5B shows the frequency distribution of the density in the case of a newspaper document. However, in the case of a document having a low contrast character on a white background, a frequency distribution as shown in FIG. 3C is shown, and the density of the character does not change from the density of the background of the newspaper document.
Therefore, when a newspaper is pasted on a white background,
As shown in (1), the density of the background of the newspaper and the low-contrast characters on the white background overlap.

そこで、まず、データ量を抑えるためには、例えばX/
Y分割型や間引き型を採用してもよい。X/Y分割型は、第
5図(a)に示すように主走査方向(X方向)で各ライ
ン毎にヒストグラムを作成してピークを求め、各ピーク
値を副走査方向(Y方向)に集め、ヒストグラムを作成
してもよいし、また、主走査方向のヒストグラムから所
定数のピーク(例えば3つ)を副走査方向でカウントし
てヒストグラムを作成してもよい。このようにすると、
高い検出精度を得ることができ、また、A3サイズでは、
解像度が400spiの場合、各ラインが約4700画素、約6700
ラインの2つになるので、データ量を大幅に低減し、必
要な情報を得ることができる。間引き型は、同図(b)
に示すように数画素間隔で間引いてサンプリングし、ヒ
ストグラムを作成するので、回路構成を簡素化すること
ができる。例えば主走査で96画素毎に、また副走査で24
1ライン毎にサンプリングしてヒストグラムを作成し、
主走査方向では、サンプリング間の中の最も低濃度の画
素を捜してそれを地肌の濃度としてカウントする方式を
採用してもよい。このようにすると、サンプリングポイ
ントがイメージである場合にも地肌データをサンプリン
グできる。
Therefore, first, in order to reduce the data amount, for example, X /
A Y-division type or a thinning type may be adopted. In the X / Y split type, as shown in FIG. 5 (a), a histogram is created for each line in the main scanning direction (X direction) to determine a peak, and each peak value is calculated in the sub scanning direction (Y direction). The histogram may be collected and a histogram may be created. Alternatively, a histogram may be created by counting a predetermined number of peaks (for example, three) from the histogram in the main scanning direction in the sub-scanning direction. This way,
High detection accuracy can be obtained, and in A3 size,
When the resolution is 400 spi, each line is about 4700 pixels, about 6700
Since there are two lines, the amount of data can be greatly reduced and necessary information can be obtained. The thinning type is shown in FIG.
As shown in (1), since sampling is performed by thinning out at intervals of several pixels to create a histogram, the circuit configuration can be simplified. For example, every 96 pixels in the main scan and 24 in the sub-scan
Create a histogram by sampling each line,
In the main scanning direction, a method of searching for the lowest density pixel during sampling and counting it as background density may be employed. In this way, the background data can be sampled even when the sampling point is an image.

また、8ビット、256階調の画像データで全濃度にわ
たり画素をカウントすると、256のカウンタが必要とな
る。しかし、一般的な地肌となる最も地肌濃度の高い領
域、例えば新聞では138までの領域にすると、カウンタ
の数を大幅に削減することができる。また、原稿によっ
て地肌の濃度のバラツキがあり、ヒストグラムのピーク
が現れる濃度がずれるので、幅を持った濃度領域を設定
してその濃度領域でのヒストグラムを作成する。さらに
は、先に第4図で述べたように原稿により地肌の濃度の
バラツキの程度が異なるので、濃度領域の幅は、原稿に
対応した濃度領域毎に変えるようにすると、カウンタの
数の削減だけでなく、原稿によるバラツキに対しても高
い精度での判定、地肌除去処理を行うようにすることが
できる。
In addition, when pixels are counted over all densities with 8-bit, 256-gradation image data, 256 counters are required. However, the number of counters can be significantly reduced by setting the area of the background density which is a general background to be the highest, for example, the area of up to 138 in newspapers. Further, since the density of the background varies depending on the document and the density at which the peak of the histogram appears is shifted, a density region having a width is set and a histogram in the density region is created. Further, as described above with reference to FIG. 4, since the density of the background varies depending on the document, the width of the density area is changed for each density area corresponding to the document, thereby reducing the number of counters. In addition to this, it is possible to perform highly accurate determination and background removal processing even for variations due to originals.

しかし、上記のようにしても、領域の分け方によりピ
ークの出方が変わり、領域の境界付近で地肌の出方が2
つの領域に分散してしまい、ピークが出にくくなったり
して領域の設定が難しい場合がある。このようなことも
配慮すると、例えばムラのある地肌の原稿に合わせて0
〜138の濃度データを第6図(b)に示すように10ブロ
ックに分割して、ヒストグラムを作る濃度に種々の幅を
持たせることが有効である。そして、同図(a)、
(c)及び下表に示すように半分ずつ重ね合わせ、ピー
クを探した場合には、次にその両隣は選ばないようにす
ることである。
However, even in the case described above, the appearance of the peak changes depending on the method of dividing the region, and the appearance of the background near the boundary of the region is 2.
There is a case where it is difficult to set a region because it is dispersed in one region and a peak is difficult to appear. In consideration of such a situation, for example, according to the original having uneven background,
It is effective to divide the density data of .about.138 into 10 blocks as shown in FIG. 6 (b) so that the density for forming the histogram has various widths. Then, FIG.
As shown in (c) and the table below, when a peak is searched for, and the peaks are searched for, the next two sides are not selected.

領域の幅を変化させた場合の例を示したのが第7図で
あり、同図(a)に示すヒストグラムに対して、領域に
幅を持たせたヒストグラムは同図(b)に示すようにな
り、領域の境界がずれた時は同図(c)、半分ずつ重ね
たヒストグラムは同図(d)に示すようになる。上記の
領域指定により実際のヒストグラムを作成した例を示し
たのが第8図である。
FIG. 7 shows an example in which the width of the area is changed. In contrast to the histogram shown in FIG. 7A, a histogram in which the area has a width is shown in FIG. When the boundaries of the regions are shifted, the histogram shown in FIG. 3C and the half-superimposed histogram are shown in FIG. FIG. 8 shows an example in which an actual histogram is created by the above-mentioned area designation.

ピークの検出では、最も高いピークを検出すると、そ
のピークを1/2にして同様の処理を3回繰り返し行う。
或いは、そのピーク及び両隣を0にクリアすると共にさ
らに2つ隣を1/2にして同様の処理を3回繰り返し行
う。このようにしてバラツキの影響を抑え、検出された
ピークが基準値以下であれば無視することによって低カ
バレッジのものやノイズ的なものは除外する。つまり、
貼り合わせ原稿でない場合や、2種類の地肌レベルしか
ない場合にも、それに応じたピーク検出を可能にするも
のである。また、第9図に示すようにピーク探索を行わ
ず、規定度数を越えた中で最も高濃度側の領域から地肌
領域を判定するように構成してもよい。この場合、連続
する領域を1単位とし、複数の単位、例えば図示A、B
を判定結果とするように処理してもよい。
In peak detection, when the highest peak is detected, the same process is repeated three times by halving the peak.
Alternatively, the same processing is repeated three times while clearing the peak and both sides to 0 and further halving the next two sides. In this way, the influence of the variation is suppressed, and if the detected peak is equal to or less than the reference value, it is ignored to exclude low-coverage ones and noise-like ones. That is,
Even if the original is not a stitched original or if there are only two types of background levels, peak detection can be performed in accordance with that. In addition, as shown in FIG. 9, a peak search may not be performed, and the background area may be determined from the area on the highest density side exceeding the specified frequency. In this case, a continuous area is defined as one unit, and a plurality of units, for example, A and B shown in FIG.
May be processed as the determination result.

選ばれたピークを代表値とする濃度領域と、その領域
に適用する閾値を決定は、次のようにして行われる。す
なわち、第10図(a)に示すa、b、cの濃度データが
選ばれたピークとすると、それより低濃度側も含めた濃
度領域A、B、Cがそれぞれのピークを代表値とする濃
度領域となり、これらの各濃度領域に適用する閾値TH
A、THB、THCは、その濃度領域より高めの値となる。例
えば0〜11の濃度領域Aに対する閾値THAは11、12〜57
の濃度領域Bに対する閾値THBは67、58〜138の濃度領域
Cに対する閾値THCは148とするように、高域側はムラを
見込んで高めの値に設定する。Threshold決定回路14で
は、この濃度領域A、B、C及び閾値THA、THB、THCを
出力する。
The determination of the density region having the selected peak as a representative value and the threshold value applied to the region is performed as follows. That is, assuming that the density data of a, b, and c shown in FIG. 10 (a) are the selected peaks, the density regions A, B, and C including the lower density side have the respective peaks as representative values. Density areas, and a threshold value TH applied to each of these density areas.
A, THB, and THC take values higher than the concentration range. For example, the threshold THA for the density region A of 0 to 11 is 11, 12 to 57
The threshold value THB for the density region B is set to 67, and the threshold value THC for the density region C of 58 to 138 is set to 148. The threshold determination circuit 14 outputs the density areas A, B, and C and the thresholds THA, THB, and THC.

なお、プリスキャンにおいて、原稿サイズを検知でき
るようにするためには、プラテンカバーを原稿の地肌濃
度より高い濃度、例えばグレーにすることが必要にな
る。この場合には、上記のように濃度領域を制限してヒ
ストグラムを作成すると、OHPの読み取りにおいて、地
肌濃度のピークが全く検出されないことになる。そこ
で、逆にこのことを利用し、OHP用の地肌除去のために
特定の閾値を予め設定可能にしておくと、ヒストグラム
のピークが全て基準値以下でありピークが検出されない
ことを条件として、特定の閾値を用いるようにすること
によって、OHPの場合に地肌除去を行えるようにするこ
とができる。
In order to detect the document size in the prescan, the platen cover needs to have a density higher than the background density of the document, for example, gray. In this case, if the histogram is created by limiting the density area as described above, the peak of the background density is not detected at all in reading the OHP. Therefore, conversely, using this fact, if a specific threshold value can be set in advance for the background removal for OHP, the specific peak is determined on the condition that all the peaks of the histogram are below the reference value and no peak is detected. By using the threshold value of, the background can be removed in the case of OHP.

上記のうち、第5図(a)に示すX/Y分割型を採用し
た場合の処理の例を説明する。
Among the above, an example of processing when the X / Y split type shown in FIG. 5A is adopted will be described.

第11図は第2図に示すBKG判定回路13及びThreshold決
定回路14による処理を説明するための図である。
FIG. 11 is a diagram for explaining the processing by the BKG determination circuit 13 and the threshold determination circuit 14 shown in FIG.

この処理では、プリスキャンがスタートすると、ま
ず、1ライン分の入力画像データでヒストグラムxを作
成し、その最大度数領域(peak area)を探す(ステッ
プ、)。
In this process, when the prescan is started, first, a histogram x is created from the input image data for one line, and a maximum frequency area (peak area) thereof is searched (step (2)).

次に、ヒストグラムxの最大度数領域のカウント数が
基準値(MINX;例えば50)以上か否かを調べる。基準値
以上の場合にはヒストグラムyの最大度数領域のカウン
タを+1し、基準値以下の場合にはステップに飛ぶ。
そして、ヒストグラムxの最大度数領域のカウント値を
1/2にし、さらにステップに戻って3回ヒストグラム
xの最大度数領域を探すまで同様の処理を繰り返し行う
(ステップ〜)。
Next, it is checked whether or not the count number in the maximum frequency area of the histogram x is equal to or more than a reference value (MINX; for example, 50). If it is not less than the reference value, the counter of the maximum frequency area of the histogram y is incremented by 1, and if it is less than the reference value, the process jumps to the step.
Then, the count value of the maximum frequency area of the histogram x is
The same process is repeatedly performed until the maximum frequency area of the histogram x is searched three times by returning to the step ス テ ッ プ, and returning to the step (step 〜).

次のラインへ移り、最終ラインになるまでステップ
に戻り同様の処理を繰り返し行う(ステップ、)。
The process moves to the next line, returns to the steps until the last line is reached, and repeats the same processing (step).

以上が原稿全面に関するヒストグラムyの作成処理で
ある。
The above is the process of creating the histogram y for the entire original.

ヒストグラムyが作成されると、その第1の最大度数
領域(No.1area)を探し、そのカウント数が所定の値
(ライン数/16)以上か否かを調べる。所定の値以上で
ある場合には、ヒストグラムyの最大度数領域(No.1ar
ea)とその両隣のカウント数を0に、2つの隣のカウン
ト数を1/2にし、所定の値以上でない場合には全ての最
大度数領域(No.1area、No.2area、No.3area)を無効と
し閾値をTHMAX(例えば143)に固定する。同様に第2の
最大度数領域(No.2area)、第3の最大度数領域(No.3
area)を探し、それぞれのカウント数が所定の値以上か
否かを調べて、各最大度数領域(No.1area、No.2area、
No.3area)の有効/無効を設定する。この場合、第2の
最大度数領域(No.2area)のカウント数が所定の値以上
のときも、そのカウント数、両隣のカウント数を0に、
2つ隣のカウント数を1/2にする(ステップ〜)。
When the histogram y is created, the first maximum frequency area (No. 1 area) is searched, and it is checked whether the count number is equal to or more than a predetermined value (line number / 16). If the value is equal to or more than the predetermined value, the maximum frequency area of the histogram y (No. 1ar
ea), the counts on both sides thereof are set to 0, the counts on the two neighbors are halved, and if not more than a predetermined value, all maximum frequency areas (No. 1 area, No. 2 area, No. 3 area) Is invalidated and the threshold value is fixed at THMAX (for example, 143). Similarly, a second maximum frequency area (No. 2 area) and a third maximum frequency area (No. 3)
area), and check whether each count number is equal to or more than a predetermined value, and determine each maximum frequency area (No.1area, No.2area,
No.3area) valid / invalid. In this case, even when the count number of the second maximum frequency area (No. 2area) is a predetermined value or more, the count number and the count numbers on both sides are set to 0,
The count number of the next two is halved (step ~).

そして、各最大度数領域(No.1area、No.2area、No.3
area)を高濃度領域からareaA、areaB、areaCに並び換
え、第10図で説明したように有効な領域について高濃度
側から順に低濃度側へ領域を延ばして適用濃度領域の設
定を行う(ステップ〜)。
And each maximum frequency area (No.1area, No.2area, No.3
area) is rearranged from the high-density area to areaA, areaB, and areaC, and as described in FIG. 10, the effective density area is extended from the high-density side to the low-density side to set the applicable density area (step). ~).

次に、メインスキャンで画像データを記録するときに
行う地肌除去について説明する。
Next, the background removal performed when recording image data in the main scan will be described.

第12図は地肌除去回路の構成例を示す図、第13図は閾
値切り換えのアルゴリズムを説明するための図、第14図
は平滑処理を説明するための図である。
FIG. 12 is a diagram showing a configuration example of a background removal circuit, FIG. 13 is a diagram for explaining an algorithm of threshold switching, and FIG. 14 is a diagram for explaining smoothing processing.

第12図において、FIFO21は、入力画像データを例えば
57画素、FIFO34は3画素遅延させるものであり、比較回
路22及び23は、第1の領域と入力画像データの値とを比
較し、第1の領域内の画素を検出するものである。カウ
ンタ24は、比較回路22の出力でカウントアップし、比較
回路23の出力でカウントダウンするものであり、したが
って、カウント値は、FIFO21で遅延した60画素の中で第
1の領域に入る画素数となる。同様に比較回路25及び26
は、第2の領域と入力画像データの値とを比較し、カウ
ンタ27は、60画素の中で第2の領域に入る画素数をカウ
ントするものであり、比較回路28及び29は、第3の領域
と入力画像データの値とを比較し、カウンタ30は、60画
素の中で第3の領域に入る画素数をカウントするもので
ある。ここで、第1の領域A、第2の領域B、第3の領
域Cは、例えば第10図の説明により決定された第1の閾
値THA、第2の閾値THB、第3の閾値THCに対応して設定
される領域である。つまり、上記の回路は、閾値の切り
換えを判定するために、FIFO34から出力される画素に対
して60画素先までの画像データをチェックするものであ
る。FIFO34、比較器35、36、カウンタ37は、3画素先の
チェックを行うための回路であり、比較器35、36で適用
地肌エリアの閾値との比較を行って地肌エリア以外
(黒)の画素を検出し、3画素以内に地肌リエア外
(黒)のデータがあるか否かをカウンタ37でカウントす
るものである。そして、3画素以内に地肌リエア外
(黒)のデータがある場合には、低濃度から高濃度への
切り換えを禁止し、イメージのエッジ部による閾値の切
り換わりを防ぐようにしている。
In FIG. 12, the FIFO 21 converts input image data into, for example,
57 pixels and the FIFO 34 delay three pixels, and the comparison circuits 22 and 23 compare the value of the first area with the value of the input image data and detect the pixels in the first area. The counter 24 counts up at the output of the comparison circuit 22 and counts down at the output of the comparison circuit 23. Accordingly, the count value is determined by the number of pixels falling into the first area out of the 60 pixels delayed by the FIFO 21. Become. Similarly, the comparison circuits 25 and 26
Compares the value of the input image data with the second area, the counter 27 counts the number of pixels included in the second area out of the 60 pixels, and the comparison circuits 28 and 29 output the third Is compared with the value of the input image data, and the counter 30 counts the number of pixels included in the third area out of the 60 pixels. Here, the first area A, the second area B, and the third area C are, for example, the first threshold THA, the second threshold THB, and the third threshold THC determined by the description of FIG. This is an area set correspondingly. That is, the above-described circuit checks the image data up to 60 pixels ahead of the pixel output from the FIFO 34 in order to determine the switching of the threshold value. The FIFO 34, the comparators 35 and 36, and the counter 37 are circuits for checking ahead of three pixels. The comparators 35 and 36 compare the threshold value of the applicable background area with the pixels other than the background area (black). Is detected, and the counter 37 counts whether or not there is data outside the background (black) within three pixels. When there is data outside the background (black) within three pixels, switching from low density to high density is prohibited, and switching of the threshold value due to the edge portion of the image is prevented.

Threshold決定回路33は、カウンタ24、27、30、37の
値からBKG除去回路32で適用する閾値を決定し、その閾
値を地肌除去回路32に出力するものである。BKG除去回
路32は、Threshold決定回路33で決定された閾値と入力
画像データとを比較し、閾値より小さい値の画像データ
を0に置き換える。つまり、閾値より小さい値の画像デ
ータは、地肌と判定し白の画像データに置き換えて出力
画像データとする。
The threshold determination circuit 33 determines a threshold to be applied by the BKG removal circuit 32 from the values of the counters 24, 27, 30, and 37, and outputs the threshold to the background removal circuit 32. The BKG removal circuit 32 compares the threshold value determined by the threshold value determination circuit 33 with the input image data, and replaces image data having a value smaller than the threshold value with 0. That is, image data having a value smaller than the threshold value is determined to be the background, and is replaced with white image data to be output image data.

地肌除去における前提条件は、地肌部の濃度変化に対
して確実に追従し、文字部を認識して情報を欠落させな
いことである。したがって、これを実現するためには、
地肌部と文字部を識別できなければならない。文字部の
場合、その先の画素で必ず地肌レベルに戻ってくるの
で、この情報を利用して地肌部だけ除去できるようにす
ることが必要である。
A prerequisite for background removal is to reliably follow the density change of the background part and recognize the character part so that information is not lost. Therefore, to achieve this,
It must be possible to distinguish the background and the text. In the case of a character portion, since the pixel at the subsequent pixel always returns to the background level, it is necessary to use this information to remove only the background portion.

地肌は、その原稿の最低濃度であり原稿全面に対して
面積が大きいので、複数の地肌濃度が混在する原稿の場
合にも、各地肌の閾値と画像データとを比較することに
より、どの地肌濃度の領域かを判定することができる。
したがって、この判定に基づき閾値の切り換えを行えば
よい。
Since the background is the minimum density of the original and has a large area over the entire surface of the original, even in the case of an original in which a plurality of background densities are mixed, the threshold of each area and the image data are compared to determine the background density. Area can be determined.
Therefore, the threshold value may be switched based on this determination.

例えば第13図に示すように白地と貼り合わせ新聞の地
肌に対応してピーク検出により地肌の領域A、B、C、
閾値THA、THBが適用される場合、白地の領域では地肌の
濃度が閾値THAより小さくなり、新聞の領域では地肌の
濃度が閾値THBより小さくなるが閾値THAよりは大きくな
る。したがって、いずれの閾値よりも小さい場合には、
小さい方の閾値を適用値とし、小さい方の閾値より大き
くなると、その上の閾値を適用値とするように切り換え
を行えばよいことになる。しかし、文字部も、その時の
閾値より大きくなるため、文字部かその上の閾値の地肌
の原稿部かを判定することが必要である。そこで、この
判定は、一定範囲の画素の濃度を検出することによって
可能となる。つまり、第13図に示すようにその時の適用
閾値を越える画像データが出現した場合、例えば60画素
先までの画素について適用閾値で判定される領域の画素
が有るかどうかを見ることである。60画素は、解像度を
16ドット/mmとすると、4mm弱の幅であるので、この幅の
中に文字原稿であれば必ず地肌が存在する。したがっ
て、この場合には閾値の切り換えは行わないようにし、
60画素の幅を見てもそれまでの領域の画素がない場合に
は、その上の閾値に切り換える。この画素の検出を行っ
ているのが、第12図ではカウンタ24、27、30であり、こ
の値によってThreshold決定回路33で適用する閾値の切
り換えが行われる。
For example, as shown in FIG. 13, the peak detection corresponds to the white background and the background of the pasted newspaper, and the background areas A, B, C,
When the threshold values THA and THB are applied, the background density is lower than the threshold value THA in a white background area, and the background density is lower than the threshold value THB in the newspaper area, but is higher than the threshold value THA. Therefore, if it is smaller than either threshold,
The smaller threshold value is set as the applied value, and when the value becomes larger than the smaller threshold value, switching should be performed so that the upper threshold value is set as the applied value. However, since the character portion also becomes larger than the threshold value at that time, it is necessary to determine whether the character portion is the original portion of the background having the threshold value above the character portion. Therefore, this determination can be made by detecting the density of pixels in a certain range. That is, as shown in FIG. 13, when image data exceeding the applicable threshold at that time appears, it is to check whether there is a pixel in the area determined by the applied threshold for pixels up to 60 pixels ahead, for example. 60 pixel resolution
If the width is 16 dots / mm, the width is slightly less than 4 mm. Therefore, if the original is a character document, the background is always present within this width. Therefore, in this case, the threshold should not be switched,
If there is no pixel in the area up to that point even when looking at the width of 60 pixels, the threshold is switched to the upper threshold. In FIG. 12, the counters 24, 27, and 30 detect this pixel, and the threshold value applied by the Threshold determination circuit 33 is switched based on this value.

しかし、上記の切り換えは、低濃度の閾値から高濃度
の閾値へ切り換えるときだけ行い、逆に高濃度の閾値か
ら低濃度の閾値へ切り換えるときは、無条件に切り換え
る。これは、低濃度側には高濃度側の閾値より低い濃度
の文字が存在することがあることに鑑み、不要に高濃度
の閾値を使用するのを防ぐためである。また、低濃度の
閾値から高濃度の閾値への切り換えにおいて、その画素
から先3画素以内に地肌領域より大きい画像データがあ
る場合にも切り換えを行わない。これは、イメージのエ
ッジ部による閾値の切り換わるを防止するためであり、
FIFO31で構成する3画素先チェック回路の画像データを
Threshold決定回路33に取り込んで実行する。
However, the above switching is performed only when switching from the low density threshold to the high density threshold, and conversely, when switching from the high density threshold to the low density threshold, the switching is unconditionally performed. This is to prevent unnecessary use of the high-density threshold value in view of the fact that a character having a density lower than the threshold value on the high-density side may exist on the low-density side. In addition, when switching from the low-density threshold to the high-density threshold, switching is not performed even when there is image data larger than the background area within three pixels from the pixel. This is to prevent switching of the threshold value due to the edge portion of the image,
The image data of the three-pixel ahead check circuit composed of FIFO31 is
It is taken into the Threshold determination circuit 33 and executed.

また、低濃度から高濃度へ閾値を切り換えた後におい
ても、60画素先までに含まれる低濃度の領域の画素数に
より閾値を変化させるようにしてもよい。この場合に
は、例えば係数をk、低濃度の領域に含まれる画素数を
Nとすると、 による係数kを閾値に掛けて修正する。ただし、その閾
値が低濃度の領域の閾値以下となる場合には、低濃度の
閾値とする。このようにすることにより不適当な制御時
の違和感を低減することができる。
Further, even after the threshold is switched from the low density to the high density, the threshold may be changed according to the number of pixels of the low density area included up to 60 pixels ahead. In this case, for example, if the coefficient is k and the number of pixels included in the low density area is N, Is corrected by multiplying the coefficient k by a threshold value. However, if the threshold value is equal to or smaller than the threshold value of the low density area, the threshold value is set to the low density threshold. By doing so, it is possible to reduce a sense of discomfort during inappropriate control.

さらに、閾値を低濃度から高濃度に切り換えた場合に
は、新たな閾値との比較により地肌の除去処理を行う
と、それにより飛ばしきれない地肌について違和感が生
じる。すなわち、白地から新聞や青図に変わったような
場合、飛ばしきれないエッジ部やノイズが現れる。そこ
で、閾値以下の画像データを地肌として単に除去するだ
けでなく、閾値を徐々に飛ばすようにすると、違和感を
低減することができる。この処理を行った場合の入力画
像データと出力画像データとの関係を示したのが第14図
である。この処理は、図から明らかなように閾値THを越
えた入力画像データをそのまま出力するのではなく、閾
値THからその1.5倍の入力画像データに対して平滑化す
るような処理を施すものであり、入力画像データが閾値
TH以下の場合には出力画像データを0に、閾値THの1.5
倍以上の場合にはそのまま出力画像データにし、中間に
ついて入力画像データと閾値との差を3倍して出力画像
データとする。つまり、入力画像データIN、出力画像デ
ータOUTとすると、 OUT=(IN−TH)×3 となる。
Further, when the threshold value is switched from the low density to the high density, if the background is removed by comparison with a new threshold, a feeling of incompatibility occurs with the background that cannot be skipped. That is, when the white background is changed to a newspaper or a blue diagram, an edge portion or noise that cannot be completely skipped appears. Therefore, if the image data below the threshold is not simply removed as the background, but the threshold is gradually skipped, discomfort can be reduced. FIG. 14 shows the relationship between input image data and output image data when this processing is performed. This process does not output the input image data exceeding the threshold TH as it is, as is apparent from the figure, but performs a process for smoothing the input image data 1.5 times the threshold TH. , Input image data is threshold
If it is less than TH, the output image data is set to 0, and the threshold TH is set to 1.5
If the value is twice or more, the output image data is used as it is, and the difference between the input image data and the threshold value is tripled at the middle to obtain output image data. That is, if input image data IN and output image data OUT are set, OUT = (IN−TH) × 3.

第15図はThreshold決定回路33及びBKG除去回路32によ
る処理の例を説明するための図である。
FIG. 15 is a diagram for explaining an example of processing by the threshold determination circuit 33 and the BKG removal circuit 32.

Threshold決定回路33及びBKG除去回路32では、メイン
スキャンのスタートによりまず、前の画素の領域を覚え
ておくレジスタArea Beforeに領域Aをセットする(ス
テップ)。
At the start of the main scan, the Threshold determination circuit 33 and the BKG removal circuit 32 first set the area A in a register Area Before that stores the area of the previous pixel (step).

次に、処理対象画素が属する領域Area Nowを求め、そ
れがその他の領域か前の画素の領域かを調べる(ステッ
プ〜)。
Next, an area “Area Now” to which the pixel to be processed belongs is obtained, and it is checked whether the area is another area or an area of the previous pixel (step to).

そして、その他の領域の場合には、Area NowにArea B
eforeをセットし、前の画素の領域の場合にはそのまま
サプレス処理を行う。濃度的にArea BeforeがArea Now
より小さい場合にはArea Nowの指し示す閾値thを閾値TH
としてセットする(ステップ、、−)。
And for other areas, Area B is added to Area Now
efore is set, and in the case of the area of the previous pixel, the suppression processing is performed as it is. Area Before is Area Now
If smaller than the threshold th indicated by Area Now, the threshold TH
(Step,-).

上記以外の場合には、先行する60画素内のArea Befor
eの指し示す領域に属するデータ数をカウンタの値より
調べ、「Area Nowの指し示す閾値th−カウント値×8」
の値を閾値THとしてセットする。つまり、この処理によ
り閾値の修正を行う(ステップ、)。
In other cases, the Area Befor in the preceding 60 pixels
The number of data belonging to the area indicated by e is checked from the value of the counter, and "threshold th indicated by Area Now-count value x 8"
Is set as the threshold value TH. In other words, the threshold value is corrected by this processing (step).

閾値THとArea Beforeの指し示す閾値thとを比較し、
大きい方を閾値THとしてサプレス処理を行う(ステップ
〜)。
Compare the threshold TH with the threshold th indicated by Area Before,
The suppression process is performed with the larger one as the threshold value TH (step to).

Area NowをArea Beforeにセットし、1ライン終了す
るまでステップに戻り同様の処理を繰り返し行い、1
ラインが終了すると次のラインも同様に1画面終了する
までステップに戻り同様の処理を繰り返し行う(ステ
ップ〜)。
Set Area Now to Area Before, return to the step until one line ends, repeat the same process,
When one line is completed, the process returns to the steps until the next line is also completed by one screen, and the same processing is repeated (steps to).

サプレス処理では、処理対象画像データDが閾値THの
1.5倍より大きいか否かを調べ、処理対象画像データD
が大きければ処理対象画像データDをそのまま出力する
が、処理対象画像データDが閾値THより小さい場合には
処理対象画像データDを0として出力し、処理対象画像
データDが閾値THとその1.5倍との間にある場合には、
処理対象画像データDを(D−TH)×3の値に置き換え
て出力する。
In the suppression processing, the processing target image data D is
It is checked whether it is greater than 1.5 times, and the processing target image data D
Is larger, the processing target image data D is output as it is, but if the processing target image data D is smaller than the threshold value TH, the processing target image data D is output as 0, and the processing target image data D becomes 1.5 times as large as the threshold value TH. If it is between
The processing target image data D is replaced with a value of (D-TH) × 3 and output.

第16図は本発明を適用した画像記録装置のシステム構
成例を示す図である。
FIG. 16 is a diagram showing an example of a system configuration of an image recording apparatus to which the present invention is applied.

第16図において、IIT41は、例えばフルカラーCCDセン
サーを有し、原稿イメージをビデオ信号に変換して出力
するものであり、A/Dコンバータ42は、IIT41のCCDセン
サーから出力されたアナログ信号を8ビットのデジタル
信号に変換するものである。シェーデング補正回路43
は、光源の光量ムラやCCDセンサーの感度ムラ等を補正
するものである。濃度調整回路(AE)46は、本発明に係
る地肌除去の処理を行うものであり、プリスキャンで濃
度分布のヒストグラムを作成して地肌除去の閾値を決定
し、メインスキャンで地肌の濃度領域に応じて閾値を切
り換え、地肌除去を行う。デジタルフィルタ47は文字や
線のエッジを検出して強調し、中間調画像に対しては網
点除去を行うものである。TRC48は、階調再現性をコン
トロールするものであり、そして、IOT49は、前段で処
理された信号をコピーとして出力するものである。ま
た、縮拡処理や編集処理の機能を付加する場合には、そ
のための編集制御回路が例えばTRC48の次に挿入接続さ
れる。
In FIG. 16, an IIT 41 has, for example, a full-color CCD sensor and converts an original image into a video signal and outputs the video signal. An A / D converter 42 converts an analog signal output from the CCD sensor of the IIT 41 into an analog signal. It is converted into a digital signal of bits. Shading correction circuit 43
Is for correcting unevenness in the light amount of the light source, unevenness in the sensitivity of the CCD sensor, and the like. The density adjustment circuit (AE) 46 performs the background removal processing according to the present invention. The density adjustment circuit (AE) 46 creates a density distribution histogram by pre-scanning, determines a background removal threshold, and performs main scanning on the background density area. The threshold value is switched accordingly, and background removal is performed. The digital filter 47 detects and enhances edges of characters and lines, and removes halftone dots from a halftone image. The TRC 48 controls tone reproducibility, and the IOT 49 outputs a signal processed in the preceding stage as a copy. In addition, when adding the function of the enlargement / reduction processing and the editing processing, an editing control circuit for that is inserted and connected after the TRC 48, for example.

〔発明の効果〕〔The invention's effect〕

以上の説明から明らかなように、本発明によれば、原
稿の各画素の濃度を検出する濃度検出手段と、各濃度毎
に画素数を計数して濃度分布のヒストグラムを作成する
ヒストグラム作成手段と、該ヒストグラムから濃度分布
のピークを検出し地肌除去のための閾値を決定する閾値
決定手段とを備えるので、複数の地肌濃度が混在する貼
り合わせ原稿であっても、それぞれの地肌濃度の領域を
検出することができ、画像データの記録では、原稿の地
肌濃度を検出して閾値を切り換えて地肌の画像データを
白に置き換え、領域毎に地肌除去を効率よく行うことが
できる。
As is apparent from the above description, according to the present invention, a density detecting unit that detects the density of each pixel of a document, and a histogram creating unit that counts the number of pixels for each density and creates a histogram of a density distribution And a threshold determining means for detecting a peak of a density distribution from the histogram and determining a threshold value for background removal. Therefore, even in a bonded document in which a plurality of background densities are mixed, each background density region is In the recording of image data, the background density of the document is detected, the threshold is switched, the background image data is replaced with white, and the background can be efficiently removed for each area.

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

第1図は本発明に係る画像処理装置の1実施例を説明す
るための図、第2図は地肌代表値検出回路の構成例を示
す図、第3図は各種原稿による濃度分布の違いを説明す
るための図、第4図は原稿による地肌濃度分散の度合を
説明するための図、第5図はヒストグラムの作成処理の
変形例を説明するための図、第6図は濃度領域の設定例
を示す図、第7図は濃度領域の設定の違いによるヒスト
グラムの変化を示す図、第8図は実際のヒストグラムの
作成例を示す図、第9図はピーク検出例を説明するため
の図、第10図は濃度領域と適用する閾値との関係を示す
図、第11図は第2図に示すBKG判定回路及びThreshold決
定回路による処理を説明するための図、第12図は地肌除
去回路の構成例を示す図、第13図は閾値切り換えのアル
ゴリズムを説明するための図、第14図は平滑処理を説明
するための図、第15図はTreshold決定回路33及びBKG除
去回路32による処理の例を説明するための図、第16図は
本発明を適用した画像記録装置のシステム構成例を示す
図、第17図は地肌除去処理の従来例を説明するための図
である。 1……濃度検出手段、2……ヒストグラム作成手段、3
……ヒストグラム、4……閾値決定手段、5……閾値、
6……地肌代表値決定回路、7……地肌除去回路。
FIG. 1 is a diagram for explaining an embodiment of an image processing apparatus according to the present invention, FIG. 2 is a diagram showing a configuration example of a background representative value detection circuit, and FIG. FIG. 4 is a diagram for explaining the degree of background density variance due to the original, FIG. 5 is a diagram for explaining a modification of the histogram creation processing, and FIG. 6 is a setting of the density area. FIG. 7 is a diagram illustrating an example, FIG. 7 is a diagram illustrating a change in a histogram due to a difference in setting of a density region, FIG. 8 is a diagram illustrating an example of actual creation of a histogram, and FIG. 9 is a diagram illustrating an example of peak detection. FIG. 10 is a diagram showing a relationship between a density region and a threshold to be applied, FIG. 11 is a diagram for explaining processing by a BKG determination circuit and a threshold determination circuit shown in FIG. 2, and FIG. 12 is a background removal circuit. FIG. 13 is a diagram showing an example of the configuration of FIG. FIG. 14, FIG. 14 is a diagram for explaining the smoothing process, FIG. 15 is a diagram for explaining an example of the process by the threshold determination circuit 33 and the BKG removal circuit 32, and FIG. 16 is an image recording to which the present invention is applied. FIG. 17 is a diagram showing an example of the system configuration of the apparatus, and FIG. 17 is a diagram for explaining a conventional example of background removal processing. 1... Density detecting means 2... Histogram creating means 3
... histogram, 4 ... threshold value determination means, 5 ... threshold value,
6 ... Background representative value determination circuit, 7 ... Background removal circuit.

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 H04N 1/46 H04N 1/60 Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) H04N 1/40-1/409 H04N 1/46 H04N 1/60

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】原稿の各画素の濃度を検出する濃度検出手
段と、 各濃度毎に画素数を計数して濃度分布のヒストグラムを
作成するヒストグラム作成手段と、 該ヒストグラムから濃度分布のピークを検出し原稿の地
肌除去のための閾値を決定する閾値決定手段と を備えると共に、ヒストグラム作成手段は、原稿の地肌
濃度が検出される低濃度領域のみのヒストグラムを作成
することを特徴とする画像処理装置。
1. A density detecting means for detecting the density of each pixel of a document, a histogram creating means for counting the number of pixels for each density to create a histogram of a density distribution, and detecting a peak of the density distribution from the histogram. An image processing apparatus comprising: a threshold value determining unit that determines a threshold value for background removal of a document; and a histogram creation unit creates a histogram of only a low-density region in which the background density of the document is detected. .
【請求項2】原稿の各画素の濃度を検出する濃度検出手
段と、 各濃度毎に画素数を計数して濃度分布のヒストグラムを
作成するヒストグラム作成手段と、 該ヒストグラムから濃度分布のピークを検出し地肌除去
のための閾値を決定する閾値決定手段と を備えると共に、ヒストグラム作成手段は、濃度を複数
の濃度領域に分け、該濃度領域毎に画素数を計数して濃
度分布のヒストグラムを作成することを特徴とする画像
処理装置。
2. A density detecting means for detecting the density of each pixel of a document, a histogram creating means for counting the number of pixels for each density to create a histogram of the density distribution, and detecting a peak of the density distribution from the histogram. Threshold value determining means for determining a threshold value for removing background color, and the histogram creating means creates a histogram of the density distribution by dividing the density into a plurality of density areas and counting the number of pixels for each of the density areas. An image processing apparatus characterized by the above-mentioned.
【請求項3】前記複数の濃度領域は、隣接する濃度領域
を部分的に重ねて設定したことを特徴とする請求項2記
載の画像処理装置。
3. An image processing apparatus according to claim 2, wherein said plurality of density areas are set by partially overlapping adjacent density areas.
【請求項4】原稿の各画素の濃度を検出する濃度検出手
段と、 各濃度毎に画素数を計数して濃度分布のヒストグラムを
作成するヒストグラム作成手段と、 該ヒストグラムから濃度分布のピークを検出し地肌除去
のための閾値を決定する閾値決定手段と を備えると共に、閾値決定手段は、ヒストグラム作成手
段が作成した濃度分布のヒストグラムを用いて、原稿の
地肌濃度が検出される低濃度領域内においてその高濃度
領域側から基準値以上の画素数を計数したピークを検出
し、該ピークに基づいて地肌除去のための閾値を決定す
ることを特徴とする画像処理装置。
4. A density detecting means for detecting the density of each pixel of a document; a histogram generating means for counting the number of pixels for each density to generate a density distribution histogram; and detecting a density distribution peak from the histogram. Threshold value determining means for determining a threshold value for background removal, and the threshold value determining means uses a density distribution histogram created by the histogram creating means to detect a background density of a document in a low density area. An image processing apparatus comprising: detecting a peak counting the number of pixels equal to or greater than a reference value from the high-density region; and determining a threshold value for background removal based on the peak.
JP02145100A 1990-05-31 1990-05-31 Image processing device Expired - Lifetime JP3134292B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP02145100A JP3134292B2 (en) 1990-05-31 1990-05-31 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP02145100A JP3134292B2 (en) 1990-05-31 1990-05-31 Image processing device

Publications (2)

Publication Number Publication Date
JPH0437258A JPH0437258A (en) 1992-02-07
JP3134292B2 true JP3134292B2 (en) 2001-02-13

Family

ID=15377375

Family Applications (1)

Application Number Title Priority Date Filing Date
JP02145100A Expired - Lifetime JP3134292B2 (en) 1990-05-31 1990-05-31 Image processing device

Country Status (1)

Country Link
JP (1) JP3134292B2 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06292007A (en) * 1993-03-31 1994-10-18 Minolta Camera Co Ltd Picture processing unit and picture reader
US5831748A (en) * 1994-12-19 1998-11-03 Minolta Co., Ltd. Image processor
JPH08235355A (en) * 1995-02-28 1996-09-13 Minolta Co Ltd Picture processor
JP3845509B2 (en) * 1997-12-19 2006-11-15 株式会社東芝 Image processing apparatus and image forming apparatus
ATE432589T1 (en) 1999-03-02 2009-06-15 Seiko Epson Corp ASSESSMENT DEVICE FOR BACKGROUND IMAGE DATA, ASSESSMENT METHOD FOR BACKGROUND IMAGE DATA AND MEDIUM IN WHICH A CONTROL PROGRAM FOR BACKGROUND IMAGE DATA IS RECORDED
JP4085580B2 (en) 2001-02-20 2008-05-14 富士ゼロックス株式会社 Image processing device
JP4576358B2 (en) * 2006-06-27 2010-11-04 富士通株式会社 Character image processing apparatus and character image processing method
JP5233723B2 (en) 2009-02-13 2013-07-10 富士ゼロックス株式会社 Image processing apparatus, image reading apparatus, and image forming apparatus
JP5424694B2 (en) * 2009-04-10 2014-02-26 株式会社日立情報通信エンジニアリング Image recognition apparatus and program
JP5322980B2 (en) * 2010-03-12 2013-10-23 京セラドキュメントソリューションズ株式会社 Image processing apparatus and image forming apparatus
JP5675194B2 (en) * 2010-07-15 2015-02-25 キヤノン株式会社 Image processing apparatus, image processing method, and program
JP5617733B2 (en) * 2011-03-30 2014-11-05 ブラザー工業株式会社 Reader

Also Published As

Publication number Publication date
JPH0437258A (en) 1992-02-07

Similar Documents

Publication Publication Date Title
US5850298A (en) Image processing device eliminating background noise
JP3134292B2 (en) Image processing device
JP3088010B2 (en) Line drawing separation method and apparatus
JPH0646255A (en) Picture processing unit
JPH0437259A (en) Background elimination processing system for picture recorder
JP2861410B2 (en) Image processing device
JPH10126631A (en) Document type determination method, color image processing apparatus, and recording medium
US6947595B2 (en) System for processing object areas of an image
US7280253B2 (en) System for identifying low-frequency halftone screens in image data
JP2886693B2 (en) Background removal method for image recording device
JP3423665B2 (en) Area determining method and device
JP3182974B2 (en) Background removal equipment
JP3251119B2 (en) Image processing device
JP2893879B2 (en) Background control system for image recording device
JPH08340447A (en) Image processing device with show-through removal function
JPH0993438A (en) Image processing apparatus and method
JP2900343B2 (en) Image processing device
JP3095767B2 (en) Image processing device
JP3352106B2 (en) Image processing apparatus and method
JP2978550B2 (en) Mark detection device
JP3452637B2 (en) Image playback device
JP2000115529A (en) Image playback device
JPH07264408A (en) Image processing device
JP2629183B2 (en) Image area identification device
JPS6180971A (en) Picture signal processor

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071201

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20081201

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20091201

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20101201

Year of fee payment: 10

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101201

Year of fee payment: 10