JPH08251408A - Image processing unit - Google Patents

Image processing unit

Info

Publication number
JPH08251408A
JPH08251408A JP7049358A JP4935895A JPH08251408A JP H08251408 A JPH08251408 A JP H08251408A JP 7049358 A JP7049358 A JP 7049358A JP 4935895 A JP4935895 A JP 4935895A JP H08251408 A JPH08251408 A JP H08251408A
Authority
JP
Japan
Prior art keywords
information
background
saturation
detection
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7049358A
Other languages
Japanese (ja)
Inventor
Yukio Yamaguchi
口 幸 男 山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP7049358A priority Critical patent/JPH08251408A/en
Publication of JPH08251408A publication Critical patent/JPH08251408A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To eliminate a background properly by detecting a parameter representing noted color image information to be a background portion based on lightness information and saturation information and deciding a threshold level and a coefficient based on the result of detection of the parameter. CONSTITUTION: A lightness detection section 50 detects a lightness and a saturation detection section 70 detects a saturation from color image data read by an optical scanner 10. A range of data detected by a lightness range gate section 60 and a saturation range gate section 80 is given to a parameter control section 90. The parameter control section 90 applies control in response to the detected lightness, saturation and range of data to a background detection section 20 and a background elimination section 30 in real time. A frequency detection memory section 100 connects to the parameter control section 90 to store a histogram, of the lightness information and the saturation information equivalent to one line of a color original and the control section 90 controls background detection and background elimination in response to the content of the memory.

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 reading color image data from the outside and removing background components from the read color image data and outputting the color image data to the outside, such as a color printer or a color copying machine.

【0002】[0002]

【従来の技術】特開平5−207280号公報には、ス
キャナで読み取った画像データを明度L成分デ−タおよ
び色度a,b成分デ−タに変換し、そのL成分に対して
のみ地肌検出・除去処理を施す地肌除去処理方法が開示
されている。a,b成分は地肌除去処理による変化がな
いため、色相・彩度情報が保存された状態で地肌除去出
力(画像デ−タ)を得ることができる。
In Japanese Patent Laid-Open No. 5-207280, image data read by a scanner is converted into lightness L component data and chromaticity a and b component data, and only the L component is the background. A background removal processing method for performing detection / removal processing is disclosed. Since the a and b components do not change due to the background removal processing, the background removal output (image data) can be obtained with the hue / saturation information stored.

【0003】[0003]

【発明が解決しようとする課題】カラー原稿対象の場合
には地肌部が色彩を有している場合が有り、一概に濃度
情報のみに着目した地肌除去処理では、適切な地肌検出
・除去処理をおこなうのは困難である。一般的に、カラ
ー原稿の地肌部分を読み取ったカラー画像データの明度
情報は高く、彩度情報は低い場合が多い。しかし従来技
術の方式では、カラー画像データの明度情報に対応する
Lab表色系のL成分のみに地肌検出・除去処理を施し
ているが、他の成分(a,b成分)を考慮した制御はお
こなわれていない。
In the case of a color manuscript, the background portion may have a color, and in the background removal processing that focuses on only density information, an appropriate background detection / removal processing is performed. Difficult to do. Generally, the brightness information of color image data obtained by reading the background portion of a color original is high and the saturation information is low in many cases. However, in the conventional method, the background detection / removal processing is performed only on the L component of the Lab color system corresponding to the lightness information of the color image data, but the control considering other components (a and b components) is not possible. Not done.

【0004】本発明は上記の点を改善することを目的と
する。すなわち、明度以外の情報に着目してより適切な
地肌検出・除去を行うことのできる画像処理装置を提供
することを目的とする。
The present invention aims to improve the above points. That is, it is an object of the present invention to provide an image processing apparatus capable of performing more appropriate background detection / removal by paying attention to information other than brightness.

【0005】[0005]

【課題を解決するための手段】本発明の第1態様の画像
処理装置は、画像読み取り手段で読み取ったカラー画像
情報より地肌情報を検出する地肌検出手段と、上記地肌
情報に応じて、上記カラー画像情報に対して地肌除去処
理を施す地肌除去手段と、上記カラー画像情報より、明
度情報を抽出する明度検出手段と、上記カラー画像情報
より、彩度情報を抽出する彩度検出手段と、上記明度検
出手段の検出結果と上記彩度検出手段の検出結果から、
注目している上記カラ−画像情報が地肌部分である度合
を示すパラメータを検出するパラメータ検出手段を有
し、パラメータ検出手段の検出結果より、上記地肌検出
手段における地肌検出処理を制御する検出制御手段と、
を備える。
According to a first aspect of the present invention, there is provided an image processing device which detects background information from color image information read by an image reading means, and the color corresponding to the background information according to the background information. Background removal means for performing background removal processing on image information; brightness detection means for extracting brightness information from the color image information; saturation detection means for extracting saturation information from the color image information; From the detection result of the brightness detection means and the detection result of the saturation detection means,
Detection control means for controlling the background detection processing in the background detection means based on the detection result of the parameter detection means, the parameter detection means detecting a parameter indicating the degree to which the color image information of interest is the background portion. When,
Is provided.

【0006】本発明の第2態様の画像処理装置は、画像
読み取り手段で読み取ったカラー画像情報より地肌情報
を検出する地肌検出手段と、上記地肌情報に応じて、上
記カラー画像情報に対して地肌除去処理を施す地肌除去
手段と、上記カラー画像情報より、明度情報を抽出する
明度検出手段と、上記カラー画像情報より、彩度情報を
抽出する彩度検出手段と、上記明度検出手段の検出結果
と上記彩度検出手段の検出結果から、注目している上記
カラ−画像情報が地肌部分である度合を示すパラメータ
を検出するパラメータ検出手段を有し、パラメータ検出
手段の検出結果より、上記地肌除去手段における地肌除
去処理を制御する除去制御手段と、を備える。
The image processing apparatus according to the second aspect of the present invention is a background detecting means for detecting background information from the color image information read by the image reading means, and a background for the color image information according to the background information. Background removal means for performing removal processing, brightness detection means for extracting brightness information from the color image information, saturation detection means for extracting saturation information from the color image information, and detection result of the brightness detection means From the detection result of the saturation detection means and a parameter detection means for detecting a parameter indicating the degree to which the color image information of interest is a background portion, the background removal is performed based on the detection result of the parameter detection means. Removal control means for controlling the background removal processing in the means.

