Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0697459B2 - Color image area management device, color image area management method, and color image area search method - Google Patents
[go: Go Back, main page]

JPH0697459B2 - Color image area management device, color image area management method, and color image area search method - Google Patents

Color image area management device, color image area management method, and color image area search method

Info

Publication number
JPH0697459B2
JPH0697459B2 JP3174749A JP17474991A JPH0697459B2 JP H0697459 B2 JPH0697459 B2 JP H0697459B2 JP 3174749 A JP3174749 A JP 3174749A JP 17474991 A JP17474991 A JP 17474991A JP H0697459 B2 JPH0697459 B2 JP H0697459B2
Authority
JP
Japan
Prior art keywords
color
pixel
class
node
image area
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
Application number
JP3174749A
Other languages
Japanese (ja)
Other versions
JPH04370881A (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.)
International Business Machines Corp
Original Assignee
International Business Machines 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 International Business Machines Corp filed Critical International Business Machines Corp
Priority to JP3174749A priority Critical patent/JPH0697459B2/en
Publication of JPH04370881A publication Critical patent/JPH04370881A/en
Publication of JPH0697459B2 publication Critical patent/JPH0697459B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は一般には画像処理システ
ムに関し、さらに詳しく言えば、カラー画像を管理する
ための方法及びシステム並びにこのようにして管理され
たカラー画像の領域を検索するための方法及びシステム
に関する。
FIELD OF THE INVENTION This invention relates generally to image processing systems, and more particularly to a method and system for managing color images and a method for retrieving regions of a color image thus managed. And the system.

【0002】[0002]

【従来の技術】カラー画像処理の分野においては、対象
物の切り出しや色変更など、ある対象領域のみに処理を
施したい場合がある。こうした要求は、特に、パーソナ
ルコンピュータやワークステーションなどで急速に製品
化が進んでいるカラー画像編集システムやペインティン
グシステムで顕著である。これらは、必要とする部分の
みを処理すればよいという点で、主として画像全体を処
理の対象としているリモートセンシングや医療システム
における画像処理とは大きく異なる。このような部分的
処理においては、必要な領域を迅速に検出できること及
びその領域について出来る限り無駄なく読み書きできる
ことが処理効率やメモリ効率の面から肝要となる。した
がって、データ構造もこのような部分的処理に適したも
のであることが必要である。これは、特に、静止画像中
に対象領域が多数点在する場合や動画像のように多数の
連続したフレームを処理する場合などにおいてシステム
を実用化する際に必須となる。
2. Description of the Related Art In the field of color image processing, it is sometimes desired to perform processing only on a certain target area, such as cutting out an object or changing a color. These requirements are particularly remarkable in color image editing systems and painting systems, which are rapidly being commercialized for personal computers and workstations. These are largely different from image processing in remote sensing and medical systems, which mainly process the entire image, in that only the necessary parts need to be processed. In such partial processing, it is important in terms of processing efficiency and memory efficiency that a necessary area can be quickly detected and that area can be read and written as efficiently as possible. Therefore, the data structure also needs to be suitable for such partial processing. This is indispensable when the system is put into practical use, especially when a large number of target areas are scattered in a still image or when a large number of consecutive frames are processed like a moving image.

【0003】カラー画像データは、通常、二次元配列に
おける画素ごとの三原色データとして記憶される。この
場合、画素の値は基本的には位置の関数として記述され
るため、処理の対象領域を検出するためには、画像全体
を読みだし、画素ごとに条件を満たすかどうかを調べる
必要がある。
Color image data is usually stored as three primary color data for each pixel in a two-dimensional array. In this case, since the pixel value is basically described as a position function, it is necessary to read out the entire image and check whether or not the condition is satisfied for each pixel in order to detect the processing target area. .

【0004】ところで、図形情報や画像データを扱う有
効な方法として、木構造やピラミッド構造がある。例え
ば、二値画像のデータを木構造で表現すると、情報が密
に存在するところほど領域が細かく分割されるため、画
像データを効率よく管理することが可能となり、指定さ
れた位置に白画素があるか黒画素あるかを高速に検索す
ることができる。しかしながら、逆に、目的となる領
域、例えば白画素の領域を検索したいという場合は、結
局、最下位レベルのノードをすべて調べなければならな
い。情報が非常に密であれば、場合によっては、最下位
レベルが画素レベルになることもある。いずれにして
も、最下位レベルのノードをすべて調べなければならな
いという点で、検索の効率が落ちる。木構造は多値画像
データにも応用できるが、この点では同様である。
By the way, there are a tree structure and a pyramid structure as effective methods for handling graphic information and image data. For example, if the data of a binary image is represented by a tree structure, the denser the information is, the finer the area is divided, so it is possible to manage the image data efficiently, and the white pixel is displayed at the specified position. Whether or not there is a black pixel can be searched at high speed. However, conversely, when it is desired to search for a target area, for example, a white pixel area, all of the lowest level nodes must be checked after all. If the information is very dense, in some cases the lowest level may be the pixel level. In any case, the search is less efficient in that all the lowest level nodes have to be examined. The tree structure can be applied to multi-valued image data, but the same applies in this respect.

【0005】一方、ピラミッド構造は、解像度の低い画
像に対して処理を行い次に解像度の高い画像を処理する
場合には有効である。しかしながら、解像度の低い画像
では当然漏れている情報があるため、例えば白画素の領
域をすべて検索したいという処理には不向きである。
On the other hand, the pyramid structure is effective when a low resolution image is processed and then a high resolution image is processed. However, in a low-resolution image, there is naturally missing information, so that it is unsuitable for the process of searching for all white pixel regions, for example.

【0006】色画像データの色の処理に関する従来技術
として、特定された対象領域におけるエッジの判定に関
する技術を開示する特開昭63−182786号、対象
領域において分割を行うため代表色を選ぶ技術を開示す
る特開昭63−184475号、色変換や明度変換さら
にデータの圧縮率を上げるためにRGB表色系以外の表
色系を利用する技術を開示する特開昭63−18516
3号がある。しかしながら、これらの従来技術は、指定
された色を有する領域を検索するのに適したものではな
く、また、そのためのデータ管理方法を開示するもので
もない。
As a conventional technique relating to color processing of color image data, Japanese Patent Laid-Open No. 182786/1988 discloses a technique relating to determination of an edge in a specified target region, and a technique for selecting a representative color for division in the target region. Japanese Patent Application Laid-Open No. 63-184475, Japanese Patent Application Laid-Open No. 63-18516 which discloses a technique of utilizing a color system other than the RGB color system in order to perform color conversion, lightness conversion, and data compression rate.
There is number 3. However, these conventional techniques are not suitable for searching a region having a designated color, nor do they disclose a data management method therefor.

【0007】[0007]

【本発明が解決しようとする課題】以上説明したよう
に、カラー画像において指定された色を有する領域を高
速に検索出来るようにすることが従来技術の課題であ
る。したがって、本発明の目的は、指定された色を有す
る領域を検索するのに適したカラー画像の領域管理方法
を提供すること及びこれを用いて指定された色を有する
領域を高速に検索するための検索方法を提供することで
ある。
As described above, it is an object of the prior art to make it possible to search a region having a designated color in a color image at high speed. Therefore, an object of the present invention is to provide a color image area management method suitable for searching an area having a designated color, and to search for an area having a designated color at a high speed by using the method. It is to provide a search method of.

【0008】[0008]

【課題を解決するための手段】[Means for Solving the Problems]

【0009】上記目的を達成するため、本発明のカラー
画像領域管理装置は、各画素の色データが三色表色系に
より表わされた画像データの各画素についてその画素の
色が知覚色系に基づいて分類される複数の色クラスのい
ずれに属するかを決定する色クラス決定手段と、それぞ
れ少なくとも一つの画素を含むブロックを葉ノードとし
て根ノードに至る木構造データを構成するとともに、該
木構造データにおけるノードごとに、そのノードに含ま
れる画素について色クラスごとにその色クラスに属する
色を有する画素の頻度を計算し各色クラスごとに計算さ
れた画素の頻度を色指標として記憶する色指標記憶手段
と、を有することを特徴としている。
In order to achieve the above object, the color image area management apparatus of the present invention is such that the color of each pixel of the image data in which the color data of each pixel is represented by the three color system is the perceptual color system. A color class determining unit that determines which one of a plurality of color classes that are classified on the basis of, and that configures tree structure data that reaches a root node by using a block including at least one pixel as a leaf node. For each node in the structure data, the color index that stores the frequency of pixels having a color belonging to that color class for the pixels included in that node, and stores the calculated pixel frequency for each color class as a color index And a storage means.

【0010】上記目的を達成するため、本発明のカラー
画像領域管理方法は、画像データの各画素の色データを
三色表色系から知覚色系に変換するステップと、知覚色
系に基づく色空間を複数の色クラスに分割するステップ
と、画素の色が上記複数の色クラスのうちのいずれの色
クラスに属するかを決定するステップと、それぞれ少な
くとも一つの画素を含むブロックを葉ノードとして根ノ
ードに至る木構造データを構成するとともに、該木構造
データにおけるノードごとに、そのノードに含まれる画
素について色クラスごとにその色クラスに属する色を有
する画素の頻度を計算し各色クラスごとに計算された画
素の頻度を色指標として記憶するステップと、を有する
ことを特徴としている。
In order to achieve the above object, a color image area management method of the present invention comprises a step of converting color data of each pixel of image data from a three color system to a perceptual color system, and a color based on the perceptual color system. A step of dividing the space into a plurality of color classes; a step of determining which color class the color of the pixel belongs to among the plurality of color classes; and a root including a block including at least one pixel as a leaf node. Composes tree-structured data up to a node, and for each node in the tree-structured data, calculates the frequency of pixels having a color belonging to that color class for each pixel included in that node, and for each color class. Storing the frequency of the selected pixels as a color index.

【0011】上記目的を達成するため、本発明のカラー
画像領域管理システムは、原画像を三色表色系により表
される画像データとして取り込むの画像入力装置と、こ
の画像入力装置から出力される三色表色系により表され
る画像データを記憶する記憶手段と、各画素の色データ
が三色表色系により表わされた画像データの各画素につ
いてその画素の色が知覚色系に基づいて分類される複数
の色クラスのいずれに属するかを決定する色クラス決定
手段と、それぞれ少なくとも一つの画素を含むブロック
を葉ノードとして根ノードに至る木構造データを構成す
るとともに、該木構造データにおけるノードごとに、そ
のノードに含まれる画素について色クラスごとにその色
クラスに属する色を有する画素の頻度を計算し各色クラ
スごとに計算された画素の頻度を色指標として記憶する
色指標記憶手段と、を有することを特徴としている。
In order to achieve the above object, the color image area management system of the present invention includes an image input device for capturing an original image as image data represented by a three color system, and an output from the image input device. Storage means for storing image data represented by the three-color system, and a color of each pixel of the image data represented by the three-color system is based on the perceptual color system. Color class determining means for determining which one of a plurality of color classes classified according to the above, and tree structure data reaching a root node with a block including at least one pixel as a leaf node, and the tree structure data For each node in, the frequency of pixels having a color belonging to that color class is calculated for each pixel included in that node, and is calculated for each color class. It is characterized by having a color index storage means for storing the frequency of the pixel as a color indicator, the.

【0012】上記目的を達成するため、上記カラー画像
領域管理装置によって構成された木構造データを用いて
カラー画像の領域を検索する本発明のカラー画像領域検
索方法は、指定された色に基づいて検索すべき色クラス
を決定するステップと、決定された色クラスについて木
構造データを探索するステップと、葉ノード以外の各ノ
ードにおいて、決定された色クラスに属する画素の頻度
がゼロの場合は自己より下位のノードの探索を打ち切
り、そうでない場合は探索を続行するステップと、葉ノ
ードにおいて、決定された色クラスの画素の頻度が所定
の値より大きい場合にその葉ノードに対応するブロック
を検出すべき色の領域として記録するステップと、を有
することを特徴としている。
In order to achieve the above object, the color image area searching method of the present invention for searching the area of a color image using the tree structure data configured by the color image area management apparatus is based on a specified color. The steps of determining the color class to be searched, searching the tree structure data for the determined color class, and self-existing when the frequency of the pixels belonging to the determined color class is zero in each node other than the leaf node. Abort the search of lower nodes, and continue the search if not, and detect the block corresponding to the leaf node when the frequency of the pixels of the determined color class is larger than a predetermined value in the leaf node. Recording as an area of a color to be recorded.

【0013】[0013]

【実施例】はじめに、本発明を適用することのできる画
像処理システムの一般的な構成について説明する。本発
明は図2に示されるような画像処理システムにおいて適
用することができる。このシステムは画像入力装置8、
主メモリ10、補助メモリ12、画像処理プロセッサ
6、デイスプレイ装置14、キーボード装置18、ポイ
ンテイングデバイス14で構成されているが、もちろん
本発明はこの構成に限定されるものではない。原カラー
画像(図示せず)はカラースキャナなどのような画像入
力装置8によって三色表色系のRGBデータに変換され
て補助メモリ12に記憶される。このRGBデータは本
発明を適用する画像処理プロセッサ6によって色指標を
与えられた木構造データに変換されて再び補助メモリ1
2に記憶される。色指標の与え方については後で詳しく
説明する。RGBデータと木構造データはそれぞれ別々
のメモリに記憶するようにしてもよい。たとえばRGB
データを補助メモリ12に記憶し、木構造データを画像
処理プロセッサ6における主メモリ10に記憶すること
ができる。このようにすれば、木構造データのデータ量
はRGBデータのデータ量に比べてずっと少ないので、
画像検索の処理を高速に行うことができる。画像処理プ
ロセッサ6は本発明に基づく木構造データ生成ユニット
2を有している。
First, a general configuration of an image processing system to which the present invention can be applied will be described. The present invention can be applied to the image processing system as shown in FIG. This system includes an image input device 8,
The main memory 10, the auxiliary memory 12, the image processor 6, the display device 14, the keyboard device 18, and the pointing device 14 are included, but the present invention is not limited to this structure. An original color image (not shown) is converted into RGB data of a three color system by an image input device 8 such as a color scanner and stored in the auxiliary memory 12. The RGB data is converted into tree-structured data having a color index by the image processor 6 to which the present invention is applied, and the auxiliary memory 1 is again used.
Stored in 2. How to give a color index will be described in detail later. The RGB data and the tree structure data may be stored in separate memories. RGB for example
The data can be stored in the auxiliary memory 12 and the tree structure data can be stored in the main memory 10 in the image processor 6. By doing this, the data amount of the tree structure data is much smaller than the data amount of the RGB data.
Image retrieval processing can be performed at high speed. The image processor 6 has a tree structure data generation unit 2 according to the present invention.

【0014】図2に木構造データ生成ユニット2の構成
が示されている。木構造データ生成ユニット2は表色系
変換装置20、色クラス決定装置22及び木構造データ
変換装置24を有する。なお、図2のメモリ26は図1
の主メモリ10及び補助メモリ12をまとめて表したも
のである。以下、順に表色系変換装置20、色クラス決
定装置22及び木構造データ変換装置24の機能につい
てそれぞれ説明する。
FIG. 2 shows the structure of the tree structure data generation unit 2. The tree structure data generation unit 2 has a color system conversion device 20, a color class determination device 22, and a tree structure data conversion device 24. The memory 26 shown in FIG.
The main memory 10 and the auxiliary memory 12 of FIG. Hereinafter, the functions of the color system conversion device 20, the color class determination device 22, and the tree structure data conversion device 24 will be described in order.

【0015】表色系変換装置20は各画素の色データ
を、三つの原刺激ないしは原色で表される三色表色系の
色データから三つの属性(色相、明度及び彩度)で表さ
れる知覚色系の色データに変換する。この表色系の変換
は以下のようにして行われる。
The color system conversion device 20 represents the color data of each pixel with three attributes (hue, lightness and saturation) from the color data of the three color system represented by three primary stimuli or primary colors. Convert to perceptual color data. This color system conversion is performed as follows.

【0016】本実施例では、三色表色系の一つであるR
GB表色系と、知覚色系の一つであるCIE1976
(L*,a*,b*)均等知覚色空間との間の変換を例に
とって説明する。R、G、BからL*、a*、b*への変
換は以下の式に従って行われる。 L*=116(Y/Y0)1/3−16 a*=500[(X/X0)1/3−(Y/Y0)1/3] b*=200[(Y/Y0)1/3−(Z/Z0)1/3] X=XrR+XgG+XbB Y=YrR+YgG+YbB Z=ZrR+ZgG+ZbB ここでX,Y,ZはXYZ表色系の三刺激値、X0、Y
0、Z0は標準光の三刺激値、XrないしXb、Yrな
いしYb、ZrないしZbはRGB表色系からXYZ表
色系への変換の係数を表す。
In this embodiment, R, which is one of the three color system, is used.
GB color system and CIE1976, which is one of the perceptual color systems
The conversion to and from the (L * , a * , b * ) uniform perceptual color space will be described as an example. Conversion from R, G, B to L * , a * , b * is performed according to the following formula. L * = 116 (Y / Y0) 1 / 3−16 a * = 500 [(X / X0) 1 / 3− (Y / Y0) 1/3 ] b * = 200 [(Y / Y0) 1/3 -(Z / Z0) 1/3 ] X = XrR + XgG + XbB Y = YrR + YgG + YbB Z = ZrR + ZgG + ZbB where X, Y and Z are tristimulus values of the XYZ color system, X0, Y.
0 and Z0 represent tristimulus values of standard light, Xr to Xb, Yr to Yb, and Zr to Zb represent coefficients for conversion from the RGB color system to the XYZ color system.

【0017】1975年のCIE会議で、metric
hue−angle(記号H)、metric li
ghtness(記号L*)、metric chro
ma(記号C*)という用語が提案された。H及びC*
それぞれ色相及び彩度に相当するもので、以下の式で与
えられる。 H=tan-1(b*/a*)C=(a*2+b*21/2 本実施例では、これらのH、L*及びC*を使用してい
る。なお、説明の都合上、これらのH、L*及びC*のこ
とを本明細書ではそれぞれ色相(記号H)、明度(記号
L)及び彩度(記号S)と呼ぶことにする。
At the 1975 CIE conference, metric
hue-angle (symbol H), metric li
ghness (symbol L * ), metric cro
The term ma (symbol C * ) was proposed. H and C * correspond to hue and saturation, respectively, and are given by the following equations. H = tan −1 (b * / a * ) C = (a * 2 + b * 2 ) 1/2 In the present embodiment, these H, L * and C * are used. For convenience of explanation, these H, L *, and C * are referred to as hue (symbol H), lightness (symbol L), and saturation (symbol S) in this specification, respectively.

【0018】三色表色系及び知覚色系は上記以外にもそ
れぞれさまざまな種類があるが、上記の変換は例示にす
ぎず、本発明はどの三色表色系及びどの知覚色系の間に
も適用することができる。このような変換を行う表色系
変換装置20は変換テーブルで構成することも可能であ
る。また、必要であれば、表色系変換装置20に知覚色
系から三色表色系への逆変換を行う手段をさらに設けて
もよい。なお、知覚色系の選び方によっては彩度(sa
turation)の代わりにクロマ(chroma)
が用いられることもあるので、本明細書では彩度という
用語は彩度(saturation)及びクロマ(ch
roma)の両方を含んだ概念として用いることにす
る。また、知覚色系の選び方によっては色相と彩度とを
同時考慮した知覚色度(chromaticness)
が用いられることもあるが、本発明はそのような知覚色
系の場合にも適用することができる。
Although there are various types of three-color color system and perceptual color system other than the above, the above conversion is merely an example, and the present invention is not limited to which three-color color system and which perceptual color system. Can also be applied to. The color system conversion device 20 that performs such conversion can also be configured by a conversion table. Further, if necessary, the color system conversion device 20 may be further provided with means for performing an inverse conversion from the perceptual color system to the three-color color system. Depending on how the perceptual color system is selected, the saturation (sa
Chroma instead of
Is sometimes used, the term saturation is used herein to refer to saturation and chroma (ch).
Roma) will be used as a concept including both. Further, depending on how to select the perceptual color system, the perceptual chromaticity (chromaticness) in which the hue and the saturation are taken into consideration at the same time.
Is sometimes used, but the present invention can be applied to the case of such a perceptual color system.

【0019】次に、色クラス決定装置22による各画素
の色クラスの決定方法について説明する。色クラス決定
装置22は色相H、明度L、及び彩度Sの三要素で表さ
れる知覚色系の色空間を複数の領域(すなわち、色クラ
ス)に分割する色空間分割手段(図示せず)と、各画素
の色がどの分割領域(色クラス)に属するのかを判別す
る色クラス判別手段(図示せず)とを有する。色空間分
割手段による分割のしかたはいろいろ考えられるが、本
実施例では実用的な見地から、次のように分割してい
る。H方向及びL方向に関してはそれぞれ等分割とす
る。S方向に関しては、所定のレベル以下の彩度のもの
は無彩色として取り扱うこととした。彩度の低いものを
有彩色として扱うと、わずかなノイズによって全く異な
る色相に分類される可能性があるためである。このよう
に、所定のレベル以下の彩度のものは無彩色として扱う
と、色領域検索の信頼性を高めることができる。
Next, a method of determining the color class of each pixel by the color class determining device 22 will be described. The color class determining device 22 divides the color space of the perceptual color system represented by the three elements of hue H, lightness L, and saturation S into a plurality of areas (that is, color classes) (not shown). ) And a color class discrimination means (not shown) for discriminating which divided area (color class) the color of each pixel belongs to. There are various ways of dividing by the color space dividing means, but in the present embodiment, the division is performed as follows from a practical viewpoint. The H direction and the L direction are equally divided. Regarding the S direction, those with a saturation below a predetermined level are treated as achromatic. This is because if a low-saturation color is treated as a chromatic color, it may be classified into completely different hues due to slight noise. As described above, when the saturation having a predetermined level or less is treated as an achromatic color, the reliability of the color area search can be improved.

【0020】以上のようにして複数の領域に分割された
色空間の例が、図3に示されている。図3において紙面
に対して垂直な方向がLの軸である。中央の小さな円
が、所定レベル以下の彩度を無彩色として分類した領域
である。図3の例では、H方向は10個に分割され、S
方向は無彩色の部分を含めて5個に分割され(有彩色の
部分は4個に分割されている)、L方向は4個に分割さ
れている(但し、L方向は図示せず)。H、L及びSの
各方向の分割数i、j及びkは、それぞれ自由に設定す
ることができる。本実施例ではH方向、L方向及びS方
向(但し、有彩色の部分)の分割は等分としたが、必ず
しも等分でなくともよい。
An example of the color space divided into a plurality of areas as described above is shown in FIG. In FIG. 3, the direction perpendicular to the paper surface is the axis of L. A small circle in the center is an area in which the saturation below a predetermined level is classified as an achromatic color. In the example of FIG. 3, the H direction is divided into 10 and S
The direction is divided into five parts including the achromatic color part (the chromatic color part is divided into four parts) and the L direction is divided into four parts (however, the L direction is not shown). The number of divisions i, j, and k in each direction of H, L, and S can be set freely. In the present embodiment, the H direction, the L direction, and the S direction (however, the chromatic color portion) are divided into equal parts, but they need not be equally divided.

【0021】色クラス決定装置22の色クラス判別手段
は表色系変換装置20によってR、G、Bから変換され
たH、L、Sによって表される各画素の色が上記色空間
のどの領域(すなわち、色クラス)に属するを次のよう
にして判別する。今、或る画素のH、L及びSの値がそ
れぞれh、l及びsであるとする。hがH方向のi番目
の領域Hiに属しlがL方向のj番目の領域Ljに属し
sがS方向のk番目の領域Skに属するときは、その画
素の色クラスはHi、LjおよびSkで決まる色クラス
C(Hi,Lj,Sk)に属するとされる。なお、原画
像の色の存在する領域だけに色クラスを割りふるように
してもよい。例えば、色空間の分割された領域の数が2
00だとして、そのうちの50の領域に原画像の画素の
色が存在するときは、色クラスの数を50とする。もち
ろん、原画像の一部の領域を原画像にない色で塗りつぶ
そうという場合は、原画像に存在しない色の分割領域が
必要となるので、このような場合には、原画像の色の存
在不存在にかかわりなく、色クラスの数を分割領域の総
数とする。
The color class determining means of the color class determining device 22 uses the color space conversion device 20 to convert the R, G, B colors of each pixel represented by H, L, and S into which region of the color space. (That is, belonging to the color class) is determined as follows. Now, it is assumed that the H, L, and S values of a pixel are h, l, and s, respectively. When h belongs to the i-th region Hi in the H direction, l belongs to the j-th region Lj in the L direction, and s belongs to the k-th region Sk in the S direction, the color classes of the pixels are Hi, Lj, and Sk. It belongs to the color class C (Hi, Lj, Sk) determined by. The color class may be assigned only to the area where the color of the original image exists. For example, if the number of divided areas of the color space is two
If the color of the pixel of the original image exists in 50 of those areas, the number of color classes is set to 50. Of course, if you want to fill a part of the original image with a color that does not exist in the original image, you need a divided area of a color that does not exist in the original image. Regardless of the absence, let the number of color classes be the total number of divided areas.

【0022】図4のステップ100ないしステップ11
2は以上に説明した表色系変換装置20による表色系の
変換及び色クラス決定装置22による色空間の分割(色
クラスの定義)を簡単な流れ図で表したものである。
Steps 100 to 11 in FIG.
2 is a simple flowchart showing the conversion of the color system by the color system conversion device 20 and the division of the color space (definition of the color class) by the color class determination device 22 described above.

【0023】各画素の色クラスC(Hi,Lj,Sk)
を決めるに際し、その画素の近傍の画素のH、L及びS
の値を考慮すれば、色領域検索の信頼性をより高めるこ
とができる。
Color class C (Hi, Lj, Sk) of each pixel
To determine H, L, and S of pixels in the vicinity of that pixel.
If the value of is taken into consideration, the reliability of color region search can be further improved.

【0024】近傍の画素の考慮のしかたは、いろいろ考
えられる。たとえば、対象となっている画素Px、yに
対し、図5に示すごとく、8つの近傍の画素を考えて、
対象となっている画素Px、yを含めて全部で9個の画
素でH、L及びSの値のそれぞれの平均h、l及びsを
とり、このようにして求められた平均のh、l及びsが
それぞれH方向、L方向及びS方向のどの分割領域に属
するかで対象となっている画素Px、yの色クラスを決
めることができる。
There are various ways to consider the neighboring pixels. For example, with respect to the target pixel Px, y, as shown in FIG.
The averages h, l, and s of the values of H, L, and S are taken for a total of nine pixels including the target pixel Px, y, and the average h, l obtained in this way is calculated. It is possible to determine the color class of the target pixel Px, y depending on which of the divided areas in the H direction, the L direction and the S direction the s and s belong to.

【0025】三色表色系による原画像のRGBデータ2
8と、表色系変換装置20によって変換された知覚色系
によるHLSデータ30と、色クラス決定装置22によ
って決定された色クラスデータ32はメモリ26(すな
わち、主メモリ10または補助メモリ12)に記憶され
るが、HLSデータ30もしくは色クラスデータ32ま
たはその双方は、必要な場合にそのつど原画像のRGB
データ28を用いて表色系変換装置20及び色クラス決
定装置22から直接に取得するようにしてもよい。
RGB data 2 of the original image by the three color system
8, the perceptual color system HLS data 30 converted by the color system conversion device 20, and the color class data 32 determined by the color class determination device 22 are stored in the memory 26 (that is, the main memory 10 or the auxiliary memory 12). The HLS data 30 and / or the color class data 32, which are stored, are stored in RGB of the original image whenever necessary.
The data 28 may be used to directly acquire from the color system conversion device 20 and the color class determination device 22.

【0026】次に、色クラス決定装置22によって決定
された色クラスを用いて木構造データ30を生成する木
構造データ変換装置24の機能について説明する。生成
された木構造データ30は図1のメモリ26(すなわ
ち、主メモリ10または補助メモリ12)に記憶され
る。説明の簡単のため、本実施例では、木構造として4
分木を用いた場合について説明するが、本発明は4分木
に限定されるものではない。
Next, the function of the tree structure data conversion device 24 for generating the tree structure data 30 using the color class determined by the color class determination device 22 will be described. The generated tree structure data 30 is stored in the memory 26 of FIG. 1 (that is, the main memory 10 or the auxiliary memory 12). For simplicity of explanation, in this embodiment, the tree structure is 4
The case of using a branch tree will be described, but the present invention is not limited to the quadtree.

【0027】木構造として4分木を用いる場合、補助メ
モリ12に記憶されたRGBデータ28は(2のn乗)
X(2のn乗)個である複数個のブロックに分割され
る。説明の簡単のため、木構造のレベルとしてn=3、
すなわち、n=0ないし3の4レベルの場合を考えるこ
とにしよう。図6ないし図9には、木構造の各レベルに
おけるノードNBと画像のブロックBとの関係が概念的
に示されている。最上位レベル(n=0)のノードNB
を根ノード、最下位レベル(n=3)のノードNBxxx
を葉ノード、それら以外のレベル(n=1または2)の
ノードNBx及びNBxxを中間ノードという。一般的に
は葉ノードに対応する最小のブロックBxxxは、それぞ
れ、2個以上の画素で構成される。もちろん、1つの最
小ブロックを1個の画素で構成することも可能である。
最小ブロックを2個以上の多数の画素で構成しておけ
ば、木構造データを記憶するのに必要なメモリの量を少
なくすることができ、色領域の検索をより高速で行うこ
とが可能となる。一つの最小ブロックを構成する画素の
数は原画像の性質及び画像入力装置8の画素密度などを
考慮して決定することができる。
When a quadtree is used as the tree structure, the RGB data 28 stored in the auxiliary memory 12 is (2 to the nth power).
It is divided into a plurality of X (2 to the nth power) blocks. For simplicity of explanation, n = 3 as the level of the tree structure,
That is, let us consider the case of four levels, n = 0 to 3. 6 to 9 conceptually show the relationship between the node NB and the block B of the image at each level of the tree structure. Node NB of the highest level (n = 0)
Is the root node, the lowest level node (n = 3) NBxxx
Is called a leaf node, and nodes NBx and NBxx at other levels (n = 1 or 2) are called intermediate nodes. In general, each minimum block Bxxx corresponding to a leaf node is composed of two or more pixels. Of course, it is also possible to configure one minimum block with one pixel.
If the minimum block is composed of a large number of pixels of 2 or more, the amount of memory required to store the tree structure data can be reduced, and the color area search can be performed at higher speed. Become. The number of pixels forming one minimum block can be determined in consideration of the characteristics of the original image and the pixel density of the image input device 8.

【0028】ここで、最小ブロックBxxxは2X2=4
個の画素で構成され、色クラスCmは色クラスC1から
色クラスC64まで全部で64個(m=64)あると仮
定しよう。色指標Iは色クラスC1から色クラスC64
のおのおのに対応する色指標の要素i1ないしi64を
並べたものとして表される。各要素はその要素に対応す
る色クラスを有する画素が対象となるブロックに含まれ
ているかどうか(又はどの程度含まれているか)を表
す。もっとも簡単な表現方法は各要素を2値表示にする
ことである。たとえば、対象となるブロック中に各要素
に対応する色クラスを有する画素が含まれていればその
要素を1とし、含まれていなければゼロとする。そこで
まず、各要素を2値表示とした色指標について説明す
る。
Here, the minimum block Bxxx is 2 × 2 = 4.
It is assumed that there are 64 pixels (m = 64) in total from the color class C1 to the color class C64. The color index I is from color class C1 to color class C64.
It is represented as an array of the color index elements i1 to i64 corresponding to each of them. Each element represents whether (or how much) a pixel having a color class corresponding to the element is included in the target block. The simplest expression method is to display each element in binary. For example, if a pixel having a color class corresponding to each element is included in the target block, the element is set to 1, and if not included, it is set to zero. Therefore, first, a color index in which each element is displayed in binary will be described.

【0029】たとえば、ブロックB111の4つの画素が
すべて同じ色クラスC2であるときは、色クラスC2に
対応する色指標の要素i2だけが1なのでブロックB11
1の色指標IB111はIB111=(0,1,0,・・・,
0)と定義される。同様に4つの画素の色クラスがすべ
て同じ色クラスC3であるときは、ブロックB111の色
指標IB111はIB111=(0,0,1,0,・・・,
0)と定義される。また、4つの画素の色クラスがそれ
ぞれ色クラスC1,色クラスC2,色クラスC3及び色
クラスC4であるときは、ブロックB111の色指標IB1
11はIB111=(1,1,1,1,0,・・・,0)と
定義される。次に、最下位レベルのノードの直ぐ上位の
レベルのノードについての色指標の求め方について説明
する。たとえば、4つの最小ブロックB110、B111、B
112及びB113で構成されるブロックB11の色指標IB11
を例にとって説明する。
For example, when all four pixels of the block B111 have the same color class C2, only the element i2 of the color index corresponding to the color class C2 is 1, so that the block B11
The color index IB111 of 1 is IB111 = (0, 1, 0, ...,
0) is defined. Similarly, when the color classes of the four pixels are all the same color class C3, the color index IB111 of the block B111 is IB111 = (0,0,1,0, ...,
0) is defined. When the color classes of the four pixels are the color class C1, the color class C2, the color class C3, and the color class C4, respectively, the color index IB1 of the block B111.
11 is defined as IB111 = (1,1,1,1,0, ..., 0). Next, a method of obtaining a color index for a node immediately above the lowest level node will be described. For example, the four smallest blocks B110, B111, B
Color index IB11 of block B11 composed of 112 and B113
Will be described as an example.

【0030】ブロックB110、B111、B112及びB113の
色指標がすべて同じであれば、ブロックB11の色指標も
これと同じになる。ブロックB110、B111、B112及び
B113の色指標IB110、IB111、IB112及びIB113
が、それぞれ、IB110=(1,0,・・・,0)、I
B111=(O,1,0,・・・,0)、IB112=(0,
0,1,0,・・・,0)及びIB113=(0,0,
0,1,0,・・・,0)であれば、ブロックB11の色
指標IB11は、IB11=(1,1,1,1,0,・・
・,0)と定義される。このように、4つのブロックの
直ぐ上位のブロックの色指標は自己の直ぐ下位の4つの
ブロックの色指標のORをとったものとなる。
If the blocks B110, B111, B112 and B113 all have the same color index, the block B11 has the same color index. Color indicators IB110, IB111, IB112 and IB113 of blocks B110, B111, B112 and B113
, IB110 = (1,0, ..., 0), I
B111 = (O, 1,0, ..., 0), IB112 = (0,
0,1,0, ..., 0) and IB113 = (0,0,
0,1,0, ..., 0), the color index IB11 of the block B11 is IB11 = (1,1,1,1,0, ...
,, 0) is defined. In this way, the color index of the block immediately above the four blocks is the OR of the color indices of the four blocks immediately below itself.

【0031】ブロックBxxの上位のブロックBx、ブロ
ックBxの上位のブロックBについても、これと同よう
な操作を繰り返すことにより、それぞれの色指標IBx
及びIBが得られる。このようにして定義された色指標
を各ノードごとに記憶することにより、色指標の付与さ
れた木構造データが生成される。
With respect to the upper block Bx of the block Bxx and the upper block B of the block Bx, by repeating the same operation, the respective color indexes IBx.
And IB are obtained. By storing the color index thus defined for each node, the tree structure data to which the color index is added is generated.

【0032】以上に説明した色指標の与え方は、要する
に、そのブロックにどんな色クラスの画素が含まれてい
るかを指標するというもっとも単純な方法である。
The method of giving the color index described above is, in short, the simplest method of indexing what color class of pixels is included in the block.

【0033】次に、色領域の検索の信頼性をより高める
ための色指標の与え方について説明する。
Next, a method of giving a color index for further enhancing the reliability of color region search will be described.

【0034】上記の色指標の与え方によれば、そのブロ
ックにどんな色クラスの画素が含まれているかが指標さ
れるが、次に説明する第二の方法では、そのブロックに
どんな色クラスの画素がどれくらい含まれているかを指
標するように色指標が定義される。
According to the above-mentioned method of giving the color index, what color class of pixels is included in the block is indexed. In the second method described below, the color class of the block is determined. A color index is defined to indicate how many pixels are included.

【0035】この第二の方法では、ブロックに含まれる
画素の色クラスについての頻度が計算される。この頻度
は、もっとも簡単な例では、同一色クラスの個数をカウ
ントすることにより計算される。たとえば、ブロックB
111を構成する4つの画素がすべて同じ色クラスC1で
あるときは、色クラスC1の画素が全部で4つなので、
ブロックB111の色指標IB111はIB111=(4,0,
・・・,0)と定義される。同様に4つの画素の色クラ
スがすべて同じ色クラスC2であるときは、ブロックB
111の色指標IB111はIB111=(0,4,0,・・
・,0)と定義される。また、これら4つの画素のう
ち、1つが色クラスC3で、残りの3つが色クラスC4
であるときは、ブロックB111の色指標IB111はIB11
1=(0,0,1,3,0,・・・,0)と定義され
る。
In this second method, the frequency for the color class of the pixels contained in the block is calculated. In the simplest case, this frequency is calculated by counting the number of identical color classes. For example, block B
When all four pixels forming 111 are of the same color class C1, there are four pixels of color class C1 in total,
The color index IB111 of the block B111 is IB111 = (4,0,
..., 0) is defined. Similarly, when the color classes of all four pixels are the same color class C2, block B
The color index IB111 of 111 is IB111 = (0, 4, 0, ...
,, 0) is defined. Also, of these four pixels, one is color class C3 and the remaining three are color class C4.
, The color index IB111 of the block B111 is IB11.
1 = (0,0,1,3,0, ..., 0) is defined.

【0036】次に、最下位レベルのノードの直ぐ上位の
レベルのノードについての色指標の求め方について説明
する。たとえば、4つの最小ブロックB110、B111、B
112及びB113で構成されるブロックB11の色指標IB11
を例にとって説明する。
Next, how to obtain the color index for the node at the level immediately above the lowest level node will be described. For example, the four smallest blocks B110, B111, B
Color index IB11 of block B11 composed of 112 and B113
Will be described as an example.

【0037】ブロックB110、B111、B112及びB113の
色指標が、IB110=IB111=IB112=IB113=
(4,0,・・・,0)であるときは、ブロックB11の
色指標IB11は、IB11=(16,0,・・・,0)と
定義される。また、IB110=(4,0,・・・,
0)、IB111=(0,4,0,・・・,0)、IB112
=(0,0,4,0,・・・,0)、IB113=(0,
0,0,4,0,・・・,0)であるときは、ブロック
B11の色指標IB11は、IB11=(4,4,4,4,
0,・・・,0)と定義される。また、IB110=
(1,2,1,0,・・・,0)、IB111=(0,
1,2,1,0,・・・,0)、IB112=(0,0,
1,2,1,0,・・・,0)、IB113=(0,0,
0,1,2,1,0,・・・,0)であるときは、ブロ
ックB11の色指標IB11は、IB11=(1,3,4,
4,3,1,0,・・・,0)と定義される。これらの
例からわかるように、IBxxは自己の直ぐ下位の4つの
ブロックIBxxxの対応する要素の値の総和を自己のそ
れぞれの要素として持つように構成される。IBx及び
IBについても同様である。すなわち、4つのブロック
の直ぐ上位のブロックの色指標は自己の直ぐ下位の4つ
のブロックの色指標の対応する要素の値の総和を自己の
それぞれの要素として持つように構成される。
The color indexes of the blocks B110, B111, B112 and B113 are IB110 = IB111 = IB112 = IB113 =
When it is (4, 0, ..., 0), the color index IB11 of the block B11 is defined as IB11 = (16, 0, ..., 0). Also, IB110 = (4,0, ...,
0), IB111 = (0, 4, 0, ..., 0), IB112
= (0,0,4,0, ..., 0), IB113 = (0,
0,0,4,0, ..., 0), the color index IB11 of the block B11 is IB11 = (4,4,4,4,4).
0, ..., 0). Also, IB110 =
(1, 2, 1, 0, ..., 0), IB111 = (0,
1, 2, 1, 0, ..., 0), IB112 = (0, 0,
1,2,1,0, ..., 0), IB113 = (0,0,
0, 1, 2, 1, 0, ..., 0), the color index IB11 of the block B11 is IB11 = (1, 3, 4,
4, 3, 1, 0, ..., 0). As can be seen from these examples, IBxx is configured to have as its respective elements the sum of the values of the corresponding elements of the four immediately lower blocks IBxxx. The same applies to IBx and IB. That is, the color index of the immediately upper block of the four blocks is configured to have the sum of the values of the corresponding elements of the color indexes of the immediately lower four blocks of the self as the respective elements of the self.

【0038】上述の例では、ブロックに含まれる画素の
色クラスについての頻度は、もっとも簡単な例として、
同一色クラスの個数をカウントしそのカウント値をその
まま用いているが、そのブロックに含まれる画素の総数
を量子化し、考えている色クラスの画素の総数がどの量
子化レベルに属するかをその色クラスについての頻度と
して与えるようにしてもよい。たとえば、あるブロック
(任意のレベルのブロックでよい)について、そのブロ
ックが100個の画素で構成されているとする。これ
を、0個、1個から10個、11個から20個、21個
から30個,・・・,91個から100個のそれぞれの
範囲に分ける。今、たとえば或る色クラスについて着目
し、その色クラスの画素の個数が0個であれば頻度は
0、1個から10個までの範囲にあれば頻度は1、11
個から20個までの範囲にあれば頻度は2、21個から
30個までの範囲にあれば頻度は3(以下、同よう)と
定義される。量子化の程度及び方法はこの例に限定され
るものではない。
In the above example, the frequency of the color class of the pixels included in the block is, as the simplest example,
Although the number of the same color class is counted and the count value is used as it is, the total number of pixels included in the block is quantized to determine which quantization level the total number of pixels of the color class under consideration belongs to. You may give as a frequency about a class. For example, it is assumed that a block (which may be a block of any level) is composed of 100 pixels. This is divided into ranges of 0, 1 to 10, 11 to 20, 21 to 30, ..., 91 to 100. Now, for example, paying attention to a certain color class, the frequency is 0 if the number of pixels of the color class is 0, and the frequency is 1 to 11 if it is in the range of 1 to 10.
The frequency is defined to be 2 in the range of 20 to 20 and 3 (hereinafter, the same) in the range of 21 to 30. The degree and method of quantization are not limited to this example.

【0039】ブロックに含まれる画素の総数を量子化
し、考えている色クラスの画素の総数がどの量子化レベ
ルに属するかをその色クラスについての頻度として与え
るようにした場合の木構造データ生成の流れ図を図10
及び図11のステップ200ないしステップ236に示
した。
When the total number of pixels included in a block is quantized and the quantization level to which the total number of pixels of the color class under consideration belongs is given as the frequency for that color class, the tree structure data is generated. Flow chart is shown in FIG.
And steps 200 to 236 of FIG.

【0040】次に、木構造データ生成ユニット2によっ
て色指標を与えられた木構造データ30を用いた色領域
の検索について説明する。色領域の検索は図2に示す検
索ユニット4によって行われる。色領域の検索は、たと
えば、オペレータが或る色の領域を別の色に変更したい
という場合などに必要となる。この場合、まず、その色
の領域のブロックを過不足なく検出する必要がある。オ
ペレータによる色の指定には種々のやり方が考えられ
る。たとえば、マウスなどのポインテイングデバイスを
用いてデイスプレイ画面上で所望の色を有する領域内の
任意の位置にカーソルを移動させそのカーソルにより画
素を特定することでその色を指定するやり方が考えられ
る。前述のごとく、画素の色に関する情報はRGBデー
タ28、HLSデータ30または色クラスデータ32の
いずれの形でも記憶することができる。画素の色データ
が色クラスデータの形で記憶されている場合は、カーソ
ルにより画素が特定されることにより、その画素の色ク
ラスC(Hi,Lj,Sk)が直接特定される。画素の
色データがHLSデータの形で記憶されている場合は、
色クラス決定装置22を用いてそのHLSデータを色ク
ラスデータに変換することにより、その画素の色クラス
が特定される。画素の色データがRGBデータの形で記
憶されている場合は、表色系変換装置20を用いてRG
BデータをHLSデータに変換し、さらにこのHLSデ
ータを色クラス決定装置22で色クラスデータに変換す
ることにより、その画素の色クラスが特定される。
Next, a search for a color area using the tree structure data 30 given a color index by the tree structure data generation unit 2 will be described. The color area search is performed by the search unit 4 shown in FIG. The color area search is necessary, for example, when the operator wants to change a certain color area to another color. In this case, first, it is necessary to detect the blocks in the area of that color just enough. Various methods can be considered for the color designation by the operator. For example, a method of designating a color by using a pointing device such as a mouse to move a cursor to an arbitrary position in a region having a desired color on the display screen and specifying a pixel by the cursor can be considered. As described above, the information regarding the color of the pixel can be stored in any of the RGB data 28, the HLS data 30 and the color class data 32. When the color data of a pixel is stored in the form of color class data, the color class C (Hi, Lj, Sk) of the pixel is directly specified by specifying the pixel with the cursor. If the pixel color data is stored in the form of HLS data,
The color class of the pixel is specified by converting the HLS data into color class data using the color class determining device 22. If the color data of the pixel is stored in the form of RGB data, the RG is converted using the color system conversion device 20.
The color class of the pixel is specified by converting the B data into the HLS data and further converting the HLS data into the color class data by the color class determining device 22.

【0041】また別のやり方として、所望の色を有する
領域内で複数の画素を指定して、そのうちでもっとも多
い色クラスをその領域の色クラスとしてもよいし、ある
いは、複数の画素のの平均をとってその領域の色クラス
としてもよい。この平均のとり方は、前述の色クラス決
定の場合と同ように、色相、明度及び彩度のそれぞれの
平均をとるようにする。たとえば、画素の色データがH
LSデータの形で記憶されている場合は、これらの複数
の画素の各画素のHLSデータを用いて、H、L及びS
の値のそれぞれの平均h、l及びsをとり、これらの
h、l及びsによって決まる色クラスをその領域の色ク
ラスとする。
As another method, a plurality of pixels may be designated in a region having a desired color and the color class having the largest number may be set as the color class of the region, or the average of a plurality of pixels may be specified. May be taken as the color class for that region. This average is taken in the same manner as in the case of determining the color class described above, taking the average of each of hue, lightness, and saturation. For example, if the pixel color data is H
When stored in the form of LS data, HLS data of each pixel of these plurality of pixels is used to generate H, L and S.
Take the respective averages h, l and s of the values of, and let the color class determined by these h, l and s be the color class of the region.

【0042】さらに別のやり方として、表示画面におい
て画像のほかに色クラスに基づく色のサンプルを表示し
ておき、このサンプルをオペレータが直接指定すること
により色クラスを特定するようにしてもよい。
As another method, a color sample based on the color class may be displayed on the display screen in addition to the image, and the operator may directly specify the sample to specify the color class.

【0043】さらに別のやり方として、H、L及びSの
値または色クラスの番号をキーボード装置18などから
直接入力することにより色クラスを特定するようにして
もよい。
As another method, the color class may be specified by directly inputting the values of H, L and S or the number of the color class from the keyboard device 18 or the like.

【0044】このようにして特定された色クラスC(H
i,Lj,Sk)について色指標をノードごとに持つ木
構造データを探索する。特定された色クラスC(Hi,
Lj,Sk)だけでなくその近傍の色クラスC'につい
ても木構造データを探索すれば、色領域検索の信頼性を
より高めることができる。色クラスC(Hi,Lj,S
k)に対して、近傍の色クラスC'はH方向、L方向及
びS方向の各方向に存在する。すなわち、近傍の色クラ
スC'は色空間において色クラスCに対して三次元的に
近接して存在する。どの程度の近傍の色クラスC'まで
検索の対象とするかは、原画像の性質及び色クラスの分
割数などの諸条件に応じて自由に設定することができ
る。
The color class C (H
i, Lj, Sk) is searched for tree structure data having a color index for each node. The identified color class C (Hi,
By searching the tree structure data not only for Lj, Sk) but also for the color class C ′ in the vicinity thereof, it is possible to further enhance the reliability of the color region search. Color class C (Hi, Lj, S
For k), the neighboring color class C ′ exists in each of the H direction, the L direction, and the S direction. That is, the neighboring color class C ′ exists three-dimensionally close to the color class C in the color space. The degree of neighborhood color class C ′ to be searched can be freely set according to various conditions such as the nature of the original image and the number of color class divisions.

【0045】どの程度の近傍の色クラスC'まで検索の
対象とするかはH方向、L方向及びS方向のどの方向で
も考え方は同じなので、たとえば、図15に示すよう
に、H方向について考えると、特定された色クラスC
(Hi,Lj,Sk)の色相Hiがわずかに異なるHi
−1及びHi+1が色クラスC(Hi,Lj,Sk)に
色相Hの観点からもっとも近い色クラスとなる。図に示
すように、色クラスC(Hi,Lj,Sk)の近傍の色
クラスC'(Hi−1,Lj,Sk)及び色クラスC'
(Hi+1,Lj,Sk)は色クラスC(Hi,Lj,
Sk)の重みを1とするとそれに対して相対的に小さい
重みW(W<1)を持つようにしておく。近傍の色クラ
スの範囲をHi−2及びHi+2、Hi−3及びHi+
3、・・・のようにさらに広げる場合はHiから離れる
に従って順次小さい重みを持たせるようにしておけばよ
い。近傍の色クラスの重みはH方向、L方向及びS方向
の各方向の分割数及び原画像の性質などを考慮してH方
向、L方向及びS方向の各方向で異なった値を用いるこ
とができる。
The degree of neighborhood color class C ′ to be searched is the same in any direction of the H direction, the L direction and the S direction. Therefore, for example, consider the H direction as shown in FIG. And the specified color class C
Hi with a slightly different hue Hi of (Hi, Lj, Sk)
−1 and Hi + 1 are the closest color classes from the viewpoint of the hue H to the color class C (Hi, Lj, Sk). As shown in the figure, a color class C '(Hi-1, Lj, Sk) and a color class C'in the vicinity of the color class C (Hi, Lj, Sk).
(Hi + 1, Lj, Sk) is the color class C (Hi, Lj,
If the weight of Sk) is 1, the weight W is relatively small (W <1). The range of the neighboring color classes is Hi-2 and Hi + 2, Hi-3 and Hi +.
In the case of further widening like 3, ..., Smaller weights may be given in order as the distance from Hi increases. For the weights of the neighboring color classes, different values may be used in the H direction, the L direction, and the S direction in consideration of the number of divisions in the H direction, the L direction, and the S direction, the characteristics of the original image, and the like. it can.

【0046】簡単な例として、対象となっている色クラ
スC(Hi,Lj,Sk)についてH方向、L方向及び
S方向の各方向の両隣のみが近傍の色クラスであり、そ
れらの重みが色クラスCの重みを1としてそれぞれW
h、Wl及びWsである場合を考える。そうすると、近
傍の色クラスは色クラスC(Hi,Lj,Sk)を含め
て全部で27(=3x3x3)個となる。これらの近傍
の色クラスのそれぞれの重みは、色クラスごとに、H方
向、L方向及びS方向の各方向の重みを加えたものとな
る。たとえば、近傍の色クラスC'(Hi−1,Lj−
1,Sk−1)の重みWはW=Wh+Wl+Wsであ
り、近傍の色クラスC'(Hi−1,Lj,Sk−1)
の重みWはW=Wh+1+Wsであり、色クラスC(H
i,Lj,Sk)の重みWはW=1+1+1(=3)で
ある。これらの色クラスの重みを、対象となっている色
クラスCの重みを1として規格化すれば、たとえば近傍
の色クラスC'(Hi−1,Lj−1,Sk−1)の重
みWはW=1/3(Wh+Wl+Ws)であり、近傍の
色クラスC'(Hi−1,Lj,Sk−1)の重みWは
W=1/3(Wh+1+Ws)となる。対象となってい
る色クラスに対し重みWがゼロでない色クラスを近傍色
クラスと呼ぶことにする。なお、単に近傍色クラスを定
義するだけなら、近傍色クラスの重みはすべて1にして
おけば足りる。上述のような重みの定め方をすること
は、後で説明する、葉ノードにおけるブロック検出の際
に非常に有益である。この点については後で詳しく説明
する。
As a simple example, for the target color class C (Hi, Lj, Sk), only the two neighbors in each of the H direction, L direction, and S direction are neighboring color classes, and their weights are The weight of color class C is set to 1 and W
Consider the case of h, Wl and Ws. Then, the total number of neighboring color classes is 27 (= 3 × 3 × 3) including the color class C (Hi, Lj, Sk). The weights of these neighboring color classes are obtained by adding the weights in the H direction, the L direction, and the S direction for each color class. For example, the neighboring color class C '(Hi-1, Lj-
1, Sk−1) has a weight W of W = Wh + Wl + Ws, and a neighboring color class C ′ (Hi-1, Lj, Sk-1)
Weight W is W = Wh + 1 + Ws, and the color class C (H
The weight W of i, Lj, Sk) is W = 1 + 1 + 1 (= 3). If the weights of these color classes are standardized with the weight of the target color class C being 1, for example, the weight W of the neighboring color class C ′ (Hi-1, Lj-1, Sk-1) is W = 1/3 (Wh + W1 + Ws), and the weight W of the neighboring color class C ′ (Hi-1, Lj, Sk-1) is W = 1/3 (Wh + 1 + Ws). A color class whose weight W is not zero with respect to the target color class is called a neighboring color class. Note that if the neighboring color class is simply defined, it is sufficient to set the weights of the neighboring color classes to all 1. The determination of the weights as described above is very useful for block detection in leaf nodes, which will be described later. This point will be described in detail later.

【0047】以上のようにして定義された近傍色クラス
の色は対象となっている色クラスの色に知覚色的に近い
色になるので、色領域検索の信頼性を高めることができ
る。したがって指定された色を含むブロックを検出する
ためには、色指標の4分木を上からたどり指定された色
の色クラスの色指標及びその色クラスの近傍色クラスに
ついての色指標を調べればよい。中間ノードにおいて、
指定された色の色クラス及びその近傍色クラスの色指標
がゼロであれば、その色指標についてはそれより下位の
ノードでは必ずゼロであるから、探索を打ち切る。これ
らの色指標がゼロでない限り、順に下位のノードが調べ
られ、最下位のノード、すなわち、葉ノードに至った場
合は、次のようにしてその葉ノードに対応するブロック
(最小ブロック)が検出すべきブロックであるかどうか
を決定する。なお、探索のやり方は深さ優先探索又は幅
優先探索のいずれを用いてもよい。好適には、探索のア
ルゴリズムが簡単になるように再帰的な手法が用いられ
る。
Since the color of the neighborhood color class defined as described above is a color that is perceptually close to the color of the target color class, the reliability of the color area search can be improved. Therefore, in order to detect the block including the specified color, the color index quadtree is traced from the top and the color index of the color class of the specified color and the color indexes of the neighboring color classes of the color class are examined. Good. In the intermediate node,
If the color index of the color class of the designated color and its neighboring color class is zero, the node is inferior to that color index, so the search is terminated. As long as these color indices are not zero, the lower nodes are examined in order, and when the lowest node, that is, a leaf node is reached, the block (minimum block) corresponding to that leaf node is detected as follows. Determines if the block should be. The search method may be either depth-first search or breadth-first search. Preferably, a recursive method is used so as to simplify the search algorithm.

【0048】今、色クラスC(Hi,Lj,Sk)の色
指標がゼロでないことにより、その色クラスの画素を有
する最小ブロックに対応する1つの葉ノードに至ったと
仮定する。色指標がゼロか1かの2値で表される場合
(以下、2値表示ともいう)は、このブロックを検出す
べきブロックとして記録する。色指標が頻度で表される
場合(以下、頻度表示ともいう)は、そのブロックが所
定のしきい値を越える頻度を有するときに、そのブロッ
クを検出すべきブロックとして記録する。ところで、色
クラスC(Hi,Lj,Sk)の色指標がゼロでないこ
とにより探索された葉ノードに対応するブロックは、色
クラスCの画素のほかに近傍色クラスC'の画素を含ん
でいる場合もあるので、色クラスCの画素の頻度を調べ
ただけでは所定のしきい値に達せず、そのブロックがう
まく検出されないという可能性もある。そこで、好適な
実施例では、前述の近傍色クラスC'の重みを考慮して
色クラスCの画素の頻度及び近傍色クラスC'の画素の
頻度の加重和をとり、重みを考慮した加重和として計算
された画素の頻度を所定のしきい値と比較すべき画素の
頻度とすることにより、この問題を解決する。このしき
い値は場合に応じて自由に設定することができ、動的に
変えられるようにしておけばさらに便利である。近傍色
クラスC'の色指標がゼロでないことにより探索が葉ノ
ードに至った場合も、同ようにして近傍色クラスC'の
重みを考慮して色クラスCの画素の頻度及び近傍色クラ
スC'の画素の頻度の加重和をとり、重みを考慮した加
重和として計算された画素の頻度を所定のしきい値と比
較すべき画素の頻度とし、これが所定のしきい値を越え
るときに、そのブロックを検出すべきブロックとして記
録する。なお、色指標がゼロか1かの2値で表される場
合は、近傍色クラスの重みWは1にしておく必要があ
る。色指標がゼロか1かの2値で表される場合は、複数
個の画素で構成される1つの最小ブロックの中に指定さ
れた色クラスに属する色の画素が1個しかないときでも
そのブロックが検出すべきブロックとして記録されてし
まうので、検出漏れがないという点ではよいが、逆に検
出すべきでないブロックを検出してしまう可能性もあ
る。したがって、できるだけ過不足なく指定した色を有
するブロックを検出したい場合は、上述のように色指標
を色クラスの頻度で表して所定のしきい値を越える頻度
を有するブロックを検出すべきブロックとして記録する
とよい。なお、色指標がゼロか1かの2値で表される場
合(2値表示)も所定のしきい値を1と考えれば、広い
意味では頻度表示である。
It is now assumed that the color index of the color class C (Hi, Lj, Sk) is not zero, which leads to one leaf node corresponding to the smallest block having pixels of that color class. When the color index is represented by a binary value of zero or one (hereinafter, also referred to as binary display), this block is recorded as a block to be detected. When the color index is represented by frequency (hereinafter also referred to as frequency display), when the block has a frequency exceeding a predetermined threshold value, the block is recorded as a block to be detected. By the way, the block corresponding to the leaf node searched because the color index of the color class C (Hi, Lj, Sk) is not zero includes the pixels of the color class C and the pixels of the neighboring color class C ′. In some cases, the predetermined threshold value may not be reached and the block may not be detected well just by examining the frequency of pixels of color class C. Therefore, in a preferred embodiment, a weighted sum of the frequency of pixels of the color class C and the frequency of pixels of the neighboring color class C ′ is taken in consideration of the weight of the above-mentioned neighboring color class C ′, and the weighted sum in consideration of the weight is taken. This problem is solved by setting the pixel frequency calculated as the pixel frequency to be compared with a predetermined threshold value. This threshold can be freely set according to the case, and it is more convenient if it can be dynamically changed. Even when the search reaches a leaf node because the color index of the neighboring color class C ′ is not zero, the frequency of the pixels of the neighboring color class C ′ and the neighboring color class C are similarly considered in consideration of the weight of the neighboring color class C ′. 'Is taken as the weighted sum of the pixel frequency, and the pixel frequency calculated as the weighted sum considering the weight is the frequency of the pixel to be compared with a predetermined threshold value, and when this exceeds the predetermined threshold value, Record the block as the block to be detected. When the color index is represented by a binary value of 0 or 1, the weight W of the neighboring color class needs to be set to 1. When the color index is represented by a binary value of 0 or 1, even if there is only one pixel of the color belonging to the specified color class in one minimum block composed of a plurality of pixels, Since a block is recorded as a block to be detected, it is good in that there is no omission in detection, but on the contrary, there is a possibility that a block that should not be detected will be detected. Therefore, if it is desired to detect a block having a specified color as accurately as possible, the color index is represented by the frequency of the color class as described above, and a block having a frequency exceeding a predetermined threshold is recorded as a block to be detected. Good to do. Even when the color index is represented by a binary value of zero or one (binary display), if the predetermined threshold value is considered to be 1, it is frequency display in a broad sense.

【0049】一方、木構造データを記憶するのに必要な
メモリの量は2値表示の場合の方が頻度表示の場合より
も少なくて済む。そこで、好適な実施例においては葉ノ
ードのみ色指標を頻度表示とし葉ノード以外のノードで
は色指標を2値表示として木構造データを構成する。こ
のようにすれば、木構造データを記憶するのに必要なメ
モリの量を抑えつつ(したがって色領域の検索をより高
速で行うことが可能となる)過不足なく指定した色を有
するブロックを検出することができる。
On the other hand, the amount of memory required to store the tree structure data is smaller in the binary display than in the frequency display. Therefore, in the preferred embodiment, the tree-structured data is configured such that the color index is displayed as frequency only for the leaf node and the color index is displayed as binary for the nodes other than the leaf node. By doing this, it is possible to detect the blocks having the specified colors without excess or deficiency while suppressing the amount of memory required to store the tree structure data (thus enabling the color area search to be performed faster). can do.

【0050】ところで、オペレータが指定した色は、色
クラスを直接に指定する場合は別として、H方向、L方
向及びS方向の各方向の分割領域Hi、Lj及びSkの
各々のちょうど中心に来るとは限らない。そこで、指定
された色が分割領域の中心に来ない場合は、中心からの
ずれに応じて近傍色クラスの重みを変えることにより、
そのずれを反映させる。
By the way, the color designated by the operator is located at the center of each of the divided regions Hi, Lj and Sk in the H direction, the L direction and the S direction, except when the color class is directly designated. Not necessarily. Therefore, if the specified color does not come to the center of the divided area, by changing the weight of the neighboring color class according to the deviation from the center,
The deviation is reflected.

【0051】図16に示すように、指定された色がH方
向のある分割領域Hiにおいて中心からずれている場合
は(この例では中心からHi+1の方向にずれてい
る)、簡単な例として指定された色を中心として1の重
みを持つ範囲が1クラス分の幅で存在し、その両隣にW
の重みを持つ範囲がそれぞれ1クラス分の幅で存在する
と仮定して、分割領域Hi−1、Hi、Hi+1及びH
i+2の各領域における面積がそれぞれ等しくなるよう
に各分割領域Hi−1、Hi、Hi+1及びHi+2の
重みを定める。たとえば、分割領域Hi−1を例にとる
と、分割領域Hi−1の重みWi−1は四角形abcd
の面積S1と四角形efcgの面積S2が等しくなるよ
うに定められる。H方向の重みのほか、L方向及びS方
向の各方向の重みも同ようにして定められ、このように
して定められたH方向、L方向及びS方向の各方向の重
みを色クラスごとに加えることによって近傍色クラスを
定義する。各方向の重みの加え方は前述の場合と同よう
である。以上のようにして中心からのずれに応じて近傍
色クラスの重みを変えることにより、そのずれを反映さ
せると、近傍色クラスの範囲は指定された色の色クラス
の中心からのずれを考慮しない場合に比べて若干広めに
設定されることになる。
As shown in FIG. 16, when the designated color is deviated from the center in a certain divided area Hi in the H direction (in this example, it is deviated from the center to the Hi + 1 direction), a simple example is designated. There is a range with a weight of 1 centered on the specified color with a width of 1 class, and W is placed on both sides of it.
Assuming that each range having a weight of 1 exists with a width of one class, the divided regions Hi-1, Hi, Hi + 1 and H
The weights of the divided regions Hi-1, Hi, Hi + 1 and Hi + 2 are determined so that the areas of i + 2 regions are equal to each other. For example, taking the divided region Hi-1 as an example, the weight Wi-1 of the divided region Hi-1 is a quadrangle abcd.
The area S1 of quadrangle efcg is equal to the area S2 of quadrangle efcg. In addition to the weights in the H direction, the weights in the L direction and the S direction are determined in the same manner, and the weights in the H direction, the L direction, and the S direction thus determined are determined for each color class. Define a neighborhood color class by adding. The method of adding weights in each direction is the same as in the above case. By changing the weight of the neighboring color class according to the shift from the center as described above to reflect the shift, the range of the neighboring color class does not consider the shift from the center of the color class of the specified color. It will be set slightly wider than the case.

【0052】図12ないし図14に以上に説明した色領
域の検索の流れ図を例示した。図12は色領域検索の全
体の流れ図、図13は図12のステップ306において
葉ノード以外で実行されるブロック探索の流れ図、図1
4は図12のステップ306において葉ノードで実行さ
れるブロック探索の流れ図をそれぞれ表している。図1
4のステップ502において計算される色指標の加重和
が、上述の近傍色クラスC'の重みを考慮して計算され
る色クラスの頻度である。
FIG. 12 to FIG. 14 exemplify the flow chart of the color area search described above. 12 is a flow chart of the entire color region search, FIG. 13 is a flow chart of the block search executed in steps other than the leaf node in step 306 of FIG. 12, FIG.
4 is a flow chart of the block search executed in the leaf node in step 306 of FIG. Figure 1
The weighted sum of the color indices calculated in step 502 of 4 is the frequency of the color class calculated in consideration of the weight of the above-mentioned neighboring color class C ′.

【0053】[0053]

【発明の効果】以上説明したように本発明によれば、知
覚色系に基づく色指標をノードごとに与えた木構造デー
タを構成することにより、カラー画像における色領域の
検索を高速かつ確実に行うことが可能となる。
As described above, according to the present invention, by constructing the tree structure data in which the color index based on the perceptual color system is given for each node, the search of the color area in the color image can be performed at high speed and reliably. It becomes possible to do.

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

【図1】本発明に基づく実施例の木構造データ生成ユニ
ット2の構成を示す図である。
FIG. 1 is a diagram showing a configuration of a tree structure data generation unit 2 according to an embodiment of the present invention.

【図2】本発明を適用した画像処理システムの実施例の
構成を示すである。
FIG. 2 is a diagram showing a configuration of an embodiment of an image processing system to which the present invention is applied.

【図3】本発明に基づいて複数の領域に分割された色空
間の例を示す図である。
FIG. 3 is a diagram showing an example of a color space divided into a plurality of regions according to the present invention.

【図4】本発明に基づく実施例よる色クラスの定義の流
れ図である。
FIG. 4 is a flow chart of defining a color class according to an embodiment of the present invention.

【図5】画素の色クラスを決めるに際し考慮される近傍
の画素を示す図である。
FIG. 5 is a diagram showing neighboring pixels to be considered when determining a color class of a pixel.

【図6】木構造の根ノードにおけるノードとブロックと
の関係を概念的に示す図である。
FIG. 6 is a diagram conceptually showing a relationship between a node and a block in a root node of a tree structure.

【図7】木構造の中間ノードにおけるノードとブロック
との関係を概念的に示す図である。
FIG. 7 is a diagram conceptually showing a relationship between nodes and blocks in an intermediate node of a tree structure.

【図8】木構造の中間ノードにおけるノードとブロック
との関係を概念的に示す図である。
FIG. 8 is a diagram conceptually showing a relationship between a node and a block in an intermediate node of a tree structure.

【図9】木構造の葉ノードにおけるノードとブロックと
の関係を概念的に示す図である。
FIG. 9 is a diagram conceptually showing a relationship between a node and a block in a leaf node of a tree structure.

【図10】本発明に基づく実施例の木構造データ生成の
流れ図である。
FIG. 10 is a flow chart of tree structure data generation according to an embodiment of the present invention.

【図11】本発明に基づく実施例の木構造データ生成の
流れ図である。
FIG. 11 is a flow chart of tree structure data generation according to an embodiment of the present invention.

【図12】本発明に基づく実施例の色領域検索の全体の
流れ図である。
FIG. 12 is an overall flowchart of a color area search according to an embodiment of the present invention.

【図13】図12のステップ306において葉ノード以
外で実行されるブロック探索の流れ図
FIG. 13 is a flowchart of block search executed in steps other than leaf nodes in step 306 of FIG.

【図14】図12のステップ306において葉ノードで
実行されるブロック探索の流れ図
14 is a flow chart of block search executed by a leaf node in step 306 of FIG.

【図15】近傍の色クラスの重みの与え方を説明する図
である。
FIG. 15 is a diagram for explaining how to give weights to neighboring color classes.

【図16】指定された色が色クラスの中心からのずれて
いる場合の近傍の色クラスの重みの与え方を説明する図
である。
FIG. 16 is a diagram illustrating how to assign weights to neighboring color classes when the designated color deviates from the center of the color class.

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

2 木構造データ生成ユニット 4 検索ユニット 6 画像処理プロセッサ 8 画像入力装置 10 主メモリ 12 補助メモリ 20 表色系変換装置 22 色クラス決定装置 24 木構造データ変換装置 2 Tree Structure Data Generation Unit 4 Search Unit 6 Image Processor 8 Image Input Device 10 Main Memory 12 Auxiliary Memory 20 Color System Conversion Device 22 Color Class Determining Device 24 Tree Structure Data Conversion Device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 佐藤 真知子 神奈川県横浜市金沢区富岡西 7−53−27 (56)参考文献 特開 平3−262079(JP,A) 特開 平3−174657(JP,A) 特開 平3−174658(JP,A) 特開 昭62−68384(JP,A) 特開 昭63−143626(JP,A) 特開 昭62−279468(JP,A) 特開 昭62−50618(JP,A) 実開 昭62−62374(JP,U) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Machiko Sato 7-53-27 Tomiokanishi, Kanazawa-ku, Yokohama, Kanagawa 7-53-27 (56) Reference JP-A-3-262079 (JP, A) JP-A-3-174657 ( JP, A) JP 3-174658 (JP, A) JP 62-68384 (JP, A) JP 63-143626 (JP, A) JP 62-279468 (JP, A) JP Sho 62-50618 (JP, A) Actually opened Sho 62-62374 (JP, U)

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】各画素の色データが三色表色系により表わ
された画像データの各画素についてその画素の色が知覚
色系に基づいて分類される複数の色クラスのいずれに属
するかを決定する色クラス決定手段と、それぞれ少なく
とも一つの画素を含むブロックを葉ノードとして根ノー
ドに至る木構造データを構成するとともに、該木構造デ
ータにおけるノードごとに、そのノードに含まれる画素
について色クラスごとにその色クラスに属する色を有す
る画素の頻度を計算し各色クラスごとに計算された画素
の頻度を色指標として記憶する色指標記憶手段と、を有
するカラー画像領域管理装置。
1. For each pixel of image data in which color data of each pixel is represented by a three-color system, which of a plurality of color classes the pixel color belongs to is classified based on the perceptual color system. And a tree structure data that reaches a root node by using a block including at least one pixel as a leaf node, and for each node in the tree structure data, a color of a pixel included in the node is determined. A color image area management device comprising: a color index storage unit that calculates a frequency of pixels having a color belonging to the color class for each class and stores the calculated frequency of pixels as a color index.
【請求項2】上記画素の頻度は、上記木構造データにお
けるノードごとに、そのノードに含まれる画素について
色クラスごとにその色クラスに属する色を有する画素が
存在する場合には一方の論理値でありその色クラスに属
する色を有する画素が存在しない場合には他方の論理値
である二進数として計算される請求項1に記載のカラー
画像領域管理装置。
2. The frequency of the pixel is one of the logical values when, for each node in the tree structure data, there is a pixel having a color belonging to that color class for each pixel included in the node. 2. The color image area management device according to claim 1, wherein when there is no pixel having a color belonging to the color class, it is calculated as a binary number which is the other logical value.
【請求項3】上記画素の頻度は、上記木構造データにお
けるノードごとに、そのノードに含まれる画素について
色クラスごとにその色クラスに属する色を有する画素の
個数のカウント値として計算される請求項1に記載のカ
ラー画像領域管理装置。
3. The frequency of the pixel is calculated for each node in the tree structure data as a count value of the number of pixels having a color belonging to the color class for each pixel included in the node. Item 2. The color image area management device according to item 1.
【請求項4】上記画素の頻度は、上記木構造データにお
けるノードが葉ノードであるときは、そのノードに含ま
れる画素について色クラスごとにその色クラスに属する
色を有する画素が存在する場合には一方の論理値であり
その色クラスに属する色を有する画素が存在しない場合
には他方の論理値である二進数として計算され、上記木
構造データにおけるノードが葉ノードでないときは、そ
のノードに含まれる画素について色クラスごとにその色
クラスに属する色を有する画素の個数のカウント値とし
て計算される請求項1に記載のカラー画像領域管理装
置。
4. The frequency of the pixel is such that when a node in the tree structure data is a leaf node, a pixel having a color belonging to the color class exists for each pixel included in the node. Is a logical value of one, and when there is no pixel having a color belonging to that color class, it is calculated as a binary number that is the other logical value, and when the node in the tree structure data is not a leaf node, The color image area management device according to claim 1, wherein the color image area management device is calculated as a count value of the number of pixels having a color belonging to the color class for each included pixel.
【請求項5】上記画素のカウント値を量子化した請求項
3または4に記載のカラー画像領域管理装置。
5. The color image area management device according to claim 3, wherein the count value of the pixel is quantized.
【請求項6】上記葉ノードに対応するブロックに含まれ
る画素の数が2個以上である請求項1ないし5のいずれ
か一つに記載のカラー画像領域管理装置。
6. The color image area management device according to claim 1, wherein the number of pixels included in the block corresponding to the leaf node is two or more.
【請求項7】上記葉ノードに対応するブロックに含まれ
る画素の数が1個である請求項1ないし5のいずれか一
つに記載のカラー画像領域管理装置。
7. The color image area management device according to claim 1, wherein the number of pixels included in the block corresponding to the leaf node is one.
【請求項8】上記色クラス決定手段は画像データの各画
素の色データを三色表色系から知覚色系に変換する変換
手段と、上記知覚色系に基づく色空間を複数の色クラス
に分割し上記変換手段により知覚色系に変換された色が
いずれの色クラスに属するかを判別する手段と、を有す
る請求項1ないし7のいずれか一つに記載のカラー画像
領域管理装置。
8. The conversion means for converting the color data of each pixel of the image data from the three color system to the perceptual color system, and the color space based on the perceptual color system into a plurality of color classes. 8. The color image area management device according to claim 1, further comprising: a unit that determines which color class the color that has been divided and converted into the perceptual color system by the conversion unit belongs to.
【請求項9】上記色クラス決定手段は画素の色の彩度が
所定の値より小さいときはその画素の色を無彩色の色ク
ラスとして判別する請求項8に記載のカラー画像領域管
理装置。
9. The color image area management device according to claim 8, wherein said color class determining means determines the color of the pixel as an achromatic color class when the color saturation of the pixel is smaller than a predetermined value.
【請求項10】画像データの各画素の色データを三色表
色系から知覚色系に変換するステップと、知覚色系に基
づく色空間を複数の色クラスに分割するステップと、画
素の色が上記複数の色クラスのうちのいずれの色クラス
に属するかを決定するステップと、それぞれ少なくとも
一つの画素を含むブロックを葉ノードとして根ノードに
至る木構造データを構成するとともに、該木構造データ
におけるノードごとに、そのノードに含まれる画素につ
いて色クラスごとにその色クラスに属する色を有する画
素の頻度を計算し各色クラスごとに計算された画素の頻
度を色指標として記憶するステップと、を有するカラー
画像領域管理方法。
10. A step of converting color data of each pixel of image data from a three color system to a perceptual color system, a step of dividing a color space based on the perceptual color system into a plurality of color classes, and a color of the pixel. Determines which of the plurality of color classes belongs to the color class, and configures tree-structured data reaching a root node with a block including at least one pixel as a leaf node, and the tree-structured data. For each node in, the frequency of pixels having a color belonging to the color class is calculated for each pixel included in the node, and the frequency of the pixel calculated for each color class is stored as a color index. A color image area management method having the same.
【請求項11】原画像を三色表色系により表される画像
データとして取り込むの画像入力装置と、上記画像入力
装置から出力される三色表色系により表される画像デー
タを記憶する記憶手段と、各画素の色データが三色表色
系により表わされた画像データの各画素についてその画
素の色が知覚色系に基づいて分類される複数の色クラス
のいずれに属するかを決定する色クラス決定手段と、そ
れぞれ少なくとも一つの画素を含むブロックを葉ノード
として根ノードに至る木構造データを構成するととも
に、該木構造データにおけるノードごとに、そのノード
に含まれる画素について色クラスごとにその色クラスに
属する色を有する画素の頻度を計算し各色クラスごとに
計算された画素の頻度を色指標として記憶する色指標記
憶手段と、を有するカラー画像領域管理システム。
11. An image input device for capturing an original image as image data represented by a three-color color system, and a memory for storing image data represented by the three-color color system output from the image input device. Means, and for each pixel of the image data in which the color data of each pixel is represented by a three-color system, which of a plurality of color classes the color of the pixel belongs to is classified based on the perceptual color system. And a tree structure data that reaches a root node by using a block including at least one pixel as a leaf node, and for each node in the tree structure data, a color class for a pixel included in the node. And a color index storage unit that stores the frequency of pixels having a color belonging to the color class and stores the calculated pixel frequency for each color class as a color index. Color image area management systems.
【請求項12】請求項1に記載のカラー画像領域管理装
置によって構成された木構造データを用いてカラー画像
の領域を検索するカラー画像領域検索方法であって、指
定された色に基づいて検索すべき色クラスを決定するス
テップと、決定された色クラスについて木構造データを
探索するステップと、葉ノード以外の各ノードにおい
て、決定された色クラスに属する画素の頻度がゼロの場
合は自己より下位のノードの探索を打ち切り、そうでな
い場合は探索を続行するステップと、葉ノードにおい
て、決定された色クラスの画素の頻度が所定の値より大
きい場合にその葉ノードに対応するブロックを検出すべ
き色の領域として記録するステップと、有するカラー画
像領域検索方法。
12. A color image area search method for searching a color image area using tree structure data configured by the color image area management device according to claim 1, wherein the search is performed based on a designated color. The step of deciding the color class to be done, the step of searching the tree structure data for the decided color class, and in each node other than the leaf node, if the frequency of the pixels belonging to the decided color class is zero, Abort the search of the lower node, otherwise continue the search, and in the leaf node, detect the block corresponding to the leaf node if the frequency of pixels of the determined color class is greater than a predetermined value. A step of recording the color image area as a power color area;
【請求項13】上記検索すべき色クラスは指定された色
の属する色クラス及び指定された色の属する色クラスに
知覚色的に近い色クラスである請求項12に記載のカラ
ー画像領域検索方法。
13. The color image area searching method according to claim 12, wherein the color class to be searched is a color class to which a designated color belongs and a color class which is perceptually close to a color class to which the designated color belongs. .
JP3174749A 1991-06-20 1991-06-20 Color image area management device, color image area management method, and color image area search method Expired - Lifetime JPH0697459B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3174749A JPH0697459B2 (en) 1991-06-20 1991-06-20 Color image area management device, color image area management method, and color image area search method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3174749A JPH0697459B2 (en) 1991-06-20 1991-06-20 Color image area management device, color image area management method, and color image area search method

Publications (2)

Publication Number Publication Date
JPH04370881A JPH04370881A (en) 1992-12-24
JPH0697459B2 true JPH0697459B2 (en) 1994-11-30

Family

ID=15984014

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3174749A Expired - Lifetime JPH0697459B2 (en) 1991-06-20 1991-06-20 Color image area management device, color image area management method, and color image area search method

Country Status (1)

Country Link
JP (1) JPH0697459B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008099170A (en) * 2006-10-16 2008-04-24 Sharp Corp Image processing apparatus and image processing method

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3732366B2 (en) * 1999-10-05 2006-01-05 財団法人電力中央研究所 Image database apparatus and image database creation / retrieval method
KR100422697B1 (en) * 1999-12-27 2004-03-12 엘지전자 주식회사 Color Space Quantization Descriptor
JP4777059B2 (en) 2005-12-22 2011-09-21 パナソニック株式会社 Image search apparatus and image search method
JP4745081B2 (en) * 2006-02-23 2011-08-10 シャープ株式会社 Image processing apparatus and image processing method
JP4747024B2 (en) * 2006-04-28 2011-08-10 富士フイルム株式会社 Meta information adding apparatus, image reproducing apparatus, control method therefor, and program for controlling them
JP4902564B2 (en) * 2008-02-08 2012-03-21 日本放送協会 Marker detection and identification device and program thereof
JP5149858B2 (en) * 2009-04-20 2013-02-20 富士フイルム株式会社 Color image representative color determination device and operation control method thereof
JP5138790B2 (en) * 2011-05-12 2013-02-06 パナソニック株式会社 Image search apparatus and image search method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008099170A (en) * 2006-10-16 2008-04-24 Sharp Corp Image processing apparatus and image processing method

Also Published As

Publication number Publication date
JPH04370881A (en) 1992-12-24

Similar Documents

Publication Publication Date Title
US5509111A (en) Color image region management system and color image region management method and color image region retrieval method
US5461493A (en) Image editing system and method have improved color key editing
JP4271804B2 (en) Method for selecting colors assigned to pixels, and method for encoding and storing images
US4603348A (en) Method for composing addresses of a memory
US9280949B2 (en) Color selection interface
US7236652B2 (en) Image retrieval apparatus and image retrieving method
US5533186A (en) Image filing method based on symbol retrieval condition
US7352896B2 (en) Method for interpolation and sharpening of images
CA2444329A1 (en) A method for representing and comparing digital images
GB2431793A (en) Image comparison
JPH0697459B2 (en) Color image area management device, color image area management method, and color image area search method
US8340412B2 (en) Image processing
US7023585B1 (en) Multi-dimensional edge interpolation
US7242410B2 (en) Color conversion method and apparatus
KR20000014123A (en) Image likeness weighted value adjustment device and method and contents base image search system and method using thereof
US7468733B2 (en) Method and system for improving color reduction
JPH07271987A (en) Representative feature amount extraction method and representative feature amount extraction device
US20240354891A1 (en) Image processing method and image processing device
JPH0317787A (en) Intra-frame area detecting device
Moosburger Colour labelling of art images using colour palette recognition
JPH0496575A (en) Image encoding method
CN121527495A (en) Methods and systems for color structure analysis of batch images
WO2012169964A1 (en) Method for identifying a characteristic part of an image
JP2000333028A (en) Color image processing method and apparatus
Valdes The IRAF APEXTRACT Package