JPH0468663A - Color picture processor - Google Patents

Color picture processor

Info

Publication number
JPH0468663A
JPH0468663A JP2175344A JP17534490A JPH0468663A JP H0468663 A JPH0468663 A JP H0468663A JP 2175344 A JP2175344 A JP 2175344A JP 17534490 A JP17534490 A JP 17534490A JP H0468663 A JPH0468663 A JP H0468663A
Authority
JP
Japan
Prior art keywords
color
signal
image
black
circuit
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
JP2175344A
Other languages
Japanese (ja)
Inventor
Tatsuhito Kataoka
片岡 達仁
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2175344A priority Critical patent/JPH0468663A/en
Publication of JPH0468663A publication Critical patent/JPH0468663A/en
Pending legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Input (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、カラー画像を読み取り、カラー画像に適した
処理を行うカラー画像処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a color image processing device that reads a color image and performs processing suitable for the color image.

[従来の技術] 従来のカラー原稿の下地色の除去は例えば新聞の様な原
稿を読み取って記録する場合、オペレータが手動で濃度
の調整を行いながら画像処理後の記録画像を肉眼で確認
しつつ、下地が消えるまで調整作業を繰り返し行ってい
た。
[Prior Art] Conventionally, when an original such as a newspaper is read and recorded, the removal of the background color of a color original is performed while an operator manually adjusts the density and visually confirms the recorded image after image processing. , the adjustment work was repeated until the base layer disappeared.

[発明が解決しようとしている課題] しかしながら、上記従来例では、調整を手作業で行うた
め、調整に時間を必要としていた。
[Problems to be Solved by the Invention] However, in the above-mentioned conventional example, the adjustment was performed manually, which required time.

また、下地を除去する際、画像域全体の濃度が薄くなり
、コントラストもおちて非常に見苦しい画像になってい
たといった欠点があった。また、濃度を調整するために
、原稿露光ランプの光量を調整すると、ランプの色合い
が変化してしまい、それに応じて記録画像の色合いも変
化して1という欠点もあった。
Further, when removing the background, the density of the entire image area becomes thinner and the contrast decreases, resulting in a very unsightly image. Further, when the light amount of the document exposure lamp is adjusted to adjust the density, the color tone of the lamp changes, and the color tone of the recorded image also changes accordingly.

本発明は、上記課題を解決するために成されたもので、
読み取ったカラー画像に対してカラー画像の下地に応じ
た処理を行うことができるカラー画像処理装置を提供す
ることを目的とする。
The present invention was made to solve the above problems, and
It is an object of the present invention to provide a color image processing device that can perform processing on a read color image according to the background of the color image.

[課題を解決するための手段] 上記目的を達成するために、本発明のカラー画像処理装
置は以下の構成から成る。即ち、読み取ったカラー画像
に基づいて、カラー画像下地情報を算出し、該カラー画
像下地情報に応じたカラー画像処理を行うカラー画像処
理装置であって、カラー画像下地情報に応じてアナログ
ゲインを制御する制御手段と、該制御手段で制御される
アナログゲインを設定する設定手段とを有する。
[Means for Solving the Problems] In order to achieve the above object, a color image processing device of the present invention has the following configuration. That is, the color image processing device calculates color image background information based on a read color image, performs color image processing according to the color image background information, and controls analog gain according to the color image background information. and a setting means for setting an analog gain controlled by the control means.

[作用] 以上の構成において、読み取ったカラー画像に基づいて
、カラー画像下地情報を算出し、そのカラー画像下地情
報に応じたカラー画像処理を行う際に、カラー画像下地
情報に応じて設定されたアナログゲインを制御するよう
に動作する。
[Operation] In the above configuration, when calculating color image background information based on the read color image and performing color image processing according to the color image background information, the information set according to the color image background information is calculated. Operates to control analog gain.

[実施例] 以下、添付図面を参照して本発明に係る好適な一実施例
を詳細に説明する。
[Embodiment] Hereinafter, a preferred embodiment of the present invention will be described in detail with reference to the accompanying drawings.

第1図は、実施例におけるカラー画像処理装置の構成を
示す概略ブロック図である。
FIG. 1 is a schematic block diagram showing the configuration of a color image processing device in an embodiment.

カラー画像複写装置等に適用されるカラー画像処理装置
は、フルカラーの原稿をハロゲンランプや蛍光灯等の照
明源で露光し、その反射カラー像をCCD (蓄積電荷
素子)等のカラーイメージセンサで光電変換により撮像
し、得られたアナログ画像信号をA/D (アナログ/
デジタル)変換器等でデジタル化し、デジタル化された
フルカラー画像信号を処理し、加工し、各種カラープリ
ンタにaカするものである。
A color image processing device applied to a color image copying device exposes a full-color original to light from an illumination source such as a halogen lamp or fluorescent lamp, and then photoelectrically converts the reflected color image using a color image sensor such as a CCD (storage charge device). The image is captured by conversion, and the obtained analog image signal is converted into an A/D (analog/
The digitized full-color image signal is digitized using a digital converter, etc., processed, processed, and sent to various color printers.

原稿は、まず光量可変露光ランプ520により後述する
設定光量に応じた光量で照射され、その反射光がCCD
500によって画像ごとに色分解されて読み取られ、次
のアナログ処理回路501で所定レベルに増幅される。
The document is first irradiated with a light amount according to a set light amount described later by the variable light amount exposure lamp 520, and the reflected light is reflected by the CCD.
500, each image is separated into colors and read, and then amplified to a predetermined level by an analog processing circuit 501.

第2図にカラー読み取りセンサ及び駆動パルスを示す。FIG. 2 shows the color reading sensor and drive pulses.

第2図(a)は本例で使用されるカラー読み取りセンサ
であり、主走査方向を5分割して読み取るべき62.5
μm(1/16mm)を1画素として、1024画素、
即ち、図のごとく1画素を主走査方向にG、B、Rで3
分割しているので、トータル1024X3=3072の
有効画素数を有する。一方、各チップ58〜62は同一
セラミック基板上に形成され、センサの1゜3.5番目
(58,60,62)は同一ラインLA上に、2,4番
目(59,61)はLAと4ライン分(62,5μm 
x 4 = 250μm)だけ離れたラインLB上に配
置され、原稿読み取り時は、矢印AL力方向走査する。
Figure 2 (a) shows the color reading sensor used in this example, which should be read by dividing the main scanning direction into 5.
1024 pixels, where μm (1/16 mm) is one pixel,
In other words, as shown in the figure, one pixel is divided into 3 pixels in G, B, and R in the main scanning direction.
Since it is divided, the total number of effective pixels is 1024×3=3072. On the other hand, the chips 58 to 62 are formed on the same ceramic substrate, and the 1st and 3.5th sensors (58, 60, 62) are on the same line LA, and the 2nd and 4th sensors (59, 61) are on the same line LA. 4 lines (62.5 μm
x 4 = 250 μm) on the line LB, and scans in the force direction of the arrow AL when reading the document.

各SつのCCDのうち1,3.5番目は駆動パルス群0
DRVI 18に、2,4番目はEDRV119により
、それぞれ独立にかつ同期して駆動される。0DRV1
18i、:含まれ6001A。
The 1st and 3.5th of each S CCDs are drive pulse group 0
The second and fourth are driven by the DRVI 18 and the EDRV 119 independently and synchronously. 0DRV1
18i: Includes 6001A.

002A、ORSとEDRV119に含まれるEOIA
、EO2A、ERSはそれぞれ各センサ内での電荷転送
りロック、電荷リセットパルスであり、1,3.5番目
と2,4番目との相互干渉やノイズ制限のため、お互い
にジッタにない様に全く同期して生成される。このため
、これらパルスは、1つの基準発振源05C558(第
1図)から生成される。
EOIA included in 002A, ORS and EDRV119
, EO2A, and ERS are charge transfer lock and charge reset pulses within each sensor, respectively, and due to mutual interference between the 1st, 3.5th and 2nd, and 4th and noise limitations, they are designed to avoid jitter from each other. Generated completely synchronously. These pulses are therefore generated from a single reference oscillator source 05C558 (FIG. 1).

第3図(a)は、カラー読み取りセンサの駆動パルス0
DRVI 18.EDRVI 19を生成するパルスジ
ェネレータ534の回路ブロック、第3図(b)は、そ
のタイミングチャートであり、第1図システムコントロ
ーバルスジエネレータ534に含まれる。単一の03C
558より発生される原クロックCLKOを分周したク
ロックに0135は0DRVとEDRV(7)発生タイ
ミングを決める基準信号5YNC2,5YNC3を生成
するクロックである。5YNC2,5YNC3はCPU
22バスに接続された信号線139により設定されるプ
リセッタブルカウンタ64.65の設定値に応じて出力
タイミングが決定され、5YNC2,5YNC3は分周
器66.67及び駆動パルス生成部68.69を初期化
する。即ち、本ブロックに入力されるH3YNC115
を基準とし、全て1つの発振源0SC558より出力さ
れるCLKO及び全て同期して発生している分周クロッ
クにより生成されているので、0DRV118とEDR
VII9のそれぞれのパルス群は′全くジッタのない同
期した信号として得られ、センサ間の干渉による信号の
乱れを防止できる。
FIG. 3(a) shows the driving pulse 0 of the color reading sensor.
DRVI 18. The circuit block of the pulse generator 534 that generates the EDRVI 19, FIG. 3(b) is a timing chart thereof, and is included in the system control generator 534 of FIG. single 03c
0135 is a clock that generates reference signals 5YNC2 and 5YNC3 that determine the generation timing of 0DRV and EDRV (7). 5YNC2 and 5YNC3 are CPUs
The output timing is determined according to the set value of the presettable counter 64.65 set by the signal line 139 connected to the 22 bus, and the 5YNC2 and 5YNC3 operate the frequency divider 66.67 and the drive pulse generator 68.69. initialize. That is, H3YNC115 input to this block
0DRV118 and EDR.
Each pulse group of VII9 is obtained as a synchronous signal with absolutely no jitter, and signal disturbances due to interference between sensors can be prevented.

ここで、お互いに同期して得られたセンサ駆動バ/1.
ス0DRV118とEDRVIIは、CCDドライバ5
33を介して1,3.5番目のセンサ58.60.62
と、2,4番目のセンサ59゜61にそれぞれ供粕され
る。各センサ58゜59.60.61’、62からは駆
動パルスに同期してビデオ信号■1〜v5が独立に8カ
される。
Here, the sensor drive bars/1. which are obtained in synchronization with each other.
0DRV118 and EDRVII are CCD driver 5
1,3.5th sensor 58.60.62 through 33
Then, the dregs are supplied to the second and fourth sensors 59 and 61, respectively. Eight video signals 1 to v5 are independently outputted from each sensor 58, 59, 60, 61', and 62 in synchronization with the drive pulse.

そして、第1図に示される各チャネル毎に独立のアナロ
グ処理回路501−1〜501−5で所定の電圧値に増
幅され、同軸ケーブル101を通して第2図(b)のO
O3129のタイミングでVI  V3.V5がEO5
134のタイミングでV2.V4の信号が送出され、サ
ンプルホールド回路S/H502に入力される。
The voltage is then amplified to a predetermined voltage value by independent analog processing circuits 501-1 to 501-5 for each channel shown in FIG.
VI V3. at the timing of O3129. V5 is EO5
At the timing of 134, V2. The V4 signal is sent out and input to the sample and hold circuit S/H502.

S/H回路502に入力された原稿を5分割に分けて読
み取って得られたカラー画像信号は、G(グリーン)、
B(ブルー)、R(レッド)の3色に分離される。従っ
て、S/Hされたのちは3x5=15系統の信号処理さ
れる。
The color image signals obtained by dividing the original input into the S/H circuit 502 into 5 parts and reading them are G (green), G (green),
It is separated into three colors: B (blue) and R (red). Therefore, after S/H, 3×5=15 signals are processed.

S/H回路502により、各色R,G、B毎にサンプル
ホールドされたアナログカラー画像信号は、次段A/D
変換回路で各1〜5チヤンネルごとでデジタル化され、
各1〜5チヤンネル独立に並列して次段に出力される。
The analog color image signals sampled and held for each color R, G, and B by the S/H circuit 502 are sent to the next stage A/D.
Each channel from 1 to 5 is digitized by a conversion circuit,
Each of channels 1 to 5 is independently outputted in parallel to the next stage.

さて、本実施例では、前述したように4ライン分(62
,5μmX4=250μm)の間隔を副走査方向に持ち
、かつ主走査方向に5領域に分割した5つの千鳥状セン
サで原稿読み取りを行っているため、先行走査している
チャンネル2,4と残る1、3.5では読み取る位置が
ズしている。
Now, in this embodiment, as mentioned above, 4 lines (62
, 5 μm x 4 = 250 μm) in the sub-scanning direction and divided into 5 areas in the main scanning direction. , 3.5, the reading position is off.

そこで、これを正しくつなぐために、複数ライン分のメ
モリを備えたズレ補正回路505によってそのズレ補正
を行っている。
Therefore, in order to connect these lines correctly, a shift correction circuit 505 having memory for a plurality of lines corrects the shift.

次に、第4図(a)のブルー信号黒レベル補正回路77
Bのブロック図を参塀して黒補正動作を説明する。第4
図(b)の様にチャンネル1〜5の黒レベル出力はセン
サに入力する光量が微少の時、チップ間1画素間のバラ
ツキが大きい。これをそのまま出力し画像出力すると、
画像のデータ部にスジやムラが生じる。そこで、この黒
部の出力バラツキを補正する必要が有り、第4図(a)
の様な回路で補正を行う。原稿読取り動作に先立ち、C
CD500を有する原稿走査ユニットを原稿台先端部の
非画像領域に配置された均一濃度を有する黒色板の位置
へ移動し、ハロゲン520を点灯し黒レベル画像信号を
本回路に入力する。
Next, the blue signal black level correction circuit 77 in FIG. 4(a)
The black correction operation will be explained with reference to the block diagram B. Fourth
As shown in Figure (b), the black level outputs of channels 1 to 5 have large variations between chips and pixels when the amount of light input to the sensor is small. If you output this as is and output it as an image,
Streaks or unevenness appear in the data part of the image. Therefore, it is necessary to correct the output variation of this black part, as shown in Figure 4 (a).
Correction is performed using a circuit like this. Prior to the original reading operation, C
The original scanning unit including the CD 500 is moved to the position of the black plate having uniform density, which is placed in the non-image area at the tip of the original table, the halogen 520 is turned on, and a black level image signal is input to this circuit.

ブルー信号Binに関しては、黒色板読み取り時には、
この画像データの1ライン分を黒レベルRAM78に格
納する。
Regarding the blue signal Bin, when reading the black board,
One line of this image data is stored in the black level RAM 78.

一方、画像読み取り時には、上述のRAM78はデータ
読み出しモードとなり、データ線153→157の経路
で減算器79のB入力へライン、1画素毎に読み出され
入力される。即ち、この時ゲート81は閉じ(■)80
は開く (■)。またセレクタ86はA出力となる。
On the other hand, when reading an image, the above-mentioned RAM 78 is in a data read mode, and the data is read line by line and pixel by pixel and inputted to the B input of the subtracter 79 via the data line 153→157 path. That is, at this time, the gate 81 is closed (■) 80
opens (■). Further, the selector 86 becomes an A output.

従って、黒レベル出力156は、黒レベルデータDK 
(i)に対し、例えばブルー信号の場合Bin (i)
−DK (i)=Bout (i)として得られる(黒
補正モードと呼ぶ)。同様にグリーンGin、レッドR
inも77G、77Rにより同様の制御が行われる。
Therefore, the black level output 156 is the black level data DK
For (i), for example, in the case of a blue signal, Bin (i)
−DK (i)=Bout (i) (referred to as black correction mode). Similarly, Green Gin, Red R
Similar control is also performed for in by 77G and 77R.

また本制御のための各セレクタゲートの制御線■、■、
◎、■、■は、CPU22 (第1図)のIloとして
割り当てられたラッチ85によりCPU制御で行われる
In addition, the control lines of each selector gate for this control
◎, ■, ■ are performed under CPU control by the latch 85 assigned as Ilo of the CPU 22 (FIG. 1).

尚、セレクタ82,83.86をB選択することにより
CPU22によりRAM78をアクセス可能となる。
Note that by selecting B on the selectors 82, 83, and 86, the RAM 78 can be accessed by the CPU 22.

次に、第5図を参照して黒補正/白補正回路506にお
ける白レベル補正(シェーディング補正)を説明する。
Next, white level correction (shading correction) in the black correction/white correction circuit 506 will be explained with reference to FIG.

白レベル補正は原稿走査ユニットを均一な白色板の位置
に移動して照射した時の白色データに基づき、照明系、
光学系やセンサの感度バラツキの補正を行う。基本的な
回路構成を第5図(a)に示す。この基本的な回路構成
は第4図(a)と同一であるが、黒補正では減算器79
にて補正を行っていたのに対し、色補正では乗算器79
′を用いる点が異なるのみであり、同一部分の説明は省
(。
White level correction is based on the white data when the document scanning unit is moved to the position of a uniform white plate and the illumination system,
Corrects sensitivity variations in the optical system and sensors. The basic circuit configuration is shown in FIG. 5(a). This basic circuit configuration is the same as that in FIG. 4(a), but for black correction, the subtracter 79
In contrast, in color correction, the multiplier 79
The only difference is that ′ is used, and the explanation of the same parts will be omitted (.

まず色補正時に、原稿を読み取るためのCCD500が
均一白色板の読み取り位置(ホームポジション)にある
時、即ち、複写動作または読み取り動作に先立ち、露光
ランプ520を点灯させ、均−白レベルの画像データを
1ライン分の補正RAM78’に格納する。例えば主走
査方向A4長手方向の幅を有するとすれば、16pe 
1/mmで16X297mm=4752画素、即ち、少
な(ともRAM78’の容量は4752バイトである。
First, during color correction, when the CCD 500 for reading the original is at the reading position (home position) of the uniform white plate, that is, before the copying or reading operation, the exposure lamp 520 is turned on, and the image data at the uniform white level is is stored in the correction RAM 78' for one line. For example, if it has an A4 longitudinal width in the main scanning direction, 16pe
1/mm = 16 x 297 mm = 4752 pixels, which is small (the capacity of the RAM 78' is 4752 bytes).

第5図(b)のごとく、i画素目の白色板データをWi
(i=1〜4752)とすると、RAM78’には第5
図(c)のごとく、各画素毎の白色板に対するデータが
格納される。
As shown in Figure 5(b), the i-th pixel white board data is
(i=1 to 4752), the fifth
As shown in Figure (c), data for the white board is stored for each pixel.

一方、Wiに対し、i番目の画素の通常画像の読み取り
値Diにおける補正後データDa=Dix FF H/
 W 1となるべきである。そこでCPU22より、ラ
ッチ85′■′、■′、■′、■′に対しゲート80′
、81’を開き、さらにセレクタ82’ 、83’ 、
86’にてBが選択される採出力し、RAM78’をC
PUアクセス可能とする。次に、第5図(d)に示すフ
ローチャートに従って、CPU22は先頭画素W0に対
しFF、4/W、、W、に対しFF、/W、・・・と順
次演算してデータの置換を行う。そして、色成分画像の
ブルー成分に対し終了すると(ステップSl)、同様に
、グリーン成分(ステップS2)、レッド成分(ステッ
プS3)と順次行う。以後、入力される原画像データD
iに対してD o ” D I XF F o / W
 iが出力される様にゲート80′が開(■1,81が
閉(■′)、セレクタ83′86′はAが選択され、R
AM78’から読み出された係数データF F H/ 
W iは信号線153→157を通り、一方から入力さ
れた原画像データ151との乗算がとられ出力される。
On the other hand, for Wi, the corrected data Da=Dix FF H/ at the read value Di of the normal image of the i-th pixel
It should be W 1. Therefore, the CPU 22 sends the gate 80' to the latch 85'■', ■', ■', ■'.
, 81', and selectors 82', 83',
B is selected at 86' and output, and RAM 78' is set to C.
Enable PU access. Next, according to the flowchart shown in FIG. 5(d), the CPU 22 performs data replacement by sequentially calculating FF for the first pixel W0, 4/W, FF, /W for W, etc. . When the blue component of the color component image is completed (step S1), the green component (step S2) and the red component (step S3) are similarly sequentially processed. From now on, the input original image data D
D o ” D I XF F o / W for i
Gate 80' is open so that i is output (■1 and 81 are closed (■'), selector 83'86' selects A, and R
Coefficient data F F H/ read from AM78'
W i passes through signal lines 153→157, is multiplied by the original image data 151 input from one side, and is output.

色補正回路(1)507を説明する前に、原稿下地除去
について説明する。コピースタート操作によって原稿を
検知するため、画像読取部がブリスキャンを始める。つ
まり、ブリスキャンの最初の進行方向への移動時に、画
像読取部からの信号から原稿端検知回路21が原稿の反
射輝度と走査位置によって、原稿の端部座標を検出する
ことにより原稿の位置及び形状の識別を行う。そして、
ブリスキャンのホームポジション側への復帰移動時では
、前述の色補正用RAM78′からのデータより原稿反
射輝度りをCPO22等が演算し、RAM24中にヒス
トグラムとして格納していく(第10図)。ここでは検
出した原稿の端部座標に基づいて原稿範囲内から主走査
方向に50ポイント、副走査方向に50ライン、計25
00画素のデータから、演算部220に取り込むn画素
目のB、G、HのデータをBn、Gn、Rnとして原稿
反射輝度Dnを次式により求めている。
Before explaining the color correction circuit (1) 507, document background removal will be explained. The image reading unit starts bliscanning in order to detect the original by the copy start operation. That is, during the initial movement in the forward direction of Bliscan, the document edge detection circuit 21 detects the document edge coordinates based on the signal from the image reading unit based on the reflected brightness of the document and the scanning position, thereby detecting the document position and Identify shapes. and,
When the briscan returns to the home position side, the CPO 22 and the like calculate the reflected luminance of the document based on the data from the color correction RAM 78' and stores it in the RAM 24 as a histogram (FIG. 10). Here, based on the detected edge coordinates of the document, 50 points in the main scanning direction and 50 lines in the sub-scanning direction from within the document range, a total of 25
From the data of pixel 00, the B, G, and H data of the n-th pixel taken into the calculation unit 220 are set as Bn, Gn, and Rn, and the document reflection brightness Dn is determined by the following equation.

Dn=a−Bn’ +b−Gn’ 十c −Rn’ただ
し、a+ b+ C+  l+ J+ kはあらかじめ
決定しである定数であり、例えば、a=b=c=1 /
 3 、  i = j = k = 1といった値を
用いる。
Dn=a-Bn'+b-Gn'c-Rn' However, a+ b+ C+ l+ J+ k is a predetermined constant, for example, a=b=c=1/
3, using values such as i = j = k = 1.

そして、原稿下地反射輝度は、2500画素のデータ中
の最大原稿反射輝度からあらかじめ設定しである反射輝
度バラツキ幅の範囲までに存在する原稿反射輝度のデー
タ数が、例えば全体の30%(任意値)以上あれば最大
原稿反射輝度を原稿下地反射輝度とし、一方、30%な
ければ白色板の反射輝度を原稿下地反射輝度と判定して
いる。
Then, for the original background reflection brightness, if the number of original reflection brightness data existing within the range of the preset reflection brightness variation width from the maximum original reflection brightness in 2500 pixel data is, for example, 30% of the total (arbitrary value ), the maximum original reflected brightness is determined to be the original background reflected brightness, while if it is less than 30%, the reflected brightness of the white plate is determined to be the original original background reflected brightness.

そのため、写真、全面画像(30%以下)は下地の除去
処理を行わず、一方、文字2画像混在の原稿(30%以
上)に対して下地除去を行うことができる。
Therefore, the background removal process is not performed on photographs and full-page images (30% or less), while the background removal process can be performed on originals containing two images of text (30% or more).

このように、上述の実施例では、CPU22が原稿反射
輝度りをRAM24に格納し、全面画像では最大原稿反
射輝度を原稿下地反射輝度としている。
In this manner, in the above-described embodiment, the CPU 22 stores the original reflected brightness in the RAM 24, and in the case of a full-page image, the maximum original reflected brightness is set as the original background reflected brightness.

また、2500画素のB、G、Rのそれぞれの最小値を
前述したDnを求める式に代入して求めた原稿反射輝度
を原稿下地反射輝度とすることにより、色成分のバラツ
キによる下地色除去ミスを防ぐことができる。このため
に、CPU22が原稿反射輝度り及び白補正用RAM7
8′の出力データをRAM24に格納する。そして、全
面画像であれば、最大原稿反射輝度から反射輝度バラツ
キ幅の範囲に入っていた原稿反射輝度に対応するBn、
Gn、RnのデータをRAM24からCPU22等が取
り出し、各Bn、Gn、Rnの最小値を前述した原稿反
射輝度Dnを求める式に基づいて得られた原稿反射輝度
を原稿下地反射輝度とする。
In addition, by substituting the minimum value of each of B, G, and R of 2,500 pixels into the formula for calculating Dn described above and using the original reflection brightness as the original background reflection brightness, it is possible to eliminate errors in background color removal due to variations in color components. can be prevented. For this purpose, the CPU 22 uses the RAM 7 for original reflection brightness and white correction.
The output data of 8' is stored in the RAM 24. If it is a full-page image, Bn corresponding to the original reflected brightness that is within the range of the reflected brightness variation width from the maximum original reflected brightness,
The CPU 22 or the like retrieves the data of Gn and Rn from the RAM 24, and uses the minimum value of each Bn, Gn, and Rn as the original reflection brightness obtained based on the above-described formula for calculating the original reflection brightness Dn as the original background reflection brightness.

次に、高速自動化を目的とした下地除去のアルゴリズム
を第13図を参照して説明する。原稿の大きさ等を検知
する原稿検知スキャン(ステップ511)の帰り動作を
利用して原稿の下地レベルを検出しくステップ512)
、下地レベルに応じてアナログ回路系のゲインを切り換
え(ステップ513)、対数変換特性を切り換えて(ス
テップ514)画像処理を行う(ステップ515)こと
により、下地レベルを除去する。
Next, an algorithm for background removal aimed at high-speed automation will be explained with reference to FIG. The base level of the document is detected using the return operation of the document detection scan (step 511) that detects the size of the document (step 512).
The background level is removed by switching the gain of the analog circuit system according to the background level (step 513), switching the logarithmic conversion characteristic (step 514), and performing image processing (step 515).

ここで、上述したアナログ回路系を第15図を参照して
詳述する。CCD500からの画像信号は微小なアナロ
グ信号であるため、アナログ処理回路501により決め
られた値まで増幅される。
The analog circuit system described above will now be described in detail with reference to FIG. Since the image signal from the CCD 500 is a minute analog signal, it is amplified to a predetermined value by the analog processing circuit 501.

その後、S/H,A/D変換回路502により、第15
図に示すごとき処理を行う。まず、信号がB、G、R直
列データとして入力され、B、G。
After that, the S/H, A/D conversion circuit 502 converts the 15th
Perform the processing shown in the figure. First, a signal is input as B, G, R serial data.

Rの部力比が白紙等を照射した場合に1:1:1でない
ことから、シリアルアッテネータ1001によりB、G
、Rの信号比を所定の比に変化させている。その後、A
/D変換を行う前段階としてS/H回路1002を通し
、ここでは同時に信号にクランプをかける働きも兼ねて
いる。
Since the force ratio of R is not 1:1:1 when irradiating blank paper, etc., the serial attenuator 1001 is used to
, R are changed to a predetermined ratio. After that, A
The signal is passed through the S/H circuit 1002 as a pre-stage to the /D conversion, and here also serves to clamp the signal at the same time.

次に、信号を任意の振幅に変更可能とするために、ゲイ
ン可変アナログアンプ1003を通して再度クランプ回
路1004を通して、信号のオフセット分を調整するオ
フセット可変回路1005を通ってA/D変換された後
に、ズレ補正回路505に入力される。
Next, in order to make it possible to change the signal to any amplitude, the signal is passed through a variable gain analog amplifier 1003, passed through a clamp circuit 1004 again, and passed through an offset variable circuit 1005 that adjusts the offset of the signal, after which it is A/D converted. The signal is input to the deviation correction circuit 505.

ここで、アナログ系のゲインは、CPU22がゲイン可
変回路1003を制御することにより簡単に設定でき、
ゲインの設定は、下地レベルがデジタル値の最大、つま
り、FF、どなるように行われる。光量設定は下地レベ
ルのデータに対して連続的に変化し、CPU22が算出
した設定値とゲインとの関係はリニアに変化する。
Here, the gain of the analog system can be easily set by the CPU 22 controlling the variable gain circuit 1003.
The gain is set so that the background level is the maximum digital value, that is, FF. The light amount setting changes continuously with respect to the background level data, and the relationship between the setting value calculated by the CPU 22 and the gain changes linearly.

なお、アナログ系は5チヤンネル独立に存在しているた
め、それぞれのチャンネルに対してそれぞれのゲインの
設定値は別々に算出する。また、全面画像原稿に対して
は白色板の反射輝度を原稿反射輝度としているため、光
量は白レベル補正時のままとする。
Note that since the analog system has five independent channels, the gain settings for each channel are calculated separately. Furthermore, for a full-page image original, the reflected brightness of the white plate is used as the original reflected brightness, so the light amount remains the same as when the white level was corrected.

この際、ゲインの増加に伴って画像の色合いもある濃度
域のところで変化するため、この現象を補正すべく本実
施例では、後述する対数変換用のLUT (ルックアッ
プテーブル)の切り換えによる調整で対応するものとす
る。
At this time, as the gain increases, the color tone of the image also changes in a certain density range, so in order to correct this phenomenon, in this embodiment, adjustments are made by switching the LUT (look-up table) for logarithmic conversion, which will be described later. shall correspond.

以上のごとく、画像入力系の黒レベル感度。As mentioned above, the black level sensitivity of the image input system.

CCDの暗電流バラツキ、各センサ間の感度バラツキ、
光学系光量バラツキや白レベル感度等種々の要因に基づ
く、黒レベル及び白レベルの補正を行うことで、主走査
方向にわたって均一となり、入力された光量に比例した
カラー画像データは、人間の目の比視感度特性に合わせ
るために、対数変換回路508(第1図)に入力される
CCD dark current variation, sensitivity variation between each sensor,
By correcting the black level and white level based on various factors such as optical system light intensity variations and white level sensitivity, the black level and white level are made uniform in the main scanning direction, and color image data proportional to the input light intensity is easily understood by the human eye. The signal is input to a logarithmic conversion circuit 508 (FIG. 1) in order to match the luminosity characteristic.

ここでは、白=OOH,黒=FFHとなるべ(変換され
、更に画像読み取りセンサ500に入力される画像ソー
ス、例えば、通常の反射原稿と、フィルムプロジェクタ
−等の透過原稿、また同じ透過原稿でも、ネガフィルム
、ポジフィルム又はフィルムの感度、露光状態等で入力
されるガンマ特性が異なっているため、第6図(a)、
(b)に示されるごと(、対数変換用のLUT (ルッ
クアップテーブル)を複数有し、用途に応じて使い分け
ている。この切り換えは、CPU22が信号線βgO2
βgl、ρg2 (160〜162)を制御することに
より行われる。ここで、B、G。
Here, white = OOH, black = FFH (the image source that is converted and further input to the image reading sensor 500, for example, a normal reflective original, a transparent original such as a film projector, or even the same transparent original) , negative film, positive film, the sensitivity of the film, the exposure condition, etc. Since the input gamma characteristics differ, as shown in Fig. 6(a),
As shown in (b), there are multiple LUTs (lookup tables) for logarithmic conversion, which are used depending on the purpose.This switching is performed by the CPU 22 on the signal line βgO2.
This is done by controlling βgl and ρg2 (160-162). Here, B, G.

Rに対してaカされる各データは、出力画像の濃度値に
対応しており、B(ブルー’  G(グリーン) R(
レッド)の各信号に対して、それぞれイエロー、マゼン
タ、シアンのトナー量に対応するので、ここ以後のカラ
ー画像データをY、M。
Each data added to R corresponds to the density value of the output image, and is represented by B (Blue', G (Green), R (
Each signal (red) corresponds to the amount of yellow, magenta, and cyan toner, respectively, so the subsequent color image data is Y and M.

Cに対応づける。Correspond to C.

CPU22は、下地除去のためのゲインの増加に応じて
記録画素の色合いが変化しないように、適切なLOTを
選択する。これにより、ゲインの増加によって画像の色
合いが変わる現象に対応し得るものとなる。
The CPU 22 selects an appropriate LOT so that the tone of the recorded pixel does not change as the gain for background removal increases. This makes it possible to cope with the phenomenon in which the hue of an image changes due to an increase in gain.

なお、色補正回路(1)507は、入力されるカラー画
像データR,B、Gより特定の色を検出して他の色に置
き換える回路である。例えば原稿の中の赤色の部分を青
色や他の任意の色に変換する機能を実現するものである
Note that the color correction circuit (1) 507 is a circuit that detects a specific color from input color image data R, B, and G and replaces it with another color. For example, it realizes the function of converting a red part of a document into blue or any other arbitrary color.

次に、対数変化により得られた原稿画像からの各色成分
画像データ、即ち、イエロー成分、マゼンタ成分、シア
ン成分に対して色補正回路(2)509にて、後述する
如(色補正を行う。カラー読み取りセンサに一画素ごと
に配置された色分解フィルタの分光特性は、第7図に示
す如く、斜線部の様な不要透過領域を有しており、一方
、例えば転写紙に転写される色トナー(Y、M、C)も
第8図に示す様な不要吸収成分を有する事はよく知られ
ている。そこで、色成分画像データYi。
Next, the color correction circuit (2) 509 performs color correction on each color component image data from the original image obtained by logarithmic change, that is, yellow component, magenta component, and cyan component, as described later. As shown in Fig. 7, the spectral characteristics of the color separation filters arranged for each pixel in the color reading sensor have unnecessary transmission areas such as the shaded areas, and on the other hand, for example, the color transferred to the transfer paper It is well known that toner (Y, M, C) also has unnecessary absorption components as shown in Fig. 8. Therefore, color component image data Yi.

Mi、Ciに対し、 なる各色の一次式を算出し、色補正を行うマスキング補
正はよ(知られている。更にYi、Mi。
Masking correction is known in which color correction is performed by calculating a linear equation for each color for Mi and Ci.Furthermore, for Yi and Mi.

CiによりMin (Yi、Mi、C1)(Yi。Min by Ci (Yi, Mi, C1) (Yi.

ML、Ciのうちの最小値)を算出し、これをスミ(黒
)として、後に黒トナーを加える(スミ入れ)操作と加
えた黒成分に応じて各色材の加える量を減じる下色除去
(UCR)操作も良く行われる。第9図(a)に、マス
キング、スミ入れ。
The minimum value of ML and Ci) is calculated, and this is used as a smear (black), and then black toner is added (smear removal) and the amount of each coloring material added is reduced according to the added black component (undercolor removal). UCR) operations are also well performed. Figure 9(a) shows masking and inking.

LICRを行う色補正回路(2)509の回路構成を示
す。本構成において、特徴的な事は、以下の点にある。
The circuit configuration of a color correction circuit (2) 509 that performs LICR is shown. The features of this configuration are as follows.

■マスキングマトリクスを2系統有し、1本の信号線の
“Ilo”で、高速に切り換える事ができる。
■It has two masking matrices and can be switched at high speed with one signal line "Ilo".

■OCRの有無が1本の信号線“Ilo”で、高速に切
り換える事ができる。
■The presence or absence of OCR can be switched at high speed with a single signal line "Ilo".

■スミ量を決定する回路を2系統有し、°゛■10”で
、高速に切り換える事ができる。
■It has two circuits that determine the amount of smear, and can be switched at high speed with °゛■10''.

まず、画像読み取りに先立ち、所望の第1のマトリクス
系統M3.第2のマトリクス係数M2をCPU22に接
続されたバスより設定する。本実施例では、 であり、M、はレジスタ87〜95に、M2はレジスタ
96〜104に設定されている。
First, prior to image reading, a desired first matrix system M3. A second matrix coefficient M2 is set via a bus connected to the CPU 22. In this embodiment, M is set in registers 87-95, and M2 is set in registers 96-104.

また111〜112,131,135,136はそれぞ
れセレクタであり、S端子=“1”の時Aを選択し、“
O”の時Bを選択する。従って、マトリクスM、を選択
する場合切り換え信号MAREA364=“1”に、マ
トリクスM2を選択する場合“0”とする。
Further, 111 to 112, 131, 135, and 136 are selectors, respectively, which select A when the S terminal is “1” and select “
When matrix M is selected, B is selected. Therefore, when matrix M is selected, switching signal MAREA364 is set to "1", and when matrix M2 is selected, switch signal MAREA364 is set to "0".

また123はセレクタであり、選択信号C8゜C,(3
36,367)により第9図(b)の真理値表に基づい
て式a、b、cで得られる。選択信号C6,C1及びC
2は、出力されるべき色信号に対応し、例えばY、M、
C,Bうの順に、(C,、C,、C,)= (0,0,
O)、(0゜0.1)、(0,1,O)、(1,O,O
)更にモノクロ信号として(0,L  1)とする事に
より、所望の色補正された色信号を得る。いま(C,、
C,、C,)=(0,O,O)  かつMAREA=”
1″とすると、セレクタ123の出力(a、b、c)に
は、レジスタ87,88゜89の内容、従って、(ay
+ + −by、、  −Cc+ )が出力される。
Further, 123 is a selector, and the selection signal C8°C, (3
36, 367), the equations a, b, and c are obtained based on the truth table of FIG. 9(b). Selection signals C6, C1 and C
2 corresponds to the color signal to be output, for example Y, M,
In the order of C and B, (C,,C,,C,)=(0,0,
O), (0°0.1), (0,1,O), (1,O,O
) Further, by setting (0, L 1) as a monochrome signal, a desired color-corrected color signal is obtained. Now (C,,
C,,C,)=(0,O,O) and MAREA=”
1'', the outputs (a, b, c) of the selector 123 contain the contents of the registers 87, 88°89, and therefore (ay
+ + -by, -Cc+) are output.

一方、入力信号Yi、Mi、CiよりM i n(Yi
、Mi、C1)=にとして算出される黒成分信号374
は、137にてY=ak−b (a。
On the other hand, M i n(Yi
, Mi, C1)=black component signal 374 calculated as
At 137, Y=ak-b (a.

bは定数)なる−時変換をうけ(セレクタ135を通り
)、減算器124,125,126のB入力に入力され
る。各減算器124〜126では、下色除去としてY 
= Y i (a k −b ) 、 M = M 1
(ak−b) 、C=C1−(ak−b)が算出され、
信号線337,378,379を介して、マスキング演
算のための演算器127,128゜129に入力される
。セレクタ135は信号UAREA365により制御さ
れ、UAREA365は、UCR(下色除去)の有無を
“I10°゛で高速に切り換え可能にした構成となって
いる。
b is a constant) and undergoes a -time conversion (passes through selector 135) and is input to the B inputs of subtracters 124, 125, and 126. Each subtractor 124 to 126 uses Y as undercolor removal.
= Y i (ak − b), M = M 1
(ak-b), C=C1-(ak-b) is calculated,
The signals are input via signal lines 337, 378, and 379 to computing units 127, 128, and 129 for masking operations. The selector 135 is controlled by the signal UAREA 365, and the UAREA 365 has a configuration that enables high-speed switching between the presence and absence of UCR (undercolor removal) at "I10".

乗算器127,128,129には、それぞれA入力に
は(ay+ +  −by+ +  −Ccl) t 
B入力には上述した[Yi −(ak−b)、Mi (
ak−b)  Ci −(ak−b)] = [Yi、
Mi、C1]が入力されているので、同図から明らかな
ように、出力DoutにはC2=0の条件(Y。
Multipliers 127, 128, and 129 each have (ay+ + -by+ + -Ccl) t at their A inputs.
The B input has the above-mentioned [Yi - (ak-b), Mi (
ak-b) Ci-(ak-b)] = [Yi,
Mi, C1] is input, so as is clear from the figure, the output Dout has the condition of C2=0 (Y.

M、Cの選択)で、Yo u t=Y i X (ay
+ ) +MiX (−bv+ ) 十cix (−C
cl )が得られ、マスキング色補正、下色除去の処理
が施されたイエロー画像データが得られる。同様にして
、Mout=Yi×(−ay□)+MiX (bvz)
 +CiX (−ccz)Cout=YiX (−ay
3)+ MiX (b+va)  + cix  (C
CV)がDoutに出力される。色選択は、出力すべき
カラープリンタへの出力順に従って(Co、CC2)よ
り第9図(b)の表に従ってCPU22により制御され
る。レジスタ105〜107゜108〜110は、モノ
クロ画像形成用のレジスタで、前述したマスキング色補
正と同様の原理により、MONO=に+ Yi+ff、
Mi+m+ Ciにより各色に重み付は加算により得て
いる。
(selection of M, C), You u t=Y i X (ay
+) +MiX (-bv+) 10cix (-C
cl) is obtained, and yellow image data that has been subjected to masking color correction and undercolor removal processing is obtained. Similarly, Mout=Yi×(-ay□)+MiX (bvz)
+CiX (-ccz)Cout=YiX (-ay
3) + MiX (b+va) + cix (C
CV) is output to Dout. Color selection is controlled by the CPU 22 according to the table of FIG. 9(b) from (Co, CC2) in accordance with the order of output to the color printer. Registers 105 to 107 and 108 to 110 are registers for monochrome image formation, and based on the same principle as the masking color correction described above, MONO=+Yi+ff,
Weighting of each color by Mi+m+Ci is obtained by addition.

切り換え信号MAREA364は、前述した様にマスキ
ング色補正の係数マトリクスM1とM2の高速切りかえ
、UAREFA365は、UCR有無の高速切り換え、
KAREA387は、黒成分信号(信号線369−セレ
クタ131を通ってDoutに出力される)の1次変換
切り換え、即ち、K=Min (Yi、Mi、Ciに対
し、Y=ek−d又はY=ek−f  (c、d、e、
fは定数パラメータ)の特性を高速に切り換える信号で
ある。
As mentioned above, the switching signal MAREA364 is for high-speed switching between the masking color correction coefficient matrices M1 and M2, and the UAREFA365 is for high-speed switching between the presence and absence of UCR.
KAREA 387 switches the primary conversion of the black component signal (outputted to Dout through the signal line 369 and selector 131), that is, K=Min (for Yi, Mi, and Ci, Y=ek-d or Y= ek-f (c, d, e,
f is a signal that rapidly switches the characteristics of a constant parameter).

以上説明した様に、本実施例によれば、画像と文字の混
在する原稿の下地レベルを高速に、かつ自動的に除去し
、画像は原稿と同じで、文字は鮮明に処理し、高品質の
出力を得ることが可能となる。
As explained above, according to this embodiment, the background level of a document containing both images and text is removed quickly and automatically, the image is the same as the original, the text is processed clearly, and the quality is high. It becomes possible to obtain the output of

従って、下地を除去することにより、後述する黒文字処
理回路による黒い文字や細線の黒細線、及び黒文字、黒
細線のエツジ部の色にじみが改善される。例えば、新聞
等の下地色は除去され、かつ文字は鮮明に表現され、画
像は下地色を除去する前と変化のない状態を再現するこ
とが可能となる。
Therefore, by removing the base, color bleeding at the edges of black characters and thin black lines, as well as black characters and thin black lines, caused by a black character processing circuit, which will be described later, is improved. For example, the background color of newspapers, etc. is removed, the characters are clearly expressed, and the image can be reproduced as it was before the background color was removed.

それでは次に、上述の黒文字処理回路について第11図
、第12図に従って説明する。
Next, the above-mentioned black character processing circuit will be explained with reference to FIGS. 11 and 12.

第4図、第5図にて説明したように、黒レベル及び白レ
ベルの補正されたR、B、G (レッド。
As explained in FIGS. 4 and 5, R, B, and G (red) have their black and white levels corrected.

グリーン、ブルー)の各色信号113,114゜115
は対数変換508、マスキング、下色除去509をうけ
た後、プリンタに8力すべき色信号が選択され、信号線
401に出力される。これと平行し、信号R,G、Bに
より原稿の無彩色部分で、かつ、エツジ部である部分(
即ち、黒文字。
green, blue) color signals 113, 114° 115
After undergoing logarithmic transformation 508, masking, and undercolor removal 509, the color signals to be output to the printer are selected and output to the signal line 401. Parallel to this, signals R, G, and B are applied to the achromatic portion of the document and the edge portion (
In other words, black text.

黒細線である部分)を検出するために、輝度信号Y1色
差信号1.QをY、I、Q算出回路535で算比する。
In order to detect the black thin line), luminance signal Y1 color difference signal 1. Q is calculated and compared by a Y, I, and Q calculation circuit 535.

輝度信号¥392は、エツジ信号を抽出するためによ(
知られたディジタル2次微分回路538で5×5のマト
リクス計算すべく、5ライン分のラインバッファ回路5
37に入力され、前述した如く、演算回路538でラプ
ラシアン演算が行われる。即ち、人力の輝度信号Yが第
12図(d)に示す(i)の様なステップ状の入力(例
えば、文字部)である場合、ラプラシアン演算後の出力
406は同図(ii)の様になる(以後エツジ信号と呼
ぶ)。
The luminance signal ¥392 is for extracting the edge signal (
In order to calculate a 5×5 matrix using a known digital second-order differential circuit 538, a line buffer circuit 5 for 5 lines is used.
37, and as described above, the Laplacian calculation is performed in the calculation circuit 538. That is, when the human-powered luminance signal Y is a step-like input (for example, a character part) as shown in (i) shown in FIG. 12(d), the output 406 after the Laplacian calculation is as shown in FIG. (hereinafter referred to as edge signal).

ルックアップテーブルLUTA539.LUTB540
は、黒文字(又は黒細線)のエツジ部における印刷量(
例えば、トナー量)を決定するためのルックアップテー
ブルであり、それぞれ第12図(a)、(b)の様な特
性をもったルックアップテーブルで構成されている。即
ち、エツジ信号406に対し、LUTAが作用すると第
12図(d)の(1ii)に示す様に振幅が大きくなる
Lookup table LUTA539. LUTB540
is the printing amount (
For example, the table is a lookup table for determining the amount of toner, and is composed of lookup tables each having characteristics as shown in FIGS. 12(a) and 12(b). That is, when LUTA acts on the edge signal 406, the amplitude increases as shown in (1ii) of FIG. 12(d).

これは、後述する様に黒のエツジ部の黒トナー量を決定
する。また、エツジ信号406にLUTEが作用すると
絶対値が負となって表われ、これは黒エツジ部のY、M
、C(イエロー、マゼンタ。
This determines the amount of black toner at the black edge portion, as will be described later. Furthermore, when LUTE is applied to the edge signal 406, the absolute value appears as negative, and this is due to the Y, M
, C (yellow, magenta.

シアン)のトナー量を決定する。これは、第12図(d
)の(iv)に示す様な信号であり、スムージング(平
均化)回路543を通る事で、同図(V)に示す様な信
号になる。
Determine the amount of toner (cyan). This is shown in Figure 12 (d
), and by passing through the smoothing (averaging) circuit 543, it becomes a signal as shown in (V) of the figure.

一方、無彩色検出回路536は、例えば完全な無彩色で
出力=1、有彩色では出力=0となる様、例えば第12
図に示す様な特性に従って信号393を圧力する回路で
あり、この信号393は黒トナー印刷時に1”となる信
号407によりセレクタ553で選択され、信号398
となる。
On the other hand, the achromatic color detection circuit 536 outputs, for example, the 12th
This circuit applies pressure to a signal 393 according to the characteristics shown in the figure. This signal 393 is selected by the selector 553 by the signal 407 which becomes 1" when printing black toner, and the signal 398 is selected by the selector 553.
becomes.

そして、乗算器548にて黒トナー量を決定する前述し
た信号394(第12図(d )  (1ii))と乗
算がとられたのち、加算器547で原画像信号に加算さ
れる。
Then, after being multiplied by the aforementioned signal 394 (FIG. 12(d) (1ii)) which determines the amount of black toner in a multiplier 548, it is added to the original image signal in an adder 547.

また、Y、M、C(イエロー、マゼンタ、シアン)トナ
ー印刷時は、黒文字、黒線線部にY。
Also, when printing with Y, M, C (yellow, magenta, cyan) toner, Y is printed on black characters and black lines.

M、Cのトナーが印刷されない事が望ましいわけである
から、色選択信号407により選択されたセレクタ55
3では“l”が乗算器548に出力され、一方セレクタ
544からはLUTB540の出力をスムージングした
信号(第12図(d)(V))が出力され、乗算が行わ
れる。その結果、加算器547では第11図(d)  
(V)と同じ信号が入力され、原信号から黒のエツジ部
のみ信号が減じられる。
Since it is desirable that M and C toners not be printed, the selector 55 selected by the color selection signal 407
3, "l" is output to the multiplier 548, while the selector 544 outputs a signal obtained by smoothing the output of the LUTB 540 (FIG. 12(d) (V)), and multiplication is performed. As a result, in the adder 547, as shown in FIG.
The same signal as (V) is input, and only the signal at the black edge portion is subtracted from the original signal.

即ち、この意味する処は、黒のエツジ部に対し黒トナー
量を決定する信号は強く、つまり黒トナー量を増加し、
同一部に対するY、M、Cのトナー量を減らす事により
、黒部をより黒(表現するという事である。
In other words, this means that the signal that determines the amount of black toner for the black edge portion is strong, which means that the amount of black toner is increased.
By reducing the amount of Y, M, and C toner for the same area, black areas can be rendered blacker.

無彩色信号393を2値化回路546で2値化した信号
397は、無彩色の時°゛1”、有彩色の時“O”とな
る。即ち、前述の如く、セレクタ544において黒トナ
ー印刷時(407=“1”の時)、S入力=“1”とな
り、六入力、即ち。
The signal 397 obtained by binarizing the achromatic color signal 393 by the binarizing circuit 546 becomes "1" when the color is achromatic, and "O" when the color is chromatic. That is, as described above, the selector 544 selects black toner printing. (when 407 = "1"), S input = "1" and six inputs, ie.

信号394(第12図(d )  (1ii))が出力
され黒エツジが強調される。しかしY、M、Cトナー印
刷時(407=“0”のとき)は、信号397=“1”
、従って、無彩色であれば前述の如(、Y、M、Cのト
ナー量を減じるべくS人力が選択され、第12図(d)
  (v)が出力されるが、有彩色の場合、信号397
=″0″、従って397=“1″、即ち、セレクタ54
4のS人力は“1”となってAが選択され、第12図(
d )  (1ii)の信号が加算器547に出力され
1通常のよく知られたエツジ強調となる。
A signal 394 (FIG. 12(d) (1ii)) is output to emphasize the black edges. However, when printing with Y, M, and C toners (when 407="0"), the signal 397="1"
, Therefore, if it is an achromatic color, S manual power is selected to reduce the amount of toner of Y, M, and C as described above (Fig. 12(d)).
(v) is output, but in the case of chromatic color, signal 397
="0", therefore 397="1", i.e. selector 54
The S human power of 4 becomes “1” and A is selected, and as shown in Fig. 12 (
d) The signal of (1ii) is output to the adder 547 and becomes the usual well-known edge enhancement.

LUTA539には、第12図(a)の如く、エツジ信
号の値が±n以下の時、ゼロとなる様なLUTと、±m
以下でゼロとなる様なLUTの2種類が用意されており
、原信号401のレベル、即ち、この時の原稿の濃度に
応じてゼロにクランプする値を選択する様になっている
。原稿の濃度レベルがCPU22よりバス422を介し
て設定される値より大きい時、即ち、濃い場合に、コン
パレータ590の出力=“1”となり、第12図(a)
に示すA’ 、B’でゼロにクランプされるLUTを、
また、ある濃度以下、即ち、コンパレータ590の出力
=“O”の時は、A、BでゼロにクランプされるLUT
を選択する様にして濃度域に応じたノイズ除去の効果を
変えている。
The LUTA539 includes a LUT that becomes zero when the edge signal value is less than or equal to ±n, as shown in FIG.
There are two types of LUTs that are set to zero below, and the value to be clamped to zero is selected depending on the level of the original signal 401, that is, the density of the document at this time. When the density level of the original is higher than the value set by the CPU 22 via the bus 422, that is, when it is dark, the output of the comparator 590 becomes "1", as shown in FIG. 12(a).
The LUT clamped to zero at A' and B' shown in
Furthermore, when the concentration is below a certain level, that is, when the output of the comparator 590 is "O", the LUT is clamped to zero at A and B.
The effect of noise removal is changed depending on the concentration range by selecting .

更に、ANDゲート552の出力400は黒文字のエツ
ジ周辺部に対する更なる改善を施したものであり、黒文
字のエツジ部に対してY、M、C印刷時は403(A入
力)を、それ以外は402(S人力)を選択すべ(切り
かえる信号である。
Furthermore, the output 400 of the AND gate 552 has been further improved for the edges of black characters; 403 (A input) is used when printing Y, M, and C for the edges of black characters, and 403 (A input) is used for other cases. This is the signal to select (switch) 402 (S manual power).

ANDゲート552に入力される信号396は、前述の
エツジ信号にLUTC(第12図(C))の特性を作用
させた信号を2値化回路545で2値化したものであり
、即ち、エツジ信号の絶対値が所定の値以上の時“1”
、以下の時“0”となる。
The signal 396 input to the AND gate 552 is a signal obtained by applying the characteristics of LUTC (FIG. 12(C)) to the edge signal described above, and is binarized by the binarization circuit 545. “1” when the absolute value of the signal is greater than the specified value
, becomes "0" when:

従って、396=“l” 397=“1”399=“L
”となるのは無彩色でエツジ信号が大の時、即ち、黒信
号のエツジ部の所で、しがもY、M、Cのトナー印刷時
のみである。つまり、この時、先に説明した様に原信号
から黒のエツジに相当する所のみY、M、Cのトナー量
を決定する信号が減じられ、更に、残った信号に対して
平均化回路549でスムージングがなされ、信号ER=
“1″′の時、セレクタ551を通り405に出力され
る。それ以外の時は、通常にエツジ強調された信号40
2が出力される。
Therefore, 396="l"397="1"399="L
” occurs when the edge signal is large for achromatic colors, that is, at the edge portion of the black signal, and only when printing with Y, M, and C toners. As shown above, the signal that determines the amount of Y, M, and C toner is subtracted from the original signal only at the portion corresponding to the black edge, and the remaining signal is smoothed by the averaging circuit 549, and the signal ER=
When it is "1"', it passes through the selector 551 and is output to 405. Otherwise, the normal edge-enhanced signal 40
2 is output.

上述の信号ERは、CPU22より制御され、ER=“
1”の時は平均化回路549の出力が出力405に、E
R=“0”の時は“0”が出力405に出力される。こ
れは、黒文字のエツジ周辺の色トナー(Y、M、C)の
信号を完全に“0”にして色にじみを更に消す事となり
、これらは選択可能な構成となっている。
The above-mentioned signal ER is controlled by the CPU 22, and ER=“
1”, the output of the averaging circuit 549 is output to the output 405,
When R="0", "0" is output to the output 405. This completely sets the signals of the color toners (Y, M, C) around the edges of the black characters to "0" to further eliminate the color blur, and these are selectable.

次に、第1図に示す511は濃度変換回路であり、例え
ば第14図(a)、(b)に示す如く色毎に濃度階調を
変えられるように構成され、LUT (ルックアップテ
ーブル)等で構成されている。
Next, 511 shown in FIG. 1 is a density conversion circuit, which is configured to be able to change the density gradation for each color as shown in FIGS. 14(a) and 14(b). It is made up of etc.

上述の画像処理を行うことで、高速に、そして自動的に
原稿の下地色を除去することができると共に、文字は鮮
明に、画像は原稿と同一な状態を再現し処理することが
可能となる。
By performing the image processing described above, it is possible to quickly and automatically remove the background color of the original, and it is also possible to reproduce and process images with clear text and images that are identical to the original. .

このように、本実施例では、CPU22がカラー原稿を
プリスキャンしてCCD500に読み取り、RAM24
に輝度のヒストグラムをとる。
As described above, in this embodiment, the CPU 22 prescans a color original, reads it into the CCD 500, and stores it in the RAM 24.
Take a brightness histogram.

そして、CPU22はそのヒストグラムの最大値付近の
バラツキに基づいて原稿が全面画像原稿か文字画像混在
原稿かを判断する。
Then, the CPU 22 determines whether the document is a full-page image document or a text image mixed document based on the variation around the maximum value of the histogram.

即ち、輝度の最大値付近のデータが少なければ全面画像
原稿であると判断し、多ければ混在原稿であると判断す
る。そして、混在原稿であれば、輝度の最大値を下地レ
ベルとしてアナログ信号系のゲインを制御する。一方、
全面画像であれば、プリスキャナに先立って読み取った
標準白色原稿を下地レベルとし、ゲインを変更しない。
That is, if the data near the maximum luminance value is small, it is determined that the document is a full-page image document, and if there is a large amount of data, it is determined that the document is a mixed document. If it is a mixed document, the gain of the analog signal system is controlled using the maximum value of luminance as the background level. on the other hand,
If it is a full-page image, the standard white original read before pre-scanning is used as the background level, and the gain is not changed.

つまり、混在原稿であれば、下地レベルの画像を読み取
った時に読み取り部500の出力がプリスキャン時の標
準白色原稿の輝度と一致するようにゲインを増加する。
In other words, in the case of a mixed document, the gain is increased so that the output of the reading unit 500 matches the brightness of the standard white document at the time of prescanning when the background level image is read.

従って、下地の除去が可能となる。Therefore, the base can be removed.

また、混在原稿の場合、即ち、光量を増加した場合は、
ゲインの増加に応じて出力画像の色合いを補正するよう
に、対数変換部508のルックアップテーブルを変更す
る。従って、ゲインの増加による出力画像の色合い変化
を補償して、適正な色合いの画像を出力することができ
る。
In addition, in the case of mixed originals, that is, when the light intensity is increased,
The lookup table of the logarithmic conversion unit 508 is changed so that the hue of the output image is corrected in accordance with the increase in gain. Therefore, it is possible to compensate for a change in the hue of an output image due to an increase in gain, and output an image with an appropriate hue.

[他の実施例コ 次に、本発明に係る他の実施例を関係する図面を参照し
て以下に説明する。
[Other Embodiments] Next, other embodiments according to the present invention will be described below with reference to the related drawings.

第1図に示す如(、CCD500で読み取られた画像デ
ータは、ディジタル変換された後、ズレ補正、黒補正及
び白補正が行われ、色変換、対数変換1色補正が施され
、黒文字処理を行うように構成されている。ここで、こ
の実施例では、下地色除去に伴うアナログゲインの増加
により画像域全体の濃度が薄(なる現象の対策として、
濃度変換用のLUT511を切換える(第16図に示す
ステップ816)ことにより、対応する構成とした。濃
度変化のLUT511の内容は、前述した様に濃度1階
調を補正するためのデータが格納されているが、この内
容を各色毎、つまりB信号用のLUT、G、Rの内容を
それぞれ切り換えることにより、各色信号の濃度を変化
させることができる。
As shown in Figure 1, the image data read by the CCD 500 is digitally converted, then subjected to misalignment correction, black correction, and white correction, color conversion, logarithmic conversion, one-color correction, and black character processing. In this embodiment, as a countermeasure against the phenomenon in which the density of the entire image area becomes low due to the increase in analog gain accompanying background color removal,
A corresponding configuration was obtained by switching the LUT 511 for density conversion (step 816 shown in FIG. 16). As mentioned above, the contents of the LUT 511 for density changes store data for correcting one density gradation, but this content is changed for each color, that is, the contents of the LUT for B signal, G, and R are switched respectively. By doing so, the density of each color signal can be changed.

例えば、下地除去を行うために、ゲインを増加させると
、これに伴いE、G、R共に画像信号は増加する。また
、これと同様に、対数変換後は、下地濃度に近い濃度が
うすく変化する。ここで、増加した信号のデータ分に対
応する値に応じてLUT511の内容をそれぞれ変更す
ることにより、画像の濃度変化を抑えることができる。
For example, when the gain is increased to remove the background, the image signals of E, G, and R also increase accordingly. Similarly, after logarithmic transformation, the density close to the base density changes slightly. Here, by changing the contents of the LUT 511 according to the values corresponding to the increased signal data, it is possible to suppress changes in image density.

[発明の効果コ 以上説明したように本発明によれば、読み取ったカラー
画像に対してカラー画像の下地に応じた処理を行うこと
ができる。
[Effects of the Invention] As described above, according to the present invention, a read color image can be processed in accordance with the background of the color image.

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

第1図は本発明を適用した画像処理装置の概略ブロック
図、 第2図(a)、(b)はカラー読取センサ及び駆動パル
スを示す図、 第3図(a)、(b)は駆動パルスを生成する回路ブロ
ックとその出力を示す図、 第4図(a)、(b)は黒補正用の回路ブロックとその
動作を示す図、 第5図(a)〜(d)は白補正用の回路ブロックとその
動作を示す図、 第6図(a)、(b)は対数変換用の回路ブロックとそ
の動作を示す図、 第7図は色分解フィルタの特性を示す図、第8図は色ト
ナーの特性を示す図、 第9図(a)、(b)は色補正用の回路ブロックとその
動作を示す図、 第10図は原稿反射輝度データ生成過程を示す図、 第11図は黒文字処理用の回路ブロックを示す図、 第12図(a)〜(d)は黒文字処理の動作を示す図、 第13図は本実施例における下地除去のアルゴリズムを
示すフローチャート、 第14図(a)、(b)は濃度変換回路511とその特
性を示す図、 第15図はS/H&  A/D変換回路502を示す図
、 第16図は他の実施例での下地除去のアルゴリズムを示
すフローチャートである。 図中、22・・・cpu、24・・・RAM、500・
・・CCD、520・・・ハロゲンランプ、507・・
・色補正回路(1)、508・・・対数変換部、509
・・・色補正回路(2)である。 代理人 弁理士   大塚康徳(他1名)第 図(b) 第 41図(6) 第 図(c) 第 図(d) 第 図(CI) 第 図(b) 第 図 第 図(b) 第 図 LU丁(ルシクア、プテーブノL)A LUT(ルシクア・ノアテーブル)8 LUT()Lソグア・Iブ1−フル)C第 図(CI) 第 図(b) 第 図(C) 第 図(d) 第 図 第 図((1) 第 図(b)
Figure 1 is a schematic block diagram of an image processing device to which the present invention is applied. Figures 2 (a) and (b) are diagrams showing a color reading sensor and drive pulses. Figure 3 (a) and (b) are diagrams showing drive pulses. Figure 4 (a) and (b) are diagrams showing the circuit block for generating pulses and their output, Figures 4 (a) and (b) are diagrams showing the circuit block for black correction and its operation, and Figures 5 (a) to (d) are diagrams showing white correction. 6(a) and 6(b) are diagrams showing the circuit blocks for logarithmic conversion and their operations. FIG. 7 is a diagram showing the characteristics of the color separation filter. Figure 9 shows the characteristics of color toner, Figures 9(a) and 9(b) show the circuit blocks for color correction and their operations, Figure 10 shows the process of generating document reflection luminance data, and Figure 11 The figure shows a circuit block for black character processing, Figures 12(a) to (d) are diagrams showing the operation of black character processing, Figure 13 is a flowchart showing the algorithm for background removal in this embodiment, and Figure 14. (a) and (b) are diagrams showing the density conversion circuit 511 and its characteristics, FIG. 15 is a diagram showing the S/H & A/D conversion circuit 502, and FIG. 16 is an algorithm for background removal in another embodiment. It is a flowchart which shows. In the figure, 22... CPU, 24... RAM, 500...
...CCD, 520...Halogen lamp, 507...
・Color correction circuit (1), 508...logarithmic conversion section, 509
...color correction circuit (2). Agent Patent Attorney Yasunori Otsuka (and 1 other person) Figure (b) Figure 41 (6) Figure (c) Figure (d) Figure (CI) Figure (b) Figure (b) Figure Figure LU Ding (Rusiqua, Putebuno L) A LUT (Rusiqua Noah Table) 8 LUT () L Sogua Ibu 1-Full) C Figure (CI) Figure (b) Figure (C) Figure (d) ) Figure Figure ((1) Figure (b)

Claims (1)

【特許請求の範囲】[Claims] (1)読み取つたカラー画像に基づいて、カラー画像下
地情報を算出し、該カラー画像下地情報に応じたカラー
画像処理を行うカラー画像処理装置であつて、 カラー画像下地情報に応じてアナログゲインを制御する
制御手段と、 該制御手段で制御されるアナログゲインを設定する設定
手段とを有することを特徴とするカラー画像処理装置。
(1) A color image processing device that calculates color image background information based on a read color image and performs color image processing according to the color image background information, which calculates analog gain according to the color image background information. A color image processing apparatus comprising: a control means for controlling; and a setting means for setting an analog gain controlled by the control means.
JP2175344A 1990-07-04 1990-07-04 Color picture processor Pending JPH0468663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2175344A JPH0468663A (en) 1990-07-04 1990-07-04 Color picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2175344A JPH0468663A (en) 1990-07-04 1990-07-04 Color picture processor

Publications (1)

Publication Number Publication Date
JPH0468663A true JPH0468663A (en) 1992-03-04

Family

ID=15994425

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2175344A Pending JPH0468663A (en) 1990-07-04 1990-07-04 Color picture processor

Country Status (1)

Country Link
JP (1) JPH0468663A (en)

Similar Documents

Publication Publication Date Title
JP2696333B2 (en) Color image processing equipment
US5748773A (en) Image processing apparatus
JP2872285B2 (en) Image processing apparatus and image processing method
EP0621725A1 (en) Automatic image segmentation for color documents
JP2001292333A (en) Color image processing apparatus
JP3219403B2 (en) Image storage device
JPH08149283A (en) Image processing unit
US5270807A (en) Color image processing apparatus
JPH07212583A (en) Method and device for processing color picture
JPH08149323A (en) Image processor
JP3253117B2 (en) Image processing apparatus and method
JPH02244876A (en) Sharpness improving system for picture processor
JPH0468663A (en) Color picture processor
JP2984280B2 (en) Color image processing apparatus and image processing method
JP3665722B2 (en) Image processing device
JP3316077B2 (en) Background density level detector
JPH042269A (en) Color image processing device
JP2951972B2 (en) Image processing device
JP2971522B2 (en) Image reading device
JP3509230B2 (en) Color image forming equipment
JPH02148973A (en) Image processing device
JPH02291773A (en) Contrast adjustment system of image processor
JP3352106B2 (en) Image processing apparatus and method
JPH04287569A (en) Method and device for processing color picture
JP3522880B2 (en) Image processing apparatus and image forming apparatus