【0007】[0007]

【作用】本発明の第1態様の画像処理装置によれば、カ
ラ−画像データはカラー地肌検出部により地肌情報を抽
出され、地肌情報はカラー地肌除去部に出力される。カ
ラー地肌除去部では地肌情報に応じた地肌除去処理をカ
ラ−画像データに対して施して出力する。パラメータ制
御部は、検出した明度,彩度情報から、地肌部分である
度合を示すパラメータを検出し、検出したパラメ−タに
対応して地肌検出,地肌除去処理を制御する。例えば、
明度が高く彩度が低い画像デ−タに対して、地肌検出や
地肌除去を強めにするように制御する。より適切な地肌
検出処理および又は地肌除去処理を行なうことができ
る。
According to the image processing apparatus of the first aspect of the present invention, the background information of the color image data is extracted by the color background detecting section, and the background information is output to the color background removing section. The color background removal unit performs background removal processing according to the background information on the color image data and outputs it. The parameter control unit detects a parameter indicating the degree of a background portion from the detected brightness and saturation information, and controls background detection and background removal processing in accordance with the detected parameter. For example,
Control is performed so that background detection and background removal are strengthened for image data with high brightness and low saturation. More appropriate background detection processing and / or background removal processing can be performed.

【0008】[0008]

【実施例】【Example】

−第1実施例− 本発明の第1実施例の構成を示す。先ず、光学スキャナ
部10によりカラー原稿を読んだカラー画像データは、
カラー地肌検出部20により地肌情報を検知され、その
結果に応じてカラー地肌除去部30において所定のカラ
ー地肌除去処理が施される。その後、プリンタ部40に
よって所定の記録用紙に出力される。
-First Example- The configuration of the first example of the present invention is shown. First, the color image data obtained by reading a color original with the optical scanner unit 10 is
The color background detection unit 20 detects the background information, and the color background removal unit 30 performs a predetermined color background removal process according to the result. After that, the printer unit 40 outputs it to a predetermined recording sheet.

【0009】また光学スキャナ部10より入力されたカ
ラー画像データは、明度検出部50および彩度検出部7
0に入力され、これらが明度および彩度を検出する。検
出された明度情報と彩度情報は、各々明度範囲ゲート部
60と彩度範囲ゲート部80によってデータ範囲を検出
され、範囲検出結果がパラメータ制御部90に入力され
る。パラメータ制御部90では、検出された明度,彩度
情報やデータ範囲に応じた制御を、地肌検出部20,地
肌除去部30に対してリアルタイムにおこなう。またパ
ラメータ制御部90には、上記カラー原稿1ライン分に
おける上記明度情報,彩度情報の発生頻度(ヒストグラ
ム)を記憶できるメモリを有する頻度検出部100が接
続されており、パラメータ制御部90は、上記メモリの
内容に応じた地肌検出制御および地肌除去制御をおこな
う。以下に各部の具体的な構成を説明する。
Further, the color image data input from the optical scanner unit 10 includes the lightness detecting unit 50 and the saturation detecting unit 7.
Input to 0, these detect lightness and saturation. The detected lightness information and saturation information have their data ranges detected by the lightness range gate unit 60 and the saturation range gate unit 80, respectively, and the range detection result is input to the parameter control unit 90. The parameter control unit 90 controls the background detection unit 20 and the background removal unit 30 in real time according to the detected brightness and saturation information and the data range. Further, the parameter control unit 90 is connected to a frequency detection unit 100 having a memory capable of storing the occurrence frequency (histogram) of the lightness information and the saturation information for one line of the color original, and the parameter control unit 90 is The background detection control and background removal control are performed according to the contents of the memory. The specific configuration of each unit will be described below.

【0010】光学スキャナ部10:図2に光学スキャナ
部10の構成を示す。光学スキャナ部10では、原稿よ
り画像データを読み取り、外部にカラ−成分画像デ−タ
R(レッド成分),G(グリ−ン成分),B(ブル−成
分)を出力する。蛍光灯11からでた光は原稿に当た
り、その反射光は第1ミラー12,第2ミラー13,第
3ミラー14を経て、レンズ15によってCCD16の
受光面に結像する。CCD16で原稿の濃淡は電気信号
に変換され、増幅器17により信号増幅された後、信号
補正部18により、シェーディング補正,暗電流補正,
濃度設定等の信号補正を施され、A/Dコンバータ19
により一画素当りR,G,B各8ビットの画像データに
変換される。ここでCCD16は、1画素単位の光電変
換エレメントを主走査方向(図2の紙面に垂直な方向)
に一列に配置したリニアCCDであり、蛍光灯11〜C
CD16が原稿に沿って副走査方向(図2上で左右方
向)に移動し、原稿を読み取る。尚、上記R,G,B画
像データは明→暗で255→0のダイナミックレンジで
あり、画像デ−タが表わす値が大きいほど明るい。
Optical Scanner Section 10: FIG. 2 shows the configuration of the optical scanner section 10. The optical scanner unit 10 reads image data from a document and outputs color component image data R (red component), G (green component), and B (blu component) to the outside. The light emitted from the fluorescent lamp 11 strikes the document, and the reflected light passes through the first mirror 12, the second mirror 13, and the third mirror 14, and is imaged by the lens 15 on the light receiving surface of the CCD 16. The light and shade of the original is converted into an electric signal by the CCD 16, and the signal is amplified by the amplifier 17, and then the shading correction, dark current correction,
A / D converter 19 that has been subjected to signal correction such as density setting
Thus, each pixel is converted into image data of 8 bits of R, G and B. Here, in the CCD 16, the photoelectric conversion element for each pixel is arranged in the main scanning direction (direction perpendicular to the paper surface of FIG. 2).
Are linear CCDs arranged in a row in the
The CD 16 moves along the document in the sub-scanning direction (horizontal direction in FIG. 2) to read the document. The R, G, B image data has a dynamic range of 255 → 0 from light to dark, and the larger the value represented by the image data, the brighter.

