JPS6252675A - Method for extracting specific color area - Google Patents

Method for extracting specific color area

Info

Publication number
JPS6252675A
JPS6252675A JP60192358A JP19235885A JPS6252675A JP S6252675 A JPS6252675 A JP S6252675A JP 60192358 A JP60192358 A JP 60192358A JP 19235885 A JP19235885 A JP 19235885A JP S6252675 A JPS6252675 A JP S6252675A
Authority
JP
Japan
Prior art keywords
color
hue
vector
sum
component
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
JP60192358A
Other languages
Japanese (ja)
Other versions
JPH0514944B2 (en
Inventor
Akira Shimotori
霜鳥 明
Kiyoshi Yoshizawa
吉沢 清
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.)
NIREKO KK
Nireco Corp
Original Assignee
NIREKO KK
Nireco Corp
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 NIREKO KK, Nireco Corp filed Critical NIREKO KK
Priority to JP60192358A priority Critical patent/JPS6252675A/en
Publication of JPS6252675A publication Critical patent/JPS6252675A/en
Publication of JPH0514944B2 publication Critical patent/JPH0514944B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To improve accuracy in processing and analysis by converting level information at every channel into vector information representing color attributes (color brightness, hue and saturation degree). CONSTITUTION:The output of an primitive signal generator 1 is applied to an RGB, an I(brightness) converter 2, an H(hue) converter 3 for RGB to H(hue) and a converter 4 from RGB to P(saturation degree) through digital lines 1R, 1G and 1B. Outputs from respective converters 2-4, that is, one-dimensional data equivalent to brightness, hue and saturation degree and the corresponding reference levels of said brightness, hue and saturation degree are impressed to window comparators 5i, 5h and 5p, and only areas having color attributes in a desired area are made 'true' among original pictures in terms of their outputs. The outputs of the comparators are all impressed on an AND circuit 6. Accordingly all the outputs consider color attributions.

Description

【発明の詳細な説明】 査1上皇肌■立団 本発明は、画像処理または(および)画像解析において
原画像の特定の領域を抽出し、或いは特定な領域の色を
同定するための特定色領域抽出方法に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method for extracting a specific region of an original image in image processing or (and) image analysis, or for identifying the color of a specific region. Related to area extraction method.

朕米且技玉 従来、画像における特定領域の抽出や同定には一般に、
原画像としてモノクローム像を使用し、単純なコンパレ
ータを用いて濃度情報に基づいた処理を行う方式が主に
利用されていた。
Traditionally, extraction and identification of specific areas in images generally involve
The main method used was to use a monochrome image as the original image and perform processing based on density information using a simple comparator.

しかるに画像解析を応用した各種の測定、例えば染色体
や細胞の解析、金属中の不純物(非金属介在物)の測定
等においては、情報量が多いことや解析の正確さを向上
させるために、カラー画像を使用する要求が年々高まっ
てきている。このようなカラー画像による処理技術とし
ては、例えば本出願人が先に出願した特開昭57−79
944号や特開昭58−22929号に記載されている
ような方式がある。
However, in various measurements that apply image analysis, such as the analysis of chromosomes and cells, and the measurement of impurities in metals (non-metallic inclusions), color analysis is required due to the large amount of information and to improve the accuracy of analysis. The demand for using images is increasing year by year. As a processing technique using such a color image, for example, Japanese Patent Application Laid-open No. 57-79, which the present applicant previously applied,
There are methods such as those described in No. 944 and Japanese Unexamined Patent Publication No. 58-22929.

更來夜五■入菩 カラー画像に関する従来の画像処理においては、例えば
前記特開昭57−79944号に記載されているような
方式では、赤、緑、青、各チャネルの絶対レベルをその
まま原始データとして用いているため原画像がシェーデ
ィング等により理想状態からは外れている場合の実用的
識別能力が著しく劣る。また例えば特定の色相で明度が
多少変化したものも同一領域として抽出したい場合等の
ように弁別域を意識的に拡大すると、副作用として被弁
別色相も大巾に拡大されてしまう等の欠点を有していた
。また前記特開昭58−22929号に記載された方式
では、色属性のうち色相のみを対象とするため色弁別の
概念が完璧でなく、また色相環すなわちベクトルの概念
がないため2組の限定パラメータを用いるので色の概念
との対応性がつき難く、更には、観測画面中に抽出した
い色調がない場合の設定は本質的に出来ない、すなわち
実際の画像に関係なく外挿的な設定が出来ない等の多く
の欠点を有している。
In conventional image processing for color images, for example, in the method described in Japanese Patent Application Laid-open No. 79944/1987, the absolute levels of each channel of red, green, and blue are processed as they are in the original state. Since it is used as data, its practical discrimination ability is significantly inferior when the original image deviates from the ideal state due to shading or the like. Furthermore, if you intentionally expand the discrimination region, for example when you want to extract a certain hue with a slight change in brightness as the same area, there is a drawback that the hue to be discriminated will also be greatly enlarged as a side effect. Was. Furthermore, in the method described in JP-A No. 58-22929, the concept of color discrimination is not perfect because it targets only hue among color attributes, and there is no concept of a hue circle, that is, a vector, so there are two sets of limitations. Since parameters are used, it is difficult to establish correspondence with the concept of color, and furthermore, it is essentially impossible to make settings when there is no desired color tone in the observation screen.In other words, extrapolation settings are not possible regardless of the actual image. It has many drawbacks such as being unable to do so.

光里至亘聾 本発明はこのような現状に鑑み、カラー画像の色処理の
ために実用性が格段に優れ、処理・解析の正確度を向上
した特定色領域抽出方法を提供することを目的とする。
SUMMARY OF THE INVENTION In view of the current situation, the present invention aims to provide a method for extracting a specific color region that is extremely practical for color processing of color images and that improves the accuracy of processing and analysis. do.

3yIυU 本発明は、少なくも2以上のチャネルに分けて記録され
ているマルチバンド画像に関して特定の色を抽出もしく
は同定するために、各チャネル毎のレベル情報を色の属
性(明度、色相、飽和度)を代表するベクトル情報に変
換し、これにより弁別を行うことを基本とする。
3yIυU In order to extract or identify a specific color from a multiband image recorded in at least two or more channels, the present invention uses level information for each channel to extract color attributes (brightness, hue, saturation). ) into representative vector information and perform discrimination based on this information.

更に詳しくは、本発明により次の方法が提供される。す
なわち、 (1)明度軸成分への変換手段として各バンド毎の絶対
値のそれぞれに適当な係数を乗じたものの総和を用い、
更に色相軸成分への変換手段として直交座標上に適当な
角度間隔をもっておかれた各チャネルのレベルを代表す
るベクトル群の合成ベクトルが基準軸と成す角度を用い
、この角度の算出に際して各チャネルを代表する各ベク
トルが上記直交座標の基準軸と成す角度の余弦成分を算
出する係数器、正弦成分を算出する係数器及び各成分毎
に総和を求める加算器を用いた合成ベクトルの余弦成分
、正弦成分を入力とする逆正接、算出器の出力を用いる
方法。
More specifically, the present invention provides the following method. That is, (1) As a means of converting into brightness axis components, use the sum of the absolute values of each band multiplied by appropriate coefficients,
Furthermore, as a means of conversion into hue axis components, the angle formed by the composite vector of a group of vectors representative of the level of each channel, which are placed at appropriate angular intervals on the orthogonal coordinates, with the reference axis is used, and when calculating this angle, each channel is The cosine component and sine of the composite vector are calculated using a coefficient unit that calculates the cosine component of the angle that each representative vector forms with the reference axis of the orthogonal coordinates, a coefficient unit that calculates the sine component, and an adder that calculates the sum of each component. A method that uses the arctangent with the components as input, and the output of the calculator.

(2)明度軸成分への変更手段として各バンド毎の絶対
値のそれぞれに適当な係数を乗じたものの総和を用い、
更に飽和度軸成分への変更手段として、前記合成ベクト
ルの絶対値を1■、!とし、原画像を記録している各チ
ャンネル毎のレベルを代表するベクトルのうち最大のも
の2つのみを要素とする合成ベルトの絶対値をIVP+
とし、これによりl Vll  l / l VP  
Iなる演算を行う演算器の出力を用いる方法。
(2) As a means of changing the lightness axis component, use the sum of the absolute values of each band multiplied by an appropriate coefficient,
Furthermore, as a means of changing the saturation axis component, the absolute value of the composite vector is changed to 1■,! The absolute value of the composite belt whose elements are only the two largest vectors representing the level of each channel recording the original image is IVP +
Therefore, l Vll l / l VP
A method that uses the output of an arithmetic unit that performs the operation I.

(3)明度軸成分への変更手段として各バンド毎の絶対
値のそれぞれに適当な係数を乗じたものの総和を用い、
更に飽和度軸成分への変更手段として、前記合成ベルト
の絶対値を|VH|とし、原画像を記録している各チャ
ンネル毎のレベルの総和もしくは平均をLとし、IV)
11/Lなる演算を行う演算器の出力を用いる方法。 
 − 以下に本発明の詳細な説明するが、本発明を良く理解す
るために以下の説明でマルチバンド画像に関しては、代
表例として赤(R)、緑(G)、青(B)よりなる3原
色カラー画像を対象とすることにし、特に混乱の恐れの
ない限り各々をRlG、Bなる記号をもって表現する。
(3) As a means of changing the lightness axis component, use the sum of the absolute values of each band multiplied by an appropriate coefficient,
Furthermore, as a means of changing the saturation axis component, let the absolute value of the composite belt be |VH|, and let the sum or average of the levels for each channel recording the original image be L; IV)
A method using the output of an arithmetic unit that performs the calculation 11/L.
- The present invention will be described in detail below, but in order to better understand the present invention, in the following explanation, multi-band images will be described as a representative example of three bands consisting of red (R), green (G), and blue (B). We will focus on primary color images, and unless there is a risk of confusion, each will be expressed using the symbols RlG and B.

また色の属性における明度(I)、色相(H)、飽和度
(P)を特に混乱の恐れのない限りI、HlPなる記号
で表現する。
In addition, color attributes such as lightness (I), hue (H), and saturation (P) are expressed by symbols I and HIP unless there is a risk of confusion.

先ず、本発明の詳細な説明の前に次の事項を前提として
記載する。
First, before detailed explanation of the present invention, the following matters will be described as a premise.

1) 要素としてただ一つのチャンネルのみを保有する
画像(たとえばモノクローム像)の特定領域の抽出は、
設定パラメータが一次元であるから従来より良く知るよ
うな手段により容易であるが、本発明の方法によっても
当然可能である。。
1) Extraction of a specific region of an image (for example, a monochrome image) that has only one channel as an element is
Since the setting parameters are one-dimensional, it is easier to do this using well-known means than in the past, but it is naturally also possible using the method of the present invention. .

2)2以上の要素、例えばR,G、Bよりなる3チャン
ネル画像の特定色領域抽出には3次元パラメータが必要
である。このことは色の属性を示す3次元ベクトル、す
なわちI、H,Pの何れかの1つのみに注目する場合も
、3次元のパラメータのすべてを考慮しなければならな
い事を意味する。
2) Three-dimensional parameters are required to extract a specific color region from a three-channel image consisting of two or more elements, for example R, G, and B. This means that even when focusing on only one of the three-dimensional vectors representing color attributes, ie, I, H, and P, all three-dimensional parameters must be considered.

3)シかし、R,G、Hの3次元原始データを■、H,
Pなる色属性に変換すればそのおのおのは一次元パラメ
ータにより特定領域の同定は容易となる。
3) The three-dimensional original data of R, G, and H is converted into ■, H,
If the color attribute is converted to P, each one-dimensional parameter can be used to easily identify a specific area.

4)I、H,Pの各々の色属性に係わる抽出された特定
領域3つの論理積は、I、H,Pのすべてを最初から指
定して得られた特定色領域と完全に等しい。何故なら色
立体を考えた時、特定色の指定はその内の一点を決定す
る事であるが、■を指定する事は色立体の上下方向の1
ケ所を指定する事になり、考えている色はこの場所で色
立体を水平方向に輪切りにしたときの平面のどこかに存
在することになる。ここでHを指定することは、この平
面を色立体の無彩色軸を原点とする直交座標と考えたと
きの基準軸からの角度を指定する事になる。従って考え
ている色はこの角度を表す線分上のどこかに存在する事
になる。更にPを指定する事は色立体の無彩色軸を中心
とする同心円の径を指定することに等しいため、この線
分上の一点を決定する事になるからである。
4) The logical product of the three extracted specific areas related to each color attribute of I, H, and P is completely equal to the specific color area obtained by specifying all of I, H, and P from the beginning. This is because when considering a color solid, specifying a specific color means determining one point within it, but specifying ■ means determining one point in the vertical direction of the color solid.
The color you are considering will exist somewhere on the plane when the color solid is sliced horizontally at this location. Specifying H here means specifying the angle from the reference axis when this plane is considered to be orthogonal coordinates with the achromatic axis of the color solid as the origin. Therefore, the color we are considering exists somewhere on the line segment representing this angle. Furthermore, specifying P is equivalent to specifying the diameter of a concentric circle centered on the achromatic axis of the color solid, so one point on this line segment is determined.

5) もし■、H,Pのうちの何れか1つのみに注目す
れば事足りる場合は、それに係わるパラメータのみを考
慮すれば良い。
5) If it is sufficient to pay attention to only one of ■, H, and P, it is sufficient to consider only the parameters related to it.

6)R,、G、B→■、H,、Pへの変換過程における
リニアリティは本発明の利用分野からして木質的に重要
な事ではなく、更に変換的の絶対数値も重要ではない。
6) The linearity in the conversion process from R,, G, B to ■, H,, P is not important from the perspective of the field of application of the present invention, and furthermore, the absolute value of the conversion is not important.

必要とされるのは単調増加性(monotonicit
y)および連続性すなわちI、H4Fを指定する事によ
りその原始データであるRlG、Bの組合せがただ1つ
に固定されるという事だけである。
What is required is monotonic
y) and continuity, that is, I, H4F, the combination of RlG, B, which is the original data, is fixed to only one.

以上の各点を要約すると、特定色領域抽出においてR,
G、Bなる3次元から構成される原始データをI、■1
、Pなる3つの1次元データに変換する事により、それ
以後の取扱が極めて容易になるのである。
To summarize the above points, in specific color region extraction, R,
The original data consisting of three dimensions G and B is I, ■1
, P, the subsequent handling becomes extremely easy.

本発明は以上の1)〜6)を考えの基礎としてなされた
もので、その基本構成は第1図に示すように直裁且つ明
解である。
The present invention has been made based on the ideas 1) to 6) above, and its basic configuration is straightforward and clear as shown in FIG.

本発明では、信号系としてアナログ系でもデジタル系で
も全く同様に応用できるが、ここでは一応デイジタル系
を用いて説明する。
Although the present invention can be applied to both analog and digital signal systems in exactly the same way, the digital system will be used for explanation here.

図面を参照した説明 さて、第1図における原始信号発生器1はRlG、Bで
表現されるカラー画像を提供するものであり、一般的に
はRGBカラーカメラの出力をA/D変換したものか、
あるいは画像メモリの出力とされる。
Explanation with reference to the drawings Now, the primitive signal generator 1 in Fig. 1 provides a color image expressed by RlG,B, and is generally an A/D converter of the output of an RGB color camera. ,
Alternatively, it is output from the image memory.

原始信号発生器1の出力はIRlIG、IBなるデジタ
ル線路をもってRGB−1変換器2、RGB−H変換器
3、RGB−P変換器4に加えられる。符号5i、5h
、5pでそれぞれ示すウィンドウコンパレータには各変
換器2.3.4からの出力すなわちI、H,Pに相当し
た1次元データが加えられるのであるが、各コンパレー
タにはそれぞれに見合った■、H,Pの基準レベルが印
加されており、その出力は原画像のうち希望する範囲の
色属性を持った領域のみが”真”とされるようになされ
る。また各コンパレータの出力はすべて論和積回路6に
印加されている。従って、出カフは本明細書第9頁の4
)項に記したようにすべての色属性を考慮したものとな
る。
The output of the original signal generator 1 is applied to an RGB-1 converter 2, an RGB-H converter 3, and an RGB-P converter 4 through digital lines IRlIG and IB. Code 5i, 5h
The output from each converter 2.3.4, that is, the one-dimensional data corresponding to I, H, and P, is added to the window comparators indicated by , 5p, respectively. . Further, all the outputs of each comparator are applied to the OR product circuit 6. Therefore, the output cuff is 4 on page 9 of this specification.
), all color attributes are considered.

ここでI、H,Pに係わる各基準レベルの印加方法につ
いて説明すれば、この印加力法は前記特開昭58−22
929号に開示されているように画像中の代表点をサン
プリングする方法でも良いし、予め予想されるレベルを
外挿する方法でも良く、更には連続的に変化させながら
抽出域をディスプレイ上で観察し、試行錯誤的に決定す
る方法でも良い。しかし基準レベルの印加方法自体は本
発明の主旨と直接的関係はない。
Here, the method of applying each reference level related to I, H, and P will be explained.
929, a method of sampling representative points in the image, a method of extrapolating a predicted level in advance, or a method of observing the extraction area on a display while changing it continuously. Alternatively, a method of determining by trial and error may be used. However, the method of applying the reference level itself is not directly related to the gist of the present invention.

次に本発明の骨子をなす第1図の各変換器、すなわちR
GB−I変換器2、RGB−+H変換器3、RGB−P
変換器について具体的に説明する。
Next, each transducer of FIG. 1, which forms the gist of the present invention, namely R
GB-I converter 2, RGB-+H converter 3, RGB-P
The converter will be specifically explained.

先ずRGB−I変換器2を説明すれば、これに関しては
各チャンネル毎に適当な係数を乗じた後総和をとる事で
簡単に求める事が出来る為、本発明では特に重要事項と
はしない。ここで適当な係数とは人間の視怒度と装置の
各チャンネル毎の再現レベルの相異、或いは解析の目的
とする所により置かれる各チャンネル毎のウェイティン
グ係数等を考慮して決定されるものである。
First, the RGB-I converter 2 will be explained. Since this can be easily determined by multiplying each channel by an appropriate coefficient and then calculating the sum, it is not particularly important in the present invention. Here, the appropriate coefficient is determined by taking into consideration the difference in human visual intensity and the reproduction level of each channel of the device, or the weighting coefficient for each channel depending on the purpose of analysis. It is.

次に本発明のもっとも特徴とする点の−っであるRGB
−H変換器3の構成手段について以下に説明する。
Next, the most distinctive feature of the present invention is RGB.
The constituent means of the -H converter 3 will be explained below.

良く知られているように色相を平面上に表現すれば、1
つの環を形成する。そこでこの環を直交座標上に置くと
、すべての色相は直交座標上において基準軸、たたとえ
ばX軸からの角度として表現する事ができる。この様子
を第2図に示す。この色相環の例かられかるように、R
,G、Bなる3次元原子データをもって表現された特定
な色相は角度という1次元データを持って表現する事が
可能となる そこでR,G、Bの各チャンネルの保有し得るデータの
最小値をゼロ、最大値を正規化された値に統一して考え
ると、特定色領域を抽出しようとしている画像を提供す
る装置がR,G、Bなるチャンネルを用いて表現し得る
色相は第3図に示す赤(R)、黄(Y)、緑(G)、シ
アン(C)、青(B)、マゼンタ(M)を頂点とする6
角形(これはRSG、Bなる原始データをベクトルと考
えたときの合成ベクトルが描く6角形の例を示す)の内
側にあると考えられ、それがどこにあるとしても基準軸
からの角度で示す事ができる。
As is well known, if hue is expressed on a plane, 1
form two rings. Therefore, if this ring is placed on orthogonal coordinates, all hues can be expressed as angles from a reference axis, such as the X axis, on the orthogonal coordinates. This situation is shown in FIG. As you can see from this example of the color wheel, R
, G, and B can be expressed using one-dimensional data called angle. Therefore, the minimum value of data that can be held by each channel of R, G, and B can be expressed by using one-dimensional data called angle. If we consider zero and maximum values as normalized values, the hues that can be expressed using R, G, and B channels by a device that provides an image from which a specific color region is to be extracted are shown in Figure 3. 6 with red (R), yellow (Y), green (G), cyan (C), blue (B), and magenta (M) as the vertices.
It is considered to be inside a polygon (this is an example of a hexagon drawn by a composite vector when the original data RSG, B is considered as a vector), and wherever it is, it can be expressed as an angle from the reference axis. Can be done.

すなわちR,G、Bなるチャンネルの各レベルをベクト
ルと考えて任意の角度(たとえば等間隔)をもって平面
上に置いたとき、色相はそれらの合成ベクトルが示す任
意の基準位置からの角度として、連続的かつ単調増加的
な一次元量として表現が可能である。
In other words, when each level of the R, G, and B channels is considered as a vector and placed on a plane at arbitrary angles (for example, at equal intervals), the hue is continuous as the angle from the arbitrary reference position indicated by the composite vector. It can be expressed as a monotonically increasing one-dimensional quantity.

本発明においては、以後簡単化のため、基準軸を横軸(
第2図、第3図のAX)にとりRベクトルをAXと一致
させ、GベクトルおよびBベクトルをそれぞれ等間隔を
もって配置することにする。
In the present invention, for the sake of simplicity, the reference axis will be referred to as the horizontal axis (
AX) in FIGS. 2 and 3, the R vector is made to coincide with AX, and the G vector and B vector are arranged at equal intervals.

このようにした時、本発明になる第1図に示したRGB
−H変換器3は第4図のように構成することができる。
When this is done, the RGB shown in FIG. 1 becomes the present invention.
-H converter 3 can be constructed as shown in FIG.

第4図において係数器群のGXはGベクトルの水平成分
、GYは同垂直成分、BXはBベクトルの水平成分、B
Yは同垂直成分、RXはRベクトルの水平成分である。
In Figure 4, GX of the coefficient multiplier group is the horizontal component of the G vector, GY is the vertical component, BX is the horizontal component of the B vector, B
Y is the same vertical component, and RX is the horizontal component of the R vector.

但しRベクトルには垂直成分はない。これらの各成分は
加算器10.11によって合成されて合成ベクトルの水
平軸成分CXおよび垂直成分CYが作成される。更にC
X、CYは逆正接演算器12を経て合成ベクトルの角度
に変換される。このようにして色相を角度に変換された
場合の対応表の例を第1表に示す。この表は第4図の構
成になる色相の数値表現の例を示している。
However, the R vector has no vertical component. Each of these components is combined by an adder 10.11 to create a horizontal axis component CX and a vertical component CY of the combined vector. Further C
X and CY are converted into angles of a composite vector via an arctangent calculator 12. Table 1 shows an example of a correspondence table when hue is converted into angle in this way. This table shows an example of the numerical representation of hue having the configuration shown in FIG.

第1表では角度は単純な数値に置き換えて表現しており
、360 ’を数値256(=2”)とし、その他は比
例配分で表現している。
In Table 1, angles are expressed by replacing them with simple numerical values, with 360' being expressed as a numerical value of 256 (=2''), and other angles expressed by proportional distribution.

次に第1図におけるRGB→P変換器4について具体的
に説明するが、本発明においてはRGB−P変換におい
て次の考えを前提としている。すなわち、 1)飽和度100%の色は最大でも2ケの原始データの
みで表現されたものを云う。たとえばRのみ、RとGと
が適当な割合で混合されたもの、GとBとが等しく混合
されたC(シアン)等はすべて飽和度(もしくは純度)
100χ である。
Next, the RGB→P converter 4 in FIG. 1 will be specifically explained, but the present invention is based on the following idea in RGB-P conversion. That is, 1) A color with 100% saturation is expressed using only two pieces of original data at most. For example, R only, R and G mixed in an appropriate ratio, C (cyan) mixed equally with G and B, etc. all have saturation (or purity).
It is 100χ.

2) すべて原始データが等しく混合された色は飽和度
 0% である。
2) A color in which all original data are mixed equally has a saturation level of 0%.

さて、第5図に本発明になるRGB−P変換器の実施例
とせる構成を示す。
Now, FIG. 5 shows the configuration of an embodiment of the RGB-P converter according to the present invention.

第6図における最大値選択器21は原始データR,G、
Bのうち最大なもの(最大のものが2以上ある時はその
うちのいずれでも良い)を選び、その出力M1をベクト
ル和計算器22に人力する。
The maximum value selector 21 in FIG.
The largest one is selected from B (if there are two or more largest ones, any of them may be used), and its output M1 is input to the vector sum calculator 22.

一方、次大値選択器23はR,G、BのうちMlに相当
するものを除いた残りの原始データR,G。
On the other hand, the next largest value selector 23 selects the remaining original data R, G excluding the one corresponding to Ml among R, G, and B.

Bのうちの最大のもの(最大のものが2以上ある時はそ
のうちのいずれでも良い)を選択し、M2としてベクト
ル和計算器22に入力する。ベクトル和計算器22は入
力されたこれらの2つのデータをベクトルと考え、Ml
、M2がそれぞれRlG、Bの何れであるかに従ってR
GB−H変換器3 (第1図)と同様な処置により合成
ベクトルの水平成分vhおよび垂直成分Vvを算出する
。これらのvhおよびVvはベクトル長計算器24に与
えられ、これにより絶対値IVMIを算出される。いう
までもなく、この時は等価的に次式に基づいた演算を行
う。すなわち、 l v、4+ =(y hz + V V2 ) (1
/21一方ベクトル長計算器は24と全く同様な振舞い
をするベクトル長計算器は25は第4図に示すCx、c
yを入力として与えられ、絶対値IVAIを算出する。
The largest one of B (if there are two or more largest ones, any of them may be used) is selected and inputted to the vector sum calculator 22 as M2. The vector sum calculator 22 considers these two input data as vectors, and calculates Ml
, M2 is RlG or B, respectively.
The horizontal component vh and vertical component Vv of the composite vector are calculated by the same procedure as in the GB-H converter 3 (FIG. 1). These vh and Vv are given to the vector length calculator 24, which calculates the absolute value IVMI. Needless to say, at this time, computation is equivalently performed based on the following equation. That is, l v,4+ = (y hz + V V2 ) (1
/21 On the other hand, the vector length calculator behaves exactly the same as 24. The vector length calculator 25 is Cx, c shown in FIG.
Given y as an input, calculate the absolute value IVAI.

このIVAIは全ベクトルの合成ベクトルの絶対値とな
るのである。これらの絶対値は割算器26に与えられ、
ここでIVAIを被除数、IVMIを除数とした演算が
行なわれ、この結果をPとして出力する。
This IVAI becomes the absolute value of the composite vector of all vectors. These absolute values are given to the divider 26,
Here, an operation is performed using IVAI as the dividend and IVMI as the divisor, and the result is output as P.

このような処理によりPの値は、色相を決定すべき2つ
の原始データ、換言すればR,G、Bのうち優性な2つ
のチャンネルのデータと、残りの1つのデータの値とに
よって、0〜100χの範囲で変化することになる。何
故ならば、IVAIの値は、3つの原始データの混合割
合によって、0から最大IV、41まで変化するからで
ある。
Through such processing, the value of P is reduced to 0 by the two original data that should determine the hue, in other words, the data of the two dominant channels among R, G, and B, and the value of the remaining one data. It will change in the range of ~100χ. This is because the value of IVAI changes from 0 to the maximum IV, 41, depending on the mixing ratio of the three source data.

以上のようにして、本発明になるRGB−P変換器4(
第1図)はR,G、Bなる3次元原始データによって決
定される飽和度(もしくは色純度)をPなる1次元デー
タに変換し、以後の取扱を便利ならしめるのである。
As described above, the RGB-P converter 4 (
Fig. 1) converts the degree of saturation (or color purity) determined by three-dimensional original data R, G, and B into one-dimensional data P, making subsequent handling convenient.

ここで、本発明の応用分野における特殊性、すなわち、
既に説明した如く変換されたP値の絶対精度は重要では
なく、単に連続性、単調増加性のみを重視し、すべての
場合に結果がO〜100χになる事を欲しない場合、本
出願人は次なる別のRGB−P変換手段を提供し、更に
簡単な構成で実用上支障ないRGB−P変換を実現可能
にするのである。
Here, the particularities in the field of application of the present invention, namely:
As already explained, if the absolute precision of the converted P value is not important, but only the continuity and monotonically increasing property are important, and the result is not 0~100χ in all cases, the applicant By providing another RGB-P conversion means, it is possible to realize RGB-P conversion with a simpler configuration and without any practical problems.

第6図にこの第5図とは異なるRGB→P変換器の具体
例を示す。
FIG. 6 shows a specific example of an RGB→P converter different from that shown in FIG.

第6図で符号31および32でそれぞれ示すベクトル長
計算器および割算器はそれぞれ第5図のベクトル長計算
器25および割算器26と全く同じ動作を行うものであ
る。第5図の構成との相違点を述べれば、この変換器で
は第5図のR,G。
The vector length calculator and divider indicated by numerals 31 and 32 in FIG. 6, respectively, perform exactly the same operations as the vector length calculator 25 and divider 26 in FIG. 5, respectively. The difference from the configuration in FIG. 5 is that this converter has R and G in FIG.

B入力からIVMIに至る一連の回路に代えて単に加算
器30を、配して構成された点である。
The point is that an adder 30 is simply arranged instead of a series of circuits from the B input to IVMI.

このように構成した場合、出力Pは色相により常にO〜
10ozになる結果を得る事が出来るとは限らないが、
最も重要な連続性と単調増加性は保証される。このとき
様子は次のように説明出来る。
With this configuration, the output P always varies from O to O depending on the hue.
Although it is not necessarily possible to obtain a result of 10oz,
The most important continuity and monotony are guaranteed. The situation at this time can be explained as follows.

すなわち原始データがただ1つのチャンネルにのみ要素
が存在する場合は、Pが100χを示す事はあきらかで
ある。一方、例えばRとBとが等量づつ混合されたマゼ
ンタ色の場合には、IVMIは2X(IVAI)となり
Pは0.5を示す。このようにして第6図の方式は、す
べての場合にO〜100χの範囲の変換結果を得ること
はできないが、■途によっては経済的且充分に機能する
のである。
That is, if the original data has an element in only one channel, it is clear that P represents 100χ. On the other hand, for example, in the case of magenta color in which R and B are mixed in equal amounts, IVMI is 2X (IVAI) and P is 0.5. In this way, although the method of FIG. 6 cannot obtain conversion results in the range of O to 100.chi. in all cases, it can function economically and satisfactorily in some cases.

第7図は第6図の構成になる場合の色相とそれにより得
られる最大飽和度を示す図である。
FIG. 7 is a diagram showing the hue and the resulting maximum saturation when the configuration shown in FIG. 6 is adopted.

以上説明した構成になる本発明によれば、R2O,Bな
る信号により表現されている原始画像のうち、特定色に
属する領域を各色属性単独に、すなわち一種類の属性の
指定が他の属性に影響を与える事なく指定して抽出する
事が出来ることが理解されよう。
According to the present invention configured as described above, in the original image expressed by the signals R2O and B, the area belonging to a specific color is assigned to each color attribute independently, that is, the specification of one type of attribute is changed to another attribute. It will be understood that it is possible to specify and extract without affecting it.

実施例の説明 第8図は本発明になる作用を実現するRGB−H変換器
の実施例を示す。同図を参照して詳しく説明すれば、4
1a、41b、41CはそれぞれR,G、B各チャンネ
ルのデータ幅に等しいビット数を持つ全加算器で、A、
Bはそれぞれの入力、Σは出力、Ciは桁上げ入力、C
Oは桁上げ出力を示している。全加算器41aの出力は
1ビツトの上方桁ずらしを行って取り出す、すなわち本
来のCOをMSBとし、LSBを捨て去るように接続す
る。これにより反転器42aへの入力は実効的に(G+
B)/2の演算を行う。−労金加算器41bはその桁上
げ入力は論理レベル1に固定され、へ入力は反転器42
aを通じて与えられるため、結果としてΣ=B−Aなる
演算を行う。このことは全加算器41bの出力が第4図
のCxに相当することを意味する。すなわち G X (−cos 60°) + BX (−CO5
60”) + R= GX (−0,5)+ BX (
−0,5)+ R= (G  + B)X O,5+ 
Rなる演算式を踏襄した事に他ならない。
DESCRIPTION OF THE EMBODIMENTS FIG. 8 shows an embodiment of an RGB-H converter implementing the functions of the present invention. To explain in detail with reference to the same figure, 4
1a, 41b, and 41C are full adders each having a number of bits equal to the data width of each R, G, and B channel;
B is each input, Σ is output, Ci is carry input, C
O indicates carry output. The output of the full adder 41a is taken out by shifting the upper digit by 1 bit, that is, the original CO is connected as the MSB and the LSB is discarded. As a result, the input to the inverter 42a is effectively (G+
B) Perform the calculation of /2. - The carry input of the labor adder 41b is fixed at logic level 1, and the input to the inverter 42
Since it is given through a, the result is the calculation Σ=B−A. This means that the output of the full adder 41b corresponds to Cx in FIG. That is, G X (-cos 60°) + BX (-CO5
60”) + R= GX (-0,5)+ BX (
-0,5)+ R= (G + B)X O,5+
This is nothing but a violation of the arithmetic formula R.

また全加算器41CはB入力に反転器42bを通して青
(B)のデータが与えられ、また桁上げ入力は論理レベ
ル1に固定されているため、G−Bなる演算を行うので
ある。
Further, the full adder 41C receives blue (B) data through the inverter 42b at its B input, and its carry input is fixed at logic level 1, so it performs the operation G-B.

このようにして全加算器41bの出力は第4図のcyを
代表し、全加算器41Cの出力はCy×(1/sin 
60°)を代表する事ができ、それぞれは逆正接算出の
基礎として用いられるのである。
In this way, the output of the full adder 41b represents cy in FIG. 4, and the output of the full adder 41C represents Cy×(1/sin
60°), and each is used as the basis for calculating the arctangent.

この実施例では、逆正接の算出のためにROM(Rea
d 0nly Memory)  43が使用されてい
る。このためcyに対し5in60”を乗する操作はR
OMテーブルによって自動的に行なわれるので、特別な
回路は省略できて好都合である。
In this example, a ROM (Rea) is used to calculate the arctangent.
dOnly Memory) 43 is used. Therefore, the operation of multiplying cy by 5in60'' is R
Since this is done automatically using the OM table, it is advantageous that a special circuit can be omitted.

ROM43にはCx、Cy相当信号の符号を印加するた
めのS X % S y端子が設けられ、これらには4
1b、41Cの桁上げ信号が充当される。
The ROM 43 is provided with S x % S y terminals for applying the signs of Cx and Cy equivalent signals, and these terminals have 4 terminals.
The carry signals of 1b and 41C are applied.

またROM43はその出力として端子Hを具備し、予め
360°分の逆正接逆が書き込んであるものとする。ち
なみに、X、Yをそれぞれ7ビツトとしたときに、角度
出力を8ビツト表現にすれば人力は全部で16ビツトと
なり、必要なROMの規模は64にバイトとなり、今日
では充分に1個のICによってまかなえるので実用的で
ある。
It is also assumed that the ROM 43 has a terminal H as its output, and the inverse arctangent for 360° is written in advance. By the way, if X and Y are each 7 bits, and the angle output is expressed in 8 bits, the human power will be 16 bits in total, and the required ROM size will be 64 bytes, which is enough for one IC today. It is practical because it can be covered by

次に第9図は本発明になるRGB−P変換器すなわち第
5図の実施例を示す。この第10図について説明すれば
、51a、51b、51Cは比較器をそれぞれ示してお
り、ここではその人力A1Bの大きさを比較し、A>B
のときのみその出力Cを「真」とするものとされている
。符号52で示す組合せロジックは51a、51b、5
1Cの状態によって、R,G、Bのうち最大のものおよ
び次大のもののみのデータをベクトル長計算器53に導
き、それ以外はANDゲートで禁止するように作用する
。ここで組合せロジック52の動作を求める真理値表は
第2表のようになる。
Next, FIG. 9 shows the RGB-P converter according to the present invention, that is, the embodiment of FIG. 5. To explain this FIG. 10, 51a, 51b, and 51C each indicate a comparator, and here, the magnitude of the human power A1B is compared, and A>B
The output C is considered to be "true" only when . The combinational logic indicated by the reference numeral 52 is 51a, 51b, 5
Depending on the state of 1C, data of only the largest one and the next largest one among R, G, and B is led to the vector length calculator 53, and other data are inhibited by an AND gate. Here, the truth table for determining the operation of the combinational logic 52 is as shown in Table 2.

第2表 このような作用は掻く平凡な論理素子もしくはプログラ
マブル論理素子により容易に実現できるため内部につい
ては省略する。
Table 2 Since such an operation can be easily realized using a common logic element or a programmable logic element, the internal details will be omitted.

さて、ベクトル長計算器53.54はそれぞれ全く同じ
構造をなし、その具体的構造は第8図に示すRGB−H
変換器と全く同じと考えて良い。
Now, the vector length calculators 53 and 54 have exactly the same structure, and the specific structure is RGB-H shown in FIG.
You can think of it as exactly the same as a converter.

但し、第8図のROM43に相当する部分はその内容を
逆正接算出テーブルに代えて絶対値算出テーブルに変更
しである。すなわち、 ((SX−X)” + (Sy−Y)” )””の演算
と同等な対比表を書き込んであるものとする。その結果
はしから出力され、割算ROM55のM、A入力に印加
される。ROM55はその内部テーブルとしてP=A/
Mなる演算を行うのと同等の対比表を書き込まれている
ため、その出力Pは既に説明した原理に従って飽和度を
代表する一次元データを表現するのである。
However, the contents of the portion corresponding to the ROM 43 in FIG. 8 are changed to an absolute value calculation table instead of an arctangent calculation table. That is, it is assumed that a comparison table equivalent to the calculation ((SX-X)" + (Sy-Y)")"" has been written. The result is then output and applied to the M and A inputs of the division ROM 55. The ROM 55 has an internal table of P=A/
Since a comparison table equivalent to performing the calculation M is written, the output P expresses one-dimensional data representative of the degree of saturation according to the principle already explained.

次に第6図の原理に基〈実施例を第10図に示す。第1
0図に示すように加算器61、加算器62を経由するこ
とにより、原始データR,G、Bは全て加え合わされる
。この結果データのビット数が増え、その後の割り算R
OM65の必要メモリ数を増大し、しかも加え合わせ要
素数が27を外れていることに基づく利用不可能な入力
の組み合わせを発生するので、これを防ぐため正規化R
OM63でそのデータの最大値を原始データと同一のビ
・ノド数に整えるのである。ベクトル長計算器64およ
び割算ROM65の構成および動作は第9図と全く同じ
であるので省略する。
Next, based on the principle shown in FIG. 6, an embodiment is shown in FIG. 1st
As shown in FIG. 0, original data R, G, and B are all added together by passing through an adder 61 and an adder 62. As a result, the number of bits of data increases, and the subsequent division R
In order to prevent this, the normalization R
The OM63 adjusts the maximum value of the data to the same number of bits as the original data. The configuration and operation of the vector length calculator 64 and the division ROM 65 are exactly the same as in FIG. 9, so their explanation will be omitted.

このような第11図に示す方法は既に説明したような僅
かな欠点を有するものの、その構成の簡単さから実用性
は極めて高く、有用である。
Although the method shown in FIG. 11 has the slight drawbacks described above, it is extremely practical and useful due to its simple configuration.

次に第11図は■およびPの属性に係わる特定領域抽出
を行うためのウィンドウコンパレータの実施例であるが
、この点に関しては従来技術の応用であり、特に説明を
要しないと考えて説明を省略する。
Next, Fig. 11 shows an example of a window comparator for extracting a specific area related to the attributes of ■ and P, but this point is an application of the prior art and will not be explained as it does not require any special explanation. Omitted.

これに対し、H属性はその数値が環状をなす、すなわち
数値最大の色相は数値最小の色相に連結しているため、
ウィンドウコンパレータの作成に工夫が必要である。こ
のようなウィンドウコンパレータとしては、本出願人に
より昭和60年8月31日付けで実用新案全出願された
「循環する数値コードを有するデータのウィンドウディ
スクリミネータ」と題する考案の明細書に記載されたも
のが好適である。
On the other hand, for the H attribute, the numerical values form a ring, that is, the hue with the maximum numerical value is connected to the hue with the minimum numerical value, so
It is necessary to create a window comparator. Such a window comparator is described in the specification of a device titled "Window Discriminator for Data Having a Circulating Numerical Code," which was filed by the applicant as a utility model on August 31, 1985. It is preferable that

次に、第1図に示した基本構成の最終段階である論理積
回路6の実施例について第12図を用いて説明するが、
原則的には第1図に示した単純な論理積回路6は充分に
その目的を達するのである。
Next, an embodiment of the AND circuit 6, which is the final stage of the basic configuration shown in FIG. 1, will be explained using FIG. 12.
In principle, the simple AND circuit 6 shown in FIG. 1 is sufficient for its purpose.

このことについては、本明細書第9頁に記載の4)項の
説明により明らかである。しかし本発明の適用の仕方に
よっては3つの属性(l H,P)のうちの何れか1つ
または2つを意識的に無視することが望まれる場合があ
る。例えば、R,G、Bを混合して1つのモノクローム
画像としてとらえた場合において領域抽出を行いたい場
合には、■以外の属性の存在は障害になる。また明度や
飽和度を無視して単に色相のみを考慮の対象としたい場
合もある。このような発展性を持たせた論理積回路とし
て第12図の構成は良く機能する。
This is clear from the explanation in section 4) on page 9 of this specification. However, depending on how the present invention is applied, it may be desirable to intentionally ignore any one or two of the three attributes (l H, P). For example, when it is desired to perform region extraction when R, G, and B are mixed and captured as one monochrome image, the existence of attributes other than ■ becomes an obstacle. There are also cases where it is desired to ignore brightness and saturation and simply consider hue. The configuration shown in FIG. 12 functions well as an AND circuit with such expandability.

さて、第12図においてID、HD、、PDはそれぞれ
■、H,Pをウィンドウコンパレータを通じて特定領域
として認められた信号であり、IM、1−fM、PMは
ID、HD、PDに係わるオーバーライド(無視)信号
を示している。ここでもしオーバーライド信号が「真」
になったとき、これに係わる領域信号は無条件に「真」
となる。このことは最終論理積ゲートにおいて該当する
パスが無かったことに等しい振舞をするのである。そこ
でIM、HM、PMの状態によって装置が如何なる認識
を行うかをまとめて第3表に示す。
Now, in FIG. 12, ID, HD, and PD are signals that are recognized as specific areas through the window comparator, and IM, 1-fM, and PM are signals that are recognized as specific areas through the window comparator, and IM, 1-fM, and PM are signals that are associated with ID, HD, and PD ( Ignore) signal. Here, if the override signal is "true"
When , the area signal related to this is unconditionally “true”
becomes. This behavior is equivalent to the fact that there is no corresponding path in the final AND gate. Therefore, Table 3 summarizes how the device performs recognition depending on the states of IM, HM, and PM.

第  3  表 発明の効果 このように、本発明の方法を用いることにより画像処理
、画像解析の分野において本質的に(等価的にではない
)色の三属性に基づく特定色領域の抽出が実行でき、し
かも各属性パラメータの設定は全て単なる1次元のデー
タにより指定可能であり、更にどの属性パラメータの変
更も他のパラメータに影響を与えることなく独立して行
えることになるのである。また興味の対象となる属性の
取捨選択も自由にできるので、実用性の極めて高い機能
を発揮できるのである。
Table 3 Effects of the Invention As described above, by using the method of the present invention, it is possible to extract a specific color region based essentially (not equivalently) on the three attributes of color in the fields of image processing and image analysis. Moreover, the settings of each attribute parameter can all be specified using simple one-dimensional data, and furthermore, any attribute parameter can be changed independently without affecting other parameters. Furthermore, since it is possible to freely select the attributes of interest, it is possible to demonstrate an extremely practical function.

尚、前述の説明においては原始データとして3つのチャ
ンネルからなるカラー画像を参照したが、本発明は2チ
ャンネル以上の任意のチャンネル数からなるマルチバン
ド画像に適用できることは勿論である。また、前述の説
明では画像における領域の抽出についてのみ説明したが
、同様に同じ構成によって原画像の特定領域の色の同定
ができることは明らかである。
In the above description, reference was made to a color image consisting of three channels as the original data, but the present invention can of course be applied to a multiband image consisting of any number of channels greater than or equal to two channels. Further, in the above description, only the extraction of a region in an image has been described, but it is clear that the same configuration can similarly identify the color of a specific region of an original image.

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

第1図は本発明の方法を実施するための基本構成を示す
回路図。 第2図は色相環における表現したい色を角度で表現する
状態を示す説明図。 第3図はR,G、Bなる原始データをベクトルとして考
えたときの合成ベクトルが描く6角形を示す説明図。 第4図は本発明の特徴の1つであるRGB→H変換器の
構成を説明する回路図。 第5図は本発明の特徴の1つであるRGB−P変換器の
構成を説明する回路図。 第6図はRGB4P変換器の他の構成を説明する回路図
。 第7図は色相とそれにより得られる最大飽和度を示す説
明図。 第8図はRG B −H変換器の実施例を示す回路図。 第9図はRGB−P変換器の第5図に関する実施例を示
す回路図。 第1O図はRGB−H変換器の第8図に関する実施例を
示す回路図。 第11図はI、Pの属性を用いる領域抽出器の実施例を
示す回路図。 第12図は実用的な論理積回路の実施例を示す回路図。 1・・・原始信号発生器 2・・・ROB→I変換器 3・・・RGB−H変換器 4・・・RGB−4P変換器 5 i、5h、5p・・ウィンドウコンパレータ6・・
・論理積回路 7・・・出力 21・・・最大値選択器 22・・・ベクトル和計算器 23・・・次大値選択器 24.25・・ベクトル長計算器 26・・・割算器 30・・・加算器 31・・・ベクトル長計算器 32・・・割算器 41a、41b、41cm−全加算器 42a、42b・・反転器 43・・・逆正接算出用ROM 51a、51b、51C・・比較器 52・・・組合せロジック 53.54・・ベクトル長計算器 55・・・割算ROM 61.62・・加算器 63・・・正規化ROM 64・・・ベクトル長計算器 65・・・割算ROM
FIG. 1 is a circuit diagram showing the basic configuration for implementing the method of the present invention. FIG. 2 is an explanatory diagram showing a state in which a desired color on a hue wheel is expressed by an angle. FIG. 3 is an explanatory diagram showing a hexagon drawn by a composite vector when the original data R, G, and B are considered as vectors. FIG. 4 is a circuit diagram illustrating the configuration of an RGB→H converter, which is one of the features of the present invention. FIG. 5 is a circuit diagram illustrating the configuration of an RGB-P converter, which is one of the features of the present invention. FIG. 6 is a circuit diagram explaining another configuration of the RGB4P converter. FIG. 7 is an explanatory diagram showing the hue and the maximum saturation degree obtained by the hue. FIG. 8 is a circuit diagram showing an embodiment of the RG B-H converter. FIG. 9 is a circuit diagram showing an embodiment of the RGB-P converter related to FIG. 5. FIG. 1O is a circuit diagram showing an embodiment of the RGB-H converter related to FIG. 8. FIG. 11 is a circuit diagram showing an embodiment of a region extractor using I and P attributes. FIG. 12 is a circuit diagram showing an embodiment of a practical AND circuit. 1... Original signal generator 2... ROB→I converter 3... RGB-H converter 4... RGB-4P converter 5 i, 5h, 5p... Window comparator 6...
・Logic product circuit 7...Output 21...Maximum value selector 22...Vector sum calculator 23...Next maximum value selector 24.25...Vector length calculator 26...Divider 30...Adder 31...Vector length calculator 32...Divider 41a, 41b, 41cm-Full adder 42a, 42b...Inverter 43...ROM for arctangent calculation 51a, 51b, 51C...Comparator 52...Combination logic 53.54...Vector length calculator 55...Division ROM 61.62...Adder 63...Normalization ROM 64...Vector length calculator 65 ...Division ROM

Claims (6)

【特許請求の範囲】[Claims] (1)少なくも2以上のチャネルに分けて記録されてい
るマルチバンド画像に関して特定の色を抽出もしくは同
定するために各チャネル毎のレベル情報を色の属性(明
度、色相、飽和度)を代表するベクトル情報に変換し、
これにより弁別を行う方法であって、 明度軸成分への変換手段として各バンド毎の絶対値のそ
れぞれに適当な係数を乗じたものの総和を用い、更に色
相軸成分への変換手段として直交座標上に適当な角度間
隔をもっておかれた各チャネルのレベルを代表するベク
トル群の合成ベクトルが基準軸と成す角度を用い、この
角度の算出に際して各チャネルを代表する各ベクトルが
上記直交座標の基準軸と成す角度の余弦成分を算出する
係数器、正弦成分を算出する係数器及び各成分毎に総和
を求める加算器を用いた合成ベクトルの余弦成分、正弦
成分を入力とする逆正接、算出器の出力を用いることを
特徴とする特定色領域抽出方法。
(1) In order to extract or identify a specific color from a multiband image recorded in at least two or more channels, the level information for each channel represents the color attributes (brightness, hue, saturation). Convert to vector information,
This is a method of discrimination, in which the sum of the absolute values of each band multiplied by an appropriate coefficient is used as a means of converting to lightness axis components, and furthermore, the sum of the absolute values of each band is multiplied by an appropriate coefficient, and further, as a means of converting to hue axis components, the sum of the absolute values of each band is used. When calculating this angle, each vector representing each channel is made with the reference axis of the orthogonal coordinates. A coefficient unit that calculates the cosine component of the angle formed by the angle, a coefficient unit that calculates the sine component, and an adder that calculates the sum of each component are used to calculate the cosine component of the composite vector, the arctangent that takes the sine component as input, and the output of the calculator A specific color region extraction method characterized by using.
(2)各色属性量をウィンドウコンパレータに加えコン
パレータ出力の倫理積を以て特定式領域と認定するに当
たり、各色属性にかかわるコンパレータ出力をマスクす
ることを特徴とする特許請求の範囲第1項に記載の特定
色領域抽出方法。
(2) The specification according to claim 1, characterized in that when identifying a specific expression area by adding each color attribute quantity to a window comparator and using the ethical product of the comparator output, the comparator output related to each color attribute is masked. Color region extraction method.
(3)少なくも2以上のチャネルに分けて記録されてい
るマルチバンド画像に関して特定の色を抽出もしくは同
定するために各チャネル毎のレベル情報を色の属性(明
度、色相、飽和度)を代表するベクトル情報に変換し、
これにより弁別を行う方法であって、 明度軸成分への変更手段として各バンド毎の絶対値のそ
れぞれに適当な係数を乗じたものの総和を用い、更に飽
和度軸成分への変更手段として、前記合成ベクトルの絶
対値を|V_H|とし、原画像を記録している各チャン
ネル毎のレベルを代表するベクトルのうち最大のもの2
つのみを要素とする合成ベルトの絶対値を|V_F|と
し、これにより|V_H|/|V_P|なる演算を行う
演算器の出力を用いることを特徴とする特定色領域抽出
方法。
(3) In order to extract or identify a specific color from a multiband image recorded in at least two or more channels, the level information for each channel represents the color attributes (brightness, hue, saturation). Convert to vector information,
This is a method for performing discrimination, in which the sum of the absolute values of each band multiplied by an appropriate coefficient is used as a means of changing to the lightness axis component, and the above-mentioned method is used as a means of changing to the saturation axis component. The absolute value of the composite vector is |V_H|, and the largest vector 2 represents the level of each channel recording the original image.
A method for extracting a specific color area, characterized in that the absolute value of a composite belt having only one element as |V_F| is used, and the output of an arithmetic unit that calculates |V_H|/|V_P| is used.
(4)各色属性量をウィンドウコンパレータに加えコン
パレータ出力の倫理積を以て特定式領域と認定するに当
たり、各色属性にかかわるコンパレータ出力をマスクす
ることを特徴とする特許請求の範囲第3項に記載の特定
色領域抽出方法。
(4) The specification according to claim 3, characterized in that when identifying a specific expression region by adding each color attribute amount to a window comparator and using the ethical product of the comparator output, the comparator output related to each color attribute is masked. Color region extraction method.
(5)少なくも2以上のチャネルに分けて記録されてい
るマルチバンド画像に関して特定の色を抽出もしくは同
定するために各チャネル毎のレベル情報を色の属性(明
度、色相、飽和度)を代表するベクトル情報に変換し、
これにより弁別を行う方法であって、 明度軸成分への変更手段として各バンド毎の絶対値のそ
れぞれに適当な係数を乗じたものの総和を用い、更に飽
和度軸成分への変更手段として、前記合成ベルトの絶対
値を|V_H|とし、原画像を記録している各チャンネ
ル毎のレベルの総和もしくは平均をLとし、|V_H|
/Lなる演算を行う演算器の出力を用いる特定色領域抽
出方法。
(5) In order to extract or identify a specific color from a multiband image recorded in at least two or more channels, the level information for each channel represents the color attributes (brightness, hue, saturation). Convert to vector information,
This is a method for performing discrimination, in which the sum of the absolute values of each band multiplied by an appropriate coefficient is used as a means of changing to the lightness axis component, and the above-mentioned method is used as a means of changing to the saturation axis component. The absolute value of the composite belt is |V_H|, and the sum or average of the levels for each channel recording the original image is L, |V_H|
A specific color area extraction method using the output of a computing unit that performs the calculation /L.
(6)各色属性量をウィンドウコンパレータに加えコン
パレータ出力の倫理積を以て特定式領域と認定するに当
たり、各色属性にかかわるコンパレータ出力をマスクす
ることを特徴とする特許請求の範囲第5項に記載の特定
色領域抽出方法。
(6) The specification according to claim 5, characterized in that when identifying a specific expression area by adding each color attribute amount to a window comparator and using the ethical product of the comparator output, the comparator output related to each color attribute is masked. Color region extraction method.
JP60192358A 1985-08-31 1985-08-31 Method for extracting specific color area Granted JPS6252675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60192358A JPS6252675A (en) 1985-08-31 1985-08-31 Method for extracting specific color area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60192358A JPS6252675A (en) 1985-08-31 1985-08-31 Method for extracting specific color area

Publications (2)

Publication Number Publication Date
JPS6252675A true JPS6252675A (en) 1987-03-07
JPH0514944B2 JPH0514944B2 (en) 1993-02-26

Family

ID=16289947

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60192358A Granted JPS6252675A (en) 1985-08-31 1985-08-31 Method for extracting specific color area

Country Status (1)

Country Link
JP (1) JPS6252675A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62198968A (en) * 1986-02-27 1987-09-02 Canon Inc Image processor
JPH03261294A (en) * 1990-03-12 1991-11-21 Nippon Avionics Co Ltd Real time hue extraction circuit
JPH04244281A (en) * 1991-01-30 1992-09-01 Japan Field Kk Gas recovery apparatus
JPH04256471A (en) * 1991-02-07 1992-09-11 Japan Field Kk Solvent vapor recovery device of cleaning machine

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55115043A (en) * 1979-02-28 1980-09-04 Dainippon Screen Mfg Co Ltd Color correction operation method
JPS5779944A (en) * 1980-11-06 1982-05-19 Nireko:Kk Detector for equal color tone region
JPS57211193A (en) * 1981-06-22 1982-12-24 Shimadzu Corp Image analysis color adaptor
JPS6074874A (en) * 1983-09-30 1985-04-27 Fujitsu Ltd Picture color separating system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55115043A (en) * 1979-02-28 1980-09-04 Dainippon Screen Mfg Co Ltd Color correction operation method
JPS5779944A (en) * 1980-11-06 1982-05-19 Nireko:Kk Detector for equal color tone region
JPS57211193A (en) * 1981-06-22 1982-12-24 Shimadzu Corp Image analysis color adaptor
JPS6074874A (en) * 1983-09-30 1985-04-27 Fujitsu Ltd Picture color separating system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62198968A (en) * 1986-02-27 1987-09-02 Canon Inc Image processor
JPH03261294A (en) * 1990-03-12 1991-11-21 Nippon Avionics Co Ltd Real time hue extraction circuit
JPH04244281A (en) * 1991-01-30 1992-09-01 Japan Field Kk Gas recovery apparatus
JPH04256471A (en) * 1991-02-07 1992-09-11 Japan Field Kk Solvent vapor recovery device of cleaning machine

Also Published As

Publication number Publication date
JPH0514944B2 (en) 1993-02-26

Similar Documents

Publication Publication Date Title
JP4196845B2 (en) Image processing device
US6272239B1 (en) Digital image color correction device and method employing fuzzy logic
US6774909B1 (en) Method and apparatus for transforming color image into monochromatic image
JPH06333039A (en) Method and device for airbrushing
CN111369431A (en) Image processing method and device, readable medium and electronic equipment
JPS6252675A (en) Method for extracting specific color area
CN106408617A (en) Interactive single image material acquiring system based on YUV color space and method
Sugano Color-naming system using fuzzy set theoretical approach
CN110298783B (en) Image matting method and system
CN113658157A (en) Color segmentation method and device based on HSV space
JP2996522B2 (en) Image processing method
JP3060640B2 (en) Color converter
JPH03121571A (en) Color picture processor
JP2601265B2 (en) Color correction method
CN108282643A (en) Image processing method, image processing apparatus and electronic equipment
Taguchi Color Systems and Color Image Enhancement Methods
Miyazaki et al. Hue enhancement for dichromats using Poisson equation
JPH03261294A (en) Real time hue extraction circuit
JP3409882B2 (en) Color identification extraction device
JPH1042313A (en) Signal processing system, image processor and circuit for converting signal
Shirriff The rbw color model
JP3205054B2 (en) Color image processing apparatus and method
JPH06274618A (en) Area identifying device
Santillan et al. Color morphological image segmentation on a new opponent color space based on the notion of critical functions
JP3257851B2 (en) Color image processing equipment

Legal Events

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