JPH07322069A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH07322069A
JPH07322069A JP6139445A JP13944594A JPH07322069A JP H07322069 A JPH07322069 A JP H07322069A JP 6139445 A JP6139445 A JP 6139445A JP 13944594 A JP13944594 A JP 13944594A JP H07322069 A JPH07322069 A JP H07322069A
Authority
JP
Japan
Prior art keywords
background
line
density
value
background density
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.)
Granted
Application number
JP6139445A
Other languages
Japanese (ja)
Other versions
JP3314530B2 (en
Inventor
Akihiro Ito
昭博 伊東
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
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP13944594A priority Critical patent/JP3314530B2/en
Publication of JPH07322069A publication Critical patent/JPH07322069A/en
Application granted granted Critical
Publication of JP3314530B2 publication Critical patent/JP3314530B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To detect texture density at high speed without the need of pre- scanning and to prevent the fluctuation of texture density. CONSTITUTION:A background detection part 3 detects texture density for the respective lines of an original. A former line/background detection value holding part 5 holds the background detection value of a former line. A background detection value correction part 4 corrects the texture density of a present line based on the background detection value of the former line, which is held by the former line/background detection value holding part 5. A texture removal part 6 decides the density of picture data, which is read from the original based on the background detection value corrected by the background detection value correction part 4.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、原稿をスキャンして
原稿情報を読み込み、該原稿情報を処理する画像処理装
置に係り、上記原稿情報の地肌濃度を検出して除去する
画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for scanning a document to read document information and processing the document information, and more particularly to an image processing apparatus for detecting and removing background density of the document information.

【0002】[0002]

【従来の技術】複写機やFAX等の画像処理装置では、
白地の用紙を用いた原稿だけでなく、例えば、藁半紙、
再生紙、色紙等、地肌濃度の異なる原稿が読み取りの対
象となっている。このような地肌濃度の異なる原稿の全
てに対して、最適な出力を得るためには、地肌濃度を検
出し、該地肌濃度に応じて、出力濃度を調整する必要が
ある。言い換えると、読み取った原稿情報から適宜地肌
を除去して出力する必要がある。
2. Description of the Related Art In image processing apparatuses such as copiers and fax machines,
Not only manuscripts using white paper, for example, straw paper,
Documents with different background densities, such as recycled paper and colored paper, are targeted for scanning. In order to obtain the optimum output for all the originals having different background densities, it is necessary to detect the background densities and adjust the output densities according to the background densities. In other words, it is necessary to appropriately remove the background from the read document information and output it.

【0003】そこで、従来より、画像処理装置として、
以下のような装置があった。例えば、特開平3−157
063号公報では、1回のスキャンにおいて、原稿情報
に相当するビデオデータをA/D変換するための基準電
圧を、スキャンラインの最大値(地肌濃度)の変化に応
じて更新することにより、地肌を除去している。このよ
うに、各ライン毎にA/D変換時の基準電圧を更新して
いるため、同一原稿内で地肌濃度が変化しても、出力に
おける地肌濃度は常に「白」になり、地肌が除去され
る。
Therefore, conventionally, as an image processing apparatus,
There were the following devices. For example, Japanese Patent Laid-Open No. 3-157
According to Japanese Patent Laid-Open No. 063, the reference voltage for A / D converting the video data corresponding to the document information is updated in accordance with the change of the maximum value (background density) of the scan line in one scan. Have been removed. As described above, since the reference voltage at the time of A / D conversion is updated for each line, even if the background density changes in the same document, the background density in the output is always "white", and the background is removed. To be done.

【0004】また、特開平4−37258号公報におい
ては、原稿をプリスキャンして、該プリスキャン時に原
稿全面における濃度ヒストグラムを作成し、このヒスト
グラムに基づいて原稿の地肌濃度を判別した後、次い
で、メインスキャンした原稿情報から上記予め判別した
地肌濃度を除去している。
In Japanese Patent Application Laid-Open No. 4-37258, a document is pre-scanned, a density histogram of the entire surface of the document is created at the time of the pre-scan, the background density of the document is determined based on this histogram, and then the density of the document is determined. , The previously determined background density is removed from the main-scanned document information.

【0005】[0005]

【発明が解決しようとする課題】ところで、上述した従
来の画像処理装置では、以下の問題を生じた。まず、特
開平3−157063号公報の装置では、実際に地肌を
完全に検出することが難しく、原稿の内容によっては、
途中で不要にしきい値(除去レベル)が変動し、画質が
劣化するという問題があった。
The conventional image processing apparatus described above has the following problems. First, with the device disclosed in Japanese Patent Laid-Open No. 3-157063, it is difficult to completely detect the background, and depending on the content of the original,
There is a problem that the threshold value (removal level) is changed unnecessarily on the way and the image quality is deteriorated.

【0006】また、特開平4−37258号公報の装置
では、原稿の地肌濃度を検出するために、プリスキャン
が必要であるため、原稿を少なくとも2度読み込まなけ
ればならず、出力するまでに時間がかかるという問題が
あった。
Further, in the apparatus disclosed in Japanese Unexamined Patent Publication No. 4-37258, since prescanning is necessary to detect the background density of the original, the original must be read at least twice and it takes time to output it. There was a problem that it took.

【0007】この発明は上述した事情に鑑みてなされた
もので、プリスキャンを必要とせず、高速に地肌濃度を
検出できるとともに、ノイズを低減でき、また、地肌濃
度の変動を防止できる画像処理装置を提供することを目
的としている。
The present invention has been made in view of the above-mentioned circumstances, and an image processing apparatus capable of detecting background density at high speed without requiring prescanning, reducing noise, and preventing fluctuations in background density. Is intended to provide.

【0008】[0008]

【課題を解決するための手段】上述した問題点を解決す
るために、請求項1記載の発明では、ライン単位で地肌
濃度を読み取る際に、ラインを複数のブロックに分割
し、該複数のブロック毎に地肌濃度の最大値を検出する
とともに、1ライン中の各ブロックで検出した前記最大
値の中の最小値を該ラインの地肌濃度とする地肌濃度検
出手段を具備することを特徴とする。
In order to solve the above-mentioned problems, according to the invention of claim 1, when the background density is read line by line, the line is divided into a plurality of blocks and the plurality of blocks are divided. It is characterized by comprising a background density detecting means for detecting the maximum value of the background density for each line and for setting the minimum value of the maximum values detected in each block in one line as the background density of the line.

【0009】また、請求項2記載の発明では、前記複数
のブロックは、その大きさが任意に設定可能であること
を特徴とする。
The invention according to claim 2 is characterized in that the sizes of the plurality of blocks can be arbitrarily set.

【0010】また、請求項3記載の発明では、各ライン
毎に地肌濃度を検出する地肌濃度検出手段と、前ライン
の地肌濃度を保持する前ライン地肌濃度保持手段と、前
記前ライン地肌濃度保持手段によって保持された前ライ
ンの地肌濃度に基づいて現ラインの地肌濃度を補正する
補正手段と、前記補正手段により補正された地肌濃度に
基づいて、地肌を除去する除去手段とを具備することを
特徴とする。
According to the third aspect of the present invention, the background density detecting means for detecting the background density for each line, the front line background density holding means for holding the background density of the front line, and the front line background density holding A correction unit for correcting the background density of the current line based on the background density of the previous line held by the means; and a removing unit for removing the background based on the background density corrected by the correction unit. Characterize.

【0011】また、請求項4記載の発明では、前記補正
手段は、前ラインからの濃度変化量を規制するように、
前記現ラインの地肌濃度を補正することを特徴とする。
Further, in the invention according to claim 4, the correction means regulates the amount of density change from the preceding line,
The background density of the current line is corrected.

【0012】また、請求項5記載の発明では、前記補正
手段は、前記濃度変化量の規制幅を処理ラインに応じて
漸次小さくすることを特徴とする。
Further, the invention according to claim 5 is characterized in that the correction means gradually reduces the regulation width of the density change amount according to the processing line.

【0013】また、請求項6記載の発明では、前記補正
手段は、前記濃度変化量の規制幅を任意の処理ラインで
「0」とすることを特徴とする。
Further, in the invention according to claim 6, the correction means sets the regulation width of the density change amount to "0" in an arbitrary processing line.

【0014】[0014]

【作用】請求項1記載の発明によれば、地肌濃度検出手
段は、ライン単位で地肌濃度を読み取る際に、ラインを
複数のブロックに分割し、該複数のブロック毎に地肌濃
度の最大値を検出するとともに、1ライン中の各ブロッ
クで検出した前記最大値の中の最小値を該ラインの地肌
濃度とする。そして、該地肌濃度を基準にして原稿の地
肌を除去する。このため、プリスキャンを必要とせず、
高速に地肌濃度を検出できるとともに、小領域であるブ
ロック内の最大値の中から最小値を検出しているので、
細かいノイズに影響されず、ノイズを低減でき、検出値
の変動を防止できる。
According to the invention described in claim 1, the background density detecting means divides the line into a plurality of blocks when reading the background density in units of lines, and determines the maximum value of the background density for each of the plurality of blocks. At the same time as the detection, the minimum value among the maximum values detected in each block in one line is set as the background density of the line. Then, the background of the document is removed based on the background density. Therefore, without the need for prescan,
Since the background density can be detected at high speed and the minimum value is detected from the maximum values in the block, which is a small area,
The noise can be reduced without being affected by small noise, and the fluctuation of the detected value can be prevented.

【0015】また、請求項2記載の発明によれば、複数
のブロックの大きさを任意に設定可能とすることによ
り、地肌濃度の検出特性を調整する。このため、ブロッ
クを大きくすれば、パンチ穴等に対して急激に地肌濃度
が変化することを防止できる。また、微細な画像データ
に対しては、ブロックを小さくすれば、正確な地肌濃度
を検出できる。
According to the second aspect of the present invention, the size of the plurality of blocks can be arbitrarily set, so that the background density detection characteristic is adjusted. For this reason, if the block is made large, it is possible to prevent the background density from abruptly changing with respect to punch holes and the like. Further, for fine image data, if the block is made small, the background density can be accurately detected.

【0016】また、請求項3記載の発明によれば、地肌
濃度検出手段により、各ライン毎に地肌濃度が検出され
る。そして、前ライン地肌濃度保持手段により、前ライ
ンの地肌濃度が保持される。現ラインの地肌濃度は、補
正手段によって、前ライン地肌濃度保持手段に保持され
た前ラインの地肌濃度に基づいて補正される。さらに、
地肌は、除去手段によって、補正手段によって補正され
た地肌濃度に基づいて除去される。このため、前ライン
の地肌濃度に応じて現ラインの地肌濃度を補正するの
で、急激に地肌濃度が変化するのを防止できる。
According to the third aspect of the present invention, the background density is detected for each line by the background density detecting means. Then, the front line background density holding means holds the background line background density. The background density of the current line is corrected by the correction means based on the background density of the previous line held in the preceding line background density holding means. further,
The background is removed by the removing unit based on the background density corrected by the correcting unit. Therefore, since the background density of the current line is corrected according to the background density of the previous line, it is possible to prevent the background density from changing rapidly.

【0017】また、請求項4記載の発明によれば、補正
手段による地肌濃度の補正の際に、前ラインからの濃度
変化量を規制するように補正する。このため、さらに、
急激に地肌濃度が変化するのを防止できる。
According to the invention described in claim 4, when the background density is corrected by the correction means, the correction is performed so as to regulate the amount of density change from the preceding line. For this reason,
It is possible to prevent a rapid change in background density.

【0018】また、請求項5記載の発明によれば、補正
手段による濃度変化量の規制幅を処理ラインに応じて漸
次小さくする。このため、初期の段階で迅速に地肌濃度
を決定でき、後半の段階で地肌濃度が変わるのを防止で
きる。
According to the fifth aspect of the invention, the regulation width of the density change amount by the correction means is gradually reduced according to the processing line. Therefore, it is possible to quickly determine the background density in the initial stage and prevent the background density from changing in the latter half stage.

【0019】また、請求項6記載の発明によれば、補正
手段による地肌濃度の補正の際に、濃度変化量の規制幅
を任意の処理ラインで「0」とする。このため、初期の
段階で地肌濃度を決定でき、後半の段階で地肌濃度が変
わるのを防止できる。
According to the sixth aspect of the invention, when the background density is corrected by the correction means, the regulation width of the density change amount is set to "0" in any processing line. Therefore, the background density can be determined in the initial stage, and the background density can be prevented from changing in the latter half stage.

【0020】[0020]

【実施例】次に図面を参照してこの発明の実施例につい
て説明する。 A.実施例の構成 図1はこの発明の一実施例の構成を示すブロック図であ
る。図において、1は画像入力部であり、原稿を光学的
に読み取るCCD(チャージ・カップルド・デバイス)
センサ、CCDセンサによって読み取られた画像データ
をデジタル信号に変換するA/Dコンバータなどから構
成されている。また、画像入力部1は、画像データにシ
ェーディング補正を施して出力する。
Embodiments of the present invention will now be described with reference to the drawings. A. Configuration of Embodiment FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention. In the figure, reference numeral 1 is an image input section, which is a CCD (charge coupled device) for optically reading a document.
It is composed of a sensor, an A / D converter for converting image data read by the CCD sensor into a digital signal, and the like. The image input unit 1 also performs shading correction on the image data and outputs the image data.

【0021】2は地肌除去処理部であり、バックグラン
ド(地肌濃度)検出部3、バックグランド検出値補正部
4、前ラインのバックグランド検出値保持部5、地肌除
去部6から構成されている。バックグランド検出部3
は、シェーディング補正が施された画像データに基づい
て、各ライン(主走査方向)毎に、バックグランドレベ
ルを検出しバックグランド検出値BKGとして出力す
る。バックグランド検出値補正部4は、上記バックグラ
ンド検出値BKGと、前ラインのバックグランド検出値
とを比較し、この2つのバックグランド検出値の変化量
が変化量制限範囲からはずれる場合には、バックグラン
ド検出値BKGを制限内に入るように補正する。上記変
化量制限範囲は、バックグランド検出値BKGを中心と
した±Lim(変化量制限値)により決まり、変化量制限
値Limは、例えば先頭ラインで「128(最大25
5)」となる変化量制限初期値Linitから始まり、その
後、1ライン毎に減少幅Lstepずつ小さくなるような値
である。このように、変化量制限範囲を原稿の先端部で
広くとり、原稿の読み取りが進むに従って次第に狭めて
いくことにより、原稿の先端部で迅速にバックグランド
に追従し、その後、検出レベルを安定(収束)させるこ
とができる。
Reference numeral 2 is a background removal processing section, which is composed of a background (background density) detection section 3, a background detection value correction section 4, a background detection value holding section 5 of the previous line, and a background removal section 6. . Background detector 3
Detects the background level for each line (main scanning direction) based on the image data that has been subjected to shading correction, and outputs it as a background detection value BKG. The background detection value correction unit 4 compares the background detection value BKG with the background detection value of the previous line, and when the change amount of these two background detection values is out of the change amount limit range, The background detection value BKG is corrected so as to be within the limit. The change amount limit range is determined by ± Lim (change amount limit value) around the background detection value BKG, and the change amount limit value Lim is, for example, “128 (maximum 25
5) ”starting from the change amount limiting initial value Linit, and thereafter, the decrease width Lstep is decreased for each line. In this way, the variation limit range is widened at the leading edge of the document and gradually narrowed as the reading of the document progresses, so that the leading edge of the document quickly follows the background, and then the detection level becomes stable ( Can be converged).

【0022】前ラインのバックグランド検出値保持部5
は、バックグランド検出値補正部4からバックグランド
検出値が出力される度に、該バックグランド検出値を記
憶し、バックグランド検出値補正部4での参照用に補正
されたバックグランド検出値を次のラインの処理まで保
持するようになっている。次に、地肌除去部6は、補正
されたバックグランド検出値に所定のオフセット値を加
え、その値で地肌データを除去し、地肌除去済みの画像
データを出力する。
Background detection value holding unit 5 of the previous line
Each time the background detection value correction unit 4 outputs the background detection value, the background detection value is stored, and the background detection value corrected by the background detection value correction unit 4 for reference is stored. It holds until the next line is processed. Next, the background removing unit 6 adds a predetermined offset value to the corrected background detection value, removes the background data with the value, and outputs the image data with the background removed.

【0023】7は画像処理部であり、上記地肌除去済み
の画像データに対して鮮鋭化処理や、階調補正処理など
の画像処理を行う。また、8は画像出力部であり、地肌
除去され、各種画像処理が施された画像データを、電子
写真方式などの出力装置で出力する。
An image processing unit 7 performs image processing such as sharpening processing and gradation correction processing on the image data whose background has been removed. An image output unit 8 outputs the image data from which the background has been removed and which has been subjected to various types of image processing, using an output device such as an electrophotographic system.

【0024】次に、上述したバックグランド検出部によ
る各ラインのバックグランド検出値BKGの検出方法に
ついて説明する。まず、主走査方向に対するバックグラ
ンドの検出方法について図2および図3を参照して説明
する。図2は主走査方向に対しての処理を説明するため
の原稿の読み取りブロックを示す模式図であり、図3は
あるブロックにおける画像データのレベルを示す図であ
る。図2において、原稿は、主走査方向に対して所定の
区間からなる複数のブロックBL1〜BLNに分割されて
おり、各ブロック毎に、バックグランド最大値BKGM
ax以下での最大値Max1,Max2,…,MaxNが検出され
るようになっている。ブロックBL1〜BLNの大きさ
は、最大値ブロック間隔SAによって任意の大きさに設
定できるようになっており、ブロックの大きさを適宜変
更することにより、原稿に空けられたパンチ穴や、新聞
などの低品質の原稿によるバックグランド誤検出を防止
する。
Next, a method of detecting the background detection value BKG of each line by the above background detection unit will be described. First, a background detection method in the main scanning direction will be described with reference to FIGS. 2 and 3. FIG. 2 is a schematic diagram showing an original reading block for explaining processing in the main scanning direction, and FIG. 3 is a diagram showing image data levels in a certain block. In FIG. 2, the document is divided into a plurality of blocks BL1 to BLN which are formed in a predetermined section in the main scanning direction, and the background maximum value BKGM is set for each block.
The maximum values Max1, Max2, ..., MaxN below ax are detected. The size of the blocks BL1 to BLN can be set to any size according to the maximum value block interval SA. By appropriately changing the size of the blocks, punch holes, newspapers, etc. punched in the manuscript Prevents false background detection due to low quality originals.

【0025】図3では、縦軸に画像データのレベル(0
〜255)をとり、横軸に主走査方向位置をとってい
る。図3に示すように、主走査方向に対する処理では、
あるブロックにおいて、予め設定されたバックグランド
最大値BKGMax以下で、かつその中での最大値Maxi
(i=1〜N)が検出される。さらに、主走査方向に対
する処理では、図2に示す1ライン分の各ブロックにお
ける最大値Max1〜MaxNの中から最小値Minが検出され
るようになっている。
In FIG. 3, the vertical axis indicates the image data level (0
.About.255) and the horizontal axis represents the position in the main scanning direction. As shown in FIG. 3, in the processing in the main scanning direction,
In a certain block, the background maximum value BKGMax or less is set in advance, and the maximum value Maxi out of them is
(I = 1 to N) is detected. Further, in the processing in the main scanning direction, the minimum value Min is detected from the maximum values Max1 to MaxN in each block for one line shown in FIG.

【0026】次に、副走査方向に対するバックグランド
検出処理について図4および図5を参照して説明する。
図4は副走査方向に対しての処理を説明する模式図であ
り、図5はあるラインにおける最小値Minに対してバッ
クグランド検出値を決定する際の処理を説明するための
概念図である。原稿は、1ラインの主走査方向のスキャ
ンが終了する度に、副走査方向に順次移行しながらスキ
ャンされる。各ラインでは、前述したように、1ライン
における最小値Min1,Min2,…,Min3が検出され
る。なお、バックグランド検出処理の対象となる処理ラ
インは、ライン間隔Intervalが設定できるようになっ
ており、数ラインおきに行うようにできるようになって
いる。
Next, background detection processing in the sub-scanning direction will be described with reference to FIGS. 4 and 5.
FIG. 4 is a schematic diagram for explaining the process in the sub-scanning direction, and FIG. 5 is a conceptual diagram for explaining the process when determining the background detection value with respect to the minimum value Min in a certain line. . The document is scanned while sequentially moving in the sub-scanning direction each time scanning of one line in the main scanning direction is completed. In each line, as described above, the minimum values Min1, Min2, ..., Min3 in one line are detected. In addition, the line interval Interval can be set for the processing line that is the target of the background detection process, and can be performed every several lines.

【0027】図5では、縦軸に最小値Minのレベル(0
〜255)をとり、横軸に副走査方向位置をとってい
る。図5に示すように、副走査方向に対する処理では、
現ラインの最小値Minが、前ラインのバックグランド検
出値BKGを中心とした±変化量制限値Limで決まる変
化量制限範囲にある場合には、上記最小値Minを新たな
バックグランド検出値BGKとし、変化量制限範囲を越
えた場合には、上記最小値Minを変化量制限範囲内に入
るように補正し、この補正した値を新たなバックグラン
ド検出値BKGとする。該バックグランド検出値BKG
は、バックグランド検出値補正部4へ供給される。
In FIG. 5, the vertical axis indicates the level (0
.About.255), and the horizontal axis represents the position in the sub-scanning direction. As shown in FIG. 5, in the processing in the sub-scanning direction,
When the minimum value Min of the current line is within the change amount limit range determined by the ± change amount limit value Lim centering on the background detection value BKG of the previous line, the minimum value Min is set to the new background detection value BGK. If the change amount limit range is exceeded, the minimum value Min is corrected to fall within the change amount limit range, and the corrected value is set as a new background detection value BKG. The background detection value BKG
Are supplied to the background detection value correction unit 4.

【0028】また、上述した変化量制限範囲は、図6に
示す変化量制限値によって定められており、前述したよ
うに、該変化量制限値Limは副走査方向に対して徐々に
減少するようになっており、具体的には、変化量制限初
期値Linitから始まり、処理ライン毎に、減少幅Lstep
ずつ減少させ、制限最小値Lminになったところで、一
定になるよう制御される。そして、副走査方向に対し
て、処理ラインが不動領域開始ラインNoConに達する
と、「0」に固定される。
Further, the above-described change amount limiting range is defined by the change amount limiting value shown in FIG. 6, and as described above, the change amount limiting value Lim is gradually decreased in the sub-scanning direction. Specifically, starting from the change amount limiting initial value Linit, the reduction width Lstep is increased for each processing line.
It is controlled so that it becomes constant when the limit minimum value Lmin is reached. Then, when the processing line reaches the non-moving region start line NoCon in the sub-scanning direction, it is fixed to "0".

【0029】また、本実施例では、図7に示すように、
原稿の両側に、原稿外参照を防止するために不感領域N
Aを設けており、この不感領域NAにおける画像データ
は、バックグランド検出処理の対象にならないようにな
っている。
Further, in this embodiment, as shown in FIG.
Dead areas N on both sides of the document to prevent outside reference
A is provided so that the image data in the dead area NA is not the target of the background detection processing.

【0030】次に、地肌除去部6における地肌除去処理
の原理について図8を参照して説明する。図8は地肌処
理部6の入出力特性を示す特性図である。図において、
縦軸は数値が大きくなるほど高濃度(黒)になる出力画
素値であり、横軸は入力画素値である。地肌除去処理に
おいては、入力画素値としきい値THと比較し、バック
グランド検出値BKGがしきい値TH以下ならば「白地
(0)」とする操作を行う。しかし、単純に、このよう
な地肌除去を行うと、しきい値THを境に急激に地肌濃
度が変化するため、例えば新聞や青図など、地肌濃度む
らの大きい原稿の場合、除去しきれないエッジやノイズ
が現れる。そこで、しきい値TH以下のバックグランド
検出値BKGを単純に地肌として除去するのではなく、
しきい値THの手前から徐々に濃度を下げるようにする
と、違和感を低減できる。
Next, the principle of the background removal processing in the background removal section 6 will be described with reference to FIG. FIG. 8 is a characteristic diagram showing the input / output characteristics of the background processing unit 6. In the figure,
The vertical axis represents the output pixel value with higher density (black) as the numerical value increases, and the horizontal axis represents the input pixel value. In the background removal processing, the input pixel value is compared with the threshold value TH, and if the background detection value BKG is less than or equal to the threshold value TH, an operation of "white background (0)" is performed. However, if such background removal is simply performed, the background density changes abruptly at the threshold value TH, so that it cannot be completely removed in the case of an original with large background density unevenness, such as a newspaper or blueprint. Edges and noise appear. Therefore, instead of simply removing the background detection value BKG equal to or less than the threshold value TH as the background,
The discomfort can be reduced by gradually decreasing the density from before the threshold value TH.

【0031】図示のように、本実施例では、地肌除去部
6の入出力特性を徐々に変化させるために、その入出力
特性に傾きGammaを設けている。この実施例では、傾き
Gammaは任意に可変できるようになっている。図示の例
では、Gamma=5とすることにより、しきい値TH〜T
H×1.25の範囲で傾き「5」となる。また、しきい
値THも、バックグランド検出値BKGの変化に応じて
変化するようになっている。
As shown in the figure, in this embodiment, in order to gradually change the input / output characteristics of the background removing section 6, the input / output characteristics are provided with a slope Gamma. In this embodiment, the inclination Gamma can be changed arbitrarily. In the illustrated example, the threshold values TH to T are set by setting Gamma = 5.
The slope is “5” in the range of H × 1.25. Further, the threshold value TH also changes according to the change in the background detection value BKG.

【0032】B.実施例の動作 次に、本実施例の動作を説明する。まず、ステップS1
0において、バックグランド検出値BKGにバックグラ
ンド初期値BKG0を代入するとともに、制限最小値L
minに変化量制限初期値Linitを代入し、処理ラインの
位置を示すラインLineに「0」を代入する。次に、ス
テップS12において、注目画素の位置をカウントする
カウンタCount2を「0」にリセットし、ブロックの最
大値中の最小値Minに、バックグランドの認定濃度範囲
のバックグランド最大値BKGMaxに「1」を加算した
値を代入する。バックグランド最大値BKGMaxに
「1」を加算するのは、後述する処理で、ライン中にバ
ックグランド最大値BKGMax以下の画素が1つもない
場合を検出するためである。さらに、同ステップS12
において、しきい値THに、バックグランド検出値BK
Gにオフセット値Offsetを加算した値を代入し、ライ
ンLineを「1」だけインクリメントする。
B. Operation of Embodiment Next, the operation of this embodiment will be described. First, step S1
0, the background initial value BKG0 is substituted for the background detection value BKG, and the limit minimum value L
The variation limit initial value Linit is substituted for min, and "0" is substituted for the line Line indicating the position of the processing line. Next, in step S12, the counter Count2 for counting the position of the pixel of interest is reset to "0", and the minimum value Min of the maximum values of the block is set to the background maximum value BKGMax of the background certified density range to "1". Substitute the added value. The reason why "1" is added to the background maximum value BKGMax is to detect a case where there is no pixel having the background maximum value BKGMax or less in the line in the process described later. Further, in step S12
At the threshold TH, the background detection value BK
A value obtained by adding the offset value Offset to G is substituted, and the line Line is incremented by “1”.

【0033】次に、ステップS14において、ブロック
内の画素をカウントするカウンタCount、ブロック内の
最大値Max、および最大値検出フラグMaxFを「0」に
リセットする。そして、ステップS16へ進み、地肌除
去処理を行う。図12は該地肌除去処理の動作を示すフ
ローチャートである。地肌除去処理では、まず、ステッ
プS100において、注目画素濃度Presentがしきい値
THより小さいか否かを判断する。注目画素濃度Prese
ntがしきい値THより小さい場合には、ステップS10
0における判断結果は「Yes」となり、ステップS10
2へ進む。ステップS102では、出力画素濃度Outを
「0(白地)」とし、当該処理を終了する。
Next, in step S14, the counter Count for counting the pixels in the block, the maximum value Max in the block, and the maximum value detection flag MaxF are reset to "0". Then, the process proceeds to step S16, and the background removal process is performed. FIG. 12 is a flowchart showing the operation of the background removal process. In the background removal process, first, in step S100, it is determined whether the target pixel density Present is smaller than the threshold value TH. Target pixel density Prese
If nt is smaller than the threshold value TH, step S10.
The determination result in 0 is “Yes”, and step S10
Go to 2. In step S102, the output pixel density Out is set to "0 (white background)" and the process ends.

【0034】一方、注目画素濃度Presentがしきい値T
H以上である場合には、ステップS104へ進む。ステ
ップS104では、図8に示す特性に従って、注目画素
濃度PresentがTH×(1+1÷(Gamma−1))より
大きいか否かを判断する。すなわち、注目画素濃度Pre
sentが図8に示す領域Sの値であるか否かを判断する。
そして、注目画素濃度Presentが上記領域Sに入ってい
れば、ステップS104における判断結果は「Yes」と
なり、ステップS106へ進む。ステップS106で
は、注目画素濃度Presentをそのまま出力画素濃度Out
とにし、当該処理を終了する。
On the other hand, the pixel density of interest Present is the threshold value T.
If it is H or more, the process proceeds to step S104. In step S104, it is determined according to the characteristic shown in FIG. 8 whether the target pixel density Present is larger than TH × (1 + 1 ÷ (Gamma−1)). That is, the target pixel density Pre
It is determined whether sent is the value of the area S shown in FIG.
Then, if the target pixel density Present is within the area S, the determination result in step S104 is "Yes", and the process proceeds to step S106. In step S106, the target pixel density Present is directly output pixel density Out.
Then, the process ends.

【0035】一方、注目画素濃度Presentが上記領域S
に入っていなければ、すなわち、しきい値TH〜TH×
(1+1÷(Gamma−1))の間にあれば、ステップS
104における判断結果は「No」となり、ステップS
108へ進む。ステップS108では、出力画素濃度O
utを(Present−TH)×Gammaとし当該処理を終了す
る。
On the other hand, the pixel density of interest Present is in the region S
If not, that is, the threshold values TH to TH ×
If it is between (1 + 1 ÷ (Gamma-1)), step S
The determination result in 104 is “No”, and step S
Proceed to 108. In step S108, the output pixel density O
ut is set to (Present-TH) × Gamma, and the process ends.

【0036】このように、地肌除去処理では、図8に示
す入出力特性に従って、注目画素濃度Presentの値に応
じて、その出力画素濃度Outを算出する。この地肌除去
処理により、注目画素濃度Presentがしきい値THより
小さければ白地となり、しきい値TH〜TH×(1+1
÷(Gamma−1))の間にあれば傾きGammaに応じた出
力画素濃度Outとなり、さらに、TH×(1+1÷(G
amma−1))より大きければ、注目画素濃度Presentが
そのまま出力画素濃度Outとなる。
As described above, in the background removal processing, the output pixel density Out is calculated according to the value of the target pixel density Present according to the input / output characteristics shown in FIG. By this background removal processing, if the target pixel density Present is smaller than the threshold value TH, it becomes a white background, and the threshold values TH to TH × (1 + 1)
If it is between ÷ (Gamma-1)), the output pixel density Out according to the slope Gamma, and TH × (1 + 1 ÷ (G
If it is larger than amma-1)), the focused pixel density Present becomes the output pixel density Out as it is.