【0011】カラー地肌検出部:20 図3に、カラー地肌検出部20の構成を示す。カラー地
肌検出部20では、入力されたR,G,B画像データよ
り、原稿上の地肌情報を検出する。光学スキャナ部10
により取り込まれたR,G,B画像データは、コンパレ
−タ21にRとGが、コンパレ−タ22にGとBが、コ
ンパレ−タ23にBとRが与えられる。コンパレ−タ2
1〜23は、RとG,GとB,BとRを比較し、比較結
果をロジック回路25に与える。ロジック回路25は、
R,G,B画像データの最大値がいずれであるかを検出
する。その検出結果は、マルチプレクサ24に送信さ
れ、入力されたR,G,B画像データの最大値(以下、
max(RGB))がマルチプレクサ24より、コンパ
レ−タ26に出力される。
Color Background Detection Unit: 20 FIG. 3 shows the configuration of the color background detection unit 20. The color background detection unit 20 detects background information on the document from the input R, G, B image data. Optical scanner unit 10
The R, G, and B image data taken in are given to the comparator 21, R and G, to the comparator 22, G and B, and to the comparator 23, B and R. Comparator 2
1 to 23 compare R and G, G and B, and B and R, and give the comparison result to the logic circuit 25. The logic circuit 25 is
The maximum value of the R, G, B image data is detected. The detection result is transmitted to the multiplexer 24 and the maximum value of the input R, G, B image data (hereinafter,
max (RGB)) is output from the multiplexer 24 to the comparator 26.

【0012】上記max(RGB)は、コンパレ−タ2
6において、レジスタ27に保持されているしきい値と
比較され、しきい値よりもmax(RGB)が大きい場
合に、コンパレ−タ26が、乗算器28に、max(R
GB)×重み付け係数の出力を指示し、しきい値の方が
大きいときにはしきい値×重み付け係数の出力を指示す
る。これに応答して乗算器28が、しきい値よりもma
x(RGB)が大きい場合にはmax(RGB)に所定
の重み付け係数を乗算したデ−タを、地肌情報GNDと
してカラ−地肌除去部30に出力し、しきい値の方が大
きい場合には、しきい値に重み付け係数を乗算したデ−
タを、地肌情報GNDとしてカラ−地肌除去部30に出
力する。尚、レジスタ27がコンパレ−タ26に与える
しきい値は、パラメータ制御部90がレジスタ27に書
込んだもの(地肌制御情報1)であり、このしきい値が
大きいと地肌検出が弱く、小さいと強くなる。しきい値
よりもmax(RGB)が小さい場合には、地肌情報G
NDはしきい値に比例し、カラ−地肌除去部30が、地
肌情報GNDより高い(明るい)値を示す画像デ−タ
を、図5に一点鎖線で示すように、更に明るい高値に変
換するので、しきい値が大きいと地肌除去は弱く、小さ
いと強くなる。
The above max (RGB) is the comparator 2
6, the comparator 26 is compared with the threshold value held in the register 27, and when max (RGB) is larger than the threshold value, the comparator 26 causes the multiplier 28 to output max (R).
GB) × weighting coefficient output, and when the threshold value is larger, threshold value × weighting coefficient output is instructed. In response to this, the multiplier 28 makes
When x (RGB) is large, the data obtained by multiplying max (RGB) by a predetermined weighting coefficient is output to the color background removing unit 30 as background information GND, and when the threshold value is larger. , The threshold value multiplied by the weighting factor
Is output to the color background removal unit 30 as background information GND. The threshold value given to the comparator 26 by the register 27 is the value written in the register 27 by the parameter control unit 90 (background control information 1). When the threshold value is large, the background detection is weak and small. And become stronger. If max (RGB) is smaller than the threshold value, the background information G
ND is proportional to the threshold value, and the color background removing unit 30 converts the image data showing a higher (brighter) value than the background information GND into a brighter higher value as shown by a chain line in FIG. Therefore, the background removal is weak when the threshold is large, and strong when the threshold is small.

【0013】カラー地肌除去部30:図4にカラー地肌
除去部30の構成を示す。カラー地肌除去部30では、
カラー地肌検出部20の出力GNDを用いて、地肌除去
処理を行なう。光学スキャナ部10より読み取られた
R,G,B画像データ、は各々独立に地肌除去処理を施
され、R,G,B各々に対して図4のような構成をと
る。各地肌除去部30R,30G,30Bでは、先ず各
画像データとカラー地肌検出部20の出力GNDとをコ
ンパレータ31R,31G,31Bにより比較し、画像
デ−タがGND(図5の横軸の「画像部」と「地肌部」
との境界値)以上のときには、マルチプレクサ34R,
34G,34Bに、乗算器33R,33G,33Bの出
力を選択する指示を与える。乗算器33R,33G,3
3Bは、R,G,B画像データに、画像デ−タ対応の係
数値(レジスタ32R,32G,32Bにある係数値グ
ル−プの中の、そのときの画像デ−タ対応のもの)を該
画像デ−タに乗算した積をマルチプレクサ24に出力す
る。これにより、マルチプレクサ34R,34G,34
Bの出力は、入力画像デ−タが画像部(GND未満)の
ときには図5に実線で示すデ−タ(入力画像デ−タと同
じ)を出力するが、入力画像デ−タが地肌部(GND以
上)のときには図5に一点鎖線で示すデ−タ(地肌除去
したデ−タ)を出力する。尚、レジスタ32R,32
G,32Bには、パラメータ制御部90が、係数値グル
−プ(地肌制御情報2)を書込む。係数値が大きいと地
肌部領域の画像デ−タがより明るい高値に変換されるの
で、地肌除去が強い。係数値が小さいと地肌除去が弱
い。
Color background removal section 30: FIG. 4 shows the structure of the color background removal section 30. In the color background removal unit 30,
The background removal processing is performed by using the output GND of the color background detection unit 20. The R, G, B image data read by the optical scanner unit 10 is independently subjected to the background removal processing, and each of the R, G, B has a configuration as shown in FIG. In each of the skin removing sections 30R, 30G, and 30B, each image data is first compared with the output GND of the color background detecting section 20 by the comparators 31R, 31G, and 31B, and the image data is GND (the horizontal axis of FIG. "Image part" and "background part"
And the boundary value) and the multiplexer 34R,
Instructions for selecting the outputs of the multipliers 33R, 33G, 33B are given to the 34G, 34B. Multipliers 33R, 33G, 3
3B, R, G, B image data, the coefficient value corresponding to the image data (corresponding to the image data at that time in the coefficient value group in the registers 32R, 32G, 32B) The product obtained by multiplying the image data is output to the multiplexer 24. Thereby, the multiplexers 34R, 34G, 34
As for the output of B, when the input image data is the image portion (less than GND), the data indicated by the solid line in FIG. 5 (the same as the input image data) is output, but the input image data is the background portion. In the case of (greater than or equal to GND), the data (data with the background removed) shown by the alternate long and short dash line in FIG. 5 is output. Incidentally, the registers 32R, 32
The parameter control unit 90 writes a coefficient value group (background control information 2) in G and 32B. If the coefficient value is large, the image data in the background area is converted into a brighter high value, and the background removal is strong. If the coefficient value is small, the background removal is weak.

【0014】明度検出部50:図6に、明度検出部50
の構成を示す。明度検出部50では、光学スキャナ部1
0からのR,G,B画像デ−タより明度情報を抽出す
る。光学スキャナ部10からのR,G,B画像データが
マトリクス演算部51に入力される。マトリクス演算部
51は、R,G,B画像デ−タを明度情報に変換する乗
算演算をおこなう。マトリクスメモリ部52は、上記演
算のための乗算係数マトリクスデータを保持しており、
その内容は外部より書き換え可能である。上記マトリク
ス演算の詳細な説明は省略する。
Brightness detecting section 50: FIG. 6 shows the brightness detecting section 50.
Shows the configuration of. In the lightness detection unit 50, the optical scanner unit 1
The brightness information is extracted from the R, G, B image data starting from 0. The R, G, B image data from the optical scanner unit 10 is input to the matrix calculation unit 51. The matrix calculation unit 51 performs multiplication calculation for converting R, G, B image data into lightness information. The matrix memory unit 52 holds the multiplication coefficient matrix data for the above calculation,
The contents can be rewritten from the outside. A detailed description of the matrix calculation is omitted.

【0015】彩度検出部70:図7に、彩度検出部70
の構成を示す。彩度検出部70では光学スキャナ部10
からのR,G,B画像デ−タより彩度情報を抽出する。
上記明度検出部50と同様な構成によって、R,G,B
画像デ−タを明度情報に変換する。
Saturation detection unit 70: FIG. 7 shows the saturation detection unit 70.
Shows the configuration of. In the saturation detection unit 70, the optical scanner unit 10
Saturation information is extracted from the R, G, B image data from.
With the same configuration as the brightness detection unit 50, R, G, B
Image data is converted into lightness information.

【0016】明度範囲ゲート部60:図8に、明度範囲
ゲート部60の構成を示す。明度範囲ゲート部60で
は、明度検出部50が与える明度情報が、レジスタ62
のしきい値よりも高いか否かをコンパレ−タ61で検出
し、その結果(低い:H/高い:L)をパラメータ制御
部90に出力する。
Brightness range gate unit 60: FIG. 8 shows the structure of the brightness range gate unit 60. In the lightness range gate unit 60, the lightness information provided by the lightness detection unit 50 is stored in the register 62.
The comparator 61 detects whether it is higher than the threshold value of, and outputs the result (low: H / high: L) to the parameter control unit 90.

【0017】彩度範囲ゲート部80:図9に、彩度範囲
ゲート部80の構成を示す。彩度範囲ゲート部80で
は、彩度検出部70が与える彩度情報がレジスタ82の
しきい値よりも大きいかをコンパレ−タ81で検出し、
その結果(大きい:H/小さい:L)をパラメータ制御
部90に出力する。
Saturation Range Gate Unit 80: FIG. 9 shows the structure of the saturation range gate unit 80. In the saturation range gate unit 80, the comparator 81 detects whether the saturation information given by the saturation detection unit 70 is larger than the threshold value of the register 82,
The result (large: H / small: L) is output to the parameter control unit 90.

【0018】頻度検出部100:図10に、頻度検出部
100の構成を示す。頻度検出部100では、カラー原
稿から光学スキャナ部10が読み取った1ライン前の
R,G,B画像デ−タの、明度情報と彩度情報の発生頻
度(同一値の発生回数:ヒストグラム)を保持し、その
頻度情報をパラメータ制御部90に送る。頻度検出部1
00には、明度頻度を保持する明度頻度メモリ102と
彩度頻度を保持する彩度頻度メモリ104が搭載されて
いる。メモリ内容は各ラインの先頭毎に初期化され、初
期化の後、明度情報,彩度情報が入力される毎に、それ
ぞれの頻度メモリに対して、入力値に対応するアドレス
の内容がインクリメントされる。その結果、カラー原稿
の一ライン分の読み取りが終了する毎に、該ラインの明
度情報と彩度情報の頻度分布がメモリ102,104に
あることになる。このとき、後述のパラメ−タ制御部9
0がメモリ102,104の明度情報と彩度情報の頻度
分布(ヒストグラム)を読込んで、最高頻度の明度デ−
タ(メモリアドレス)および最高頻度の彩度デ−タ(メ
モリアドレス)をラッチ1(D91,E91),ラッチ
2(D95,E95)に取込む。
Frequency Detection Unit 100: FIG. 10 shows the configuration of the frequency detection unit 100. The frequency detection unit 100 calculates the occurrence frequency (the number of occurrences of the same value: histogram) of the brightness information and the saturation information of the R, G, B image data of one line before read by the optical scanner unit 10 from the color original. It is held and the frequency information is sent to the parameter control unit 90. Frequency detector 1
00 has a lightness frequency memory 102 that holds the lightness frequency and a saturation frequency memory 104 that holds the saturation frequency. The memory contents are initialized at the beginning of each line, and after initialization, the contents of the address corresponding to the input value is incremented for each frequency memory each time the brightness information and saturation information is input. It As a result, every time reading of one line of the color original is completed, the frequency distribution of the brightness information and the saturation information of the line is stored in the memories 102 and 104. At this time, a parameter control unit 9 described later
0 reads the frequency distribution (histogram) of the brightness information and the saturation information of the memories 102 and 104, and reads the brightness data of the highest frequency.
The data (memory address) and the most frequent saturation data (memory address) are taken into the latch 1 (D91, E91) and the latch 2 (D95, E95).

【0019】パラメータ制御部90:図11に、パラメ
ータ制御部90の構成を示す。パラメータ制御部90で
は、明度検出部50,彩度検出部70,明度範囲ゲート
部60,彩度範囲ゲート部80,頻度検出部100の各
々の出力を受け、これらの出力の組み合わせからカラー
地肌検出部20の検出パラメータ(レジスタ27のしき
い値:地肌制御情報1)とカラー地肌除去部30の除去
パラメータ(レジスタ32R〜32Bの係数グル−プ:
地肌制御情報2)とを演算し、各々にパラメータ設定す
る。すなわちそれぞれのレジスタに書込む。パラメータ
制御部90に入力された明度情報は、レジスタ1(D9
3)の出力値と乗算器1(D94)によって、同様に彩
度情報はレジスタ2(D97)の出力値と乗算器2(D
98)によって重み付け(係数乗算)がほどこされ、そ
れぞれ重み付けを施されたデータは、加算器D99によ
って加算される。ここでレジスタ1(D93),2(D
97)にはそれぞれ明度,彩度情報の重み付け係数が保
持されており、パラメータ制御部90に内蔵のCPU1
によって逐次書き換えが可能である。上記加算結果は、
デコーダD100にデコードアドレスとして入力され、
上記CPU1がアドレス値に応じたデータをROM(D
101)より読みだす。読みだされたデータは、ラッチ
D102によって保持される。
Parameter control unit 90: FIG. 11 shows the configuration of the parameter control unit 90. The parameter control unit 90 receives the outputs of the brightness detection unit 50, the saturation detection unit 70, the brightness range gate unit 60, the saturation range gate unit 80, and the frequency detection unit 100, and detects the color background from the combination of these outputs. Detection parameter of the unit 20 (threshold of the register 27: background control information 1) and removal parameter of the color background removal unit 30 (coefficient group of registers 32R to 32B:
The background control information 2) is calculated and parameters are set for each. That is, write to each register. The brightness information input to the parameter control unit 90 is stored in the register 1 (D9
3) and the multiplier 1 (D94), the saturation information is similarly output from the register 2 (D97) and the multiplier 2 (D94).
98), weighting (coefficient multiplication) is performed, and the weighted data are added by the adder D99. Here, registers 1 (D93), 2 (D
97) holds weighting coefficients of lightness and saturation information respectively, and the CPU 1 built in the parameter control unit 90.
Can be rewritten sequentially. The above addition result is
It is input to the decoder D100 as a decode address,
The CPU 1 stores data corresponding to the address value in the ROM (D
101). The read data is held by the latch D102.

【0020】またパラメータ制御部90に入力された彩
度範囲ゲート部80の出力と明度範囲ゲート部60の出
力は、AND回路D103によって論理積演算され、明
度範囲が高(H)かつ彩度範囲が低(H)のとき、デー
タのラッチ信号として上記ラッチD102に出力され
る。上記2つのゲート部60,80の出力の両方がHで
あった場合(明度が高、かつ、彩度が低)にのみ、上記
ラッチD102の内容はデコーダ出力によってアドレス
されたROM(D101)の読出しデ−タに書き換えら
れ、そうでないときにはラッチD102は前回の内容を
保持する。
The output of the saturation range gate unit 80 and the output of the brightness range gate unit 60, which are input to the parameter control unit 90, are ANDed by the AND circuit D103, and the brightness range is high (H) and the saturation range is high. Is low (H), it is output to the latch D102 as a data latch signal. Only when both outputs of the two gate sections 60 and 80 are H (high brightness and low saturation), the contents of the latch D102 are stored in the ROM (D101) addressed by the decoder output. The read data is rewritten, and if not, the latch D102 holds the previous contents.

【0021】またパラメータ制御部90のCPU1は、
頻度検出部100の明度,彩度頻度メモリ102,10
4の内容を一ライン処理を終了する毎に読み出し、各々
頻度が最も大きい明度,彩度情報を検出する。検出した
最高頻度明度および最高頻度彩度は、次のラインの間、
それぞれラッチ1(D91)およびラッチ2(D95)
に保持され、パラメータ制御部90に入力された明度情
報および彩度情報との差分が、差分器1(D92)およ
び差分器2(D96)により演算される。差分値に応じ
て、CPU1は、レジスタ1(D93)およびレジスタ
2(D97)の値をそれぞれ書き換える。たとえば、最
高頻度彩度と入力彩度情報との差分値が小さい場合に
は、CPU1は入力彩度情報に対する重み付け係数を保
持しているレジスタ2(D97)の内容を現在設定され
ている値より大きい値に設定する(明度情報の場合も同
じ)。
Further, the CPU 1 of the parameter control unit 90 is
Lightness / saturation frequency memory 102, 10 of the frequency detection unit 100
The contents of No. 4 are read every time one-line processing is completed, and the lightness and saturation information having the highest frequency is detected. The detected highest frequency lightness and highest frequency saturation are
Latch 1 (D91) and Latch 2 (D95) respectively
The difference between the brightness information and the saturation information, which are stored in the parameter control unit 90 and are input to the parameter control unit 90, is calculated by the difference unit 1 (D92) and the difference unit 2 (D96). The CPU 1 rewrites the values of the register 1 (D93) and the register 2 (D97) according to the difference value. For example, when the difference value between the maximum frequency saturation and the input saturation information is small, the CPU 1 sets the content of the register 2 (D97) holding the weighting coefficient for the input saturation information to the value currently set. Set to a large value (same for brightness information).

【0022】パラメータ制御部90は、上述の構成を2
組(CPU1,CPU2)独立に有しており、各々が、
カラー地肌検出部20へのしきい値(地肌制御情報1)
および検出パラメータ演算部30への係数グル−プ(地
肌制御情報2)を上述のようにROM(D101,E1
01)より読み出してラッチD102,E102に格納
して、それぞれカラー地肌検出部20およびカラ−地肌
除去部30に与える。尚、ROMD101およびE10
1には、アドレスが大きい(明度が高,彩度が低)ほ
ど、地肌検出,地肌除去が強度に施される(地肌検出の
しきい値が小さい)地肌制御情報1および(地肌除去の
係数が大きい)地肌制御情報2が保持されている。
The parameter control unit 90 has the above-described configuration.
It has a pair (CPU1, CPU2) independently, and each has
Threshold for color background detection unit 20 (background control information 1)
And the coefficient group (background control information 2) to the detection parameter calculation unit 30 is stored in the ROM (D101, E1) as described above.
01), stores them in the latches D102 and E102, and supplies them to the color background detecting section 20 and the color background removing section 30, respectively. Incidentally, ROMD101 and E10
1, the larger the address (higher lightness, lower saturation), the stronger the background detection and background removal (smaller threshold for background detection) background control information 1 and (background removal coefficient). The background control information 2 is held.

【0023】全体動作:実施例1の全体の動作を以下に
説明する。光学スキャナ部10にて取り込まれたR,
G,B画像データは、カラー地肌検出部20により地肌
情報を抽出され、この地肌情報はカラー地肌除去部30
に出力される。カラー地肌除去部30では、地肌情報に
応じた地肌除去処理を光学スキャナ10より読み取った
R,G,B画像データに対して施し、プリンタ部40に
出力する。
Overall Operation: The overall operation of the first embodiment will be described below. R captured by the optical scanner unit 10,
The background information of the G and B image data is extracted by the color background detecting unit 20, and the background information is extracted from the color background removing unit 30.
Is output to The color background removal unit 30 performs background removal processing according to the background information on the R, G, B image data read by the optical scanner 10 and outputs it to the printer unit 40.

【0024】パラメータ制御部90では、検出した明
度,彩度情報から、カラー地肌検出部20,カラー地肌
除去部30の処理を調整するパラメータ(地肌制御情報
1,地肌制御情報2)を算出し設定する。例えば彩度が
低く、明度が高い入力がなされたときには、パラメータ
制御部90は、地肌検出,地肌除去処理パラメータ(地
肌制御情報1および地肌制御情録2)を、地肌検出や地
肌除去が強めに処理されるような値(小さいしきい値を
表わす地肌制御情報1,大きい係数を表わす地肌制御情
報2)を設定する。また明度検出部50によって検出さ
れた明度情報が所定のしきい値よりも低い場合(地肌部
以外であるとおもわれる箇所)には、ラッチD102,
E102は、ラッチせず、前にラッチした値を保持する
ので、前回演算したパラメータが用いられる(彩度情報
の場合もおなじ)。また頻度検出部100に保持されて
いる前ラインの明度,彩度情報の頻度分布を読み出すこ
とにより、入力された明度,彩度情報が前ラインの最大
頻度値に近い値であった場合にも、地肌検出,地肌除去
処理が強めに施されるようなパラメータ(小さいしきい
値を表わす地肌制御情報1,大きい係数を表わす地肌制
御情報2)が選択される。
The parameter control unit 90 calculates and sets parameters (background control information 1, background control information 2) for adjusting the processing of the color background detection unit 20 and the color background removal unit 30 from the detected lightness and saturation information. To do. For example, when an input with low saturation and high brightness is made, the parameter control unit 90 makes the background detection and background removal processing parameters (background control information 1 and background control information 2) stronger for background detection and background removal. Values to be processed (background control information 1 representing a small threshold value, background control information 2 representing a large coefficient) are set. If the lightness information detected by the lightness detection unit 50 is lower than a predetermined threshold value (a portion that is considered to be other than the background portion), the latch D102,
Since E102 does not latch and holds the previously latched value, the parameter calculated last time is used (the same applies to the saturation information). Further, by reading the frequency distribution of the brightness and saturation information of the previous line held in the frequency detection unit 100, even when the input brightness and saturation information is a value close to the maximum frequency value of the previous line. , The parameters (background control information 1 representing a small threshold value, background control information 2 representing a large coefficient) on which the background detection and background removal processing are strongly performed are selected.

【0025】その他の実施例:第1実施例は、光学スキ
ャナ10によりカラー画像情報を読み取っているが、他
の手段によってカラー画像情報を読み取る構成であって
もよい。また第1実施例において、最終段においてプリ
ンタ部40を有しているが、出力装置を含まない構成で
あってもよい。また第1実施例において、入力R,G,
B画像データの最大値max(RGB)を用いたカラー
地肌検出処理(図3)をおこなっているが、他の手法を
用いた地肌検出手段を本発明を適用することも可能であ
る。また第1実施例において、カラー地肌検出処理(図
3)により求めたデータGNDをしきい値として利用し
たカラー地肌除去処理をおこなっている(図4)が、他
の手法を用いた地肌除去手段を本発明に適用することも
可能である。また第1実施例において、明度範囲ゲート
部60はしきい値より大きい明度情報を検出している
が、所定範囲の明度情報を検出するような構成であって
もよい。また第1実施例において、彩度範囲ゲート部8
0はしきい値より大きい彩度情報を検出しているが、所
定範囲の彩度情報を検出するような構成であってもよ
い。
Other Embodiments: In the first embodiment, the color image information is read by the optical scanner 10, but the color image information may be read by other means. Further, in the first embodiment, the printer unit 40 is provided at the final stage, but the output unit may not be included. Further, in the first embodiment, inputs R, G,
Although the color background detection processing (FIG. 3) is performed using the maximum value max (RGB) of B image data, the present invention can be applied to background detection means using another method. In addition, in the first embodiment, the color background removal processing using the data GND obtained by the color background detection processing (FIG. 3) as a threshold value is performed (FIG. 4), but the background removal means using another method is used. Can also be applied to the present invention. Further, in the first embodiment, the lightness range gate unit 60 detects the lightness information larger than the threshold value, but it may be configured to detect the lightness information in the predetermined range. Further, in the first embodiment, the saturation range gate unit 8
Although 0 detects the saturation information larger than the threshold value, it may be configured to detect the saturation information in a predetermined range.

【0026】[0026]

【発明の効果】本発明の画像処理装置は、カラー画像情
報より明度情報を検出する明度検出手段と彩度情報を検
出する彩度検出手段を有しており、さらに明度情報と彩
度情報から、注目している領域(時々刻々に更新される
処理対象画素)が原稿中の地肌部分である度合を示すパ
ラメータ(加算器D99,E99の出力&D103,E
103の出力)を検出するので、上記パラメータを利用
することにより適切な地肌検出処理および又は地肌除去
処理を行なうことができる。
The image processing apparatus of the present invention has a lightness detecting means for detecting lightness information from color image information and a saturation detecting means for detecting saturation information, and further from the lightness information and the saturation information. , A parameter (output of adders D99, E99 & D103, E of the adder D99, E99) indicating the degree to which the region of interest (processing target pixel updated momentarily) is the background portion of the document
Since the output (103 output) is detected, an appropriate background detection process and / or background removal process can be performed by using the above parameters.

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

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

【図2】 図1に示す光学スキャナ部10の構成を示す
ブロック図である。
FIG. 2 is a block diagram showing a configuration of an optical scanner unit 10 shown in FIG.

【図3】 図1に示すカラ−地肌検出部20の構成を示
すブロック図である。
3 is a block diagram showing a configuration of a color background detection unit 20 shown in FIG.

【図4】 図1に示すカラ−地肌除去部30の構成を示
すブロック図である。
4 is a block diagram showing a configuration of a color background removing unit 30 shown in FIG.

【図5】 図1に示す光学スキャナ部10が出力するカ
ラ−画像デ−タ(入力R,G,Bデ−タ)と図4に示す
カラ−地肌除去部30が出力するカラ−画像デ−タ(出
力R,G,Bデ−タ)との関係を示すグラフである。
5 shows color image data (input R, G, B data) output by the optical scanner unit 10 shown in FIG. 1 and color image data output by the color background removing unit 30 shown in FIG. 3 is a graph showing the relationship with the data (output R, G, B data).

【図6】 図1に示す明度検出部50の構成を示すブロ
ック図である。
FIG. 6 is a block diagram showing a configuration of a brightness detection section 50 shown in FIG.

【図7】 図1に示す彩度検出部70の構成を示すブロ
ック図である。
7 is a block diagram showing a configuration of a saturation detection unit 70 shown in FIG.

【図8】 図1に示す明度範囲ゲ−ト部60の構成を示
すブロック図である。
8 is a block diagram showing a configuration of a lightness range gate unit 60 shown in FIG.

【図9】 図1に示す彩度範囲ゲ−ト部70の構成を示
すブロック図である。
9 is a block diagram showing a configuration of a saturation range gate unit 70 shown in FIG.

【図10】 図1に示す頻度検出部100の構成を示す
ブロック図である。
10 is a block diagram showing a configuration of a frequency detection unit 100 shown in FIG.

【図11】 図1に示すパラメ−タ制御部90の構成を
示すブロック図である。
11 is a block diagram showing a configuration of a parameter control unit 90 shown in FIG.

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】画像読み取り手段で読み取ったカラー画像
情報より地肌情報を検出する地肌検出手段と、 上記地肌情報に応じて、上記カラー画像情報に対して地
肌除去処理を施す地肌除去手段と、 上記カラー画像情報より、明度情報を抽出する明度検出
手段と、 上記カラー画像情報より、彩度情報を抽出する彩度検出
手段と、 上記明度検出手段の検出結果と上記彩度検出手段の検出
結果から、注目している上記カラ−画像情報が地肌部分
である度合を示すパラメータを検出するパラメータ検出
手段を有し、パラメータ検出手段の検出結果より、上記
地肌検出手段における地肌検出処理を制御する検出制御
手段と、を有することを特徴とする画像処理装置。
1. A background detecting means for detecting background information from color image information read by an image reading means, and a background removing means for performing background removing processing on the color image information according to the background information. From the brightness detection means for extracting the brightness information from the color image information, the saturation detection means for extracting the saturation information from the color image information, and the detection result of the brightness detection means and the detection result of the saturation detection means. A detection control for controlling a background detection process in the background detection means based on a detection result of the parameter detection means, the parameter detection means detecting a parameter indicating the degree to which the color image information of interest is a background portion. An image processing device comprising:
【請求項2】画像読み取り手段で読み取ったカラー画像
情報より地肌情報を検出する地肌検出手段と、 上記地肌情報に応じて、上記カラー画像情報に対して地
肌除去処理を施す地肌除去手段と、 上記カラー画像情報より、明度情報を抽出する明度検出
手段と、 上記カラー画像情報より、彩度情報を抽出する彩度検出
手段と、 上記明度検出手段の検出結果と上記彩度検出手段の検出
結果から、注目している上記画像情報が地肌部分である
度合を示すパラメータを検出するパラメータ検出手段を
有し、パラメータ検出手段の検出結果より、上記地肌除
去手段における地肌除去処理を制御する除去制御手段
と、を有することを特徴とする画像処理装置。
2. A background detecting means for detecting background information from color image information read by the image reading means, and a background removing means for performing background removal processing on the color image information according to the background information. From the brightness detection means for extracting the brightness information from the color image information, the saturation detection means for extracting the saturation information from the color image information, and the detection result of the brightness detection means and the detection result of the saturation detection means. A removal control means for controlling the background removal processing in the background removal means based on the detection result of the parameter detection means, which has a parameter detection means for detecting a parameter indicating the degree to which the image information of interest is a background portion. An image processing apparatus comprising:
【請求項3】上記明度検出手段は、所定のしきい値より
大きい明度情報であるかを検出し、出力する請求項1ま
たは請求項2に記載の画像処理装置。
3. The image processing apparatus according to claim 1, wherein the brightness detection means detects whether the brightness information is larger than a predetermined threshold value and outputs the brightness information.
【請求項4】上記明度検出手段は、所定の範囲内の明度
情報であるかを検出し、出力する、請求項1または請求
項2に記載の画像処理装置。
4. The image processing apparatus according to claim 1, wherein the brightness detecting means detects whether the brightness information is within a predetermined range and outputs the brightness information.
【請求項5】上記彩度検出手段は、所定のしきい値より
小さい彩度情報であるかを検出し、出力する、請求項1
または請求項2に記載の画像処理装置。
5. The saturation detecting means detects and outputs whether or not the saturation information is smaller than a predetermined threshold value and outputs it.
Alternatively, the image processing apparatus according to claim 2.
【請求項6】上記彩度検出手段は、所定の範囲内の彩度
情報であるかを検出し、出力する請求項1または請求項
2に記載の画像処理装置。
6. The image processing apparatus according to claim 1, wherein the saturation detecting means detects whether or not the saturation information is within a predetermined range and outputs it.
【請求項7】 上記明度情報,彩度情報の検出頻度分布
を記憶する記憶手段を有し、上記記憶手段に記憶された
分布情報に応じて、上記検出制御手段における制御処理
を変更する、請求項1,請求項2,請求項3,請求項
4,請求項5または請求項6に記載の画像処理装置。
7. A storage unit for storing a detection frequency distribution of the lightness information and the saturation information, wherein the control processing in the detection control unit is changed according to the distribution information stored in the storage unit. The image processing apparatus according to claim 1, claim 2, claim 3, claim 4, claim 5, or claim 6.
JP7049358A 1995-03-09 1995-03-09 Image processing unit Pending JPH08251408A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7049358A JPH08251408A (en) 1995-03-09 1995-03-09 Image processing unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7049358A JPH08251408A (en) 1995-03-09 1995-03-09 Image processing unit

Publications (1)

Publication Number Publication Date
JPH08251408A true JPH08251408A (en) 1996-09-27

Family

ID=12828803

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7049358A Pending JPH08251408A (en) 1995-03-09 1995-03-09 Image processing unit

Country Status (1)

Country Link
JP (1) JPH08251408A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009284408A (en) * 2008-05-26 2009-12-03 Fuji Xerox Co Ltd Background removing apparatus and program, and image forming device
JP2010283464A (en) * 2009-06-02 2010-12-16 Ricoh Co Ltd Image processor, and image processing method
JP2013115734A (en) * 2011-11-30 2013-06-10 Brother Ind Ltd Image reading apparatus, image processing program, and information processing apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009284408A (en) * 2008-05-26 2009-12-03 Fuji Xerox Co Ltd Background removing apparatus and program, and image forming device
JP2010283464A (en) * 2009-06-02 2010-12-16 Ricoh Co Ltd Image processor, and image processing method
JP2013115734A (en) * 2011-11-30 2013-06-10 Brother Ind Ltd Image reading apparatus, image processing program, and information processing apparatus

Similar Documents

Publication Publication Date Title
KR100380201B1 (en) Method and apparatus for processing digital pixel output signals
JP3031994B2 (en) Image processing device
JPH08172532A (en) Image reader and read method
JPH08251408A (en) Image processing unit
JPH10283470A (en) Image processor, image processing method and recording medium
JP2005094214A (en) Image scanner, and shading correction method thereof
JP2004104635A (en) Image processing apparatus
JP2006041687A (en) Image processing apparatus, image processing method, image processing program, electronic camera, and scanner
JPH1117984A (en) Image processor
JPH03201772A (en) Image scanner
KR100338073B1 (en) Color Image Scanning Method Using Mono Image Sensor
JPH07273995A (en) Image processor
JPH05268474A (en) Scanner
JP2002281311A (en) Image processor and image reader
JP2002354253A (en) Image processor and its program
JP2934971B2 (en) Image binarization processing device
JP2007060049A (en) Image reading apparatus
JPH08154181A (en) Color image forming device
JP2005191844A (en) Contact image sensor apparatus
JPH05161015A (en) Density adjusting method for binarized picture
JP2001326822A (en) Image processing unit
JPS6367078A (en) Picture processor
JP2002281308A (en) Image processor and image reader
JPH1169154A (en) Method and device for correcting shading
JPH1132216A (en) Image processor