JP3226224B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3226224B2
JP3226224B2 JP31986591A JP31986591A JP3226224B2 JP 3226224 B2 JP3226224 B2 JP 3226224B2 JP 31986591 A JP31986591 A JP 31986591A JP 31986591 A JP31986591 A JP 31986591A JP 3226224 B2 JP3226224 B2 JP 3226224B2
Authority
JP
Japan
Prior art keywords
color
signal
image
density
contour
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP31986591A
Other languages
Japanese (ja)
Other versions
JPH05130439A (en
Inventor
秋生 伊藤
弘幸 市川
喜則 阿部
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP31986591A priority Critical patent/JP3226224B2/en
Priority to EP92301702A priority patent/EP0501814B1/en
Priority to US07/843,725 priority patent/US5485288A/en
Priority to DE69227853T priority patent/DE69227853T2/en
Publication of JPH05130439A publication Critical patent/JPH05130439A/en
Priority to US08/433,201 priority patent/US5691827A/en
Application granted granted Critical
Publication of JP3226224B2 publication Critical patent/JP3226224B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

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 such as a digital copying machine, an image scanner, a printer, and a facsimile.

【0002】[0002]

【従来の技術】近年、例えばデジタル複写機において、
原稿の色情報をモノクロ画像として再生することによ
り、カラー画像を再生する場合と同様な視覚的効果を与
える画像処理方式が提案されている。この方式は、ま
ず、原稿の色情報をカラーCCD等の光電変換素子によ
り色信号に変換し、この色信号によって同一色と判定さ
れた領域を所定の図形パターン信号に置換し、単一色で
再生してモノクロ画像を再生するものである。
2. Description of the Related Art In recent years, for example, in digital copying machines,
An image processing method has been proposed which reproduces color information of a document as a monochrome image to provide a visual effect similar to that of reproducing a color image. In this method, first, color information of a document is converted into a color signal by a photoelectric conversion element such as a color CCD, and an area determined to be the same color by the color signal is replaced with a predetermined graphic pattern signal, and reproduced in a single color. Then, a monochrome image is reproduced.

【0003】以下、この種の画像処理装置を図16〜図
22を参照しつつ説明する。
Hereinafter, this type of image processing apparatus will be described with reference to FIGS.

【0004】まず、図16を用いて、従来の画像処理装
置であるデジタル複写機の全体の構成を説明する。
First, an overall configuration of a digital copying machine which is a conventional image processing apparatus will be described with reference to FIG.

【0005】このデジタル複写機は、フルカラーの原稿
100を読み取る画像読取り部101と、読み取られた
画像を処理する画像処理部102と、画像処理部102
の出力を印刷するレーザービームプリンタ103とを備
え、さらに、装置全体の動作を制御するCPU回路部1
04が設けられている。
The digital copying machine includes an image reading section 101 for reading a full-color original 100, an image processing section 102 for processing a read image, and an image processing section 102.
And a laser beam printer 103 for printing the output of the apparatus, and a CPU circuit unit 1 for controlling the operation of the entire apparatus.
04 is provided.

【0006】このデジタル複写機では、原稿100を図
示しない露光ランプにより露光し、反射カラー像をカラ
ーCCDイメージセンサ101bで撮像する。さらに、
得られたアナログ画像信号をA/D変換コンバータ10
1cでデジタル化し、デジタル化されたフルカラー画像
信号を画像処理部102で処理、加工してプリンタ10
3へ出力し、モノクロ画像を得るようになっている。
In this digital copying machine, a document 100 is exposed by an exposure lamp (not shown), and a reflected color image is picked up by a color CCD image sensor 101b. further,
A / D conversion converter 10 converts the obtained analog image signal.
1c, the digitized full-color image signal is processed and processed by the image processing unit 102, and the printer 10
3 to obtain a monochrome image.

【0007】ここで、原稿100の色情報は、画像読取
り部101のレンズ101aを介してCCDセンサ10
1bに結像されており、各ラインをR(Red:赤)、
G(Green:緑)、B(Blue:青)それぞれ4
00dpiで読み取る。画像処理部102では、シェー
ディング補正回路102aでシェーディング補正を行っ
て、R、G、Bそれぞれ8ビットの画像データを生成す
る。データ処理部102bでは読取り画像データの色を
判別してそれに対応するパターンに変換するとともに、
濃度データに変換し、出力データを生成する。
Here, the color information of the original 100 is transmitted to the CCD sensor 10 via the lens 101a of the image reading unit 101.
1b, each line is represented by R (Red: red),
G (Green: green), B (Blue: blue) 4 each
Read at 00 dpi. In the image processing unit 102, shading correction is performed by a shading correction circuit 102a to generate R, G, and B 8-bit image data. The data processing unit 102b determines the color of the read image data and converts the color into a pattern corresponding to the color.
Convert to density data and generate output data.

【0008】プリンタ103は、転写紙などの搬送を行
うモータ等の制御回路と、画像処理部102より入力さ
れた出力データを感光ドラムに書き込むレーザ記録部
と、現像を行う現像制御回路とを有している。また、C
PU回路部104は、CPU104a、ROM104
b、及びRAM104cを有し、画像読取り部101、
画像処理部102、プリンタ103等を制御し、本装置
のシーケンスコントロールを総括的に制御する。
The printer 103 has a control circuit such as a motor for transporting transfer paper and the like, a laser recording unit for writing output data input from the image processing unit 102 to a photosensitive drum, and a development control circuit for developing. are doing. Also, C
The PU circuit unit 104 includes a CPU 104a, a ROM 104
b, and a RAM 104c, and an image reading unit 101,
It controls the image processing unit 102, the printer 103, and the like, and comprehensively controls the sequence control of this apparatus.

【0009】次に、図17〜図19を用いてデータ処理
部102bの構成及び動作を説明する。なお、図17は
図16中のデータ処理部102bの構成を示すブロック
図であり、図18は図17中の色判別部111の構成を
示すブロック図である。さらに、図19は図17中のパ
ターン発生部114及びアドレス制御部115の構成を
示すブロック図である。
Next, the configuration and operation of the data processing unit 102b will be described with reference to FIGS. 17 is a block diagram showing the configuration of the data processing unit 102b in FIG. 16, and FIG. 18 is a block diagram showing the configuration of the color determination unit 111 in FIG. FIG. 19 is a block diagram showing the configuration of the pattern generator 114 and the address controller 115 in FIG.

【0010】図17において、図16中のデータ処理部
102bは、輝度信号生成部110、色判別部111、
セレクタ112、乗算器113、パターン発生部11
4、及びアドレス制御部115で構成されている。その
うちの色判別部111は、図18に示すように、max
/mid/min検出部120、減算器121,12
2、色相検出部123、ウインドコンパレータ124,
125、及びANDゲート126を備えており、さら
に、図19に示すように、図17中のパターン発生部1
14はROM130で構成され、アドレス制御部115
が主走査カウンタ131、副走査カウンタ133及びN
ORゲート132,134で構成されている。次に、以
上のように構成されるデジタル複写機の動作を説明す
る。
In FIG. 17, a data processing unit 102b in FIG. 16 includes a luminance signal generation unit 110, a color determination unit 111,
Selector 112, multiplier 113, pattern generator 11
4 and an address control unit 115. As shown in FIG. 18, the color determination unit 111
/ Mid / min detector 120, subtractors 121 and 12
2, hue detection unit 123, window comparator 124,
125, and an AND gate 126. Further, as shown in FIG. 19, the pattern generator 1 shown in FIG.
Reference numeral 14 denotes a ROM 130, and an address control unit 115
Are the main scanning counter 131, the sub-scanning counter 133 and N
It is composed of OR gates 132 and 134. Next, the operation of the digital copying machine configured as described above will be described.

【0011】輝度信号生成部110は、入力されるR,
G,Bの各データに対する平均値を加算器及び乗算器を
用いて算出して輝度信号S110を生成しており、この
輝度信号S110がセレクタ112の入力側Aへ供給さ
れる。色判別部111は、画像処理を行うための原稿上
の色成分を検出するものであり、以下、その色検出処理
の概略を図18を用いて説明する。
[0011] The luminance signal generator 110 receives the input R,
An average value for each of the G and B data is calculated using an adder and a multiplier to generate a luminance signal S110. The luminance signal S110 is supplied to the input side A of the selector 112. The color determination unit 111 detects a color component on a document for performing image processing. Hereinafter, an outline of the color detection processing will be described with reference to FIG.

【0012】入力されるR、G、Bの各データは各8ビ
ットのデータであり、計224色の情報を有し、まず、そ
の大小判別を行うmax/mid/min検出部120
に入力される。これは、各入力データをコンパレータを
用いて比較することにより、max値(最大値)、mi
d値(中間値)、min値(最小値)を求め、各値を出
力する。また、コンパレータの各出力値を順位信号とし
て同時に出力している。
The input R, G, and B data are each 8-bit data, have information of a total of 224 colors, and first, a max / mid / min detection unit 120 for determining the magnitude thereof.
Is input to This is because, by comparing each input data with a comparator, the max value (maximum value), mi
The d value (intermediate value) and the min value (minimum value) are obtained, and each value is output. Further, each output value of the comparator is simultaneously output as a rank signal.

【0013】色空間は、マンセルの立体等で知られてい
るように、彩度、明度、色相の三次元で表されることが
知られている。この三次元の色空間で表現されるR,
G,Bの各データを平面、すなわち二次元の色空間に変
換する。この変換処理において、max/mid/mi
n検出部120より出力されたmax値及びmid値か
ら無彩色成分を減ずるため、max値及びmid値から
min値を減算器121,122により減算し、順位信
号と共に色相検出部123へ供給する。変換された平面
は、図20に示すように0°〜360°までを6つに分
け、入力されるR,G,Bの大きさの順番、すなわち、
R>G>B、R>B>G、G>B>R、G>R>B、B
>G>R、B>R>Gの各情報となる。
It is known that a color space is represented by three dimensions of saturation, lightness, and hue, as is known in a Munsell solid or the like. R expressed in this three-dimensional color space,
Each data of G and B is converted into a plane, that is, a two-dimensional color space. In this conversion processing, max / mid / mi
In order to reduce the achromatic component from the max value and the mid value output from the n detecting unit 120, the min value is subtracted from the max value and the mid value by the subtractors 121 and 122, and is supplied to the hue detecting unit 123 together with the rank signal. The converted plane is divided into six from 0 ° to 360 ° as shown in FIG. 20, and the order of the sizes of the input R, G, and B, that is,
R>G> B, R>B> G, G>B> R, G>R> B, B
>G> R and B>R> G.

【0014】色相検出部123には、予め、図20で示
す平面の角度に対応する値が記憶されており、入力され
る順位信号、(max−min)値、及び(mid−m
in)値により、対応する色相値が出力される。
The hue detection unit 123 stores in advance values corresponding to the angle of the plane shown in FIG. 20, and receives the input order signal, (max-min) value, and (mid-m).
The corresponding hue value is output according to the in) value.