【0037】上記地肌除去処理が終了すると、図9に示
すステップS18へ進む。ステップS18では、ブロッ
ク内の画素をカウントするカウンタCount、および注目
画素の位置をカウントするカウンタCount2をそれぞれ
「1」だけインクリメントする。次に、ステップS20
において、上記カウンタCount2が原稿領域開始位置Ds
tart+不感領域Insensitiveより大きく、かつ原稿領域
終了位置Dend−不感領域Insensitiveより小さいか否
かを判断する。すなわち、このステップS20では、注
目画素が読み取り領域内にあるか否かを判断している。
When the background removal processing is completed, the process proceeds to step S18 shown in FIG. In step S18, the counter Count that counts the pixels in the block and the counter Count2 that counts the position of the pixel of interest are each incremented by "1". Next, step S20.
At the counter Count2, the original area start position Ds
It is determined whether it is larger than tart + insensitive area Insensitive and smaller than document area end position Dend−insensitive area Insensitive. That is, in step S20, it is determined whether or not the pixel of interest is within the reading area.

【0038】そして、注目画素濃度Presentが読み取り
領域外にあれば、ステップS20における判断結果は
「No」となり、図10に示すステップS32へ進む。
なお、読み取り領域外とは、原稿の副走査方向における
最初と最後、および図7に示す各ラインの主走査方向に
おける最初と最後(不感領域NA)である。例えば、1
ラインの読み取り最初、および最後(不感領域NA)で
は、ステップS32へ進む。ステップS32では、1ラ
インの読み取りが終了したか否かを判断する。
If the target pixel density Present is outside the reading area, the result of the determination in step S20 is "No", and the flow advances to step S32 shown in FIG.
The outside of the reading area is the beginning and the end of the document in the sub-scanning direction, and the beginning and the end (dead area NA) of each line in the main scanning direction shown in FIG. For example, 1
At the beginning and end of the line reading (dead area NA), the process proceeds to step S32. In step S32, it is determined whether reading of one line is completed.

【0039】そして、1ラインの読み取りが終了してい
ない場合、例えば注目画素がラインの右側、もしくは左
側の不感領域にある場合には、ステップS32における
判断結果は「No」となり、図9に示すステップS14
へ戻る。以下、ステップS14にて、上述したように、
カウンタCount、ブロック内の最大値Max、最大値検出
フラグMaxFをリセットし、ステップS16で地肌除去
処理を施した後、ステップS18でカウンタCountおよ
びCount2をインクリメントする。すなわち、注目画素
がラインの右側、もしくは左側の不感領域にある場合に
は、カウンタCount、Count2、ブロック内の最大値Ma
x、および最大値検出フラグMaxFを更新しないように
している。
When the reading of one line is not completed, for example, when the pixel of interest is in the dead area on the right side or the left side of the line, the determination result in step S32 is "No", as shown in FIG. Step S14
Return to. Hereinafter, in step S14, as described above,
The counter Count, the maximum value Max in the block, and the maximum value detection flag MaxF are reset, and the background removal processing is performed in step S16, and then the counters Count and Count2 are incremented in step S18. That is, when the pixel of interest is in the dead area on the right or left side of the line, the counters Count, Count2 and the maximum value Ma in the block are
The x and the maximum value detection flag MaxF are not updated.

【0040】一方、注目画素が読み取り領域内にある場
合には、ステップS20における判断結果は「Yes」と
なり、ステップS22へ進む。ステップS22では、注
目画素濃度Presentがバックグランド最大値BKGMax
以下で、かつブロック内の最大値Max以上であるか否か
を判断する。すなわち、注目画素濃度Presentが、図3
に示す変化量制限範囲内にあり、かつブロック内での最
大値Max以上であるかを判断している。そして、注目画
素濃度Presentが上記条件を満たす場合には、ステップ
S24へ進む。ステップS24では、最大値Maxに注目
画素濃度Presentを代入し、最大値検出フラグMaxFを
「1」とする。したがって、ステップS22とS24と
によって、ブロック内における画素の最大値が最大値M
axに格納されることになる。
On the other hand, if the pixel of interest is within the reading area, the result of the determination in step S20 is "Yes", and the flow advances to step S22. In step S22, the pixel density of interest Present is the background maximum value BKGMax.
Below, it is determined whether or not it is equal to or larger than the maximum value Max in the block. That is, the target pixel density Present is as shown in FIG.
It is determined whether or not it is within the change amount limit range indicated by and is greater than or equal to the maximum value Max in the block. If the pixel density of interest Present satisfies the above condition, the process proceeds to step S24. In step S24, the target pixel density Present is substituted for the maximum value Max, and the maximum value detection flag MaxF is set to "1". Therefore, in steps S22 and S24, the maximum value of the pixels in the block is the maximum value M.
It will be stored in ax.

【0041】一方、上記条件を満たさない場合、もしく
はステップS24の処理が終了すると、ステップS26
へ進む。ステップS26では、カウンタCountが主走査
方向の最大値ブロック間隔SAに等しいか否かを判断す
る。言い換えると、ステップS26では、ブロック内に
おける全ての画素に対しての処理が終了したか否かを判
断している。そして、カウンタCountが最大値ブロック
間隔SAと等しくない場合、すなわちブロック内におけ
る全ての画素に対して処理が終了していない場合には、
ステップS26における判断結果は「No」となり、ス
テップS16へ戻る。以下、ステップS16〜S24を
繰り返し実行し、ブロック内において、読み取り領域内
に、バックグランド最大値BKGMax以下の画素で、最
大値Maxより大きなものがあれば、最大値Maxを更新し
ていく。最終的には、最大値Maxにブロック内の最大値
が残る。
On the other hand, if the above conditions are not satisfied, or if the process of step S24 ends, step S26
Go to. In step S26, it is determined whether or not the counter Count is equal to the maximum value block interval SA in the main scanning direction. In other words, in step S26, it is determined whether the processing has been completed for all the pixels in the block. Then, when the counter Count is not equal to the maximum value block interval SA, that is, when the processing is not completed for all the pixels in the block,
The determination result in step S26 is "No", and the process returns to step S16. Thereafter, steps S16 to S24 are repeatedly executed, and if there is a pixel in the reading area that is equal to or smaller than the background maximum value BKGMax and is larger than the maximum value Max in the block, the maximum value Max is updated. Finally, the maximum value Max remains in the block.

【0042】次に、ブロック内における全ての画素に対
しての処理が終了すると、ステップS26における判断
結果が「Yes」となり、ステップ28へ進む。ステップ
S28では、最大値フラグMaxFが「1」で、かつ最大
値Maxが最小値Min以下であるか否かを判断する。すな
わち、現在終了したブロックの最大値Maxが、該ブロッ
クに対する処理が終了した時点で、これまで処理したブ
ロックにおける最大値のうち、最も小さい値である最小
値Min以下であるか否かを判断している。そして、最大
値フラグMaxFが「1」で、かつ最大値Maxが最小値M
in以下である場合には、ステップS28における判断結
果は「Yes」となり、ステップS30へ進む。ステップ
S30では、最小値Minに最大値Maxを代入し、ステッ
プS32へ進む。
Next, when the processing for all the pixels in the block is completed, the determination result in step S26 is "Yes", and the process proceeds to step 28. In step S28, it is determined whether the maximum value flag MaxF is "1" and the maximum value Max is less than or equal to the minimum value Min. That is, it is determined whether or not the maximum value Max of the currently completed block is equal to or smaller than the minimum value Min that is the smallest value among the maximum values of the blocks processed so far when the processing for the block is completed. ing. The maximum value flag MaxF is "1" and the maximum value Max is the minimum value M.
If it is less than or equal to in, the determination result in step S28 is "Yes", and the process proceeds to step S30. In step S30, the maximum value Max is substituted for the minimum value Min, and the process proceeds to step S32.

【0043】一方、最大値フラグMaxFが「1」で、か
つ最大値Maxが最小値Min以下でない場合、すなわち、
これまでの最大値のうち、最も小さい値である最小値M
inより大きい場合には、最小値Minをそのまま維持し、
ステップS32へ進む。ステップS32では、前述した
ように、ラインの読み取りが終了したか否かを判断し、
終了していなければ、当該ステップの判断結果は「N
o」となり、ステップS14へ戻り、以下、前述したス
テップS14〜S30の処理を繰り返し実行する。
On the other hand, when the maximum value flag MaxF is "1" and the maximum value Max is not less than the minimum value Min, that is,
Minimum value M, which is the smallest value among the maximum values so far
If larger than in, keep the minimum value Min,
It proceeds to step S32. In step S32, as described above, it is determined whether or not the line reading is completed,
If it is not completed, the judgment result of the step is “N
Then, the process returns to step S14, and the above-described steps S14 to S30 are repeatedly executed.

【0044】一方、1ライン分の処理が終了すると、ス
テップS32における判断結果は「Yes」となり、ステ
ップS34へ進む。ステップS34では、ラインLine
をバックグランド検出処理を実行するライン間隔Inter
valで除算した結果の余りが「0」であるか否かを判断
する。すなわち、ステップS34では、バックグランド
検出処理を行うラインであるか否かを判断しており、除
算結果の余りが「0」であれば、該ラインはバックグラ
ンド検出処理の対象であると判断され、除算結果の余り
が「0」でなければ、該ラインはバックグランド検出処
理の対象外であると判断される。そして、除算結果の余
りが「0」でない場合、すなわち該ラインがバックグラ
ンド検出処理の対象外である場合には、ステップS34
における判断結果は「No」となり、図9に示すステッ
プS12へ戻る。以下、次のラインに移行して上述した
処理を繰り返し実行する。
On the other hand, when the processing for one line is completed, the determination result in step S32 becomes "Yes", and the process proceeds to step S34. In step S34, the line Line
Interval to execute background detection processing
It is determined whether the remainder of the result of division by val is "0". That is, in step S34, it is determined whether or not the line is for background detection processing, and if the remainder of the division result is "0", it is determined that the line is for background detection processing. If the remainder of the division result is not "0", it is determined that the line is out of the background detection processing. Then, when the remainder of the division result is not “0”, that is, when the line is not the target of the background detection process, step S34.
The result of the determination is "No", and the process returns to step S12 shown in FIG. After that, the process shifts to the next line and the above-described processing is repeatedly executed.

【0045】一方、除算結果が「0」である場合、すな
わち該ラインがバックグランド検出処理の対象である場
合には、ステップS34における判断結果は「Yes」と
なり、ステップS36へ進む。ステップS36では、最
小値Minがバックグランド最大値BKGMaxに「1」を
加算した値に等しいか否かを判断する。そして、最小値
Minがバックグランド最大値BKGMaxに「1」を加算
した値に等しい場合には、ステップS36における判断
結果が「Yes」となり、ステップS38へ進む。ステッ
プS38では、現時点におけるバックグランド検出値B
KGをそのまま新たなバックグランド検出値BKGとす
る。なお、この場合、バックグランド検出値BKGは変
化しないのであるから、このステップS38はなくても
よい。
On the other hand, when the division result is "0", that is, when the line is the target of the background detection processing, the determination result in step S34 is "Yes", and the process proceeds to step S36. In step S36, it is determined whether or not the minimum value Min is equal to the background maximum value BKGMax plus "1". Then, when the minimum value Min is equal to the value obtained by adding "1" to the background maximum value BKGMax, the determination result in step S36 becomes "Yes", and the process proceeds to step S38. In step S38, the background detection value B at the present time
KG is used as it is as a new background detection value BKG. In this case, since the background detection value BKG does not change, this step S38 may be omitted.

【0046】一方、最小値Minがバックグランド最大値
BKGMaxに「1」を加算した値に等しくない場合に
は、ステップS36における判断結果が「No」とな
り、ステップS40へ進む。ステップS40では、最小
値Minがバックグランド検出値BKGに変化量制限値L
im(図6参照)を加算した値より大きいか否かを判断す
る。そして、最小値Minがバックグランド検出値BKG
に変化量制限値Limを加算した値より大きい場合には、
ステップS40における判断結果が「Yes」となり、ス
テップS42へ進む。ステップS42では、バックグラ
ンド検出値BKGに変化量制限値Limを加算した値を新
たなバックグランド検出値BKGとする。
On the other hand, when the minimum value Min is not equal to the value obtained by adding "1" to the background maximum value BKGMax, the determination result in step S36 becomes "No", and the process proceeds to step S40. In step S40, the minimum value Min is changed to the background detection value BKG by the change amount limit value L.
It is determined whether or not it is larger than the value obtained by adding im (see FIG. 6). Then, the minimum value Min is the background detection value BKG.
If it is larger than the value obtained by adding the variation limit value Lim to
The determination result in step S40 is "Yes", and the process proceeds to step S42. In step S42, a value obtained by adding the variation limit value Lim to the background detection value BKG is set as a new background detection value BKG.

【0047】一方、最小値Minがバックグランド最大値
BKGMaxに変化量制限値Lim(図6参照)を加算した
値以下である場合には、ステップS40における判断結
果が「No」となり、ステップS44へ進む。ステップ
S44では、最小値Minがバックグランド検出値BKG
から変化量制限値Limを減算した値より小さいか否かを
判断する。そして、最小値Minがバックグランド検出値
BKGに変化量制限値Limを加算した値より小さい場合
には、ステップS44における判断結果が「Yes」とな
り、ステップS46へ進む。ステップS46では、バッ
クグランド検出値BKGから変化量制限値Limを減算し
た値を新たなバックグランド検出値BKGとする。
On the other hand, if the minimum value Min is less than or equal to the background maximum value BKGMax plus the variation limit value Lim (see FIG. 6), the determination result in step S40 becomes "No", and the process proceeds to step S44. move on. In step S44, the minimum value Min is the background detection value BKG.
It is determined whether or not it is smaller than a value obtained by subtracting the variation limit value Lim from. When the minimum value Min is smaller than the value obtained by adding the variation limit value Lim to the background detection value BKG, the determination result in step S44 becomes "Yes", and the process proceeds to step S46. In step S46, a value obtained by subtracting the variation limit value Lim from the background detection value BKG is set as a new background detection value BKG.

【0048】一方、最小値Minがバックグランド検出値
BKGから変化量制限値Limを減算した値より大きい場
合には、ステップS44における判断結果が「No」と
なり、ステップS48へ進む。ステップS48では、最
小値Minを新たなバックグランド検出値BKGとする。
On the other hand, when the minimum value Min is larger than the value obtained by subtracting the variation limit value Lim from the background detection value BKG, the judgment result in step S44 becomes "No", and the routine proceeds to step S48. In step S48, the minimum value Min is set as a new background detection value BKG.

【0049】このように、1ライン分のバックグランド
検出処理が終了する度に、そのラインの最小値Minと、
バックグランド最大値BKGMaxもしくは前回のバック
グランド検出値BKGとを比較し、新たなバックグラン
ド検出値BKGを決定する。すなわち、現ラインの最小
値Minがバックグランド最大値BKGMax+1に等しけ
れば、前回のバックグランド検出値BKGをそのまま維
持する。また、図5に示すように、現ラインの最小値M
inが変化量制限範囲内(前回のバックグランド検出値B
KG±変化量制限値Limの範囲内)であれば、現ライン
の最小値Minを新たなバックグランド検出値BKGと
し、また、現ラインの最小値Minが変化量制限範囲外
(前回のバックグランド検出値BKG±変化量制限値L
imの範囲外)であれば、その前回のバックグランド検出
値BKG±変化量制限値Limを新たなバックグランド検
出値BKGとする。
Thus, every time the background detection process for one line is completed, the minimum value Min of that line,
The background maximum value BKGMax or the previous background detection value BKG is compared to determine a new background detection value BKG. That is, if the minimum value Min of the current line is equal to the background maximum value BKGMax + 1, the previous background detection value BKG is maintained as it is. In addition, as shown in FIG. 5, the minimum value M of the current line
in is within the variation limit range (previous background detection value B
KG ± change amount limit value Lim), the minimum value Min of the current line is set as a new background detection value BKG, and the minimum value Min of the current line is outside the change amount limit range (previous background). Detection value BKG ± change amount limit value L
If it is outside the range of im), the previous background detection value BKG ± change amount limit value Lim is set as a new background detection value BKG.

【0050】次に、図11に示すステップS50へ進
む。ステップS50では、上述した変化量制限値Limを
減少幅Lstepだけ減少させ、変化量制限範囲を狭める。
そして、ステップS52において、上記変化量制限値L
imが制限最小値Lminより小さいか否かを判断する。言
い換えると、変化量制限値Limが制限最小値Lminに達
したか否かを判断する。そして、変化量制限値Limが制
限最小値Lminに達した場合には、ステップS52にお
ける判断結果が「Yes」となり、ステップS54へ進
む。ステップS54では、前述した図6で説明したよう
に、変化量制限値Limを制限最小値Lminとする。すな
わち、変化量制限値Limが制限最小値Lminに達した場
合には、常に、当該ステップS54の処理により、変化
量制限値Limを制限最小値Lminに固定する。一方、変
化量制限値Limが制限最小値Lminに達していない場合
には、ステップS52における判断結果が「No」とな
り、ステップS50において決定した変化量制限値Lim
がそのまま用いられる。
Next, the process proceeds to step S50 shown in FIG. In step S50, the change amount limit value Lim is decreased by the decrease width Lstep to narrow the change amount limit range.
Then, in step S52, the change amount limit value L
It is determined whether im is smaller than the minimum limit value Lmin. In other words, it is determined whether the change amount limit value Lim has reached the limit minimum value Lmin. When the change amount limit value Lim reaches the limit minimum value Lmin, the determination result in step S52 becomes "Yes", and the process proceeds to step S54. In step S54, as described above with reference to FIG. 6, the change amount limit value Lim is set to the limit minimum value Lmin. That is, when the change amount limit value Lim reaches the limit minimum value Lmin, the change amount limit value Lim is always fixed to the limit minimum value Lmin by the process of step S54. On the other hand, when the change amount limit value Lim has not reached the limit minimum value Lmin, the determination result in step S52 is "No", and the change amount limit value Lim determined in step S50.
Is used as is.

【0051】次に、上記ステップS54が終了するか、
あるいはステップS52の判断結果が「No」となった
場合には、ステップS56へ進み、ラインLineが予め
設定したしきい値不動領域開始ラインNoCon以上であ
るか否かを判断する。そして、ラインLineがしきい値
不動領域開始ラインNoConに達した場合には、ステッ
プS56における判断結果が「Yes」となり、ステップ
S58へ進む。そして、ステップS58において、変化
量制限値Limを「0」に固定し、変化量制限範囲を固定
にする。一方、ラインLineがしきい値不動領域開始ラ
インNoConに達していない場合には、ステップS56
における判断結果は「No」となり、ステップS50も
しくはS54において決定した変化量制限値Limがその
まま用いられる。
Next, whether the step S54 is completed,
Alternatively, when the result of the determination in step S52 is "No", the process proceeds to step S56, and it is determined whether or not the line Line is equal to or greater than a preset threshold immovable region start line NoCon. When the line Line reaches the threshold immovable region start line NoCon, the determination result in step S56 becomes "Yes", and the process proceeds to step S58. Then, in step S58, the variation limit value Lim is fixed to "0", and the variation limit range is fixed. On the other hand, if the line Line has not reached the threshold immovable region start line NoCon, step S56.
The result of the determination in step No. is "No", and the variation limit value Lim determined in step S50 or S54 is used as it is.

【0052】このように、ステップS50〜S58で
は、図6に示すように、処理ラインが進む毎に、変化量
制限値Limを減少幅Lstepずつ減少させ、変化量制限値
Limが制限最小値Lminに達すると固定し、さらに、処
理ラインがしきい値不動領域開始ラインNoConに達す
るまでは上記固定値を維持し、しきい値不動領域開始ラ
インNoConに達すると、変化量制限値Limを「0」と
する。
In this way, in steps S50 to S58, as shown in FIG. 6, each time the processing line advances, the change amount limit value Lim is decreased by the decrease width Lstep, and the change amount limit value Lim is set to the minimum limit value Lmin. When the processing line reaches the threshold immovable region start line NoCon, the fixed value is maintained, and when the threshold immovable region start line NoCon is reached, the change amount limit value Lim is set to "0". ".

【0053】そして、上記ステップS58が終了する
か、あるいはステップS56の判断結果が「No」とな
った場合には、図9に示すステップS12へ戻る。以
下、前述したステップS12以降が実行される。このと
き、ステップS12では、前述したように、しきい値T
Hに、バックグランド検出値BKGにオフセット値Off
setを加算した値を代入し、ラインLineを「1」だけイ
ンクリメントする。バックグランド検出値BKGは、前
ラインでのバックグランド検出処理のステップS38、
S42、S46、もしくはS48において更新されてい
るため、ステップS16における地肌除去処理では、出
力画素濃度Outが新たなしきい値THに応じて決定され
る。
When the above step S58 is completed or the result of the determination in step S56 is "No", the process returns to step S12 shown in FIG. After that, the above-described step S12 and subsequent steps are executed. At this time, in step S12, as described above, the threshold value T
H, offset value Off to background detection value BKG
The value obtained by adding set is substituted, and the line Line is incremented by "1". The background detection value BKG is obtained in step S38 of the background detection processing in the previous line.
Since it has been updated in S42, S46, or S48, in the background removal processing in step S16, the output pixel density Out is determined according to the new threshold value TH.

【0054】このように、本実施例では、ライン単位で
地肌濃度を読み取る際に、ラインを複数のブロックに分
割し、該複数のブロック毎に地肌濃度の最大値を検出す
るとともに、1ライン中の各ブロックで検出した前記最
大値の中の最小値を該ラインの地肌濃度とする。このた
め、プリスキャンを必要とせず、高速に地肌濃度を検出
できるとともに、小領域であるブロック内の最大値の中
から最小値を検出しているので、細かいノイズに影響さ
れず、ノイズを低減でき、検出値の変動を防止できる。
As described above, in the present embodiment, when the background density is read line by line, the line is divided into a plurality of blocks, the maximum value of the background density is detected for each of the plurality of blocks, and The minimum value among the maximum values detected in each block is set as the background density of the line. Therefore, the background density can be detected at high speed without the need for pre-scanning, and the minimum value is detected from the maximum value in the block, which is a small area. It is possible to prevent the fluctuation of the detected value.

【0055】また、本実施例では、複数のブロックの大
きさを任意に設定可能とすることにより、原稿の種類に
よって地肌濃度の検出特性を調整し、パンチ穴等のある
原稿に対しては、ブロックを大きくすることにより、パ
ンチ穴による地肌濃度変化を防止できる。また、微細な
画像データに対しては、ブロックを小さくすることよ
り、正確な地肌濃度を検出できる。
Further, in the present embodiment, the size of a plurality of blocks can be arbitrarily set so that the background density detection characteristic is adjusted according to the type of the original, and for an original with punched holes, By enlarging the block, it is possible to prevent changes in background density due to punch holes. Further, for fine image data, the background density can be accurately detected by making the block smaller.

【0056】また、本実施例では、前ラインの地肌濃度
に従って、現ラインの地肌濃度を補正することにより、
急激に地肌濃度が変化するのを防止できる。また、前ラ
インからの濃度変化量を規制するよう変化量制限範囲を
設けたので、さらに、急激に地肌濃度が変化するのを防
止できる。また、変化量制限範囲を処理ラインに応じて
漸次小さくするようにしたため、初期の段階で迅速に地
肌濃度を決定でき、後半の段階で地肌濃度が変わるのを
防止できる。さらに、変化量制限範囲を任意の処理ライ
ンで「0」とするようにしたため、初期の段階で地肌濃
度を決定でき、後半の段階で地肌濃度が変わるのを防止
できる。
In this embodiment, the background density of the current line is corrected according to the background density of the previous line,
It is possible to prevent a rapid change in background density. Further, since the variation amount limiting range is provided so as to regulate the concentration variation amount from the front line, it is possible to prevent the background concentration from further rapidly changing. Further, since the variation limit range is gradually reduced according to the processing line, it is possible to quickly determine the background density and prevent the background density from changing in the latter half. Further, since the change amount limiting range is set to "0" in an arbitrary processing line, the background density can be determined in the initial stage, and the background density can be prevented from changing in the latter half stage.

【0057】また、本実施例では、地肌除去部6の入出
力特性におけるしきい値THに変更可能な傾きGammaを
設けることにより、種々の地肌濃度に対しても、適切な
出力画素濃度Outを決定できる。
Further, in this embodiment, by providing the threshold value TH in the input / output characteristic of the background removing section 6 with a changeable inclination Gamma, an appropriate output pixel density Out can be obtained even for various background densities. I can decide.

【0058】また、本実施例では、原稿の両側に、原稿
外参照を防止するために不感領域NAを設けるようにし
たため、余分な領域がバックグランド検出処理の対象に
ならないようにでき、バックグランド検出処理を迅速
に、かつ正確にできる。
Further, in the present embodiment, since the dead areas NA are provided on both sides of the original to prevent the outside reference of the original, the extra area can be prevented from being the target of the background detection processing, and the background can be prevented. The detection process can be performed quickly and accurately.

【0059】[0059]

【発明の効果】以上、説明したように、請求項1記載の
発明によれば、プリスキャンを必要とせず、高速に地肌
濃度を検出できるとともに、ブロック単位で地肌濃度を
検出するので、ノイズを低減でき、また、地肌濃度の変
動を防止できるという利点が得られる。また、請求項2
記載の発明によれば、ブロックを大きくすれば、パンチ
穴等に対して急激に地肌濃度が変化することを防止でき
るとともに、微細な画像データに対しては、ブロックを
小さくすれば、正確な地肌濃度を検出できるという利点
が得られる。また、請求項3記載の発明によれば、前ラ
インの地肌濃度に応じて現ラインの地肌濃度を補正する
ので、急激に地肌濃度が変化するのを防止できるという
利点が得られる。また、請求項4記載の発明によれば、
補正手段による地肌濃度の補正の際に、前ラインからの
濃度変化量を規制するようにしたため、さらに、急激に
地肌濃度が変化するのを防止できるという利点が得られ
る。また、請求項5記載の発明によれば、規制幅を処理
ラインに応じて漸次小さくするようにしたため、初期の
段階で迅速に地肌濃度を決定でき、後半の段階で地肌濃
度が変わるのを防止できるという利点が得られる。ま
た、請求項6記載の発明によれば、規制幅を任意の処理
ラインで「0」とするようにしたため、初期の段階で地
肌濃度を決定でき、後半の段階で地肌濃度が変わるのを
防止できるという利点が得られる。
As described above, according to the first aspect of the present invention, the background density can be detected at high speed without the need for prescanning, and the background density is detected in block units. There is an advantage that it can be reduced and fluctuation of the background density can be prevented. In addition, claim 2
According to the invention described above, if the block is made large, it is possible to prevent the background density from rapidly changing with respect to punch holes and the like, and for fine image data, if the block is made small, the accurate background can be obtained. The advantage is that the concentration can be detected. Further, according to the third aspect of the invention, the background density of the current line is corrected according to the background density of the previous line, so that there is an advantage that the background density can be prevented from abruptly changing. According to the invention of claim 4,
When the background density is corrected by the correction means, the amount of density change from the previous line is regulated. Therefore, there is an advantage that the background density can be prevented from changing abruptly. Further, according to the invention of claim 5, since the regulation width is gradually reduced according to the processing line, the background density can be quickly determined in the initial stage, and the background density is prevented from changing in the latter half stage. The advantage is that you can. Further, according to the invention of claim 6, since the regulation width is set to "0" in an arbitrary processing line, the background density can be determined in the initial stage, and the background density is prevented from changing in the latter half stage. The advantage is that you can.

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

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

【図2】同実施例の主走査方向に対しての処理を説明す
るための原稿の読み取りブロックを示す模式図である。
FIG. 2 is a schematic diagram showing an original reading block for explaining processing in the main scanning direction of the embodiment.

【図3】同実施例におけるブロック内の画像データのレ
ベルを示す図である。
FIG. 3 is a diagram showing levels of image data in a block in the same embodiment.

【図4】同実施例における副走査方向に対しての処理を
説明する模式図である。
FIG. 4 is a schematic diagram illustrating processing in the sub-scanning direction according to the embodiment.

【図5】同実施例におけるあるラインの最小値Minに対
してバックグランド検出値を決定する際の処理を説明す
るための概念図である。
FIG. 5 is a conceptual diagram for explaining a process when determining a background detection value with respect to a minimum value Min of a certain line in the embodiment.

【図6】同実施例における変化量制限範囲の変化を示す
概念図である。
FIG. 6 is a conceptual diagram showing a change in a change amount limiting range in the embodiment.

【図7】同実施例における原稿外参照を防止するために
設けた不感領域NAを示す模式図である。
FIG. 7 is a schematic diagram showing a dead area NA provided to prevent outside reference of a document in the embodiment.

【図8】同実施例における地肌処理部6の入出力特性を
示す特性図である。
FIG. 8 is a characteristic diagram showing input / output characteristics of the background processing unit 6 in the embodiment.

【図9】同実施例の動作を説明するためのバックグラン
ド検出処理のフローチャートである。
FIG. 9 is a flowchart of background detection processing for explaining the operation of the embodiment.

【図10】同バックグランド検出処理のフローチャート
である。
FIG. 10 is a flowchart of the background detection process.

【図11】同バックグランド検出処理のフローチャート
である。
FIG. 11 is a flowchart of the background detection process.

【図12】同実施例における地肌除去処理のフローチャ
ートである。
FIG. 12 is a flowchart of a background removal process in the example.

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

1 画像入力部 2 地肌除去処理部 3 バックグランド検出部(地肌濃度検出手段) 4 バックグランド検出値補正部(補正手段) 5 前ラインバックグランド検出値保持部(前ライン地
肌濃度保持手段) 6 地肌除去部(除去手段) 7 画像処理部 8 画像出力部 BL1〜BLN ブロック(複数のブロック) BKG バックグランド検出値(地肌濃度) Max 最大値 Min 最小値 SA 最大値ブロック間隔(ブロックの大きさ)
1 Image Input Section 2 Background Removal Processing Section 3 Background Detection Section (Background Density Detection Section) 4 Background Detection Value Correction Section (Correction Section) 5 Front Line Background Detection Value Holding Section (Previous Line Background Density Holding Section) 6 Background Removal unit (removal means) 7 Image processing unit 8 Image output unit BL1 to BLN blocks (plural blocks) BKG background detection value (background density) Max maximum value Min minimum value SA maximum value block interval (block size)

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 ライン単位で地肌濃度を読み取る際に、
ラインを複数のブロックに分割し、該複数のブロック毎
に地肌濃度の最大値を検出するとともに、1ライン中の
各ブロックで検出した前記最大値の中の最小値を該ライ
ンの地肌濃度とする地肌濃度検出手段を具備することを
特徴とする画像処理装置。
1. When reading the background density in line units,
The line is divided into a plurality of blocks, the maximum value of the background density is detected for each of the plurality of blocks, and the minimum value among the maximum values detected in each block in one line is set as the background density of the line. An image processing apparatus comprising a background density detecting means.
【請求項2】 前記複数のブロックは、その大きさが任
意に設定可能であることを特徴とする請求項1記載の画
像処理装置。
2. The image processing apparatus according to claim 1, wherein the sizes of the plurality of blocks can be arbitrarily set.
【請求項3】 各ライン毎に地肌濃度を検出する地肌濃
度検出手段と、 前ラインの地肌濃度を保持する前ライン地肌濃度保持手
段と、 前記前ライン地肌濃度保持手段によって保持された前ラ
インの地肌濃度に基づいて現ラインの地肌濃度を補正す
る補正手段と、 前記補正手段により補正された地肌濃度に基づいて、地
肌を除去する除去手段とを具備することを特徴とする画
像処理装置。
3. A background density detecting means for detecting a background density for each line, a front line background density holding means for holding a background density of a front line, and a front line background density held by the front line background density holding means. An image processing apparatus comprising: a correction unit that corrects the background density of the current line based on the background density; and a removal unit that removes the background based on the background density corrected by the correction unit.
【請求項4】 前記補正手段は、前ラインからの濃度変
化量を規制するように、前記現ラインの地肌濃度を補正
することを特徴とする請求項3記載の画像処理装置。
4. The image processing apparatus according to claim 3, wherein the correction unit corrects the background density of the current line so as to regulate the density change amount from the previous line.
【請求項5】 前記補正手段は、前記濃度変化量の規制
幅を処理ラインに応じて漸次小さくすることを特徴とす
る請求項4記載の画像処理装置。
5. The image processing apparatus according to claim 4, wherein the correction unit gradually reduces the regulation width of the density change amount according to a processing line.
【請求項6】 前記補正手段は、前記濃度変化量の規制
幅を任意の処理ラインで「0」とすることを特徴とする
請求項4記載の画像処理装置。
6. The image processing apparatus according to claim 4, wherein the correction unit sets the regulation width of the density change amount to “0” in an arbitrary processing line.
JP13944594A 1994-05-30 1994-05-30 Image processing device Expired - Fee Related JP3314530B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13944594A JP3314530B2 (en) 1994-05-30 1994-05-30 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13944594A JP3314530B2 (en) 1994-05-30 1994-05-30 Image processing device

Publications (2)

Publication Number Publication Date
JPH07322069A true JPH07322069A (en) 1995-12-08
JP3314530B2 JP3314530B2 (en) 2002-08-12

Family

ID=15245377

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13944594A Expired - Fee Related JP3314530B2 (en) 1994-05-30 1994-05-30 Image processing device

Country Status (1)

Country Link
JP (1) JP3314530B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009284407A (en) * 2008-05-26 2009-12-03 Fuji Xerox Co Ltd Background removing apparatus and program, and image forming device
JP2010057169A (en) * 2008-07-31 2010-03-11 Riso Kagaku Corp Image processing system and image processing method
US8175386B2 (en) 2007-12-24 2012-05-08 Samsung Electronics Co., Ltd. Image acquiring apparatus and control method thereof
JP2012150559A (en) * 2011-01-17 2012-08-09 Ricoh Co Ltd Image reader, image reading method, program, and recording medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8175386B2 (en) 2007-12-24 2012-05-08 Samsung Electronics Co., Ltd. Image acquiring apparatus and control method thereof
JP2009284407A (en) * 2008-05-26 2009-12-03 Fuji Xerox Co Ltd Background removing apparatus and program, and image forming device
JP4692575B2 (en) * 2008-05-26 2011-06-01 富士ゼロックス株式会社 Background removal apparatus, program, and image forming apparatus
JP2010057169A (en) * 2008-07-31 2010-03-11 Riso Kagaku Corp Image processing system and image processing method
JP2012150559A (en) * 2011-01-17 2012-08-09 Ricoh Co Ltd Image reader, image reading method, program, and recording medium

Also Published As

Publication number Publication date
JP3314530B2 (en) 2002-08-12

Similar Documents

Publication Publication Date Title
US7251060B2 (en) Image-processing device using quantization threshold values produced according to a dither threshold matrix and arranging dot-on pixels in a plural-pixel field according to the dither threshold matrix
US6587115B2 (en) Method of an apparatus for distinguishing type of pixel
US5177602A (en) Image scanners
US7106476B1 (en) Image processing method, image processing apparatus, image forming method and recording medium
US6332045B1 (en) Image processing device
JP3611742B2 (en) Image processing device
US6917446B2 (en) Image processing apparatus and image processing method
US7002622B2 (en) Area separating apparatus, image processing apparatus employing the same, and area separating method
JP3314530B2 (en) Image processing device
EP0828376B1 (en) Image processing apparatus
JP2005101765A (en) Method and apparatus for processing image, and image forming apparatus
JPH07212592A (en) Image processing method
JP2861410B2 (en) Image processing device
JP3182974B2 (en) Background removal equipment
EP0435658A2 (en) Image scanner
JP3137702B2 (en) Image processing device
JP4074397B2 (en) Image processing device
JP3177508B2 (en) Image processing device
JP2002171410A (en) Image processing apparatus
JP2000152006A (en) Smoothing processor
JP3095767B2 (en) Image processing device
JP3589966B2 (en) Image processing apparatus and image processing method
JPH0832802A (en) Image processing unit
JP2001078035A (en) Picture processor, picture reader, and copying machine
JP2000115529A (en) Picture reproducing device

Legal Events

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

Free format text: PAYMENT UNTIL: 20090607

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100607

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110607

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110607

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees