JPH067677B2 - Image processing device - Google Patents
Image processing deviceInfo
- Publication number
- JPH067677B2 JPH067677B2 JP60133742A JP13374285A JPH067677B2 JP H067677 B2 JPH067677 B2 JP H067677B2 JP 60133742 A JP60133742 A JP 60133742A JP 13374285 A JP13374285 A JP 13374285A JP H067677 B2 JPH067677 B2 JP H067677B2
- Authority
- JP
- Japan
- Prior art keywords
- image signal
- saturation
- hue
- output
- color
- 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 - Lifetime
Links
Landscapes
- Processing Of Color Television Signals (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Analysis (AREA)
- Image Processing (AREA)
Description
【発明の詳細な説明】 《産業上の利用分野》 本発明は、ディジタル画像処理において、入力カラー画
像から一定範囲の彩度および色相を有する領域の抽出を
行う画像処理装置に関するものである。Description: TECHNICAL FIELD The present invention relates to an image processing apparatus for extracting an area having saturation and hue within a certain range from an input color image in digital image processing.
《従来の技術》 画像処理において、特定の対象を抽出するような場合に
は、形状情報以外に色彩情報なども組合せて抽出精度を
高めることが多い。この場合に、人間の目の感覚にあっ
た、明度,彩度および色相に関するフィルタのあること
が好ましいが、従来の光学的フィルタは周波数に関する
フィルタであり、要求を十分満足することはできない。<< Prior Art >> In the image processing, when a specific object is extracted, in addition to the shape information, color information is often combined to improve the extraction accuracy. In this case, it is preferable to have a filter for lightness, saturation, and hue that matches the sense of the human eye, but the conventional optical filter is a filter for frequency and cannot sufficiently satisfy the requirements.
ディジタル画像処理を行えば、RGB画像信号から明度
が一定範囲の領域を抽出するフィルタは比較的容易に実
現できる。By performing digital image processing, a filter for extracting a region having a constant brightness from an RGB image signal can be realized relatively easily.
《発明が解決しようとする問題点》 しかし、色相が一定範囲内にある領域を抽出するフィル
タや、彩度や一定範囲内にある領域を抽出するフィルタ
の実現は一般に計算が複雑で、容易ではない。<< Problems to be Solved by the Invention >> However, realization of a filter for extracting a region having a hue within a certain range or a filter for extracting a region having a saturation or a certain range is generally complicated in calculation and is not easy. Absent.
本発明は上記の問題点を解決するためになされたもの
で、ディジタル画像処理において、指定された範囲の彩
度および色相を持つ領域を少ない計算量で抽出する画像
処理装置を簡単な構成で実現することを目的とする。The present invention has been made to solve the above problems, and in digital image processing, an image processing apparatus for extracting a region having a saturation and hue in a specified range with a small amount of calculation is realized with a simple configuration. The purpose is to do.
《問題点を解決するための手段》 本発明に係る画像処理装置は、彩度および色相の領域を
定める定数が格納され、カラー画像信号のうち2色の画
像信号を入力して前記定数から前記カラー画像信号のう
ち他の1色の画像信号の領域を計算するルックアップテ
ーブルと、このルックアップテーブルの出力と前記カラ
ー画像信号のうち他の1色の画像信号を比較する比較器
と、この比較器の出力を入力する論理回路と、この論理
回路出力で前記カラー画像信号をマスクするマスク回路
とを備え、カラー画像信号から指定された範囲の彩度お
よび色相の領域を抽出することを特徴とする。<< Means for Solving the Problems >> An image processing apparatus according to the present invention stores constants that define areas of saturation and hue, inputs image signals of two colors out of color image signals, and outputs the above-mentioned constants from the constants. A look-up table for calculating the area of another color image signal of the color image signal; a comparator for comparing the output of the look-up table with the other color image signal of the color image signal; It is provided with a logic circuit for inputting the output of the comparator and a mask circuit for masking the color image signal with the output of the logic circuit, and extracting a region of saturation and hue in a specified range from the color image signal. And
《作用》 上記のような構成の画像処理装置によれば、2色の画像
信号を用いてルックアップテーブルにより彩度および色
相の近似計算を行い、その出力を他の1色の画像信号と
比較した後論理演算を行い、この論理回路出力でカラー
画像信号をマスクすることにより、指定された範囲の彩
度および色相を持つ領域を少ない計算量で抽出すること
ができる。<< Operation >> According to the image processing apparatus having the above configuration, the saturation and the hue are approximated by the look-up table using the image signals of two colors, and the output is compared with the image signal of another one color. After that, a logical operation is performed, and the color image signal is masked by the output of this logical circuit, whereby an area having the saturation and hue in the designated range can be extracted with a small calculation amount.
《実施例》 以下本発明を図面を用いて詳しく説明する。<Example> The present invention will be described in detail below with reference to the drawings.
第1図は本発明に係わる画像処理装置の一実施例を示す
構成ブロック図である。1は入力カラー画像信号ri,
gi,biのうち2色に対応する画像信号ri,giを
入力するルックアップテーブル(以下LUTと呼ぶ)
部、11,12は画像信号riが接続するそれぞれLU
TA,LUTB、13,14は画像信号giが接続する
それぞれLUTC,LUTD、21〜24は前記LUT
A〜Dの出力S1〜S4がそれぞれの一端に接続し前記
画像信号biが他端に接続する比較器、3はこの比較器
21〜24の出力が接続するAND回路、4は前記入力
カラー画像信号ri,gi,biが接続する遅延回路、
5はこの遅延回路4の出力が接続し前記AND回路3の
出力により制御されるマスクゲート回路である。FIG. 1 is a configuration block diagram showing an embodiment of an image processing apparatus according to the present invention. 1 is the input color image signal r i ,
A look-up table (hereinafter referred to as LUT) into which image signals r i and g i corresponding to two colors of g i and b i are input.
The parts, 11 and 12 are LUs to which the image signals r i are connected respectively.
TA, LUTB, 13 and 14 are respectively connected to the image signal g i , and LUTC and LUTD, and 21 to 24 are the LUT.
A comparator in which the outputs S 1 to S 4 of A to D are connected to one end and the image signal b i is connected to the other end, 3 is an AND circuit to which the outputs of the comparators 21 to 24 are connected, and 4 is the above A delay circuit to which the input color image signals r i , g i , b i are connected,
Reference numeral 5 is a mask gate circuit to which the output of the delay circuit 4 is connected and which is controlled by the output of the AND circuit 3.
上記のような構成の画像処理装置の動作を以下に説明す
る。第2図のRGB空間において、は画像信号の色ベ
クトル(r,g,b)、は単位(白色)ベクトル
(1,1,1)、は色ベクトルから単位ベクトル
への垂直ベクトル、は単位ベクトルに垂直でベクト
ルを含む平面内の基準ベクトルである。ここで、色ベ
クトルの明度は||に比例し、彩度は||に比例
する。また色相θは単位ベクトルを中心として垂直ベ
クトルが基準ベクトルに対してなす回転角で表され
る。The operation of the image processing apparatus having the above configuration will be described below. In the RGB space of FIG. 2, is a color vector (r, g, b) of the image signal, is a unit (white) vector (1, 1, 1), is a vertical vector from the color vector to the unit vector, is a unit vector It is a reference vector in a plane perpendicular to and including the vector. Here, the lightness of the color vector is proportional to ||, and the saturation is proportional to ||. The hue θ is represented by a rotation angle formed by a vertical vector with respect to a reference vector with a unit vector as the center.
抽出したい彩度および色相の領域をそれぞれθ1±Δθ1
およびθ2±Δθ2とした場合、彩度,色相が一部の微小
範囲にあるRGB空間の領域は、近似的に、 r+C1−ΔC1<b<r+C1+ΔC1 …(1) g+C2−ΔC2<b<g+C2+ΔC2 …(2) の共通領域として表すことができる。第3図の斜線部分
はこの共通領域を表している。Set the saturation and hue areas to be extracted to θ 1 ± Δθ 1
And θ 2 ± Δθ 2 , the area of the RGB space in which the saturation and hue are partially in a minute range is approximately r + C 1 −ΔC 1 <b <r + C 1 + ΔC 1 (1) g + C 2 It can be expressed as a common region of −ΔC 2 <b <g + C 2+ ΔC 2 (2). The shaded area in FIG. 3 represents this common area.
ここで、C1,C2は前記抽出したい彩度および色相の
領域の中心値であるθ1およびθ2から求まるRGB空
間の領域の中心値を表す定数であり、ΔC1,ΔC2は
前記抽出したい彩度および色相の領域の中心値からの範
囲であるΔθ1およびΔθ2から求まるRGB空間の領
域の中心値からの範囲を表す定数である。即ち、画像信
号をr,g,bとした場合、彩度f(r,g,b)はk
を比例定数として k(r2+g2+b2−rg−gb−br) …(3) で、一方、色相θ(r,g,b)は cot-1・{31/2・(g−b)/(2r−g−b)} …(4) でそれぞれ表される。ここで、抽出したい彩度fおよび
色相θの領域 θ1−Δθ1<f(r,g,b)<θ1+Δθ1 …(5) θ2−Δθ2<θ(r,g,b)<θ2+Δθ2 …(6) に対して画像信号r,gが決まれば、θ1,Δθ1,θ
2,Δθ2は既知であるので画像信号bは r+C1−ΔC1<b<r+C1+ΔC1 …(7) g+C2−ΔC2<b<g+C2+ΔC2 …(8) と近似され、定数C1,C2はθ1,θ2から、定数Δ
C1,ΔC2はΔθ1,Δθ2からそれぞれ一意的に求
めることができる。但し、定数ΔC1,ΔC2が大きな
値であると誤差が生じるので、 ΔC1,ΔC2<<(C1 2+C2 2)1/2……(9) を満たす値とする。Here, C 1 and C 2 are constants representing the center value of the RGB space region obtained from θ 1 and θ 2 which are the center values of the saturation and hue regions to be extracted, and ΔC 1 and ΔC 2 are the above It is a constant representing the range from the center value of the RGB space area, which is obtained from Δθ 1 and Δθ 2 which is the range from the center value of the saturation and hue areas to be extracted. That is, when the image signals are r, g, and b, the saturation f (r, g, b) is k
Where k (r 2 + g 2 + b 2 −rg-gb-br) (3), the hue θ (r, g, b) is cot −1 · {3 1/2 · (g− b) / (2r-g-b)} (4). Here, the range of saturation f and hue θ to be extracted θ 1 −Δθ 1 <f (r, g, b) <θ 1 + Δθ 1 (5) θ 2 −Δθ 2 <θ (r, g, b) <Θ 2 + Δθ 2 (6) If the image signals r and g are determined, θ 1 , Δθ 1 , θ
2 and Δθ 2 are known, the image signal b is approximated as r + C 1 −ΔC 1 <b <r + C 1 + ΔC 1 (7) g + C 2 −ΔC 2 <b <g + C 2 + ΔC 2 (8), and a constant C 1 and C 2 are the constant Δ from θ 1 and θ 2.
C 1 and ΔC 2 can be uniquely obtained from Δθ 1 and Δθ 2 , respectively. However, if the constants ΔC 1 and ΔC 2 are large values, an error occurs, and therefore the values are set to satisfy ΔC 1 and ΔC 2 << (C 1 2 + C 2 2 ) 1/2 (9).
第4図(A)(B)(C)(D)は、制御信号Scによ
りC1,C2,ΔC1,ΔC2が設定されLUT11,
12,13,14にそれぞれ書込まれた関数を示す特性
曲線図である。FIG. 4 (A) (B) (C ) (D) are, C 1, C 2 by the control signal Sc, ΔC 1, ΔC 2 is set LUT11,
It is a characteristic curve figure which shows the function respectively written in 12,13,14.
上記の画像処理装置に入力カラー画像信号ri,gi,
biが入力すると、そのうち画像信号ri,giがLU
T1に入力する。画像信号riはLUT11,12で、
それぞれ次式で表される出力S1,S2に変換される。Input color image signals r i , g i , to the above image processing device,
When b i is input, the image signals r i and g i are LU
Enter in T1. The image signal r i is the LUT 11, 12,
The outputs are converted into outputs S 1 and S 2 represented by the following equations, respectively.
S1=ri+C1+ΔC1 …(10) S2=ri+C1−ΔC1 …(11) 同様に、画像信号giはLUT13,14で、それぞれ
次式で表される出力S3,S4に変換される。S 1 = r i + C 1 + ΔC 1 (10) S 2 = r i + C 1 −ΔC 1 (11) Similarly, the image signal g i is the LUT 13, 14 and the output S 3 represented by the following equation, respectively. It is converted to S 4.
S3=gi+C2+ΔC2 …(12) S4=gi+C2−ΔC2 …(13) 比較器21〜24は次のような入出力関係を有してい
る。 S 3 = g i + C 2 + ΔC 2 ... (12) S 4 = g i + C 2 -ΔC 2 ... (13) comparators 21 to 24 have the following input-output relationship.
3ピン出力=1;1ピン入力>2ピン入力 =0;1ピン入力<2ピン入力 したがって、比較器21〜24は変換出力S1〜S4お
よび画像信号biを入力して次のような出力を発生す
る。3 pin output = 1; 1 pin input> 2 pin input = 0; 1 pin input <2 pin input Therefore, the comparators 21 to 24 input the conversion outputs S 1 to S 4 and the image signal b i as follows. Produce a different output.
比較器21では ri+C1+ΔC1>biの領域で1、他は0 比較器22では ri+C1−ΔC1<biの領域で1、他は0 比較器23では gi+C2+ΔC2>biの領域で1、他は0 比較器24では gi+C2−ΔC2<biの領域で1、他は0 AND回路3は比較器21〜24の出力S5〜S8の論
理積を出力する。すなわち、ANDゲートの出力は、 ri+C1−ΔC1<bi<ri+C1+ΔC1 …(14) gi+C2−ΔC2<bi<gi+C2+ΔC2 …(15) の共通領域(第3図の斜線部分)では1、他は0とな
る。遅延回路4はカラー画像信号ri,gi,biを入
力し、LUT1,比較器21〜24,AND回路3によ
る遅れと等しい遅延を生じた信号rd,gd,bdを出
力する。マスクゲート5はマスク2値出力Sgが1のと
きrd,gd,bdをそのままそれぞれ出力ro,
go,boとし、マスク2値出力Sgが0のとき出力r
o,go,boを0とする。すなわち、マスク2値出力
Sgにより入力画像をマスクすることにより、指定され
た範囲の色相・彩度の領域は入力画像と同じ値を、他の
領域は0の値をとるRGB画像信号ro,go,boを
出力する。In the comparator 21, 1 is in the region of r i + C 1 + ΔC 1 > b i , the others are 0. In the comparator 22, it is 1 in the region of r i + C 1 −ΔC 1 <b i , and the other is 0 in the comparator 23 g i + C 2 + ΔC 2> 1 with b i region of the others 0 comparator 24 in g i + C 2 -ΔC 2 < 1 in the region of b i, others 0 AND circuit 3 outputs S 5 ~ comparators 21-24 The logical product of S 8 is output. That is, the output of the AND gate is r i + C 1 −ΔC 1 <b i <r i + C 1 + ΔC 1 (14) g i + C 2 −ΔC 2 <b i <g i + C 2 + ΔC 2 (15) Is 1 in the common area (hatched portion in FIG. 3), and 0 in other areas. The delay circuit 4 inputs the color image signals r i , g i , b i, and outputs the signals r d , g d , b d which are delayed by the LUT 1, the comparators 21 to 24, and the AND circuit 3. . When the mask binary output S g is 1, the mask gate 5 outputs r d , g d , and b d as they are, respectively, r o ,
g o , b o , output r when the mask binary output S g is 0
o, g o, a b o is set to 0. That is, by masking the input image with the mask binary output S g, the RGB image signal r o having the same value as the input image in the area of hue and saturation in the specified range and 0 in the other areas. , G o , b o are output.
なおLUT1,比較器21〜24,AND回路3による
遅れが画素クロックの周期に比べて、十分に小さい場合
には、上記の遅延回路4は不要である。If the delay due to the LUT1, the comparators 21 to 24, and the AND circuit 3 is sufficiently smaller than the period of the pixel clock, the delay circuit 4 is not necessary.
また上記の実施例では画像信号ri,giをLUT1に
加え、biを直接比較器21〜24に加えているが、抽
出する領域に応じて任意の組合せをとることができる。
また論理回路もAND回路に限らない。Further, in the above-mentioned embodiment, the image signals r i and g i are added to the LUT1 and b i are directly added to the comparators 21 to 24, but any combination can be taken depending on the region to be extracted.
Further, the logic circuit is not limited to the AND circuit.
第5図は本発明の第2の実施例を示すブロック図で、第
1の実施例で示した色相・彩度フィルタ10に、実現が
簡単な明度フィルタ20を組合せることにより、色相,
彩度,明度が一定範囲にある領域を抽出するフィルタを
実現できる。図でro1,go1,bo1は色相,彩度
が一定範囲にある領域を抽出した画像出力、ro2,g
o2,bo2は色相,彩度,明度が一定範囲にある領域
を抽出した画像出力である。FIG. 5 is a block diagram showing a second embodiment of the present invention. By combining the hue / saturation filter 10 shown in the first embodiment with a lightness filter 20 which is easy to realize,
It is possible to realize a filter that extracts a region whose saturation and brightness are within a certain range. In the figure, r o1 , g o1 , and b o1 are image outputs obtained by extracting regions in which hue and saturation are in a certain range, and r o2 , g
o2 and bo2 are image outputs in which regions having hue, saturation, and lightness within a certain range are extracted.
《発明の効果》 以上述べたように本発明によれば、ディジタル画像処理
において、指定された範囲の彩度および色相を持つ領域
を少ない計算量で抽出する画像処理装置を簡単な構成で
実現することができる。<< Advantages of the Invention >> As described above, according to the present invention, in digital image processing, an image processing apparatus for extracting a region having a specified range of saturation and hue with a small amount of calculation is realized with a simple configuration. be able to.
第1図は本発明に係る画像処理装置の一実施例を示す構
成ブロック図、第2図および第3図は第1図装置の動作
原理を説明するための原理説明図、第4図は第1図のL
UT部の内容を示す特性曲線図、第5図は本発明の第2
の実施例を示すブロック図である。 1,11,12,13,14……ルックアップテーブ
ル、3……論理回路、5……マスク回路、21〜24…
…比較器、ri,gi,bi……カラー画像信号。FIG. 1 is a configuration block diagram showing an embodiment of an image processing apparatus according to the present invention, FIGS. 2 and 3 are principle explanatory diagrams for explaining the operation principle of the apparatus, and FIG. L in Figure 1
FIG. 5 is a characteristic curve diagram showing the contents of the UT section, and FIG.
It is a block diagram showing an example of. 1, 11, 12, 13, 14 ... Look-up table, 3 ... Logic circuit, 5 ... Mask circuit, 21-24 ...
... comparator, r i , g i , b i ... color image signal.
Claims (1)
され、カラー画像信号のうち2色の画像信号を入力して
前記定数から前記カラー画像信号のうち他の1色の画像
信号の領域を計数するルックアップテーブルと、このル
ックアップテーブルの出力と前記カラー画像信号のうち
他の1色の画像信号を比較する比較器と、この比較器の
出力を入力する論理回路と、この論理回路出力で前記カ
ラー画像信号をマスクするマスク回路とを備え、カラー
画像信号から指定された範囲の彩度および色相の領域を
抽出することを特徴とする画像処理装置。1. A constant for defining an area of saturation and hue is stored, an image signal of two colors of a color image signal is input, and an area of an image signal of another color of the color image signal is input from the constant. , A comparator for comparing the output of the lookup table with the image signal of the other one color of the color image signals, a logic circuit for inputting the output of the comparator, and the logic circuit An image processing apparatus comprising: a mask circuit for masking the color image signal at an output, and extracting a saturation and hue region in a designated range from the color image signal.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60133742A JPH067677B2 (en) | 1985-06-19 | 1985-06-19 | Image processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60133742A JPH067677B2 (en) | 1985-06-19 | 1985-06-19 | Image processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61292491A JPS61292491A (en) | 1986-12-23 |
| JPH067677B2 true JPH067677B2 (en) | 1994-01-26 |
Family
ID=15111858
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60133742A Expired - Lifetime JPH067677B2 (en) | 1985-06-19 | 1985-06-19 | Image processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH067677B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0814752B2 (en) * | 1987-07-02 | 1996-02-14 | 富士通株式会社 | Video rate color extraction device |
-
1985
- 1985-06-19 JP JP60133742A patent/JPH067677B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61292491A (en) | 1986-12-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR950011811B1 (en) | Color correction method and device of color image | |
| US5506603A (en) | Method and device for airbrushing | |
| CN108230331A (en) | Image processing method and device, electronic equipment, computer storage media | |
| AU3656484A (en) | Recognition of hues and colours | |
| WO2003041013A1 (en) | Color image processing method, color image processor, color display, computer program for implementing the color image processing method | |
| JPH065875B2 (en) | Method and apparatus for image correction | |
| WO2002021849A1 (en) | Image processor and colorimetric system converting method | |
| JPH09187030A (en) | Method for deciding key to clip moving subject with respect to colored background and device to realize the same | |
| CN105631826B (en) | A kind of color image saturation Enhancement Method and system | |
| JPH067677B2 (en) | Image processing device | |
| US5086339A (en) | Videosystem for determining position of colored areas | |
| KR100679048B1 (en) | Color gamut mapping method and apparatus | |
| JPS61214893A (en) | Color image processing method | |
| JPH02288562A (en) | Contour emphasizing device for television camera | |
| JPS62230159A (en) | Color reproducing method in color hard copy | |
| JP3641402B2 (en) | Color correction circuit and color correction method | |
| JPH0364192A (en) | Picture signal processor | |
| JP3093220B2 (en) | Color image processing method | |
| KR100398883B1 (en) | Apparatus and method for detecting edges | |
| KR100357055B1 (en) | method of color expression considering background contrast and device of color feature extraction | |
| JPH0321104Y2 (en) | ||
| JPS6271982U (en) | ||
| JPH01277062A (en) | Color correction processing method | |
| JP2625854B2 (en) | Matte color effect generator | |
| JPH04167866A (en) | Color picture processing method |