【0015】このようにして出力された色相値は、次に
ウインドウコンパレータ124,125に入力される。
このコンパレータ124,125の基準比較値の設定は
CPU104aにより行われる。この基準値は、図示し
ないデータ入力手段等により、本来合った色相値をCP
U104aによって所望のオフセットを持たせた後、コ
ンパレータ124,125にセットされる。コンパレー
タ124は、設定基準値がa1とすると、入力される色
相値に対し、(入力色相値)>(a1)の時に“1”を
出力する。同様に、コンパレータ125は、設定基準値
がa2とすると、入力される色相値に対し、(入力色相
値)<(a2)の時に“1”が出力されるように構成さ
れている。したがって、後段のANDゲート126よ
り、(a1)<(入力色相値)<(a2)の時、セレク
タ112の入力側Sへ“1”が出力される。
The hue values output in this manner are then input to window comparators 124 and 125.
The setting of the reference comparison values of the comparators 124 and 125 is performed by the CPU 104a. This reference value is obtained by converting the originally matching hue value into a CP value using data input means (not shown).
After a desired offset is given by U104a, it is set to comparators 124 and 125. Assuming that the setting reference value is a1, the comparator 124 outputs “1” for the input hue value when (input hue value)> (a1). Similarly, when the setting reference value is a2, the comparator 125 is configured to output “1” when (input hue value) <(a2) with respect to the input hue value. Therefore, when (a1) <(input hue value) <(a2), “1” is output from the subsequent AND gate 126 to the input side S of the selector 112.

【0016】一方、図17におけるパターン発生部11
4は、図21(a),(b)に示すように、上位アドレ
スと下位アドレスから成るアドレスにパターン用ドット
データが予め記憶されたROM130で構成されている
(図19参照)。そして、アドレス制御部115はRO
M130の読みだしアドレスを生成する。
On the other hand, the pattern generator 11 shown in FIG.
4 includes a ROM 130 in which pattern dot data is stored in advance at an address including an upper address and a lower address, as shown in FIGS. 21A and 21B (see FIG. 19). Then, the address control unit 115
A read address of M130 is generated.

【0017】図19において、アドレス制御部115の
主走査カウンタ131は、図22に示すように、水平同
期信号HSYNCに同期して画素クロック信号VCLK
をカウントし、ROM130の上位アドレスを出力す
る。副主査カウンタ133は、図16に示す画像読取り
部101が原稿100を読み取っている場合に“L”レ
ベルになる信号ITPOに同期して水平同期信号HSY
NCをカウントとし、ROM130の下位アドレスを出
力する。
Referring to FIG. 19, the main scanning counter 131 of the address control section 115 synchronizes with the horizontal synchronizing signal HSYNC as shown in FIG.
And outputs the upper address of the ROM 130. The sub-inspector counter 133 outputs a horizontal synchronizing signal HSY in synchronization with a signal ITPO that becomes “L” level when the image reading unit 101 shown in FIG.
Using NC as the count, the lower address of ROM 130 is output.

【0018】こうして上位アドレス及び下位アドレスで
指定されROM130から読み出されたドットデータ
は、色判別部111から出力されるmin値(最も暗い
信号)と乗算器113で乗算され、その乗算結果がセレ
クタ112の入力側Bへ出力される。
The dot data designated by the upper address and the lower address and read from the ROM 130 is multiplied by the min value (darkest signal) output from the color discriminator 111 by the multiplier 113, and the multiplication result is selected by the selector. It is output to the input side B of 112.

【0019】従って、セレクタ112により、基準値a
2<入力色相値<基準値a1の場合に輝度信号S110
が選択され、他の場合に乗算器113の出力信号が選択
され、図16に示すプリンタ103の駆動回路へ出力さ
れる。
Therefore, the selector 112 sets the reference value a
When 2 <input hue value <reference value a1, luminance signal S110
Is selected. In other cases, the output signal of the multiplier 113 is selected and output to the drive circuit of the printer 103 shown in FIG.

【0020】このようにして、複数色からなる原稿であ
っても、色の部分をパターンに変換することにより、単
一の現像機で複写して色を識別することが可能となる。
In this way, even if the original is composed of a plurality of colors, it is possible to identify the colors by copying with a single developing machine by converting the color portions into patterns.

【0021】[0021]

【発明が解決しようとする課題】しかしながら、上記従
来例では、図21(a),(b)に示すように、ROM
130のドットパターンの大きさや周期が一定であるた
め、色分けされた折れ線グラフ等の細い線をパターン化
するような場合、パターンによる色の識別が困難とな
り、記録画像が極めて不鮮明となるという問題があっ
た。
However, in the above conventional example, as shown in FIGS.
Since the size and cycle of the dot pattern of 130 are constant, when thin lines such as a color-coded line graph are patterned, it is difficult to identify colors by the pattern, and the recorded image becomes extremely unclear. there were.

【0022】本発明は上記従来の問題点に鑑み、色分け
された折れ線グラフ等の細い線でも、パターンによる色
の識別が容易にでき、鮮明な記録画像が得られる優れた
画像処理装置を提供することを目的とする。
The present invention has been made in view of the above-mentioned conventional problems, and provides an excellent image processing apparatus capable of easily distinguishing a color by a pattern even with a thin line such as a color-coded line graph and obtaining a clear recorded image. The purpose is to:

【0023】[0023]

【課題を解決するための手段】上記目的を達成するため
に、本発明の画像処理装置は以下の構成を備える。
In order to achieve the above object, an image processing apparatus according to the present invention has the following arrangement.

【0024】第1の発明では、入力画像の色を判別する
色判別手段と、上記色の領域幅を判定する線幅検出手段
と、上記色判別手段による判別結果に応じて色毎に決め
られた固定濃度の第1の信号を発生する第1信号発生手
段と、上記色判別手段による判別結果に応じて色毎に決
められたパターン画像を表わす第2の信号を発生する第
2信号発生手段と、上記線幅検出手段による検出結果に
応じて上記第1の信号と上記第2の信号とを濃度比率を
変えて合成する合成手段とを有し上記合成手段は、上
記線幅検出手段により検出された幅が細いほど、上記第
1の信号の濃度比率を高く、上記第2の信号の濃度比率
を低くして合成し、検出された幅が太いほど、上記第1
の信号の濃度比率を低く、上記第2の信号の濃度比率を
高くして合成することを特徴とする。
In the first invention, a color discriminating means for discriminating a color of an input image, a line width detecting means for discriminating the area width of the color, and a color discriminating means for each color according to the discrimination result by the color discriminating means.
A first signal generating means for generating a first signal of a fixed density, and a determination for each color according to a result of the determination by the color determining means.
A second signal generating means for generating a second signal representing the obtained pattern image, and a density ratio between the first signal and the second signal according to a detection result by the line width detecting means.
And a combining means for combining changed, the synthesizing means, on
The smaller the width detected by the line width detecting means,
The density ratio of the first signal is high, and the density ratio of the second signal is high.
Lower, and the larger the detected width, the larger the first
And the density ratio of the second signal is reduced.
It is characterized in that it is raised and combined .

【0025】[0025]

【0026】第2の発明は、入力画像の色を判別する色
判別手段と、上記色の領域における輪郭からの位置を判
別する位置検出手段と、上記色判別手段による判別結果
に応じて色毎に決められた固定濃度の第1の信号を発生
する第1信号発生手段と、上記色判別手段による判別結
果に応じて色毎に決められたパターン画像を表わす第2
の信号を発生する第2信号発生手段と、上記輪郭からの
位置検出手段による検出結果に応じて上記第1の信号と
上記第2の信号とを濃度比率を変えて合成する合成手段
と有し、上記合成手段は、上記位置検出手段により検出
された輪郭からの位置が近いほど、上記第1の信号の濃
度比率を高く、上記第2の信号の濃度比率を低くして合
成し、検出された輪郭からの位置が遠いほど、上記第1
の信号の濃度比率を低く、上記第2の信号の濃度比率を
高くして合成することを特徴とする。第3の発明は、入
力したカラー画像中の色領域を検出し、その色領域を色
に対応したパターン画像に変換する変換手段と、入力し
たカラー画像中の色の輪郭を検出し、その輪郭部分に縁
取り画像を発生する発生手段と、前記変換手段からのパ
ターン画像と前記発生手段からの縁取り画像を色の輪郭
からの距離に応じた比率で合成する合成手段とを有す
る。また、上記第3の発明において、前記合成手段は、
輪郭に近いほど縁取り画像の濃度が濃くなり、輪郭から
遠いほど縁取り画像の濃度が薄くなるように合成を行う
ことが望ましい。さらに加えて、輪郭に近いほどパター
ン画像の濃度が薄くなり、輪郭から遠いほどパターン画
像の濃度が濃くなるように合成を行うことが望ましい。
[0026] The second invention is a color discriminating means for discriminating the color of the input image, a position detecting means for determining the position of the contour in the region of the color, in accordance with the discrimination result by the color determination means for each color A first signal generating means for generating a first signal of a fixed density determined in accordance with the first and second colors, and a second signal representing a pattern image determined for each color in accordance with a result of the determination by the color determining means.
A second signal generating means for generating a signal from the first signal and a first signal from the first signal in accordance with a detection result by the position detecting means from the contour.
Combining means for combining the said second signal by changing the concentration ratio
And the combining means detects the position by the position detecting means.
The closer the position from the contour is, the darker the first signal is.
A high density ratio and a low density ratio of the second signal.
And the farther the position from the detected contour is, the more the first
And the density ratio of the second signal is reduced.
It is characterized in that it is raised and combined . According to a third aspect of the present invention, there is provided a conversion means for detecting a color area in an input color image and converting the color area into a pattern image corresponding to a color, detecting a color outline in the input color image, and detecting the outline. Generating means for generating a border image at a portion; and combining means for combining the pattern image from the converting means and the border image from the generating means at a ratio according to a distance from a color contour. Further, in the third invention, the synthesizing unit includes:
It is desirable that the composition be performed such that the density of the border image becomes higher as it is closer to the contour, and the density of the border image becomes lower as it is farther from the contour. In addition, it is desirable to perform synthesis such that the density of the pattern image decreases as the distance from the contour decreases, and the density of the pattern image increases as the distance from the contour increases.

【0027】[0027]

【作用】第1の発明では、合成手段は、線幅検出手段に
より検出された幅が細いほど、色毎に決められた固定濃
度である第1の信号の濃度比率を高く、色毎に決められ
たパターン画像を表わす第2の信号の濃度比率を低くし
て合成し、検出された幅が太いほど、第1の信号の濃度
比率を低く、第2の信号の濃度比率を高くして合成す
る。これにより、線幅が細い場合には色毎に設定された
固定濃度で出力し、線幅が太くなるほど固定濃度の比率
を小さくしてパターンの濃度比率を大きくでき、細線は
固定濃度の比率が高く出力される。
In the first invention, the synthesizing means includes a line width detecting means.
The narrower the detected width, the smaller the fixed darkness determined for each color.
The density ratio of the first signal is high, and is determined for each color.
The density ratio of the second signal representing the pattern image
The larger the detected width, the greater the density of the first signal
Lowering the ratio and increasing the density ratio of the second signal
You. In this way, when the line width is thin, the output is performed at a fixed density set for each color, and as the line width increases, the ratio of the fixed density can be reduced to increase the pattern density ratio. Outputs high.

【0028】第2の発明では、合成手段は、位置検出手
段により検出された輪郭からの位置が近いほど、色毎に
決められた固定濃度である第1の信号の濃度比率を高
く、色毎に決められたパターン画像を表わす第2の信号
の濃度比率を低くして合成し、検出された輪郭からの位
置が遠いほど、第1の信号の濃度比率を低く、第2の信
号の濃度比率を高くして合成する。これにより、輪郭に
近いほど固定濃度比率を高くし、輪郭部分から内側に入
るほどパターンの濃度比率を大きくでき、細線は固定濃
度の比率が高く出力される。第3の発明では、合成手段
は、変換手段からのパターン画像と発生手段からの縁取
り画像とを色の輪郭からの距離に応じた比率で合成す
る。これにより、変換したパターン画像に縁取りを付け
ることができると共に、色領域の大きさがパターン画像
を出力するのに十分でないときには、少なくとも輪郭は
識別可能な状態で出力される。
In the second invention, the synthesizing means includes a position detecting means.
The closer to the position from the contour detected by the step, the more
Increase the density ratio of the first signal, which is the fixed density
And a second signal representing a pattern image determined for each color.
And lower the density ratio of
The farther the distance, the lower the density ratio of the first signal and the second signal.
Combine with a high concentration ratio of the signal. As a result, the fixed density ratio can be increased closer to the contour, and the density ratio of the pattern can be increased as the pattern goes inward from the contour portion. The thin line is output with a higher fixed density ratio. In the third aspect, the synthesizing unit synthesizes the pattern image from the converting unit and the border image from the generating unit at a ratio according to the distance from the color outline. Thereby, the converted pattern image can be bordered, and when the size of the color region is not enough to output the pattern image, at least the outline is output in an identifiable state.

【0029】[0029]

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

【0030】図1は、本発明に係る画像処理装置の第1
の実施例を示すデジタル複写機の要部構成ブロック図で
あり、図16と共通の要素には同一の符号が付されてい
る。
FIG. 1 shows a first embodiment of the image processing apparatus according to the present invention.
FIG. 17 is a block diagram of a main part of a digital copying machine showing an embodiment of the present invention, in which elements common to FIG. 16 are denoted by the same reference numerals.

【0031】このデジタル複写機が図16に示す従来装
置と異なる点は、従来のデータ処理部102bと機能の
異なるデータ処理部を設けた点である。
This digital copying machine differs from the conventional apparatus shown in FIG. 16 in that a data processing unit having a function different from that of the conventional data processing unit 102b is provided.

【0032】このデータ処理部は、図1に示すように、
図17のデータ処理部102bと同一構成の輝度信号生
成部110、セレクタ112、乗算器113、パターン
発生回路114、及びアドレス制御回路115を備える
他、従来の色判別部111と機能の異なる色判別部20
1を有している。さらに、色判別部201の出力側に
は、細線検出部203を介して、固定濃度選択部204
及びパターン濃度選択部205が接続され、固定濃度選
択部204及びパターン濃度選択部205の出力側が加
算器(信号合成手段)206に接続されている。そし
て、輝度信号生成部110から出力される輝度信号S1
10が色判別部201へ供給されるようになっている。
This data processing unit, as shown in FIG.
It includes a luminance signal generation unit 110, a selector 112, a multiplier 113, a pattern generation circuit 114, and an address control circuit 115 having the same configuration as the data processing unit 102b in FIG. Part 20
One. Further, on the output side of the color discriminating unit 201, via the fine line detecting unit 203, a fixed density selecting unit 204
And a pattern density selection unit 205, and the output sides of the fixed density selection unit 204 and the pattern density selection unit 205 are connected to an adder (signal combining unit) 206. Then, the luminance signal S1 output from the luminance signal generation unit 110
10 is supplied to the color determination unit 201.

【0033】また、パターン発生回路114の出力と色
判別部201の出力がセレクタ207,209に接続さ
れており、セレクタ207の出力側が乗算器113に接
続されている。そして、輝度信号生成部110、セレク
タ112、乗算器113、パターン発生回路114、ア
ドレス制御回路115及びセレクタ207で図形パター
ン出力部を構成している。そのうえ、固定濃度選択部2
04の入力側には、セレクタ209及びレジスタ208
を介してCPU104aが接続され、パターン濃度選択
部205の入力側にはセレクタ112が接続されてい
る。そして、前記色判別部201の構成が図2に示され
ている。
The output of the pattern generation circuit 114 and the output of the color discrimination section 201 are connected to selectors 207 and 209, and the output side of the selector 207 is connected to the multiplier 113. The luminance signal generation unit 110, the selector 112, the multiplier 113, the pattern generation circuit 114, the address control circuit 115, and the selector 207 constitute a graphic pattern output unit. In addition, fixed concentration selection unit 2
04, the selector 209 and the register 208
And a selector 112 is connected to an input side of the pattern density selection unit 205. FIG. 2 shows the configuration of the color determining unit 201.

【0034】図2において、色判別部201は、図18
に示す従来装置と同一構成であるmax/mid/mi
n検出部120、減算器121,122、色相検出部1
23、を備える他、コンパレータ210,211、レジ
スタ212,213、ANDゲート214,215、A
NDゲート216、色判定回路217及びインバータ2
16を有している。そして、図1に示す輝度信号生成部
110の出力である輝度信号S110がコンパレータ2
11へ供給されるようになっている。
In FIG. 2, the color discriminating unit 201 is provided with
Max / mid / mi having the same configuration as the conventional device shown in FIG.
n detector 120, subtracters 121 and 122, hue detector 1
23, comparators 210 and 211, registers 212 and 213, AND gates 214 and 215, A
ND gate 216, color determination circuit 217, and inverter 2
16. The luminance signal S110 output from the luminance signal generation unit 110 shown in FIG.
11.

【0035】一方、図1に示す細線検出部203は、図
6に示すように構成されている。
On the other hand, the fine line detector 203 shown in FIG. 1 is configured as shown in FIG.

【0036】すなわち、図2に示すANDゲート215
及びインバータ216の出力を取り込み、3×3細らせ
回路220、5×5細らせ回路221、7×7細らせ回
路222、9×9細らせ回路223、3×3太らせ回路
224、5×5太らせ回路225、7×7太らせ回路2
26、9×9太らせ回路223、排他的論理和回路(以
下、XORゲートという)228〜230、及びAND
ゲート231〜234で構成されている。そのうちの各
細らせ回路220〜223は、図7に示すように、図2
のANDゲート215の出力である白色信号S215を
取り込み、FIFOメモリ240〜243、XANDゲ
ート244〜247、ANDゲート248、フリップフ
ロップ249〜256、XORゲート257〜260、
及びANDゲート261〜263を備えている。また、
各太らせ回路224〜227は、図8に示すように、F
IFOメモリ270〜273、ORゲート274、フリ
ップフロップ275〜278、及びNORゲート279
で構成されている。
That is, the AND gate 215 shown in FIG.
And an output of the inverter 216, a 3 × 3 narrowing circuit 220, a 5 × 5 narrowing circuit 221, a 7 × 7 narrowing circuit 222, a 9 × 9 narrowing circuit 223, and a 3 × 3 thickening circuit. 224, 5 × 5 fattening circuit 225, 7 × 7 fattening circuit 2
26, 9 × 9 fattening circuit 223, exclusive OR circuit (hereinafter referred to as XOR gate) 228 to 230, and AND
It is composed of gates 231 to 234. As shown in FIG. 7, each of the narrowing circuits 220 to 223 is configured as shown in FIG.
, The white signal S215, which is the output of the AND gate 215, is taken in, and FIFO memories 240 to 243, XAND gates 244 to 247, AND gate 248, flip-flops 249 to 256, XOR gates 257 to 260,
And AND gates 261-263. Also,
As shown in FIG. 8, each of the fattening circuits 224 to 227
IFO memories 270-273, OR gate 274, flip-flops 275-278, and NOR gate 279
It is composed of

【0037】さらに、図9には、図1中の固定濃度選択
部204及びパターン濃度選択部205の構成が示され
ている。
FIG. 9 shows the configuration of the fixed density selection unit 204 and the pattern density selection unit 205 in FIG.

【0038】図9において、固定濃度選択部204は、
図1のセレクタ209の出力である固定濃度信号S20
8及び細線検出部203の出力である係数選択信号S2
03を取り込み、係数レジスタ280、セレクタ28
1、及び乗算器282で構成され、パターン濃度選択部
205は、セレクタ112の出力である図形パターン信
号S112及び前記係数選択信号S203を取り込み、
係数レジスタ290、セレクタ291及び乗算器292
で構成されている。
In FIG. 9, the fixed density selecting section 204
The fixed density signal S20 output from the selector 209 in FIG.
8 and a coefficient selection signal S2 output from the thin line detection unit 203.
03, the coefficient register 280, the selector 28
1 and a multiplier 282, and the pattern density selection unit 205 captures the graphic pattern signal S112 and the coefficient selection signal S203 output from the selector 112,
Coefficient register 290, selector 291 and multiplier 292
It is composed of

【0039】次に、以上のように構成される画像処理装
置の動作、特にデータ処理部の動作を説明する。
Next, the operation of the image processing apparatus configured as described above, particularly, the operation of the data processing unit will be described.

【0040】図16に示すシェーディング補正回路10
2aの出力である白補正、黒補正されたR,G,Bの各
8ビットデータは、輝度信号生成回路110及び色判別
部201に供給される。輝度信号生成部110では、従
来と同様に、カラーCCDイメージセンサ101bで読
み取られ色分解された画像イメージから、色分解されて
いない全波長領域に亘るイメージ、すなわち、白黒のイ
メージである輝度信号S110を作り出している。これ
は、本実施例のプリンタ103が単色の印刷しか行わな
いためである。
The shading correction circuit 10 shown in FIG.
The 8-bit data of R, G, and B that have been subjected to white correction and black correction, which are outputs of 2a, are supplied to the luminance signal generation circuit 110 and the color determination unit 201. In the luminance signal generation unit 110, as in the related art, a luminance signal S110, which is an image over the entire wavelength region not subjected to color separation, that is, a black-and-white image, is converted from an image read and color-separated by the color CCD image sensor 101b. Has been created. This is because the printer 103 of this embodiment performs only monochrome printing.

【0041】また、色判別部201は、本実施例におけ
る画像処理を行うために原稿上の所定の色成分(有彩色
/無彩色、白/それ以外の色)を判別する。この色判定
部201は色検出処理に色相信号を用いる。これは、同
一色における鮮やかさ及び明るさが異なる場合でも、正
確な判定を行えるようにするためである(正確には、通
常表される色相とは異なるが、以下の説明では色相とし
て説明する)。なお、入力データのR,G,Bの(ma
x−nin)値が小さくなるほど彩度が低く、輝度信号
S110((R,G,B)/3)が大きくなるほど明度
が高くなることを利用して、有彩色/無彩色、及び白を
検出する。
The color discriminating unit 201 discriminates predetermined color components (chromatic / achromatic, white / other colors) on the document for performing the image processing in this embodiment. The color determination unit 201 uses a hue signal for color detection processing. This is to make it possible to make an accurate determination even when the vividness and brightness of the same color are different (exactly, the hue is different from the normally expressed hue, but will be described as the hue in the following description). ). In addition, (ma) of R, G, B of input data
Chromatic / achromatic and white are detected using the fact that the smaller the value of (x-nin), the lower the saturation, and the larger the luminance signal S110 ((R, G, B) / 3), the higher the brightness. I do.

【0042】本実施例の色判別部201における色検出
処理は、次のように行われる。
The color detecting process in the color discriminating unit 201 of this embodiment is performed as follows.

【0043】シェーディング補正回路102aより入力
されるR、G、Bの各データは、各8ビットのデータで
あり、計224色の情報を有している。このため、その規
模からも高価なものとなってしまうので、本実施例で
は、この点を考慮して前記の色相を用いて以下の色相処
理を行う。
Each of the R, G, and B data input from the shading correction circuit 102a is 8-bit data and has information of a total of 224 colors. For this reason, the scale is expensive because of its scale. In this embodiment, the following hue processing is performed using the above-mentioned hue in consideration of this point.

【0044】入力されるR,G,Bの各データは、従来
と同様に、max/mid/min検出部120に入力
され、max値、mid値、min値の各値、及び順位
信号を出力する。さらに、R,G,Bの各データを2次
元データに変換する際、本実施例ではR,G,Bの共通
部、すなわちR,G,Bの最小値であるmin(R,
G,B)が無彩色成分であることを利用して、min
(R,G,B)を各R,G,Bデータより減算し、残っ
た情報を有彩色成分として用いることとしている。これ
により、簡単な構成で二次元の色空間に変換することを
達成している。
The input data of R, G, and B are input to the max / mid / min detecting section 120, and the max, mid, and min values and the rank signal are output, as in the conventional case. I do. Further, when each data of R, G, B is converted into two-dimensional data, in this embodiment, a common part of R, G, B, that is, min (R,
G, B) is an achromatic component, and
(R, G, B) is subtracted from each of the R, G, B data, and the remaining information is used as a chromatic component. This achieves conversion to a two-dimensional color space with a simple configuration.

【0045】このような変換処理のため、本実施例は、
従来と同様に、max値及びmid値より最小値である
min値を減算し、色相検出部123に順位信号と共に
入力している。色相検出部123は、RAMあるいはR
OM等のランダムアクセスの可能な記憶素子で構成する
ことが望ましく、本実施例ではROMを用いたルックア
ップテーブルで構成している。
For such a conversion process, the present embodiment
As in the related art, the min value, which is the minimum value, is subtracted from the max value and the mid value, and input to the hue detection unit 123 together with the rank signal. The hue detection unit 123 is a RAM or R
It is preferable that the memory device is constituted by a random access memory element such as an OM. In this embodiment, the memory device is constituted by a lookup table using a ROM.

【0046】この色相検出部123には、予め、図20
で示す平面の角度に対応する値が記憶されており、入力
される順位信号と、(max−min)値及び(mid
−min)値とにより、対応する色相値が出力される。
これにより、入力されるR,G,Bの大きさの順番と、
入力されるR,G,B内の最大値、中間値に基づいて、
ルックアップテーブル等を用いるという簡単な構成で、
3次元の入力色空間を2次元の色空間に変換し、対応す
る色相を求めている。
The hue detection unit 123 is provided in advance in FIG.
A value corresponding to the angle of the plane indicated by is stored, and the input rank signal, the (max-min) value, and the (mid)
-Min), the corresponding hue value is output.
Thereby, the order of the sizes of the input R, G, and B,
Based on the maximum value and the intermediate value in R, G, and B that are input,
With a simple configuration using a lookup table, etc.,
The three-dimensional input color space is converted into a two-dimensional color space, and a corresponding hue is obtained.

【0047】このようにして出力された色相値は、色判
定回路217に入力される。図3に示すように、色判定
回路217は、n個のウインドウコンパレータから構成
され、ウインドウコンパレータが(an−1)<(入力
色相値)<(an)の時、ANDゲートn/2から
“1”が出力される。また、ANDゲート1〜n/2の
出力がORゲート(図3)に入力される。いずれかのA
NDゲートが“1”を出力すると該ORゲートも“1”
を出力する。
The hue value output in this manner is input to the color determination circuit 217. As shown in FIG. 3, the color determination circuit 217 is composed of n window comparators. When the window comparator satisfies (an−1) <(input hue value) <(an), the AND gate n / 2 outputs “n”. 1 "is output. The outputs of the AND gates 1 to n / 2 are input to the OR gate (FIG. 3). Any A
When the ND gate outputs "1", the OR gate also outputs "1".
Is output.

【0048】減算器121からの(max−min)値
は、図2のコンパレータ210に入力される。このコン
パレータ210で、CPU104aによりレジスタ21
2に設定された基準値b1と比較される。コンパレータ
210は、((max−min)値)<(b1)の時に
“1”を出力する。すなわち、無彩色を検出したときに
“1”を出力する。従って、ANDゲート214は有彩
色で特定の検出色の時“1”のセレクト信号S214を
図1のセレクタ112へ出力し、インバータ216は有
彩色のとき図1の細線検出部203へ“1”の有彩色信
号S216を出力する。また、色判定回路217からの
色判定信号S214がANDゲート214で有彩色であ
ると判定されると、色判定信号S214は図1のセレク
タ207,209に出力される。色判定信号S214が
セレクタ207に入力されると、パターン発生回路11
4で発生したパターンを選択する。図4はセレクタ20
7,パターン発生回路114、アドレス制御回路115
の詳細を示す図である。
The (max-min) value from the subtractor 121 is input to the comparator 210 shown in FIG. In the comparator 210, the register 104 is used by the CPU 104a.
This is compared with the reference value b1 set to 2. The comparator 210 outputs “1” when ((max−min) value) <(b1). That is, when an achromatic color is detected, "1" is output. Therefore, the AND gate 214 outputs the select signal S214 of "1" to the selector 112 of FIG. 1 when the chromatic color is a specific detection color, and the inverter 216 outputs "1" to the thin line detecting unit 203 of FIG. 1 when the chromatic color is detected. Is output. When the color determination signal S214 from the color determination circuit 217 is determined to be chromatic by the AND gate 214, the color determination signal S214 is output to the selectors 207 and 209 in FIG. When the color determination signal S214 is input to the selector 207, the pattern generation circuit 11
The pattern generated in step 4 is selected. FIG.
7, pattern generation circuit 114, address control circuit 115
It is a figure which shows the detail of.

【0049】パターン発生回路114で発生したそれぞ
れ異なるパターンはANDゲートで信号S214により
選択され、ORゲートを介して出力される。一方、色判
定信号S214は、セレクタ209に入力される。セレ
クタ209及びレジスタ208、CPU104aの詳細
な構成を図5に示す。CPU104aにより予めレジス
タにはそれぞれ異なる値が設定されており、信号S21
4によりANDゲートで選択され、ORゲートを介して
出力される。
The different patterns generated by the pattern generation circuit 114 are selected by the signal S214 by the AND gate and output through the OR gate. On the other hand, the color determination signal S214 is input to the selector 209. FIG. 5 shows a detailed configuration of the selector 209, the register 208, and the CPU 104a. Different values are set in the registers in advance by the CPU 104a, and the signal S21
4 is selected by an AND gate and output via an OR gate.

【0050】一方、コンパレータ211は、輝度信号生
成部110からの輝度信号S110(=(R,G,B)
/3)を取り込んで、レジスタ213に設定された基準
値b2と比較し、輝度信号S110>b2の時に“1”
を出力する。その結果、後段のANDゲート215は、
無彩色で明度が設定レベルより高い時、すなわち白であ
ると判断された時、細線検出部203へ“1”の白色信
号S215を出力する。
On the other hand, the comparator 211 outputs the luminance signal S 110 (= (R, G, B)) from the luminance signal generation section 110.
/ 3) is taken and compared with the reference value b2 set in the register 213. When the luminance signal S110> b2, "1" is obtained.
Is output. As a result, the subsequent AND gate 215
When the lightness of the achromatic color is higher than the set level, that is, when it is determined that the color is white, a white signal S215 of “1” is output to the fine line detection unit 203.

【0051】続いて、細線検出部203の細線検出処理
を説明する。
Next, the thin line detecting process of the thin line detecting section 203 will be described.

【0052】細線検出部203は、色判別部201から
の白色信号S215と有彩色信号S216とを入力し、
注目画素を中心にマスクサイズの異なる細らせ回路22
0〜223及び太らせ回路224〜227により細線の
幅を検出する。ここでは、5×5の細らせ回路221及
び太らせ回路225を取り上げて説明する。
The thin line detecting section 203 receives the white signal S215 and the chromatic signal S216 from the color determining section 201,
Thinning circuit 22 with a different mask size around the pixel of interest
The width of the thin line is detected by 0 to 223 and the thickening circuits 224 to 227. Here, a 5 × 5 thinning circuit 221 and a thickening circuit 225 will be described.

【0053】5×5の細らせ回路221は、5×5のマ
スク内の画素が全て同一であるかを判断している。入力
される白色信号S215(画素が白の場合“1”あるい
は白以外の場合“0”)は、図7のFIFOメモリ24
0〜243により副走査方向に1ライン〜4ライン分、
遅延され、XANDゲート244〜247を介してAN
Dゲート248に入力される。ANDゲート248の出
力信号は、フリップフロップ249〜252により主走
査方向に画素ごとに遅延されてANDゲート261に供
給される。また、FIFOメモリ240,241により
副走査方向に2ライン分、遅延された信号は、フリップ
フロップ253〜256により、さらに主査方向に画素
ごとに遅延され、XORゲート257〜260を介して
ANDゲート262に入力される。
The 5 × 5 thinning circuit 221 determines whether all the pixels in the 5 × 5 mask are the same. The input white signal S215 (“1” when the pixel is white or “0” when the pixel is not white) is input to the FIFO memory 24 of FIG.
0 to 243, 1 to 4 lines in the sub-scanning direction,
Is delayed and transmitted through XAND gates 244 to 247.
It is input to the D gate 248. The output signal of the AND gate 248 is supplied to the AND gate 261 after being delayed for each pixel in the main scanning direction by the flip-flops 249 to 252. The signals delayed by two lines in the sub-scanning direction by the FIFO memories 240 and 241 are further delayed for each pixel in the main scanning direction by flip-flops 253 to 256, and the AND gate 262 is transmitted through the XOR gates 257 to 260. Is input to

【0054】従って、ANDゲート263の出力信号
は、5×5のマスク内部の信号が全て同一であるときに
は“1”を出力し、5×5のマスク内に白と白以外の部
分の境があるときには“0”を出力する。
Therefore, the output signal of the AND gate 263 outputs "1" when all the signals in the 5 × 5 mask are the same, and the boundary between white and a portion other than white is output in the 5 × 5 mask. In some cases, "0" is output.

【0055】細らせ回路221におけるANDゲート2
63からの出力は、太らせ回路225のFIFOメモリ
270〜273により副走査方向に1ライン〜4ライン
分、遅延され、ORゲート274に入力される。ORゲ
ート274の出力は、フリップフロップ275〜278
により主走査方向に画素ごとに遅延され、NORゲート
279に入力される。すなわち、NORゲート279
は、5×5のマスク内に1つでも“1”が存在する時に
は“0”を出力する。ここで、NORゲート279から
の出力信号が“0”の場合、最初に入力された画素デー
タが5画素幅以上の領域であると判定される。また、N
ORゲート279からの出力が“1”のとき、画像デー
タの領域が5画素幅よりも小さい領域であると判定され
る。
AND gate 2 in narrowing circuit 221
The output from 63 is delayed by one to four lines in the sub-scanning direction by FIFO memories 270 to 273 of the fattening circuit 225 and input to the OR gate 274. The output of the OR gate 274 is connected to the flip-flops 275 to 278.
, And is input to the NOR gate 279 for each pixel in the main scanning direction. That is, the NOR gate 279
Outputs “0” when at least one “1” exists in the 5 × 5 mask. Here, when the output signal from the NOR gate 279 is “0”, it is determined that the first input pixel data is an area having a width of 5 pixels or more. Also, N
When the output from the OR gate 279 is “1”, it is determined that the area of the image data is an area smaller than the width of 5 pixels.

【0056】図6において、例えば3×3の太らせ回路
224が“1”を出力し、有彩色信号S216が“1”
のときANDゲート231は“1”を出力する。これに
より、入力画像の領域は有彩色で3画素幅よりも小さい
領域てあると判定される。また、3×3の太らせ回路2
24が“0”を出力し、5×5の太らせ回路225が
“1”を出力したとき、XORゲート228が“1”を
出力する。このとき、入力画素の領域は3画素幅以上で
5画素幅よりも小さい領域であると判定される。さら
に、XORゲート228が“1”を出力し有彩色信号S
216が“1”を出力しているときにANDゲート23
2は“1”を出力する。
In FIG. 6, for example, the 3 × 3 fattening circuit 224 outputs “1”, and the chromatic signal S 216 outputs “1”.
In this case, the AND gate 231 outputs “1”. Thus, it is determined that the area of the input image is a chromatic color area smaller than the width of three pixels. Also, a 3 × 3 fattening circuit 2
When 24 outputs “0” and the 5 × 5 fattening circuit 225 outputs “1”, the XOR gate 228 outputs “1”. At this time, it is determined that the area of the input pixel is an area having a width of 3 pixels or more and smaller than 5 pixels. Further, the XOR gate 228 outputs “1” and the chromatic signal S
216 outputs “1” and the AND gate 23
2 outputs "1".

【0057】同様にして、太らせ回路225〜227の
出力は、XORゲート229,230に供給される。さ
らに、ANDゲート233,234及び有彩色信号S2
16により入力画素の線幅が判定され、その判定結果を
図10に示す。
Similarly, the outputs of the fattening circuits 225 to 227 are supplied to XOR gates 229 and 230. Further, AND gates 233 and 234 and chromatic signal S2
16, the line width of the input pixel is determined, and the determination result is shown in FIG.

【0058】以上のように細線検出部203で細線検出
処理が行われ、その出力が係数選択信号S203として
図1に示すパターン濃度選択部205及び固定濃度選択
部204に供給される。一方、CPU104aによりレ
ジスタ208に設定された色ごとの例えば8ビットの固
定濃度の値は固定濃度選択部204に供給され、セレク
タ112の出力の図形パターン信号S203がパターン
濃度選択部205に供給される。
As described above, the fine line detection processing is performed by the fine line detection section 203, and the output is supplied to the pattern density selection section 205 and the fixed density selection section 204 shown in FIG. 1 as a coefficient selection signal S203. On the other hand, the fixed density value of, for example, 8 bits for each color set in the register 208 by the CPU 104a is supplied to the fixed density selection unit 204, and the graphic pattern signal S203 output from the selector 112 is supplied to the pattern density selection unit 205. .

【0059】パターン濃度選択部205及び固定濃度選
択部204における濃度選択処理は、次のようにして行
われる。
The density selection processing in the pattern density selection unit 205 and the fixed density selection unit 204 is performed as follows.

【0060】細線検出部203からの係数選択信号S2
03は、図9におけるセレクタ281,291に供給さ
れ、CPU104aより係数レジスタ280,290に
設定された値を選択する。その設定値が図11に示され
ている。セレクタ291の出力は乗算器292に供給さ
れ、図1のセレクタ112からの図形パターン信号S1
12と乗算される。同様にして、セレクタ281の出力
は乗算器282に供給され、図1に示すセレクタ209
の出力の固定濃度信号S208と乗算される。さらに、
乗算器282,292の出力は、加算器206において
加算され、プリンタ103側へ出力される。
The coefficient selection signal S2 from the fine line detection unit 203
03 is supplied to the selectors 281 and 291 in FIG. 9 and selects the value set in the coefficient registers 280 and 290 by the CPU 104a. The set values are shown in FIG. The output of the selector 291 is supplied to the multiplier 292, and the graphic pattern signal S1 from the selector 112 of FIG.
Multiplied by 12. Similarly, the output of the selector 281 is supplied to the multiplier 282, and the selector 209 shown in FIG.
Is multiplied by the fixed density signal S208 of the output. further,
The outputs of the multipliers 282 and 292 are added in the adder 206 and output to the printer 103.

【0061】このように、本実施例では、色領域の線幅
に応じて、線幅が細い場合には色ごとに設定された固定
濃度で出力し、線幅が太くなるほど固定濃度の比率を小
さくしてパターンの濃度比率を大きくしていくので、細
線は色ごとに設定された固定濃度の比率が高く出力され
るので容易に識別ができる。
As described above, in this embodiment, when the line width is small, the output is performed at a fixed density set for each color according to the line width of the color area, and the ratio of the fixed density increases as the line width increases. Since the density ratio is reduced and the density ratio of the pattern is increased, thin lines are output with a high fixed density ratio set for each color, so that they can be easily identified.

【0062】図12は、本発明に係る画像処理装置の第
2の実施例を示すデジタル複写機の要部構成ブロック図
であり、図1と共通の要素には同一の符号が付されてい
る。
FIG. 12 is a block diagram of a main part of a digital copying machine showing a second embodiment of the image processing apparatus according to the present invention. Elements common to FIG. 1 are denoted by the same reference numerals. .

【0063】本実施例が、上記第1の実施例と異なる点
は、細線検出部203に置き換えて輪郭抽出部(位置検
出手段)300を設けた点である。
This embodiment is different from the first embodiment in that a contour extracting unit (position detecting means) 300 is provided in place of the fine line detecting unit 203.

【0064】この輪郭抽出部300は、図13に示すよ
うに輪郭抽出回路310〜314、XORゲート315
〜318、及びANDゲート319〜322で構成さ
れ、入力される画素が色領域で輪郭から何画素目に当た
るかを検出している。5×5輪郭抽出回路312を取り
上げて説明する。
As shown in FIG. 13, the contour extracting unit 300 includes a contour extracting circuit 310-314, an XOR gate 315
318 and AND gates 319 to 322, and detects the number of input pixels from the contour in the color area. The 5 × 5 contour extraction circuit 312 will be described.

【0065】この5×5輪郭抽出回路312は、図6に
示す5×5細らせ回路221と同一構成であり、5×5
のマスク内の画素が全て同一であるかどうかを判定し、
マスク内の全ての画素信号が同一であるときに“0”を
出力する。従って、マスク内に輪郭を検出したときには
“1”を出力する。
The 5 × 5 contour extraction circuit 312 has the same configuration as the 5 × 5 thinning circuit 221 shown in FIG.
Judge whether all the pixels in the mask are the same,
When all pixel signals in the mask are the same, "0" is output. Therefore, when an outline is detected in the mask, "1" is output.

【0066】1×1輪郭抽出回路314は常に“0”を
出力するので、3×3輪郭抽出回路313が“1”を出
力するときにXORゲート318は“1”を出力する。
さらに、有彩色信号S216が“1”てあるときにAN
Dゲート322は“1”を出力する。このときに、入力
される画素は色領域で輪郭から1画素目であると判定さ
れる。 同様にして、3×3輪郭抽出回路313が
“0”を出力し、5×5輪郭抽出回路312が“1”を
出力するときXORゲート317は“1”を出力する。
さらに、有彩色信号が“1”を出力しているときに、A
NDゲート321は“1”はを出力する。このとき、入
力される画素は色領域で輪郭から2画素目であると判定
される。また、輪郭抽出回路310〜312の出力は、
XORゲート315〜317に入力される。次に、XO
Rゲート315〜316の出力及び有彩色信号はAND
ゲート319,320に入力される。ここに、判定結果
を図14に示す。
Since the 1 × 1 contour extraction circuit 314 always outputs “0”, the XOR gate 318 outputs “1” when the 3 × 3 contour extraction circuit 313 outputs “1”.
Further, when the chromatic signal S216 is "1",
D gate 322 outputs "1". At this time, the input pixel is determined to be the first pixel from the outline in the color area. Similarly, when the 3 × 3 contour extraction circuit 313 outputs “0” and the 5 × 5 contour extraction circuit 312 outputs “1”, the XOR gate 317 outputs “1”.
Further, when the chromatic signal is outputting “1”, A
The ND gate 321 outputs “1”. At this time, the input pixel is determined to be the second pixel from the outline in the color area. The outputs of the contour extraction circuits 310 to 312 are:
Input to XOR gates 315-317. Next, XO
The outputs of the R gates 315 to 316 and the chromatic signal are AND
Input to gates 319 and 320. Here, the determination result is shown in FIG.

【0067】これら出力信号は、パターン濃度選択部2
05及び固定濃度選択部204に入力される。図14に
示す判定結果に応じて、固定濃度とパターン濃度を混ぜ
合わせる比率を変化させており、混ぜ合わせる比率は、
輪郭に近いほど固定濃度の比率を高くし、図15のよう
にする。
These output signals are supplied to the pattern density selector 2.
05 and the fixed density selection unit 204. According to the determination result shown in FIG. 14, the ratio of mixing the fixed density and the pattern density is changed, and the mixing ratio is
The closer to the contour, the higher the fixed density ratio is, as shown in FIG.

【0068】このように、本実施例では、色領域の輪郭
位置に応じて、すなわち、輪郭部分は色ごとに設定され
た固定濃度で出力し、輪郭部分から内側に入るほど固定
濃度の比率を小さくして、パターンの濃度比率を大きく
していくので、細線は色ごとに設定された固定濃度の比
率が高く出力されるので容易に識別ができる。
As described above, according to the present embodiment, the contour portion is output at a fixed density set for each color in accordance with the contour position of the color region, and the ratio of the fixed density increases as the contour portion moves inward from the contour portion. Since the density is reduced and the density ratio of the pattern is increased, the thin line is output at a high fixed density ratio set for each color, so that it can be easily identified.

【0069】[0069]

【発明の効果】以上に説明したように、第1の発明によ
れば、例えば線幅が細い場合には色ごとに設定された固
定濃度で出力し、線幅が太くなるほど固定濃度の比率を
小さくしてパターンの濃度比率を大きくでき、細線は固
定濃度の比率が高く出力される。これにより、色分けさ
れた折れ線グラフ等の細い線でも、パターンによる色の
識別が容易にでき、鮮明な記録画像が得られる。
As described above, according to the first aspect, for example, when the line width is small, the output is performed at a fixed density set for each color, and the ratio of the fixed density increases as the line width increases. The density ratio of the pattern can be increased by making it smaller, and the thin line is output with a higher fixed density ratio. As a result, even a thin line such as a line graph that is color-coded can easily identify a color by a pattern, and a clear recorded image can be obtained.

【0070】第2の発明によれば、輪郭に近いほど固定
濃度比率を高くし、輪郭部分から内側に入るほどパター
ンの濃度比率を大きくでき、細線は固定濃度の比率が高
く出力される。これにより、第1の発明と同様の効果が
得られる。第3の発明によれば、入力したカラー画像中
の色領域を色に対応したパターン画像に変換し、カラー
画像中の色の輪郭部分に縁取り画像を発生し、パターン
画像と縁取り画像とを色の輪郭からの距離に応じた比率
で合成するので、変換したパターン画像に縁取りを付け
ることができると共に、色領域の大きさがパターン画像
を出力するのに十分でないときには少なくとも輪郭は識
別可能な状態で出力することが可能である。
According to the second aspect of the present invention, the fixed density ratio can be increased closer to the contour, and the density ratio of the pattern can be increased closer to the inside from the contour portion. Thereby, the same effect as that of the first invention is obtained. According to the third aspect, in the input color image
Is converted to a pattern image corresponding to the color,
Generates a border image at the outline of the color in the image, and
The ratio of the image and the border image according to the distance from the color outline
So that the converted pattern image is bordered
The size of the color area can be
At least the contours are not
It is possible to output in a separate state.

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

【図1】本発明に係る画像処理装置の第1の実施例を示
す要部構成ブロック図である。
FIG. 1 is a block diagram of a main part configuration showing a first embodiment of an image processing apparatus according to the present invention.

【図2】前記第1の実施例における色判別部の概略構成
を示すブロック図である。
FIG. 2 is a block diagram illustrating a schematic configuration of a color determining unit according to the first embodiment.

【図3】図2中の色判定回路の回路図である。FIG. 3 is a circuit diagram of a color determination circuit in FIG. 2;

【図4】前記第1の実施例におけるパターン発生回路及
びアドレス制御回路等の回路図である。
FIG. 4 is a circuit diagram of a pattern generation circuit, an address control circuit, and the like in the first embodiment.

【図5】前記第1の実施例におけるセレクタ209及び
レジスタ208等の回路図である。
FIG. 5 is a circuit diagram of a selector 209, a register 208, and the like in the first embodiment.

【図6】前記第1の実施例における細線検出部の概略構
成を示すブロック図である。
FIG. 6 is a block diagram illustrating a schematic configuration of a thin line detection unit according to the first embodiment.

【図7】前記第1の実施例における細らせ回路の概略構
成を示すブロック図である。
FIG. 7 is a block diagram showing a schematic configuration of a narrowing circuit in the first embodiment.

【図8】前記第1の実施例における太らせ回路の概略構
成を示すブロック図である。
FIG. 8 is a block diagram showing a schematic configuration of a fattening circuit in the first embodiment.

【図9】前記第1の実施例における固定濃度選択部及び
パターン濃度選択部の概略構成を示すブロック図であ
る。
FIG. 9 is a block diagram showing a schematic configuration of a fixed density selection unit and a pattern density selection unit in the first embodiment.

【図10】前記第1の実施例における細線検出部の線幅
判定結果を示す図である。
FIG. 10 is a diagram illustrating a line width determination result of a thin line detection unit in the first embodiment.

【図11】前記第1の実施例における固定濃度選択部及
びパターン濃度選択部中の係数レジスタの設定値を示す
図である。
FIG. 11 is a diagram showing set values of a coefficient register in the fixed density selecting section and the pattern density selecting section in the first embodiment.

【図12】本発明に係る画像処理装置の第2の実施例を
示す要部構成ブロック図である。
FIG. 12 is a block diagram showing a main part of an image processing apparatus according to a second embodiment of the present invention.

【図13】前記第2の実施例における輪郭抽出部の概略
構成を示す図である。
FIG. 13 is a diagram showing a schematic configuration of a contour extraction unit in the second embodiment.

【図14】前記第2の実施例における位置検出部の位置
判定結果を示す図てある。
FIG. 14 is a diagram showing a result of position determination by a position detector in the second embodiment.

【図15】前記第2の実施例における固定濃度とパター
ン濃度との合成比率を示す図である。
FIG. 15 is a diagram showing a combination ratio of a fixed density and a pattern density in the second embodiment.

【図16】従来の画像処理装置であるデジタル複写機の
全体の構成を示す図である。
FIG. 16 is a diagram illustrating an overall configuration of a digital copying machine that is a conventional image processing apparatus.

【図17】前記従来の画像処理装置におけるデータ処理
部の構成を示すブロック図である。
FIG. 17 is a block diagram illustrating a configuration of a data processing unit in the conventional image processing apparatus.

【図18】前記従来の画像処理装置における色判別部の
構成を示すブロック図である。
FIG. 18 is a block diagram illustrating a configuration of a color determination unit in the conventional image processing apparatus.

【図19】前記従来の画像処理装置におけるパターン発
生部及びアドレス制御部の構成を示すブロック図であ
る。
FIG. 19 is a block diagram showing a configuration of a pattern generator and an address controller in the conventional image processing apparatus.

【図20】前記従来の画像処理装置における色判別部の
動作説明図である。
FIG. 20 is an explanatory diagram of an operation of a color determination unit in the conventional image processing apparatus.

【図21】前記従来の画像処理装置におけるパターン発
生部のパターン用ドットデータを示す図である。
FIG. 21 is a diagram showing pattern dot data of a pattern generating unit in the conventional image processing apparatus.

【図22】前記従来の画像処理装置におけるアドレス制
御部の主要信号を示すタイミングチャートである。
FIG. 22 is a timing chart showing main signals of an address control unit in the conventional image processing apparatus.

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

110 輝度信号生成部 114 パターン発生回路 201 色判別部 203 細線検出部 204 固定濃度選択部 205 パターン濃度選択部 206 加算器 208 レジスタ 300 輪郭抽出部 Reference Signs List 110 luminance signal generation unit 114 pattern generation circuit 201 color determination unit 203 fine line detection unit 204 fixed density selection unit 205 pattern density selection unit 206 adder 208 register 300 contour extraction unit

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) H04N 1/38 - 1/393 H04N 1/46 - 1/64 G06T 1/00 510 ──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 7 , DB name) H04N 1/38-1/393 H04N 1/46-1/64 G06T 1/00 510

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 入力画像の色を判別する色判別手段と、 上記色の領域幅を判定する線幅検出手段と、 上記色判別手段による判別結果に応じて色毎に決められ
た固定濃度の第1の信号を発生する第1信号発生手段
と、 上記色判別手段による判別結果に応じて色毎に決められ
たパターン画像を表わす第2の信号を発生する第2信号
発生手段と、 上記線幅検出手段による検出結果に応じて上記第1の信
号と上記第2の信号とを濃度比率を変えて合成する合成
手段とを有し上記合成手段は、上記線幅検出手段により検出された幅
が細いほど、上記第1の信号の濃度比率を高く、上記第
2の信号の濃度比率を低くして合成し、検出された幅が
太いほど、上記第1の信号の濃度比率を低く、上記第2
の信号の濃度比率を高くして合成する ことを特徴とする
画像処理装置。
1. A color discriminating means for discriminating a color of an input image, a line width detecting means for discriminating the area width of the color, and a color discriminating means for each color according to a discrimination result by the color discriminating means.
A first signal generating means for generating a first signal of a fixed density, and a color signal which is determined for each color in accordance with a result of the determination by the color determining means.
A second signal generating means for generating a second signal representing the patterned image, and synthesizing the first signal and the second signal by changing a density ratio according to a detection result by the line width detecting means. Synthesizing means , wherein the synthesizing means has a width detected by the line width detecting means.
Is smaller, the density ratio of the first signal is higher,
The signal is synthesized by lowering the density ratio of the signal 2 and the detected width is
The thicker, the lower the density ratio of the first signal,
An image processing apparatus for synthesizing the signals while increasing the density ratio of the signals .
【請求項2】 入力画像の色を判別する色判別手段と、 上記色の領域における輪郭からの位置を判別する位置検
出手段と、 上記色判別手段による判別結果に応じて色毎に決められ
た固定濃度の第1の信号を発生する第1信号発生手段
と、 上記色判別手段による判別結果に応じて色毎に決められ
たパターン画像を表わす第2の信号を発生する第2信号
発生手段と、 上記輪郭からの位置検出手段による検出結果に応じて上
記第1の信号と上記第2の信号とを濃度比率を変えて
成する合成手段と有し、 上記合成手段は、上記位置検出手段により検出された輪
郭からの位置が近いほど、上記第1の信号の濃度比率を
高く、上記第2の信号の濃度比率を低くして合成し、検
出された輪郭からの位置が遠いほど、上記第1の信号の
濃度比率を低く、上記第2の信号の濃度比率を高くして
合成する ことを特徴とする画像処理装置。
2. A color discrimination means for discriminating the color of the input image, a position detecting means for determining the position of the contour in the region of the color, are determined for each color according to the determination result of the color determination means
A first signal generating means for generating a first signal of a fixed density, which is determined for each color in accordance with a result of the discrimination by the color discriminating means.
A second signal generating means for generating a second signal representing the obtained pattern image, and a density ratio between the first signal and the second signal according to a detection result by the position detecting means from the contour. includes a case <br/> formed synthesizing means, said combining means, detected by said position detecting means wheel
As the position from the ku is closer, the density ratio of the first signal
High, the signal is synthesized by lowering the density ratio of the second signal, and the
As the position from the contour is farther away, the first signal
By lowering the density ratio and increasing the density ratio of the second signal
An image processing device characterized by combining .
【請求項3】 入力したカラー画像中の色領域を検出
し、その色領域を色に対応したパターン画像に変換する
変換手段と、 入力したカラー画像中の色の輪郭を検出し、その輪郭部
分に縁取り画像を発生する発生手段と、 前記変換手段からのパターン画像と前記発生手段からの
縁取り画像を色の輪郭からの距離に応じた比率で合成す
る合成手段とを有することを特徴とする画像処理装置。
3. A conversion means for detecting a color area in an input color image and converting the color area into a pattern image corresponding to a color, detecting an outline of a color in the input color image, and detecting the outline portion. Generating means for generating a border image in the image, and combining means for combining the pattern image from the converting means and the border image from the generating means at a ratio according to a distance from a color contour. Processing equipment.
【請求項4】 前記合成手段は、輪郭に近いほど縁取り
画像の濃度が濃くなり、輪郭から遠いほど縁取り画像の
濃度が薄くなるように合成することを特徴とする請求項
3記載の画像処理装置。
4. The image processing apparatus according to claim 3, wherein said synthesizing means synthesizes so that the density of the border image increases as the distance from the contour increases, and decreases as the distance from the contour decreases. .
【請求項5】 前記合成手段は、輪郭に近いほどパター
ン画像の濃度が薄くなり、輪郭から遠いほどパターン画
像の濃度が濃くなるように合成することを特徴とする請
求項4記載の画像処理装置。
5. The image processing apparatus according to claim 4, wherein the synthesizing unit synthesizes the pattern image such that the density of the pattern image decreases as the distance from the contour decreases, and the density of the pattern image increases as the distance from the contour increases. .
JP31986591A 1991-03-01 1991-11-07 Image processing device Expired - Fee Related JP3226224B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP31986591A JP3226224B2 (en) 1991-11-07 1991-11-07 Image processing device
EP92301702A EP0501814B1 (en) 1991-03-01 1992-02-28 Image processing apparatus
US07/843,725 US5485288A (en) 1991-03-01 1992-02-28 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
DE69227853T DE69227853T2 (en) 1991-03-01 1992-02-28 Image processing device
US08/433,201 US5691827A (en) 1991-03-01 1995-05-02 Image processing apparatus for converting a color image into a pattern image with a line having a width which is equal to or less than a predetermined width not being converted

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31986591A JP3226224B2 (en) 1991-11-07 1991-11-07 Image processing device

Publications (2)

Publication Number Publication Date
JPH05130439A JPH05130439A (en) 1993-05-25
JP3226224B2 true JP3226224B2 (en) 2001-11-05

Family

ID=18115101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31986591A Expired - Fee Related JP3226224B2 (en) 1991-03-01 1991-11-07 Image processing device

Country Status (1)

Country Link
JP (1) JP3226224B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6179485B1 (en) * 1996-11-18 2001-01-30 Xerox Corporation Printing black and white reproducible colored stroke documents
JP4529990B2 (en) 2007-03-30 2010-08-25 ブラザー工業株式会社 Image processing program and image processing apparatus
JP5807434B2 (en) * 2011-08-04 2015-11-10 セイコーエプソン株式会社 Image forming apparatus

Also Published As

Publication number Publication date
JPH05130439A (en) 1993-05-25

Similar Documents

Publication Publication Date Title
JP3003261B2 (en) Color image recognition device
US7057775B2 (en) Image processing apparatus and method using image information and additional informational or an additional pattern added thereto or superposed thereon
JP4158332B2 (en) Color image processing device
US5844699A (en) Color image processing apparatus
US5434683A (en) Color image editing apparatus
JP3048158B2 (en) Color image processing equipment
US5850298A (en) Image processing device eliminating background noise
US6192152B1 (en) Image processing apparatus
JP3178541B2 (en) Image processing method and apparatus
JP3176101B2 (en) Image reading device
US5760929A (en) Image processing apparatus for processing discriminated color regions within specified boundaries
JP3302041B2 (en) Image processing device
EP0662765A2 (en) Image processing apparatus and method
JP3226224B2 (en) Image processing device
JP3376003B2 (en) Image processing apparatus and image processing method
JP3316077B2 (en) Background density level detector
JP3042911B2 (en) Image processing apparatus and image processing method
JP3330406B2 (en) Image processing device
JP3587740B2 (en) Image processing device
JP3206932B2 (en) Image processing method and apparatus
JP3554012B2 (en) Image processing apparatus and image processing method
JP3200090B2 (en) Image processing method and apparatus
JP2001320593A (en) Image processing unit, and image forming device provided with it, and image processing method
JP2915503B2 (en) Image processing device
JP2941852B2 (en) Image processing method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees