JPH05130438A - Picture processing unit - Google Patents

Picture processing unit

Info

Publication number
JPH05130438A
JPH05130438A JP3286433A JP28643391A JPH05130438A JP H05130438 A JPH05130438 A JP H05130438A JP 3286433 A JP3286433 A JP 3286433A JP 28643391 A JP28643391 A JP 28643391A JP H05130438 A JPH05130438 A JP H05130438A
Authority
JP
Japan
Prior art keywords
color
circuit
determination
signal
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3286433A
Other languages
Japanese (ja)
Other versions
JP3359045B2 (en
Inventor
Taku Sugiura
卓 杉浦
Yoshiyuki Suzuki
良行 鈴木
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 JP28643391A priority Critical patent/JP3359045B2/en
Publication of JPH05130438A publication Critical patent/JPH05130438A/en
Application granted granted Critical
Publication of JP3359045B2 publication Critical patent/JP3359045B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To improve the picture quality when a color is patterned by preventing mixing existence of plural patterns at a color change point. CONSTITUTION:The processing unit is provided with a color discrimination means 109 discriminating a specific color from an input picture signal, a pattern generating means 110 generating a relevant graphic pattern decided for each color in response to the color discrimination result by the color discrimination means 109 and a misdiscrimination prevention means 140 preventing an error in the color discrimination by using plural color discrimination results by the color discrimination means 109.

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 example, an image processing apparatus such as an image scanner, a printer, a digital copying machine, a facsimile machine or the like.

【0002】[0002]

【従来の技術】従来、例えばデジタル複写機では原稿を
ハロゲンランプ等の光源で照射し、その原稿からの反射
光をCCD(電荷結合素子)等の固体撮像素子を用い
て、光電変換した後、デジタル信号に変換し、所定の補
正処理等を行った後、その信号でレーザービームプリン
タ、液晶プリンタ、サーマルプリンタ、インクジェット
プリンタ等の記録装置を用いて、記録画像を形成してい
る。
2. Description of the Related Art Conventionally, for example, in a digital copying machine, an original is irradiated with a light source such as a halogen lamp, and light reflected from the original is photoelectrically converted by using a solid-state image pickup device such as CCD (charge coupled device). After being converted into a digital signal and subjected to predetermined correction processing and the like, a recording image is formed by using the signal with a recording device such as a laser beam printer, a liquid crystal printer, a thermal printer, an inkjet printer.

【0003】また、このようなデジタル複写機におい
て、複写する原稿のカラー化等により、情報量の多いア
ウトプットが求められており、デジタルフルカラー複写
機、あるいはワンポイントカラー複写機も開発されてい
る。また一方、カラー原稿を白黒の出力手段で出力する
際にカラー原稿をカラーセンサーで読み取り、色を判別
し色判別信号からその色に対応したパターンを出力し、
パターンの違いにより、色の違いを表現する技術も提案
されている。
Further, in such a digital copying machine, an output having a large amount of information is required due to colorization of an original to be copied, and a digital full color copying machine or a one-point color copying machine has been developed. .. On the other hand, when outputting a color original with a black and white output means, the color original is read by the color sensor, the color is discriminated, and the pattern corresponding to the color is output from the color discrimination signal.
Techniques for expressing the difference in color depending on the difference in pattern have also been proposed.

【0004】[0004]

【発明が解決しようとしている課題】しかしながら色を
判別しその色に対応したパターンを発生し、出力する装
置においては、2種類の色の混り合う点あるいは色が連
続的に変化している場合には、その変化点で2種類のパ
ターンが混在し、出力が見にくくなる問題がある。また
2種類の判定色の中間的な色の場合には2種類のパター
ンが混在し見にくくなる問題がある。
However, in a device that discriminates colors, generates a pattern corresponding to the colors, and outputs the patterns, a point where two kinds of colors are mixed or a color is continuously changed. Has a problem that two kinds of patterns are mixed at the change point, and the output is hard to see. Further, in the case of an intermediate color between the two types of judgment colors, there is a problem that two types of patterns are mixed and it becomes difficult to see.

【0005】本発明の目的は、上述の問題点に鑑みなさ
れたもので色の変化点において、パターンの混在する事
を防ぎ、色をパターン化する際の画質を良好にした画像
処理装置を提供する事にある。
An object of the present invention is to solve the above-mentioned problems, and to provide an image processing apparatus capable of preventing the mixture of patterns at a color change point and improving the image quality when patterning a color. There is something to do.

【0006】[0006]

【課題を解決するための手段及び作用】上記課題を解決
するため、本発明の画像処理装置は、入力画像信号から
特定の色を判別する色判別手段と、該色判別手段の色判
別結果に応じてあらかじめ色毎に決められた対応の図形
パターンを発生するパターン発生手段とを具備し、前記
色判別手段による複数の色判別結果を用いて、色判別の
誤りを防止する誤判定防止手段を有することを特徴とす
る。
In order to solve the above problems, the image processing apparatus of the present invention provides a color discrimination means for discriminating a specific color from an input image signal and a color discrimination result of the color discrimination means. An erroneous determination preventing means for preventing an error in color determination by using a plurality of color determination results by the color determining means, and a pattern generating means for generating a corresponding graphic pattern previously determined for each color. It is characterized by having.

【0007】[0007]

【実施例】以下に説明する本発明の実施例は、入力カラ
ー画像信号から入力画像の色を判別する色判別手段にお
いて画像情報を一定のブロックで考えこの中に数種類の
パターンが混在する場合にはいずれかのパターンを優先
して出力しようするものである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The embodiments of the present invention described below consider the image information in a certain block in a color discriminating means for discriminating the color of an input image from an input color image signal, and when several types of patterns are mixed therein. Is to output one of the patterns with priority.

【0008】[0008]

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

【0009】〔第1の実施例〕 (全体の構成)図1は本発明を適用したデジタル複写装
置の画像処理装置の全体の回路構成の一例を示す。図1
において、101はロッドレンズ等の光学系を介して結
像されたカラー原稿画像をG(グリーン),B(ブル
ー),R(レッド)の電気信号に変換する撮像手段のイ
メージセンサ(カラー読み取りセンサ)としてのCCD
(電荷結合素子)であり、色分解フィルタを有する。1
02はCCD101の出力信号を増幅する増幅回路、1
03は同軸ケーブル、104は同軸ケーブル103を介
して増幅回路102から出力されたカラー画像信号をサ
ンプルホールド(S/H)してG,B,Rの3色に分離
するサンプルホールド(S/H)回路である。105は
サンプルホールド回路104でサンプルホールドされた
アナログカラー画像信号をデジタルカラー画像信号に変
換するアナログ/デジタル(A/D)変換回路、106
はCCD101の各チャンネル間の読み取り位置のずれ
を電気的に補正するずれ補正回路、107はデジタル画
像信号に対して後述の黒レベル補正と白レベル補正(シ
ェーディング補正)を施す黒補正/白補正回路である。
First Embodiment (Overall Configuration) FIG. 1 shows an example of the overall circuit configuration of an image processing apparatus of a digital copying apparatus to which the present invention is applied. Figure 1
In the figure, 101 is an image sensor (color reading sensor) of an image pickup means for converting a color original image formed through an optical system such as a rod lens into G (green), B (blue) and R (red) electric signals. ) As CCD
(Charge coupled device) and has a color separation filter. 1
Reference numeral 02 is an amplifier circuit for amplifying the output signal of the CCD 101, 1
Reference numeral 03 is a coaxial cable, and 104 is a sample hold (S / H) that samples and holds (S / H) the color image signal output from the amplifier circuit 102 via the coaxial cable 103 to separate it into three colors of G, B, and R. ) Circuit. Reference numeral 105 denotes an analog / digital (A / D) conversion circuit for converting the analog color image signal sample-held by the sample-hold circuit 104 into a digital color image signal, and 106.
Reference numeral 107 denotes a shift correction circuit that electrically corrects a shift in the reading position between the channels of the CCD 101, and reference numeral 107 denotes a black correction / white correction circuit that performs a black level correction and a white level correction (shading correction) described later on the digital image signal. Is.

【0010】108は輝度信号生成部であり、黒補正お
よび白補正ずみのデジタルカラー画像信号から輝度信号
を生成する。109は色判別回路であり、黒補正および
白補正ずみのデジタルカラー画像の各画素毎の色判別を
行って、本例では色相信号に応じた色判定信号を出力す
る。110はRAMまたはROMの記憶装置からなるパ
ターン発生回路であり、色判別回路109の色判別結果
づに基き、各画素毎の色に対応のあらかじめ定めた図形
パターンを発生する。本例ではパターン発生回路110
は色相信号に対応した色判定信号を読み出しアドレスと
してあらかじめ記憶した図形パターンの1つを読み出し
て出力する。
Reference numeral 108 denotes a luminance signal generating section, which generates a luminance signal from the black-corrected and white-corrected digital color image signal. Reference numeral 109 denotes a color discrimination circuit, which performs color discrimination for each pixel of the digital color image that has been black-corrected and white-corrected, and outputs a color determination signal according to the hue signal in this example. Reference numeral 110 denotes a pattern generation circuit including a RAM or ROM storage device, which generates a predetermined graphic pattern corresponding to the color of each pixel based on the color discrimination result of the color discrimination circuit 109. In this example, the pattern generation circuit 110
Reads out and outputs one of the graphic patterns stored in advance using the color determination signal corresponding to the hue signal as a read address.

【0011】111は輝度信号生成部108で生成され
た輝度信号とパターン発生回路110から発生された何
色かを示す図形パターンを合成するパターン合成回路で
ある。112はLog変換部であり、パターン合成回路
111の出力信号を濃度信号に変換し、接続された各種
プリンタに出力する。なお、図1で鎖線で囲んだAの部
分は画像読取装置(イメージスキャナー)のビデオ画像
処理回路に相当する。
Reference numeral 111 denotes a pattern synthesizing circuit for synthesizing the luminance signal generated by the luminance signal generating unit 108 and the graphic pattern generated by the pattern generating circuit 110 and indicating the number of colors. Reference numeral 112 denotes a Log conversion unit that converts the output signal of the pattern synthesis circuit 111 into a density signal and outputs it to various connected printers. The portion A surrounded by a chain line in FIG. 1 corresponds to a video image processing circuit of an image reading device (image scanner).

【0012】本例の画像複写装置は、フルカラーの原稿
を、図示しないハロゲンランプや蛍光灯等の照明源で露
光し、反射カラー像をCCD等のカラーイメージセンサ
で撮像し、得られたアナログ画像信号をA/D変換器等
でデジタル化し、デジタル化されたフルカラー画像信号
を処理、加工し、図示しない熱転写型プリンター、イン
クジェットプリンター、レーザービームプリンター等に
出力し画像を得る装置である。その詳細は以下に詳述す
る通りである。
The image copying apparatus of the present example exposes a full-color original document with an illumination source such as a halogen lamp or a fluorescent lamp (not shown), picks up a reflected color image with a color image sensor such as a CCD, and obtains an analog image. It is a device for obtaining an image by digitizing the signal with an A / D converter or the like, processing and processing the digitized full-color image signal, and outputting it to a thermal transfer printer, an inkjet printer, a laser beam printer or the like (not shown). The details are as described below.

【0013】(カラー読み取りセンサ)原稿は、まず図
示しない露光ランプにより照射され、反射光はカラー読
み取りセンサ101により画像ごとに色分解されて読み
取られ、増幅回路102で所定レベルに増幅される。こ
こで、CCD101の駆動は、図示しないシステムパル
スジェネレータで生成されている。
(Color Reading Sensor) An original is first illuminated by an exposure lamp (not shown), and the reflected light is color-separated and read by the color reading sensor 101 for each image, and amplified by an amplifier circuit 102 to a predetermined level. Here, the driving of the CCD 101 is generated by a system pulse generator (not shown).

【0014】図2、図3にカラー読み取りセンサおよび
駆動パルスを示す。図2は本例で使用されるカラー読み
取りセンサを示し、このセンサは、主走査方向を5分割
して読み取るべく63.5μmを1画素として(400
dot/inch(以下dpiという))、1024画
素、すなわち図の如く1画素を主走査方向にG,B,R
で3分割しているので、トータル1024×3=307
2の有効画素数を有する。一方、このセンサの各チップ
58〜62は同一セラミック基板上に形成され、センサ
の1,3,5番目(58a,60a,62a)は同一ラ
インLA上に、2,4番目はLAとは4ライン分(6
3.5μm×4=254μm)だけ離れたラインLB上
に配置され、原稿読み取り時は、矢印AL方向に走査す
る。
2 and 3 show a color reading sensor and driving pulses. FIG. 2 shows a color reading sensor used in this example. This sensor uses 63.5 μm as one pixel (400
dot / inch (hereinafter referred to as dpi) 1024 pixels, that is, 1 pixel in the main scanning direction as G, B, R
Since it is divided into three, total 1024 × 3 = 307
It has an effective pixel count of 2. On the other hand, the chips 58 to 62 of this sensor are formed on the same ceramic substrate, the 1st, 3rd and 5th (58a, 60a, 62a) of the sensor are on the same line LA, and the 2nd and 4th are 4 and LA. Line ((6
3.5 μm × 4 = 254 μm) apart from each other on the line LB, and the document is scanned in the direction of arrow AL when reading.

【0015】各5つのCCDのうち、1,3,5番目は
駆動パルス群0DRV118aに、2,4番目は駆動パ
ルス群EDRV119aにより、それぞれ独立にかつ同
期して駆動される。駆動パルス群0DRV118aに含
まれるパルス信号O01A,O02A,ORSと駆動パ
ルス群EDRV119Aに含まれるパルス信号E01
A,E02A,ERSはそれぞれ各センサ内での電荷転
送クロック、電荷リセットパルスであり、1,3,5番
目と2,4番目との相互干渉やノイズ制限のため、お互
いにジッタにないように全く同期して生成される。この
ため、これらパルスは1つの図示しない基準発振源0S
Cから生成される。
Of the five CCDs, the first, third, and fifth CCDs are driven by the drive pulse group 0DRV118a, and the second and fourth CCDs are driven by the drive pulse group EDRV119a independently and synchronously. The pulse signals O01A, O02A, ORS included in the drive pulse group 0DRV118a and the pulse signal E01 included in the drive pulse group EDRV119A
A, E02A, and ERS are charge transfer clocks and charge reset pulses in each sensor, respectively, so that mutual interference between 1st, 3rd, 5th and 2nd and 4th, and noise limitation are prevented so that they are not in jitter with each other. It is generated in perfect synchronization. Therefore, these pulses are generated by one reference oscillation source 0S (not shown).
It is generated from C.

【0016】図4(A)は上述の駆動パルス群0DRV
118a,EDRV119aを生成する回路ブロックを
示し、図4(B)はそのタイミングを示す。この回路ブ
ロックは図示しないシステムコントロールパルスジェネ
レータに含まれる。単一の基準発振源0SCから発生さ
れる源クロックCLK0を分周したクロックK0135
aはセンサ駆動パルス0DRVとセンサ駆動パルスED
RVの発生タイミングを決める基準信号SYNC2,S
YNC3を生成するクロックである。これらの基準信号
SYNC2.SYNC3はCPUバスに接続された信号
線22により設定されるプリセッタブルカウンタ64
a,65aの設定値に応じて出力タイミングが決定され
る。また基準信号SYNC2,SYNC3は分周器66
a,67aおよび駆動パルス生成部68a,69aを初
期化する。
FIG. 4A shows the above-mentioned drive pulse group 0DRV.
118a and a circuit block for generating EDRV 119a are shown, and FIG. 4B shows the timing. This circuit block is included in a system control pulse generator (not shown). A clock K0135 obtained by dividing the source clock CLK0 generated from the single reference oscillation source 0SC.
a is a sensor drive pulse 0DRV and a sensor drive pulse ED
Reference signals SYNC2, S that determine the generation timing of RV
This is a clock for generating YNC3. These reference signals SYNC2. SYNC3 is a presettable counter 64 set by the signal line 22 connected to the CPU bus.
The output timing is determined according to the set values of a and 65a. The reference signals SYNC2 and SYNC3 are divided by the frequency divider 66.
a, 67a and drive pulse generators 68a, 69a are initialized.

【0017】すなわち、基準信号SYNC2,SYNC
3は本ブロックに入力される水平周期信号HSYNC1
18を基準とし、全て1つの発信源0SC558aから
出力される源クロックCLK0および全て同期して発生
している分周クロックにより生成されているので、0D
RV118aとEDRV119aのそれぞれのパルス群
は全くジッタのない同期した信号として得られ、センサ
間の干渉による信号の乱れを防止できる。
That is, the reference signals SYNC2 and SYNC
3 is a horizontal cycle signal HSYNC1 input to this block
Since all are generated by the source clock CLK0 output from one transmission source 0SC558a and all divided clocks generated in synchronization with 18 as a reference,
The respective pulse groups of RV118a and EDRV119a are obtained as synchronized signals without any jitter, and the disturbance of signals due to interference between sensors can be prevented.

【0018】ここで、お互いに同期して得られたセンサ
駆動パルス0DRV118aは1,3,5番目のセンサ
58a,60a,62aに、EDRV119aは2,4
番目のセンサ59a,61aに供給され、各センサ58
a,59a,60a,61a,62aからは駆動パルス
に同期してビデオ信号V1〜V5が独立に出力され、図
1に示される各チャンネル間で独立の増幅回路501−
1〜501−5で所定の電圧値に増幅され、同軸ケーブ
ル101aを通して図3の00S129aのタイミング
でV1,V3,V5の信号が送出され、E0S134a
のタイミングでV2,V4の信号が送出され、ビデオ画
像処理回路に入力される。
Here, the sensor driving pulse 0DRV118a obtained in synchronization with each other is applied to the first, third and fifth sensors 58a, 60a and 62a, and the EDRV 119a is applied to 2,4.
The second sensor 59a, 61a is supplied to each sensor 58
Video signals V1 to V5 are independently output from a, 59a, 60a, 61a, and 62a in synchronism with the drive pulse, and the amplifier circuits 501- shown in FIG.
1 to 501-5 is amplified to a predetermined voltage value, and the signals V1, V3 and V5 are sent out at the timing of 00S129a in FIG. 3 through the coaxial cable 101a, and E0S134a.
The signals V2 and V4 are sent out at the timing of and input to the video image processing circuit.

【0019】(サンプルホールド回路)ビデオ画像処理
回路に入力された原稿を5分割に分けて読み取って得ら
れたカラー画像信号は、サンプルホールド回路S/H1
04においてG(グリーン),B(ブルー),R(レッ
ド)の3色に分離される。従ってS/Hされたのちは3
×5=15系統の信号処理される。
(Sample and Hold Circuit) A color image signal obtained by reading an original input to the video image processing circuit in five divisions is sample and hold circuit S / H1.
In 04, it is separated into three colors of G (green), B (blue), and R (red). Therefore, after S / H, 3
Signal processing of x5 = 15 systems is performed.

【0020】(A/D変換回路)S/H回路104によ
り、各色R,G,B毎にサンプルホールドされたアナロ
グカラー画像信号は、次段A/D変換回路105で各1
〜5チャンネルごとでデジタル化され、各1〜5チャン
ネル独立に並列で、次段に出力される。
(A / D conversion circuit) The analog color image signal sampled and held for each color R, G, B by the S / H circuit 104 is 1 in the next stage A / D conversion circuit 105.
Digitized every 5 channels and output to the next stage in parallel independently for each 1-5 channel.

【0021】(ずれ補正回路)さて、本実施例では前述
したように4ライン分(63.5μm×4=254μ
m)の間隔を副走査方向に持ち、かつ主走査方向に5領
域に分割した5つの千鳥状センサで原稿読み取りを行っ
ているため、先行走査しているチャンネル2,4と残る
1,3,5では読み取る位置がずれている。そこでこれ
を正しくつなぐために、複数ライン分のメモリを備えた
ずれ補正回路106によって、そのずれ補正を行ってい
る。
(Displacement Correction Circuit) In this embodiment, as described above, four lines (63.5 μm × 4 = 254 μ) are used.
m) is provided in the sub-scanning direction and the original is read by the five staggered sensors divided into five areas in the main scanning direction. In 5, the reading position is misaligned. Therefore, in order to correctly connect this, the shift correction circuit 106 including memories for a plurality of lines performs the shift correction.

【0022】(黒補正/白補正回路)次に、図5、図6
を参照して黒補正/白補正回路107における黒補正動
作を説明する。
(Black Correction / White Correction Circuit) Next, FIGS.
The black correction operation in the black correction / white correction circuit 107 will be described with reference to FIG.

【0023】図6のようにチャンネル1〜5の黒レベル
出力はセンサに入力する光量が微少の時、チップ間、画
素間のばらつきが大きい。これをそのまま出力し画像を
出力すると、画像のデータ部にすじ(筋)やむら(斑)
が生じる。
As shown in FIG. 6, the black level outputs of channels 1 to 5 have large variations between chips and between pixels when the amount of light input to the sensor is small. When this is output as it is and the image is output, lines (streaks) and unevenness (spots) appear in the data part of the image.
Occurs.

【0024】そこで、この黒部の出力ばらつきを補正す
る必要が有り、図5に示すような黒補正回路でこのばら
つき補正を行う。原稿読み取り動作に先立ち、原稿走査
ユニットを原稿台先端部の非画像領域に配置された均一
濃度を有する黒色板の位置へ移動し、ハロゲンを点灯
し、黒レベル画像信号を本回路に入力する。
Therefore, it is necessary to correct the output variation of the black portion, and the variation is corrected by the black correction circuit as shown in FIG. Prior to the document reading operation, the document scanning unit is moved to the position of the black plate having a uniform density arranged in the non-image area at the front end of the document table, the halogen is turned on, and the black level image signal is input to this circuit.

【0025】ブルー信号BINに関しては、この画像デー
タの1ライン分を黒レベルRAM78aに格納すべく、
セレクタ82aでAを選択(d)、ゲート80aを閉じ
(a)、81aを開く。すなわち、データ線は151a
→152a→153aと接続され、一方、RAM78a
のアドレス入力155aには反転HSYNCで初期化さ
れ、VCLKをカウントするアドレスカウンタ84aの
出力154aが入力されるべくセレクタ83aに対する
cが出力され、1ライン分の黒レベル信号がRAM78
aの中に格納される(以上黒基準値取込みモードと呼
ぶ)。
Regarding the blue signal B IN , one line of this image data is stored in the black level RAM 78a.
The selector 82a selects A (d), closes the gate 80a (a), and opens 81a. That is, the data line is 151a
→ 152a → 153a, while RAM78a
The address input 155a is initialized by inverted HSYNC, c is output to the selector 83a so that the output 154a of the address counter 84a that counts VCLK is input, and the black level signal for one line is stored in the RAM 78.
It is stored in a (hereinafter referred to as a black reference value capture mode).

【0026】画像読み込み時には、RAM78aはデー
タ読み出しモードとなり、データ線153a→157a
の経路で減算器79aのB入力へ毎ライン、1画素ごと
に読み出され入力される。すなわち、この時ゲート81
aは閉じ(b)、ゲート80aは開く(a)。また、セ
レクタ86aはA出力となる。従って、黒補正回路出力
156aは、黒レベルデータDK(i)に対し、例えば
ブルー信号の場合BIN(i)−DK(i)=B
OUT(i)として得られる(以上黒補正モードと呼
ぶ)。
At the time of image reading, the RAM 78a is in the data reading mode and the data line 153a → 157a.
In the path of, the line B is read out and input for each line and pixel to the B input of the subtractor 79a. That is, at this time, the gate 81
a is closed (b) and gate 80a is open (a). Further, the selector 86a has an A output. Therefore, the black correction circuit output 156a outputs B IN (i) -DK (i) = B in the case of a blue signal, for example, with respect to the black level data DK (i).
It is obtained as OUT (i) (hereinafter referred to as the black correction mode).

【0027】同じようにグリーンGIN,レッドRINも7
7aG,77aRにより同様の制御が行われる。また、
本制御のための各セレクタゲートの制御線a,b,c,
d,eは、CPU(図示しない)のI/0として割り当
てられたラッチ85aによりCPU制御で行われる。な
お、セレクタ82a,83a,86aをB選択すること
によりCPUによりRAM78aをアクセス可能とな
る。
Similarly, green G IN and red R IN are 7
Similar control is performed by 7aG and 77aR. Also,
Control lines a, b, c of each selector gate for this control
d and e are controlled by the CPU by the latch 85a assigned as I / 0 of the CPU (not shown). The RAM 78a can be accessed by the CPU by selecting B from the selectors 82a, 83a and 86a.

【0028】次に、図7〜図9を参照して黒補正/白補
正回路107における白レベル補正(シェーディング補
正)を説明する。白レベル補正は原稿走査ユニットを均
一な白色板の位置に移動して照射した時の白色データに
基づき、照明系、光学系やセンサの感度ばらつきの補正
を行う。基本的な回路構成を図7に示す。基本的な回路
構成は図5と同一であるが、黒補正では減算器79aに
て補正を行っていたのに対し、白補正では乗算器79′
aを用いる点が異なるのみであるので同一部分の説明は
省く。
Next, the white level correction (shading correction) in the black correction / white correction circuit 107 will be described with reference to FIGS. The white level correction corrects variations in sensitivity of the illumination system, the optical system, and the sensor based on white data obtained when the original scanning unit is moved to a uniform white plate position and irradiated. The basic circuit configuration is shown in FIG. Although the basic circuit configuration is the same as that of FIG. 5, the subtractor 79a performs the correction in the black correction, while the multiplier 79 'in the white correction.
Since only the point of using a is different, description of the same parts is omitted.

【0029】色補正時に、原稿を読み取るためのCCD
101が均一白色板の読み取り位置(ホームポジショ
ン)にある時、すなわち、複写動作または読み取り動作
に先立ち、図示しない露光ランプを点灯させ、均一白レ
ベルの画像データを1ライン分の補正RAM78′aに
格納する。例えば、主走査方向のA4の長手方向の幅を
有するとすれば、16pel/mmで16×297mm
=4752画素、すなわち少なくともRAMの容量は4
752バイトであり、図8(a)に示すように、i画素
目の白色板データWi(i=1〜4752)とするとR
AM78′には図8(b)に示すように、各画素毎の白
色板に対するデータが格納される。
CCD for reading the original at the time of color correction
When 101 is at the reading position (home position) of the uniform white plate, that is, before the copying operation or the reading operation, the exposure lamp (not shown) is turned on, and the uniform white level image data is stored in the correction RAM 78'a for one line. Store. For example, if the width in the longitudinal direction of A4 in the main scanning direction is 16 p / mm, 16 × 297 mm.
= 4752 pixels, that is, at least the RAM capacity is 4
It is 752 bytes, and as shown in FIG. 8A, if the white plate data Wi of the i-th pixel is Wi (i = 1 to 4752), R
As shown in FIG. 8B, the AM 78 'stores data for the white plate for each pixel.

【0030】一方、Wiに対し、i番目の画素の通常画
像の読み取り値Diに対し補正後のデータDo=Di×
FFH/Wiとなるべきである。
On the other hand, for Wi, the corrected data Do = Di × for the read value Di of the normal image of the i-th pixel
It should be FF H / Wi.

【0031】そこでCPUからラッチ85′aa′,
b′,c′,d′に対しゲート80′a,81′aを開
き、さらにセレクタ82′a,83′a,86′aにお
いてBが選択されるように出力し、RAM78′aをC
PUサクセス可能とする。
From the CPU, the latch 85'aa ',
Gates 80'a and 81'a are opened for b ', c', and d ', and the selectors 82'a, 83'a, 86'a output so that B is selected, and the RAM 78'a is C.
Enables PU success.

【0032】次に、図9に示す手順でCPUは先頭画素
Oに対しFFH/WO,W1に対しFF/W1…と順次演
算してデータの置換を行う。色成分画像のブルー成分に
対し終了したら(図9のStepB)、同様にグリーン
成分(StepG)、レッド(StepR)と順次行
い、以後、入力される原画像データDiに対してDO
Di×FFH/Wiが出力されるようにゲート80′a
が開(a′)、ゲート81′aが閉(b′)、セレクタ
83′a,86′aはAが選択され、これによりRAM
78′aから読み出された係数データFFH/Wiは信
号線153a→157aを通り、一方から入力された原
画像データ151aとの乗算がとられ出力される。
Next, in the procedure shown in FIG. 9, the CPU sequentially calculates FF H / W O for the first pixel W O , FF / W 1 for W 1, and replaces the data. When the blue component of the color component image is finished (Step B in FIG. 9), similarly, the green component (Step G) and the red (Step R) are sequentially performed, and thereafter, D O = for the input original image data Di.
Gate 80'a so that Di × FF H / Wi is output
Is opened (a '), the gate 81'a is closed (b'), and the selectors 83'a and 86'a are selected as A, whereby the RAM is selected.
The coefficient data FF H / Wi read from 78'a passes through the signal line 153a → 157a, is multiplied by the original image data 151a input from one side, and is output.

【0033】以上のごとく、画像入力系の黒レベル感
度、CCDの暗電流ばらつき、各センサー間感度ばらつ
き、光学系光量ばらつきや白レベル感度等種々の要因に
基づく、黒レベル、白レベルの補正を行い、主走査方向
にわたって、白,黒とも各色ごとに均一に補正された画
像データBOUT121,GOUT122,ROUT123が得
られる。
As described above, the black level and the white level are corrected based on various factors such as the black level sensitivity of the image input system, the dark current variation of the CCD, the sensitivity variation between the sensors, the optical system light amount variation and the white level sensitivity. Then, the image data B OUT 121, G OUT 122, and R OUT 123 that are uniformly corrected for each color of white and black are obtained over the main scanning direction.

【0034】(輝度信号生成部)黒補正及び白補正され
た画像データROUT121,GOUT122,BOUT123
は輝度信号生成部108、及び色判別回路109に入力
する。
(Luminance signal generator) Black-corrected and white-corrected image data R OUT 121, G OUT 122, B OUT 123
Is input to the luminance signal generation unit 108 and the color discrimination circuit 109.

【0035】輝度信号生成部108では、センサー10
1で読み取られたフィルターイメージを平均化し、ND
イメージを作っている。図10は、上記の動作を説明す
るためのもので、入力される画像データROUT121,
OUT122,BOUT123は、まず加算器201でそれ
ぞれ加算処理される。その後、除算器202で1/3に
除算が行われてから出力される。
In the brightness signal generator 108, the sensor 10
ND the averaged filter image read in 1.
I'm making an image. FIG. 10 is for explaining the above-mentioned operation, and the input image data R OUT 121,
First, the adder 201 adds the G OUT 122 and the B OUT 123, respectively. After that, the divider 202 divides it by 1/3 and outputs it.

【0036】(色判別回路)本実施例では、色判別法と
して、色相信号を用いた。これは同一色でもその彩さ又
は明るさが異なる場合においても正確な判定を行うため
である。
(Color Discrimination Circuit) In this embodiment, a hue signal is used as the color discrimination method. This is for accurate determination even when the same color has different saturation or brightness.

【0037】まず、初めに、色判別法の概略について説
明する。
First, the outline of the color discrimination method will be described.

【0038】入力されるR,G,Bデータは、各々8ビ
ットづつあり、計224色の情報を有している。そのた
め、このような莫大な情報をそのまま用いることは、そ
の回路規模からも高価なものとなってしまう。本実施例
では、前述した色相を用いている。これは、正確には、
通常表わされる色相とは異なるが、ここでは色相とい
う。色空間はマンセルの立体等で知られているように、
彩度、明度、色相で表わされることが知られている。
R,G,Bデータを平面、すなわち、2次元のデータ
に、まず、変換する必要がある。R,G,Bの共通部、
すなわち、R,G,Bの最小値min(R,G,B)は
無彩色成分であることからmin(R,G,B)を各
R,G,Bデータより減算し、残った情報を有彩色成分
として用いることにより、3次元の入力色空間を2次元
の色空間に変換した。変換された平面は図11に示すよ
うに、0°〜360°までを6つに分け、入力される
R,G,Bの大きさの順番、つまり、R>G>B,R>
B>G,G>B>R,G>R>B,B>G>R,B>R
>Gの情報と入力されるR,G,Bの内の最大値、中間
値により、LUT(ルックアップテーブル)等を用いて
色相値を求めている。次に色判別回路109の実際の動
作を図12において説明する。
The input R, G, B data are each 8 bits and have information of a total of 2 24 colors. Therefore, using such enormous information as it is becomes expensive from the circuit scale. In this embodiment, the hue described above is used. This is exactly
Although it is different from the hue normally displayed, it is referred to as a hue here. The color space is known as Munsell's solid, etc.,
It is known to be represented by saturation, lightness, and hue.
First, it is necessary to convert the R, G, B data into plane, that is, two-dimensional data. Common part of R, G, B,
That is, since the minimum value min (R, G, B) of R, G, B is an achromatic component, min (R, G, B) is subtracted from each R, G, B data, and the remaining information is The three-dimensional input color space was converted into a two-dimensional color space by using it as a chromatic color component. As shown in FIG. 11, the converted plane is divided into 6 from 0 ° to 360 °, and the order of the sizes of R, G, and B to be input, that is, R>G> B, R>.
B> G, G>B> R, G>R> B, B>G> R, B> R
The hue value is obtained by using a LUT (look-up table) or the like based on the information of> G and the maximum value and the intermediate value of R, G, and B that are input. Next, the actual operation of the color discrimination circuit 109 will be described with reference to FIG.

【0039】入力されるR,G,Bデータは、まず、そ
の大小判別を行うmax・mid・min検出回路14
01に入力される。これは各入力データをコンパレータ
を用いて比較し、比較結果に応じてmax値,mid
値,min値を出力する。また、コンパレータの出力値
を順位信号として出力している。出力されたmax,m
id,min値は前述したように、max値,mid値
から無彩色成分を減ずるため、減算器1402、140
3によりmax値およびmid値より最小値であるmi
n値を減算し、色相検出回路1404に順位信号ととも
に入力される。色相検出回路1404はRAMあるいは
ROM等のランダムアクセスの可能な記憶素子であり、
本実施例では、ROMを用いてルックアップテーブルを
構成している。ROMには、予め、図11に示すような
平面の角度に対応する値が記憶されており、入力される
順位信号(max−min)値、(mid−min)値
により、色相値が出力される。出力された色相値は次に
ウインドコンパレータ1405,1406に入力され
る。これらコンパレータ1405,1406には、図示
しないデータ入力手段により本来パターン化したい色デ
ータを入力し、その色に合った色相データ値をCPU1
407によって所望のオフセットを持たせコンパレータ
1405,1406にセットされる。コンパレータ14
05では、設定された値をa1とすると、入力される色
相データに対し、(色相データ)<a1で「1」が出力
され、コンパレータ1406では、設定された値をa2
とすると、(色相データ)>a2で「1」が出力される
ように構成されている。
The input R, G, B data is first of all a max / mid / min detection circuit 14 for discriminating its magnitude.
01 is input. This compares each input data using a comparator, and depending on the comparison result, the max value, mid
The value and the min value are output. Also, the output value of the comparator is output as a ranking signal. Output max, m
As described above, the id and min values subtract the achromatic color component from the max value and the mid value.
3 which is the minimum value from the max value and the mid value.
The n value is subtracted and input to the hue detection circuit 1404 together with the ranking signal. The hue detection circuit 1404 is a randomly accessible storage element such as RAM or ROM.
In this embodiment, the look-up table is constructed by using the ROM. A value corresponding to the angle of the plane as shown in FIG. 11 is stored in advance in the ROM, and the hue value is output according to the input order signal (max-min) value and (mid-min) value. It The output hue value is then input to the window comparators 1405 and 1406. To these comparators 1405 and 1406, color data that is originally desired to be patterned is input by a data input means (not shown), and a hue data value that matches the color is input to the CPU 1.
A desired offset is given by 407 and set in comparators 1405 and 1406. Comparator 14
In 05, assuming that the set value is a 1 , “1” is output for (hue data) <a 1 for the input hue data, and the comparator 1406 sets the set value to a 2
Then, “(1)” is output when (hue data)> a 2 .

【0040】よって、後段のANDゲート1410によ
り、 a1<(色相データ)<a2 の時、色検出回路1410から「1」が出力される。
[0040] Thus, the subsequent AND gate 1410, when a 1 <(hue data) <a 2, "1" is outputted from the color detection circuit 1410.

【0041】また同様に14(b),14(c)の回路
より他の色相に関する色判定信号が出力される。
Similarly, the circuits 14 (b) and 14 (c) output color determination signals for other hues.

【0042】(多数決回路)色判定された判定信号は、
多数決回路140により一定エリア内でどの色に最も近
いと判定されているかが判定される。ここで多数決回路
を図13及び図14により説明する。図13において、
C1,C2,C3は図12において判定された色判定信
号であり、VCKはビデオ転送クロック、AREAは一
定エリアを示す信号であり、2001、2002、20
03の各カウンタに一定エリア毎にクリアをかけるもの
である。つまり2001のカウンタは一定エリア内で、
C1と判定された色がいくつあるかをカウントする回路
であり、2002、2003は同様にC2,C3の色の
数をカウントする。カウント結果は図14A,B,Cへ
入力される。2101、2102、2103、共に比較
器であり2104〜2109は論理積、2110〜21
12は論理和、2113はエンコーダ回路、2114は
Dフリップフロップ回路でありAREAは図13のAR
EA信号と同様で多数決判定を行う一定エリア信号であ
る。各A,B,C入力に対して、2104の論理積回路
からはA≧B≧Cである時1が出力され、同様に論理積
2105からはA>C>Bの時1が出力される。そして
論理和回路2110からはA,B,Cの中でAが1番大
きい時のみ“1”が出力される。同様にして、論理和回
路2111からはBが最大の時、論理和回路2112か
らはCが最大の時1が出力される。2113はエンコー
ド回路であり、Aが最大の時1を、Bが最大の時2を、
Cが最大の時3を出力する。DF/F2114はこのコ
ード信号を、各1定エリア毎にラッチするものであり、
1定エリア毎にどの色ともっとも判定されたが出力す
る。
(Majority Decision Circuit) The decision signal for color decision is
The majority circuit 140 determines which color is determined to be the closest within a certain area. Here, the majority circuit will be described with reference to FIGS. In FIG.
C1, C2 and C3 are color determination signals determined in FIG. 12, VCK is a video transfer clock, AREA is a signal indicating a certain area, and 2001, 2002 and 20 are shown.
The counter 03 is cleared for each fixed area. In other words, the 2001 counter is within a certain area,
This is a circuit that counts how many colors are determined as C1, and 2002 and 2003 similarly count the number of colors of C2 and C3. The counting result is input to FIGS. 14A, 14B and 14C. 2101, 2102 and 2103 are both comparators, and 2104 to 2109 are logical products, 2110 to 21
12 is a logical sum, 2113 is an encoder circuit, 2114 is a D flip-flop circuit, and AREA is AR in FIG.
Similar to the EA signal, it is a constant area signal for making a majority decision. For each A, B, and C input, the logical product circuit 2104 outputs 1 when A ≧ B ≧ C, and similarly, the logical product 2105 outputs 1 when A>C> B. .. The logical sum circuit 2110 outputs "1" only when A is the largest among A, B, and C. Similarly, the OR circuit 2111 outputs 1 when B is maximum, and the OR circuit 2112 outputs 1 when C is maximum. 2113 is an encoding circuit, which is 1 when A is maximum and 2 when B is maximum.
When C is maximum, 3 is output. The DF / F 2114 latches this code signal for each constant area.
Outputs which color is most determined for each fixed area.

【0043】(パターン発生回路)パターン発生回路1
10について図15を参照して説明する。パターン用R
OM803には、例えば図16に示すような各色に対応
するドットパターンが予め書き込まれている。各図形パ
ターンは16×16ドットを1パターンとしている。パ
ターン用ROM803は色判定信号に応じてこのパター
ンを主走査方向及び副走査方向にくり返し出力すること
により、パターンの発生処理をしている。主走査カウン
ター802は水平同期信号HSYNCに同期して、ビデ
オクロックCLKをカウントすることにより動作し、副
走査カウンター801は、ITOP信号に同期し、水平
同期信号HSYNCをカウントすることにより動作す
る。
(Pattern Generating Circuit) Pattern Generating Circuit 1
10 will be described with reference to FIG. R for pattern
In the OM 803, for example, a dot pattern corresponding to each color as shown in FIG. 16 is written in advance. Each graphic pattern has 16 × 16 dots as one pattern. The pattern ROM 803 performs pattern generation processing by repeatedly outputting this pattern in the main scanning direction and the sub scanning direction according to the color determination signal. The main scanning counter 802 operates by counting the video clock CLK in synchronization with the horizontal synchronizing signal HSYNC, and the sub-scanning counter 801 operates by synchronizing with the ITOP signal and counting the horizontal synchronizing signal HSYNC.

【0044】上記カウンター801,802の出力が各
4bit、及び上記色判定信号が5bitの計13bi
tがパターン用ROM803のアドレスとして入力され
ている。すなわち、読み取られた色(の種類)に対して
32種類の16ドット×16ドットのパターンが発生で
きる構成となっている。
The outputs of the counters 801 and 802 are 4 bits each, and the color determination signal is 5 bits, for a total of 13 bits.
t is input as the address of the pattern ROM 803. That is, it is configured such that 32 types of patterns of 16 dots × 16 dots can be generated for (the type of) the read color.

【0045】パターン用ROM803からの出力は、8
bitのデータ長を有しており、その中のMSB(最上
位bit)は、後段で説明するパターン合成部111内
の制御用信号(HIT信号)として用いており、ROM
803には通常0、パターンを発生させる際は必ずMS
Bが1となる様データが書き込まれている。
The output from the pattern ROM 803 is 8
It has a data length of bit, and the MSB (most significant bit) therein is used as a control signal (HIT signal) in the pattern synthesizing unit 111 described later, and is stored in the ROM.
Normally 0 for 803, and always MS when generating a pattern
Data is written so that B becomes 1.

【0046】当然、上記のパターン用ROM803は、
RAM等を用いても良い。また、RAM等を用いてもそ
の容量及びアドレスのビット割りつけはROMと同様で
ある。
Naturally, the above-mentioned pattern ROM 803 is
RAM or the like may be used. Even if a RAM or the like is used, its capacity and bit allocation of addresses are the same as those of the ROM.

【0047】(パターン合成部)パターン発生回路11
0から出力されたパターン信号、及び判定領域を示すH
IT信号、及び108輝度信号生成部からの輝度信号は
それぞれ図17のセレクタ1601に入力される。つま
りセレクタ1601は、判定領域であれば一定サイズの
エリア毎に多数決された結果の色にじたパターン信号が
選択され、判定領域外であれば輝度信号を選択する。
(Pattern Synthesis Unit) Pattern Generation Circuit 11
The pattern signal output from 0 and H indicating the judgment area
The IT signal and the brightness signal from the 108 brightness signal generation unit are input to the selector 1601 in FIG. That is, the selector 1601 selects a pattern signal based on the color obtained as a result of the majority decision for each area of a certain size in the determination area, and selects a luminance signal in the outside of the determination area.

【0048】(log変換部)加算処理された画像デー
タは次に輝度−濃度変換を行うべく図1のLog変換部
112で濃度信号に変換される。このLog変換部11
2では、ROMを用いたルックアップテーブルで行って
いる。Log変換部112で濃度信号に変換された信号
は画像を形成すべき単色のプリンター部(例えば、レー
ザビームプリンタ)への出力される。
(Log Transforming Unit) The image data that has undergone the addition process is converted into a density signal by the Log converting unit 112 in FIG. 1 so as to perform the brightness-density conversion. This Log converter 11
In No. 2, a lookup table using a ROM is used. The signal converted into the density signal by the Log conversion unit 112 is output to a monochrome printer unit (for example, a laser beam printer) which should form an image.

【0049】図18により、多数決方式の効果を説明す
る。ここでは縦3画素、横3画素のサイズの領域に対し
て多数決判定を行い、パターンを選択する。2201、
2202、2203におけるA,Bはそれぞれ異なる色
の判定結果を示すものであり、例えば2202の様に一
定エリア内ですべてAの色と判定されれば2205の様
なパターン化が行われる。また2203の様に一定エリ
ア内がすべてBの色と判定されれば2206の様なパタ
ーン化が行われる。また2201の様にAと判定された
部分とBと判定された部分が混在している場合には、1
画素ずつパターン化すると、2204の様に2種類のパ
ターンが混在してしまうが、多数決方式を用いれば例え
ば2201ではBの色の方が多いため結果的に2207
の様にBのパターンが選択される事になる。一般的に例
えば赤い色領域において赤と色判定する場合の誤判定は
多くとも数画素あるいは数十画素に一画素位であるから
多数決方式を採用する事により誤判定によるパターンの
混在はかなり軽減する事ができる。
The effect of the majority voting system will be described with reference to FIG. Here, a majority decision is made for a region having a size of 3 pixels in the vertical direction and 3 pixels in the horizontal direction, and a pattern is selected. 2201,
A and B in 2202 and 2203 respectively indicate different color determination results. For example, if it is determined that all the colors are A within a certain area such as 2202, patterning like 2205 is performed. Further, if it is determined that the color in the constant area is B as in 2203, patterning in 2206 is performed. Further, when there is a mixture of a portion determined to be A and a portion determined to be B as in 2201, 1
When pixel-by-pixel patterning, two types of patterns coexist like 2204, but if a majority method is used, for example, 2201 has more B colors, resulting in 2207.
The pattern B is selected as shown in. Generally, for example, in the case of making a red judgment in a red color area, the erroneous judgment is at most one pixel in several pixels or tens of pixels. Therefore, by adopting the majority decision method, the mixture of patterns due to the erroneous judgment is considerably reduced. I can do things.

【0050】〔第2の実施例〕色パターン化の誤判定を
救う他の実施例として前画素の判定結果を次の画素の判
定の際に参考にする系について説明する。その回路構成
は基本的には第1の実施例と同じであるが図1における
多数決回路140を削除し、かわりにDF/Fを追加し
た形となっている。この部分について図19により説明
する。色判別回路2301によりある画素の色が判定さ
れその結果がDF/F2302に入力される。ここでV
CKは画像転送クロックである。DF/F2302によ
り1画素遅延された色判定結果は色判定回路2301に
もどされる。またこのもどされた情報は具体的には図1
2の色相検出回路1404に入力される。色相検出回路
1404は、先に説明した様にRAMあるいはROMの
ルックアップテーブルで構成されているためもどされた
情報はこのアドレスに入力される事になる。つまり前画
素が赤と判定された場合には次の画素は赤に判定しやす
い様な情報をルックアップテーブルに書いておく事によ
り誤判定が起こりにくくする事が可能である。
[Second Embodiment] As another embodiment for saving erroneous judgment of color patterning, a system for referring the judgment result of the previous pixel to the judgment of the next pixel will be described. The circuit configuration is basically the same as that of the first embodiment, but the majority circuit 140 in FIG. 1 is deleted and a DF / F is added instead. This part will be described with reference to FIG. The color of a certain pixel is determined by the color determination circuit 2301 and the result is input to the DF / F 2302. Where V
CK is an image transfer clock. The color determination result delayed by one pixel by the DF / F 2302 is returned to the color determination circuit 2301. In addition, this returned information is specifically shown in Figure 1.
It is input to the second hue detection circuit 1404. Since the hue detection circuit 1404 is composed of the look-up table of the RAM or the ROM as described above, the returned information is input to this address. In other words, when the previous pixel is determined to be red, it is possible to prevent misjudgment from occurring by writing in the lookup table information that makes it easy to determine the next pixel to be red.

【0051】〔第3の実施例〕色パターン化の誤判定を
救う他の実施例として、判定画素の周囲画素に対して、
色判定信号のヒストグラムを取りその結果を参考にして
注目画素の色判定を行う例について説明する。
[Third Embodiment] As another embodiment for saving an erroneous judgment of color patterning, for pixels around the judgment pixel,
An example in which a histogram of the color determination signal is obtained and the color determination of the pixel of interest is performed with reference to the result will be described.

【0052】図20が、本実施例を良く説明するブロッ
ク図である。本実施例は第1の実施例において、多数決
回路140を削除し、色判別回路109と置きかわるも
のである。入力されたカラーの画像情報は2501色判
定回路によりR,G,Bの比率から色が判定される。こ
の判定方式は第1の実施例における図12の色判定回路
と同様であり、本実施例では判定結果をエンコードし2
bitの色コード信号として出力している。判定結果は
マルチプレクサ2502によりデコードされ、2503
〜2506のカウンタにより一定領域内の色判定画素数
をカウントする事になる。図中クリア信号が一定領域を
示す領域信号であり、この領域ごとに色判定情報がカウ
ントされる。2511〜2514はコンパレータであ
り、2507〜2510はコンパレータのスライスレベ
ルを決めるレジスタである。レジスタ設定値は領域のサ
イズに応じて設定するものであり、またCCDの特性な
どから各色ごとのスライスレベルをかえる事も可能であ
る。2511〜2514のコンパレータの出力は、25
15色変換回路に入力される。また、2501色判定回
路の出力は2516ディレイ回路により先に説明したカ
ウンタレジスタコンパレータの画像遅延とタイミングを
合わせる様に構成されている。2515色変換回路はヒ
ストグラムを参考にし、2501色判定結果に補正を加
える部分であり詳細は後で説明する。最終的に判定され
た結果は、2517デコード回路により色コード信号か
らbit対応の信号に変換され、その後は第1の実施例
における110パターン発生回路に入力される。
FIG. 20 is a block diagram for explaining this embodiment well. In this embodiment, the majority circuit 140 is deleted from the first embodiment and the color discrimination circuit 109 is replaced. The color of the input color image information is determined by the 2501 color determination circuit from the ratio of R, G, and B. This determination method is similar to that of the color determination circuit of FIG. 12 in the first embodiment, and in this embodiment, the determination result is encoded.
It is output as a color code signal of bit. The determination result is decoded by the multiplexer 2502, and 2503
The counters 2506 through 2506 count the number of color determination pixels in a certain area. The clear signal in the figure is an area signal indicating a certain area, and the color determination information is counted for each area. Reference numerals 2511 to 2514 are comparators, and 2507 to 2510 are registers that determine the slice level of the comparator. The register set value is set according to the size of the area, and the slice level for each color can be changed according to the characteristics of the CCD. The outputs of the comparators 2511 to 2514 are 25
It is input to the 15-color conversion circuit. Further, the output of the 2501 color determination circuit is configured by the 2516 delay circuit so as to match the timing with the image delay of the counter register comparator described above. The 2515 color conversion circuit is a portion for correcting the 2501 color determination result with reference to the histogram, and the details will be described later. The finally determined result is converted from a color code signal into a bit-corresponding signal by the 2517 decoding circuit, and then input to the 110 pattern generation circuit in the first embodiment.

【0053】図21により2515色変換回路について
説明する。図21(a)は色変換方式を示すテーブルで
あり、図21(b)は0〜3、4色の色空間を示すもの
である。図21(a)においてC0,C1,C2,C3はそ
れぞれ2511〜2514のコンパレータの出力を示す
ものであり、INは入力された色判定信号である。基本
的な考え方は、注目画素に対して2501色判定結果と
同じ色のヒストグラム値がスラレスレベル以上であれば
優先的にその判定結果を変換せずそのまま、最終的な色
判定結果とし、また、ヒストグラム値がスラレスレベル
以下であれば他の色のヒストグラム値を参考にし、色空
間上、隣り合わせの色のヒストグラムが一定値以外であ
ればその隣の色に判定結果を変換し、それ以外の場合は
判定結果をそのまま最終的な色判定結果とするものであ
る。
The 2515 color conversion circuit will be described with reference to FIG. FIG. 21A is a table showing a color conversion method, and FIG. 21B shows a color space of 0 to 3 and 4 colors. In FIG. 21A, C 0 , C 1 , C 2 , and C 3 respectively indicate the outputs of the comparators 2511 to 2514, and IN is the input color determination signal. The basic idea is that if the histogram value of the same color as the 2501 color determination result for the pixel of interest is equal to or higher than the slurry level, then the determination result is not converted and the final color determination result is given as is. , If the histogram value is below the slurry level, refer to the histogram values of other colors, and if the histogram of adjacent colors in the color space is other than a certain value, convert the determination result to the adjacent color, and otherwise In the case of, the judgment result is directly used as the final color judgment result.

【0054】以上説明したように、上記実施例によれば
色判定を行う際に色判定信号に対して、一定サイズ内で
の多数決を行い色を確定する方式、あるいは前画素の判
定結果を次の画素の判定の際に参考にする方式を採る事
により色の誤判定によりパターンの混在する事を防ぐ効
果がある。
As described above, according to the above-described embodiment, when the color determination is performed, the color determination signal is majority-determined within a fixed size to determine the color, or the determination result of the previous pixel is By adopting the method that is referred to when determining the pixels, it is possible to prevent the mixture of patterns due to erroneous determination of colors.

【0055】[0055]

【発明の効果】以上の様に本発明によれば、色の変化点
においてパターンの混在を防ぎ、色をパターン化する際
の画質を良好にすることができる。
As described above, according to the present invention, it is possible to prevent the mixture of patterns at the color change points and improve the image quality when patterning the colors.

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

【図1】本発明の第1の実施例の全体ブロック図。FIG. 1 is an overall block diagram of a first embodiment of the present invention.

【図2】CCDセンサを説明する図。FIG. 2 is a diagram illustrating a CCD sensor.

【図3】CCD駆動を説明する図。FIG. 3 is a diagram illustrating CCD driving.

【図4】CCD駆動を説明する図。FIG. 4 is a diagram illustrating CCD driving.

【図5】黒補正を説明する図。FIG. 5 is a diagram illustrating black correction.

【図6】黒補正を説明する図。FIG. 6 is a diagram illustrating black correction.

【図7】白補正を説明する図。FIG. 7 is a diagram illustrating white correction.

【図8】白補正を説明する図。FIG. 8 is a diagram illustrating white correction.

【図9】白補正を説明する図。FIG. 9 is a diagram illustrating white correction.

【図10】輝度信号生成を示す図。FIG. 10 is a diagram showing luminance signal generation.

【図11】色相判別を説明するための図。FIG. 11 is a diagram for explaining hue discrimination.

【図12】色判別回路のブロック図。FIG. 12 is a block diagram of a color discrimination circuit.

【図13】多数決回路を示す図。FIG. 13 is a diagram showing a majority decision circuit.

【図14】多数決回路を示す図。FIG. 14 is a diagram showing a majority decision circuit.

【図15】パターン発生回路のブロック図。FIG. 15 is a block diagram of a pattern generation circuit.

【図16】色パターンの対応を示す図。FIG. 16 is a diagram showing correspondence of color patterns.

【図17】パターン合成を示すブロック図。FIG. 17 is a block diagram showing pattern synthesis.

【図18】多数決方式の効果を示す図。FIG. 18 is a diagram showing an effect of a majority decision method.

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

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

【図21】本発明の第3の実施例の概念を示す図。FIG. 21 is a view showing the concept of the third embodiment of the present invention.

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

190 色判別回路 140 多数決回路 110 パターン発生回路 111 パターン合成回路 190 Color Discrimination Circuit 140 Majority Decision Circuit 110 Pattern Generation Circuit 111 Pattern Synthesis Circuit

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 入力画像信号から特定の色を判別する色
判別手段と、該色判別手段の色判別結果に応じてあらか
じめ色毎に決められた対応の図形パターンを発生するパ
ターン発生手段とを具備し、前記色判別手段による複数
の色判別結果を用いて、色判別の誤りを防止する誤判定
防止手段を有することを特徴とする画像処理装置。
1. A color discriminating means for discriminating a specific color from an input image signal, and a pattern generating means for generating a corresponding graphic pattern predetermined for each color according to a color discriminating result of the color discriminating means. An image processing apparatus comprising: an erroneous determination prevention unit that prevents an error in color determination by using a plurality of color determination results by the color determination unit.
【請求項2】 前記誤判定防止手段は、所定の領域内に
おいて、複数の色判別結果の多数決を行うことにより、
該領域内の色を判別することを特徴とする請求項1記載
の画像処理装置。
2. The erroneous judgment preventing means makes a majority decision of a plurality of color judgment results in a predetermined area,
The image processing apparatus according to claim 1, wherein the color in the area is determined.
【請求項3】 前記誤判定防止手段は前画素の判定結果
を次の画素の判定の際に考慮に入れることを特徴とする
請求項1記載の画像処理装置。
3. The image processing apparatus according to claim 1, wherein the erroneous determination prevention unit takes the determination result of the previous pixel into consideration when determining the next pixel.
【請求項4】 前記誤判定防止手段は、判定画素の周囲
における色判定信号のヒストグラムを取る事により判定
画素の誤判定を防止することを特徴とする請求項1記載
の画像処理装置。
4. The image processing apparatus according to claim 1, wherein the erroneous determination preventing unit prevents the erroneous determination of the determination pixel by taking a histogram of the color determination signal around the determination pixel.
JP28643391A 1991-10-31 1991-10-31 Image processing apparatus and image processing method Expired - Fee Related JP3359045B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28643391A JP3359045B2 (en) 1991-10-31 1991-10-31 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28643391A JP3359045B2 (en) 1991-10-31 1991-10-31 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JPH05130438A true JPH05130438A (en) 1993-05-25
JP3359045B2 JP3359045B2 (en) 2002-12-24

Family

ID=17704326

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28643391A Expired - Fee Related JP3359045B2 (en) 1991-10-31 1991-10-31 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP3359045B2 (en)

Also Published As

Publication number Publication date
JP3359045B2 (en) 2002-12-24

Similar Documents

Publication Publication Date Title
US5485288A (en) Image processing apparatus for converting a color image into a pattern image with a synthesized gradation image increasing in density closer to contour portions of the pattern image
US5557430A (en) Image processing apparatus generating patterns for colors based on a set relation between colors and patterns and synthesizing patterns with extracted monochromatic information
US5047844A (en) Color image processing apparatus
JP3178541B2 (en) Image processing method and apparatus
US5784180A (en) Image memory apparatus
US5305122A (en) Image reading and processing apparatus suitable for use as a color hand-held scanner
EP0400991B1 (en) Color image processing apparatus
EP0711068B1 (en) Image processing method and apparatus
US5631983A (en) Image forming system for synthesizing color image data with binary image data which has been colored with a predetermined color during the synthesizing operation
EP0523999B1 (en) Image processing method and apparatus
US7054032B2 (en) Image processing apparatus and method
US5361145A (en) Color image reading apparatus having correction means to correct for relative variations among image signals
US5585945A (en) Image synthesis with reduced memory requirements
US5760929A (en) Image processing apparatus for processing discriminated color regions within specified boundaries
US5602655A (en) Image forming system for single bit image data
JP3359045B2 (en) Image processing apparatus and image processing method
JP3042911B2 (en) Image processing apparatus and image processing method
JP3206932B2 (en) Image processing method and apparatus
JP3226224B2 (en) Image processing device
JP3200090B2 (en) Image processing method and apparatus
JP2815962B2 (en) Image processing apparatus and image processing method
JP2915503B2 (en) Image processing device
JPH0810900B2 (en) Color image processor
JPH04351171A (en) Picture processing unit
JP3423709B2 (en) Image processing method and apparatus

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20020521

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20020917

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

Free format text: PAYMENT UNTIL: 20071011

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20081011

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20091011

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees