JP2000222420A - Image processor, its method, and storage medium - Google Patents

Image processor, its method, and storage medium

Info

Publication number
JP2000222420A
JP2000222420A JP11022939A JP2293999A JP2000222420A JP 2000222420 A JP2000222420 A JP 2000222420A JP 11022939 A JP11022939 A JP 11022939A JP 2293999 A JP2293999 A JP 2293999A JP 2000222420 A JP2000222420 A JP 2000222420A
Authority
JP
Japan
Prior art keywords
color
label
block
image
blocks
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.)
Withdrawn
Application number
JP11022939A
Other languages
Japanese (ja)
Inventor
Hiroshi Tojo
洋 東條
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP11022939A priority Critical patent/JP2000222420A/en
Priority to EP00300636A priority patent/EP1024442A3/en
Priority to US09/493,262 priority patent/US6731789B1/en
Publication of JP2000222420A publication Critical patent/JP2000222420A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To make it possible to transform a certain color label string data into another color label string data by removing a color label indicating a background color from color label string data of an original image without requiring the original image. SOLUTION: A color label string related to an image to be transformed and its attribute information are inputted from a color label string input part 2010. A transformation attribute specification part 2020 specifies attribute information related to labeling in a transforming color space. A color space matching part 2030 matches the color substitution of the inputted color label string based on the inputted attribute information and the specified attribute information. A background color judging part 2035 judges a control color of an input image as a background color based on the inputted color label string. A block division matching part 2040 matches a block removing the background color with a transformed block and a color label string output part 2050 generates and outputs the transformed color label string.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、画像を複数のブロ
ックに分割し、各ブロックについて特徴量に応じて色を
ラベルで表現する画像処理装置及び方法及び記憶媒体に
関するものである。
[0001] 1. Field of the Invention [0002] The present invention relates to an image processing apparatus and method which divides an image into a plurality of blocks, and expresses a color of each block with a label according to a feature amount, and a storage medium.

【0002】[0002]

【従来技術】近年、例えば画像を検索するための様々な
技術が提案されている。その中に、検索に使用する画像
(以下、クエリー画像)を入力し、それに最も近似する
ものを登録画像群から検索する技術がある。かかる技術
においては、ある程度実用化されている技術では、画像
を複数のブロックに分割し、夫々の色のヒストグラムを
取って各ブロック毎に最頻の色をまず決定する。一方、
その色、例えばRGBの色空間を分割し、図6に示した
ように夫々のセル(小色空間片)にラベルを付与してお
く。そして前述した各ブロックの最頻の色がどの色ラベ
ルに対応するかを、全てのブロックに対して決定し、こ
れを色ラベル列とする。
2. Description of the Related Art In recent years, for example, various techniques for searching for images have been proposed. Among them, there is a technique of inputting an image (hereinafter, referred to as a query image) to be used for a search and searching for an image closest to the image from a group of registered images. In this technique, in a technique which has been put to practical use to some extent, an image is divided into a plurality of blocks, and a histogram of each color is taken to determine a most frequent color for each block. on the other hand,
The color, for example, RGB color space is divided, and a label is given to each cell (small color space piece) as shown in FIG. Then, a color label to which the most frequent color of each block corresponds is determined for all the blocks, and this is set as a color label string.

【0003】この色ラベル列をデータベースに登録して
おき、クエリー画像も同様にして色ラベル列を検出し、
それら同士のパターンマッチングを行うことで、クエリ
ー画像に最も近似する画像を検索するものである。かか
る技術としては、例えば特開平8−249349号公
報、特開平10−260983公報等がある。
[0003] The color label string is registered in a database, and the color label string is similarly detected from the query image.
By performing pattern matching between them, an image closest to the query image is searched. Such techniques include, for example, JP-A-8-249349 and JP-A-10-260983.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、画像の
ブロック分割数を少なくするほど(粗い分割にするほ
ど)、画像全体において支配的な色(多くの場合は背景
色)が色ラベル列の大半を占めてしまい、背景の中に存
在する物体の色が失われていく。これでは、特に、前述
した画像検索装置においては、背景色での検索しか行え
なえず、必要以上の検索結果が出力されてしまい、目的
とする画像になかなか辿り着けない。
However, the smaller the number of block divisions of an image (the coarser the division), the more the dominant color (in many cases, the background color) in the entire image becomes the majority of the color label string. It occupies and loses the color of objects in the background. In this case, in particular, in the above-described image search device, only the search using the background color can be performed, and a search result more than necessary is output, and it is difficult to reach the target image.

【0005】本発明はかかる問題点に鑑みなされたもの
であり、原画像を必要とせず、且つ、原画像について支
配的に存在する背景色を除いた上で、色ラベル列データ
から別の色ラベル列データに変換することを可能ならし
める画像処理装置及び方法及び記憶媒体を提供しようと
するものである。
The present invention has been made in view of such a problem, and does not require an original image, and removes a background color which is dominantly present in the original image, and separates another color from the color label string data. It is an object of the present invention to provide an image processing apparatus, method, and storage medium that enable conversion into label string data.

【0006】[0006]

【課題を解決するための手段】この課題を解決するた
め、例えば本発明の画像処理装置は以下の構成を備え
る。すなわち、画像を複数のブロックに分割し、各ブロ
ックについて特徴量に応じた色ラベルを付すことで前記
画像を色ラベル列データで表現する画像処理装置であっ
て、前記変換元の色ラベル列データとその属性情報を入
力する入力手段と、該入力手段より入力された色ラベル
列に基づいて変換元の画像の背景色を判定する判定手段
と、変換後の色ラベル列データについての属性情報を指
定する指定手段と、変換元の色ラベルデータを、前記入
力手段で入力した属性情報及び前記指定手段で指定され
た属性情報、更には、前記判定手段の判定結果に基づい
て、変換先色ラベル列データに変換する変換手段とを備
える。
To solve this problem, for example, an image processing apparatus according to the present invention has the following arrangement. That is, an image processing apparatus that divides an image into a plurality of blocks, and attaches a color label according to a feature amount to each block to express the image with color label string data, wherein the conversion-source color label string data And input means for inputting the attribute information thereof, determining means for determining the background color of the original image based on the color label string input from the input means, and attribute information about the converted color label string data. A designation means for designating, and a color label data of the conversion source, based on the attribute information inputted by the input means and the attribute information designated by the designation means, and further based on the judgment result of the judgment means, Conversion means for converting to column data.

【0007】[0007]

【発明の実施の形態】以下、添付図面に従って本発明に
係る好適な一実施形態を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment according to the present invention will be described below with reference to the accompanying drawings.

【0008】図1は本実施形態の色ラベル列変換装置の
制御構成を示すブロック図である。同図において、10
1はCPUであり、本実施形態の画像検索装置における
各種制御を実行する。102はROMであり、本装置の
立ち上げ時に実行されるブートプログラムや各種データ
を格納する。103はRAMであり、CPU101が処
理するための制御プログラムを格納するとともに、CP
U101が各種制御を実行する際の作業領域を提供す
る。104はキーボード、105はマウスであり、ユー
ザによる各種入力操作環境を提供する。
FIG. 1 is a block diagram showing a control configuration of the color label string conversion device of the present embodiment. In the figure, 10
Reference numeral 1 denotes a CPU which executes various controls in the image search device of the present embodiment. Reference numeral 102 denotes a ROM, which stores a boot program executed when the apparatus is started and various data. A RAM 103 stores a control program for processing by the CPU 101 and has a CP
It provides a work area when the U101 executes various controls. A keyboard 104 and a mouse 105 provide various input operation environments for the user.

【0009】106は外部記憶装置であり、ハードディ
スクやフロッピーディスク、CD−ROM等で構成され
る。この外部記憶装置106には、OSや各種画像処理
用のアプリケーションが格納されており、それらがRA
M103にロードされ実行されることで、色ラベル列変
換装置として機能するようになる。107は表示器であ
り、ディスプレイなどで構成され、結果等をユーザに対
して表示する。108はネットワークインターフェース
であり、ネットワーク上の各機器との通信を可能とす
る。なお、ネットワーク上には画像検索装置、画像認識
装置をはじめとする複数の装置が存在しているものとす
る。111は上記の各構成を接続するバスである。
Reference numeral 106 denotes an external storage device, which comprises a hard disk, a floppy disk, a CD-ROM, or the like. The external storage device 106 stores an OS and various image processing applications.
By being loaded into the M103 and executed, it functions as a color label string conversion device. Reference numeral 107 denotes a display, which is configured by a display or the like, and displays a result or the like to a user. A network interface 108 enables communication with each device on the network. It is assumed that a plurality of devices such as an image search device and an image recognition device exist on the network. A bus 111 connects the above components.

【0010】なお、上記の構成において外部記憶装置1
06はネットワーク上に配置されたもので代用してもよ
い。
In the above configuration, the external storage device 1
Reference numeral 06 may be replaced by one located on the network.

【0011】図2は本実施形態の色ラベル列変換装置の
機能構成を示すブロック図である。なお、以下に説明す
る各構成要素は、図1との対応関係で示すと、主として
CPU101によるものである。つまり、ほとんどの部
分はCPU101が実行するソフトウェア(そのプログ
ラムは外部記憶装置に格納されており、RAM103に
ロードされ実行される)でもって実現している。
FIG. 2 is a block diagram showing a functional configuration of the color label string conversion device of the present embodiment. Each component described below is mainly based on the CPU 101 when shown in correspondence with FIG. That is, most of the components are realized by software executed by the CPU 101 (the program is stored in an external storage device and is loaded into the RAM 103 and executed).

【0012】さて、同図において、2010は色ラベル
列入力部であり、変換元の画像認識装置から、外部記憶
装置106やネットワークインターフェース108を介
し、後述する図6のフォーマットで書かれた色ラベル列
情報を入力するものである。2020は変換属性指定部
であり、色ラベル列の変換先の属性を指定するものであ
る。2030は色空間整合部であり、変換元と変換先の
色空間の整合を取るものである。2035は背景色判定
部であり、画像において支配的な色(背景色)が属する
色ラベルを判定するものである。2040はブロック分
割整合部であり、変換元と変換先のブロック分割の整合
を取るものである。2050は色ラベル列出力部であ
り、変換後の色ラベル列を、外部記憶装置106やネッ
トワークインターフェース108を介して、或いは直
接、変換先の画像検索装置へ出力するものである。
Referring to FIG. 1, reference numeral 2010 denotes a color label string input unit, which receives a color label written in a format shown in FIG. 6 from the image recognition apparatus of the conversion source via the external storage device 106 or the network interface 108. This is for inputting column information. Reference numeral 2020 denotes a conversion attribute specifying unit for specifying an attribute of a conversion destination of the color label string. Reference numeral 2030 denotes a color space matching unit that matches a color space between a conversion source and a conversion destination. A background color determination unit 2035 determines a color label to which a dominant color (background color) in an image belongs. Reference numeral 2040 denotes a block division matching unit that matches the block divisions of the conversion source and the conversion destination. Reference numeral 2050 denotes a color label string output unit, which outputs the converted color label string to the image search apparatus via the external storage device 106 or the network interface 108 or directly.

【0013】以上のような構成を備えた本実施形態の色
ラベル列変換装置の動作例を以下に説明する。
An operation example of the color label string conversion apparatus of the present embodiment having the above-described configuration will be described below.

【0014】なお、実施形態の色ラベル変換装置の位置
づけであるが、例えば画像特徴抽出装置より、検索しよ
うとする画像(クエリー画像)を読み取って色ラベル列
を生成し、その画像特徴抽出装置より供給された色ラベ
ル列を、画像検索装置に検索条件として供給する際に、
その画像検索装置で使用している色空間のラベルに合致
するものに変換させる装置と考えるとわかりやすい。
The position of the color label converting apparatus according to the embodiment is as follows. For example, an image (query image) to be searched is read from an image feature extracting apparatus to generate a color label sequence, and the image feature extracting apparatus reads the image. When supplying the supplied color label string as a search condition to the image search device,
It is easy to understand if it is considered as a device that converts the image into a device that matches the label of the color space used in the image search device.

【0015】図6は本実施形態による色ラベル列フォー
マットの一例である。本フォーマットにおいて、カラー
スペース(色空間)は画像検索装置の特徴抽出段階にお
いて使用された色空間の名前、例えばRGB空間や,L
***空間などを格納するものである。カラースペー
ス分割数は、ラベル付けのための色空間の分割数であ
る。ブロック分割数は画像を横方向(x方向)と縦方向
(y方向)にどれだけ分割したかを格納するものであ
る。ラベル列は実際の色ラベル列そのものを格納するも
のである。図7はRGB空間において分割数27(=3
×3×3)に分割しラベル付けした例である。
FIG. 6 shows an example of a color label string format according to the present embodiment. In this format, the color space (color space) is the name of the color space used in the feature extraction stage of the image search device, for example, RGB space, L
* u * v * space and the like are stored. The color space division number is the number of color space divisions for labeling. The block division number stores how much the image is divided in the horizontal direction (x direction) and the vertical direction (y direction). The label string stores the actual color label string itself. FIG. 7 shows the number of divisions 27 (= 3) in the RGB space.
This is an example of dividing into 3 × 3) and labeling.

【0016】図3乃至図5は本実施形態による色ラベル
列変換処理の手順を表すものであり、CPU101が実
行することになる。以下、これに従って、色ラベル列を
変換する処理を説明する。なお、実施形態では、変換先
及び変換元の色ラベルに関する属性情報は、予め記憶さ
れているものとするが、例えばネットワークを介して変
換先となる装置に対して要求することで得るようにして
もよい。
FIGS. 3 to 5 show the procedure of the color label string conversion processing according to the present embodiment, which is executed by the CPU 101. FIG. Hereinafter, a process of converting the color label string according to the above will be described. In the embodiment, the attribute information on the color labels of the conversion destination and the conversion source is assumed to be stored in advance. For example, the attribute information can be obtained by requesting a device to be converted via a network. Is also good.

【0017】まず、ステップS3000において、色ラ
ベル列入力部2010によって変換元の色ラベル列を入
力する。次に、ステップS3005において、変換属性
指定部2020によって変換先の属性を指定する。指定
する属性は、図6のフォーマットに示した色ラベルに関
する属性(カラースペース、カラースペース分割数、ブ
ロック分割数)である。次にステップS3010におい
て、色空間整合部2030によって変換元のカラースペ
ース分割数と変換先のカラースペース分割数、及び、変
換元のカラースペースと変換先のカラースペースを比較
し、異なっているかどうかを判定する。もし異なってい
れば、色空間整合部2030はステップS3020にお
いて、色空間の違いからくる色ラベルの不整合を修正す
る。この処理について図8を用いて詳細に説明する。
First, in step S3000, the color label sequence input unit 2010 inputs a color label sequence to be converted. Next, in step S3005, the attribute of the conversion destination is specified by the conversion attribute specifying unit 2020. The attributes to be specified are attributes (color space, number of color space divisions, number of block divisions) relating to the color labels shown in the format of FIG. Next, in step S3010, the color space matching unit 2030 compares the conversion source color space division number with the conversion destination color space division number, and compares the conversion source color space with the conversion destination color space to determine whether they are different. judge. If they are different, in step S3020, the color space matching unit 2030 corrects the color label mismatch caused by the difference in color space. This processing will be described in detail with reference to FIG.

【0018】まず、ステップS5010において、変換
元の夫々のラベルに対応するセルの中間色(セルの中央
位置の色)を求める。図7の例では、夫々のラベルに対
応するセルは立方体であるから、各セルごとに、8つの
頂点の色(R0,G0,B0),(R1,G1,B1),
(R2,G2,B2),(R3,G3,B3),(R4,G4
4),(R5,G5,B5),(R6,G6,B6),(R7
7,B7)を平均すればよい。
First, in step S5010, the intermediate color of the cell (the color at the center of the cell) corresponding to each label of the conversion source is determined. In the example of FIG. 7, since the cells corresponding to the respective labels are cubes, the colors of the eight vertices (R 0 , G 0 , B 0 ), (R 1 , G 1 , B 1 ) are provided for each cell. ,
(R 2 , G 2 , B 2 ), (R 3 , G 3 , B 3 ), (R 4 , G 4 ,
B 4 ), (R 5 , G 5 , B 5 ), (R 6 , G 6 , B 6 ), (R 7 ,
G 7 , B 7 ) may be averaged.

【0019】 Rmid=1/8(R0+R1+R2+R3+R4+R5+R6+R7) 式(1) Gmid=1/8(G0+G1+G2+G3+G4+G5+G6+C7) 式(2) Bmid=1/8(B0+B1+B2+B3+B4+B5+B6+B7) 式(3) 上記の式において、midは中間色であることを示して
いる。
R mid = 1/8 (R 0 + R 1 + R 2 + R 3 + R 4 + R 5 + R 6 + R 7 ) Equation (1) G mid = 1/8 (G 0 + G 1 + G 2 + G 3 + G 4 + G 5) + G 6 + C 7 ) Formula (2) B mid = 1/8 (B 0 + B 1 + B 2 + B 3 + B 4 + B 5 + B 6 + B 7 ) Formula (3) In the above formula, mid indicates an intermediate color. ing.

【0020】次にステップS5020において、変換元
と変換先のカラースペースが異なるかどうかを判定す
る。もし、異なっていれば、上記の式で求めた夫々の色
ラベルに対応する中間色を変換先の色空間の値に変換す
る。例えば変換元がRGB空間で、変換先がL***
空間であるならば、以下の変換式(4)〜(11)より
変換が可能である。、 X =0.62R+0.17G+0.18B 式(4) Y =0.31R+0.59G+0.11B 式(5) Z = 0.066G+1.02B 式(6) u’=4X/(X+15Y+3Z) 式(7) V’=9Y/(X+15Y+3Z) 式(8) L* =25(100Y)1/3−16 式(9) u* =13L*(u'−0.201) 式(10) v* =13L*(v'−0.461) 式(11) ここで、R、G、Bは先に求めた各セル毎のRmid,G
mid,Bmidである。
Next, in step S5020, it is determined whether or not the conversion source and destination color spaces are different. If they are different, the intermediate color corresponding to each color label obtained by the above equation is converted into a value in the color space of the conversion destination. For example, the conversion source is RGB space and the conversion destination is L * u * v *
If it is a space, it can be converted by the following conversion formulas (4) to (11). X = 0.62R + 0.17G + 0.18B Equation (4) Y = 0.31R + 0.59G + 0.11B Equation (5) Z = 0.066G + 1.02B Equation (6) u ′ = 4X / (X + 15Y + 3Z) Equation (7) V ′ = 9Y / (X + 15Y + 3Z) Equation (8) L * = 25 (100Y) 1/3 −16 Equation (9) u * = 13L * (u′−0.201) Equation (10) v * = 13L * (V′−0.461) Expression (11) Here, R, G, and B are R mid , G for each cell obtained earlier.
mid and B mid .

【0021】次にステップS5040において、変換元
の色ラベルに対応する中間色の座標を変換先での色空間
上にマッピングし、これが変換先の色空間のどのセルに
含まれるかを求めて対応する色ラベルを決定すること
で、変換元の色ラベルの修正を行う。このとき、例えば
カラースペースが変換元・変換先共にRGB空間で、変
換元のカラースペース分割数が3(R方向)×3(G方
向)×3(B方向)=27で、変換先のカラースペース
が分割数が、各方向が2倍の6(R方向)×6(G方
向)×6(B方向)=216である場合は、変換元の中
間色は変換先では、立方体をしたセルの頂点にあたり、
色ラベルを決定する事が出来ない。ステップS5050
において、この判定を行い、もし、対応する色ラベルを
決定する事ができなければ、ステップS5060におい
て、特定の方向のセルを対応するセルとし、そのセルの
色ラベルを採用する。例えば、中間色の位置の近辺にあ
るセルの中からR=0,G=0,B=0である黒に近い
セルを常に採用する、というようにしておけばよい。以
上が、色空間の違いから来るラベルの不整合を修正する
処理の詳細である。
Next, in step S5040, the coordinates of the intermediate color corresponding to the color label of the conversion source are mapped on the color space of the conversion destination, and it is determined which cell in the color space of the conversion destination contains this. By determining the color label, the color label of the conversion source is corrected. At this time, for example, the color space is the RGB space for both the conversion source and the conversion destination, the conversion source color space division number is 3 (R direction) × 3 (G direction) × 3 (B direction) = 27, and the conversion destination color When the number of divisions of the space is 6 (R direction) × 6 (G direction) × 6 (B direction) = 216, which is twice as large in each direction, the intermediate color of the conversion source is the cubic cell of the conversion destination. At the top,
Unable to determine color label. Step S5050
In step S5060, a cell in a specific direction is set as a corresponding cell, and the color label of the cell is adopted. For example, a cell close to black where R = 0, G = 0, and B = 0 among cells near the position of the intermediate color may always be adopted. The above is the details of the processing for correcting the label mismatch caused by the difference in the color space.

【0022】次に背景色判定部2035の処理について
説明する。
Next, the processing of the background color judgment unit 2035 will be described.

【0023】図3のステップS3021において、変換
元の色ラベル列全体のヒストグラムを集計する。次に、
ステップS3022において、1位(最頻)の色ラベル
が過半数を占めているかどうかを判断する。もし、1位
の色ラベルが過半数を示しているのであれば、そのラベ
ルで示される色は画像全体に対して支配的な色であると
判断し、ステップS3023において、1位の色ラベル
を背景色ラベルとして設定登録する。登録先は例えばR
AM103の予め決められたアドレス位置とする。ま
た、1位のラベルが過半数を占めていない場合には、そ
れを背景色ラベルとしては設定しない。ただし同アドレ
ス位置には初期値としてラベル0を登録しておく。つま
り、後の処理で、このアドレス位置に格納されているの
が“0”あった場合には、背景色は登録されていないと
判断し、“0”以外の値が格納されている場合には、そ
の値に対応するラベルが背景色であると判断する。
In step S3021 of FIG. 3, the histograms of the entire color label sequence of the conversion source are totaled. next,
In step S3022, it is determined whether the first (most frequent) color label occupies the majority. If the first color label indicates a majority, it is determined that the color indicated by the label is the dominant color for the entire image, and in step S3023, the first color label is set to the background. Register as a color label. Registration destination is, for example, R
A predetermined address position of the AM 103 is set. If the first-ranked label does not occupy the majority, it is not set as the background color label. However, label 0 is registered at the same address position as an initial value. That is, in a later process, if the value stored at this address position is "0", it is determined that the background color is not registered, and if a value other than "0" is stored, Determines that the label corresponding to that value is the background color.

【0024】次にブロック分割整合部2040における
処理について説明する。ここでは説明を簡単にするた
め、例として、図9に示したように変換元のブロック分
割数が16(x方向)×16(y方向)で(細線で示し
たブロック分割)、変換先のブロック分割数が4(x方
向)×4(y方向)で(太線で示したブロック分割)あ
る場合について述べる。すなわちこの場合は、変換先で
は変換元のブロックを4(x方向)×4(y方向)ずつ
まとめることになる。
Next, the processing in the block division matching unit 2040 will be described. Here, for simplicity of explanation, as an example, as shown in FIG. 9, the number of block divisions of the conversion source is 16 (x direction) × 16 (y direction) (the block division shown by the thin line), and The case where the number of block divisions is 4 (x direction) × 4 (y direction) and there are (block divisions shown by thick lines) will be described. That is, in this case, at the conversion destination, the blocks of the conversion source are grouped by 4 (x direction) × 4 (y direction).

【0025】ステップS3030において、変換先のブ
ロック夫々について対応する変換元ブロック4×4個の
色ラベルのヒストグラムを集計する。例えば今注目して
いる変換先のブロックにおいて、変換元の色ラベルのブ
ロックが図10のようになっている場合、ヒストグラム
を取ると色ラベル1が11個、色ラベル20が3個、色
ラベル8が2個となる。次にステップS3040におい
て、この色ラベルのヒストグラムの1位の色ラベルが、
過半数であるかを判定する。前述した例では、1位は色
ラベル1で11個であるから過半数である。このとき、
ステップS3091において、1位である色ラベルが背
景色ラベルかどうかを判断する。背景色か否かは、先に
説明した設定登録された値と比較すればよい。
In step S3030, histograms of 4 × 4 color labels of the source block corresponding to each of the destination blocks are totaled. For example, in the conversion destination block of interest, if the block of the color label of the conversion source is as shown in FIG. 10, if the histogram is taken, 11 color labels 1, 3 color labels 20, and 3 color labels 8 is two. Next, in step S3040, the top color label in the histogram of this color label is
It is determined whether it is the majority. In the example described above, the first place is the color label 1, which is eleven, which is the majority. At this time,
In step S3091, it is determined whether the number one color label is a background color label. Whether the color is the background color may be compared with the value registered and registered as described above.

【0026】もし、1位の色ラベルが過半数を有し、且
つ、背景色ではないならば、ステップS3100に進ん
で、その1位の色ラベルを変換先の色ラベルにそのまま
利用する。例えば、図10の状態であれば、1位となる
のは色ラベル1であり、それは過半数を占めており、且
つ、背景色として登録されたものが色ラベル1以外であ
れば、その1位の色ラベルを変換先の色空間の属性に従
った色ラベルに変換する。
If the first color label has a majority and is not the background color, the flow advances to step S3100 to use the first color label as it is for the destination color label. For example, in the state of FIG. 10, the first place is the color label 1, which occupies the majority, and if the background color registered is other than the color label 1, the first place is the color label. Is converted into a color label according to the attribute of the color space of the conversion destination.

【0027】また、1位の色ラベルが背景色であるなら
ば(1位の色ラベルと背景色として設定登録した色ラベ
ルが一致したら)、ステップS3092に進んで、2位
のステップS3092に進み、2位の色ラベルを変換先
のラベルとして決定可能かどうかを判断する。例えば、
図10の状態で、背景色として色ラベル1が登録されて
いれば、2位は色ラベル20(2番目の頻度である)で
あり、且つ、同数の他の色ラベルは存在しない。このよ
うな場合には、ステップS3093に進んで、2位の色
ラベルを変換先の色空間の属性に従った色ラベルに使用
する。
If the first color label is the background color (if the first color label matches the color label set and registered as the background color), the process proceeds to step S3092, and proceeds to the second step S3092. It is determined whether or not the second color label can be determined as the destination label. For example,
In the state of FIG. 10, if the color label 1 is registered as the background color, the second place is the color label 20 (the second frequency), and the same number of other color labels do not exist. In such a case, the process proceeds to step S3093, and the second-rank color label is used for the color label according to the attribute of the color space of the conversion destination.

【0028】また、2位以下の頻度が同数の色ラベルが
存在した場合には、ステップS3094において、それ
らの中の特定の色ラベルを採用する。特定の色ラベルと
しては、例えば2位以下の色ラベルの中から色ラベルの
若いものを選択する方法がある。また、2位の色ラベル
が3つ以上存在した場合、それらの色の中で距離が最も
近いものをひとまとめにし、その数で選択するようにし
てもよい。
If there are color labels with the same number of frequencies in the second place or lower, a specific color label among them is adopted in step S3094. As a specific color label, for example, there is a method of selecting a color label having a lower color label from the second or lower color labels. If there are three or more second-level color labels, those having the shortest distance among the colors may be put together and selected based on the number.

【0029】いずれにしても、色ラベルが1つ決定され
たら、ステップS3110に進み、全てのブロックに対
して行ったか否かを判断し、否の場合には、ステップS
3030に戻ることになる。
In any case, if one color label has been determined, the flow advances to step S3110 to determine whether or not the processing has been performed for all the blocks.
It will return to 3030.

【0030】一方、注目ブロックにおける1位の色ラベ
ルが過半数を占めていない場合、ステップS3040か
らステップS3050に進むことになる。
On the other hand, if the color label at the top of the target block does not occupy the majority, the process proceeds from step S3040 to step S3050.

【0031】例えば、注目ブロックが図11に示すよう
な状態である場合には、色ラベルのヒストグラムでが色
ラベル1が6個、色ラベル2が5個、色ラベル20が3
個、色ラベル8が2個であるので、1位の色ラベル1は
過半数を占めていない。
For example, when the target block is in the state shown in FIG. 11, the color label histogram shows six color labels 1, five color labels 2, and three color labels 20.
Since there are two color labels 8, the color label 1 in the first place does not occupy the majority.

【0032】この場合には、ステップS3050におい
て、近似可能なラベル同士をまとめる処理を行う。これ
はオリジナルの画像で例えば、濃淡が存在するために別
な色ラベルになってしまっているものを、近似的に同じ
色とみなすものである。どの色ラベルと色ラベルを近似
的に同じ色とみなすかを決定する方法としては、色空間
内において隣のセル同士をまとめる方法、人手によって
近似できる色ラベルの組み合わせを決定しておき、これ
から近似可能な色ラベルのテーブルを作成しておく方
法、等が考えられる。ここでは前者の方法の例を示す。
図11において、色ラベル1と色ラベル2は図7に示し
た通り色空間場で互いに隣接するセルであるのでこれら
をまとめる。このとき、高い頻度の色ラベルの方に併せ
る。即ち、色ラベル1を11個とする(ここでもし、頻
度が同じであれば、例えば番号の小さい色ラベルなど、
特定の色ラベルに併せればよい)。このように全ての色
ラベルについて近似できるかどうかを判定し、近似可能
な時はより頻度の高い色ラベルにまとめる処理を行う。
In this case, in step S3050, a process is performed to combine labels that can be approximated. In this method, for example, an original image having a different color label due to the presence of light and shade is regarded as approximately the same color. As a method of determining which color label and a color label are considered to be approximately the same color, a method of grouping adjacent cells in a color space, a combination of color labels that can be approximated manually, and a method of approximating A method of creating a table of possible color labels may be considered. Here, an example of the former method is shown.
In FIG. 11, the color labels 1 and 2 are cells adjacent to each other in the color space field as shown in FIG. At this time, the color label is combined with the color label with higher frequency. That is, there are 11 color labels 1 (here, if the frequency is the same, for example, a color label with a small number,
It only needs to match a specific color label). In this way, it is determined whether or not all the color labels can be approximated, and when the color labels can be approximated, a process of combining color labels with higher frequency is performed.

【0033】この処理により図11の例で色ラベルのヒ
ストグラムは、色ラベル1が11個、色ラベル20が3
個、色ラベル8が2個となる。次にステップS3060
において、1位の色ラベルを決定可能かどうかの判定を
行う。図11の例では、色ラベル1が11個で1位とな
る。そして前述したステップS3091、S3092、
S3093、S3094、S3100の処理を行って、
背景色ラベルを考慮した上で変換先の色ラベルを決定す
る。
By this processing, in the example of FIG. 11, the color label histogram shows that 11 color labels 1 and 3 color labels 20
And two color labels 8. Next, step S3060
, It is determined whether the first-ranked color label can be determined. In the example of FIG. 11, eleven color labels 1 rank first. Then, the aforementioned steps S3091, S3092,
By performing the processing of S3093, S3094, and S3100,
The destination color label is determined in consideration of the background color label.

【0034】また、図12(a)に示すように(注目し
ているブロックは太線の中央のブロックであり、また、
対応するオリジナル画像は図12(b)である)色ラベ
ルのヒストグラムをとっても色ラベル1が8個、色ラベ
ル20が8個となっているときは、ステップS3060
において、1位の色ラベルを決定する事が出来ない。
As shown in FIG. 12A, (the block of interest is the center block of the bold line.
The corresponding original image is shown in FIG. 12B. If the color label histogram is eight and the color label 20 is eight, the process proceeds to step S3060.
, It is not possible to determine the number one color label.

【0035】そこで、ステップS3070において、注
目しているブロックの周りのブロックを考慮して、色ラ
ベルのヒストグラムに追加する。これは、どの色ラベル
がより支配的であるかを、周りの色ラベルから判定する
ものである。図12(a)の例においては、対応するオ
リジナル画像の同図(b)からもわかるとおり、色ラベ
ル20の方が支配的である。ここで、例えば注目する変
換先のブロックの変換元の周囲2ブロック分を考慮する
と(図12(a)において太い点線で示した領域)、色
ラベルのヒストグラムは、色ラベル20が52個、色ラ
ベル1が12個となる。次のステップS3080におい
て、1位の色ラベルを決定可能かどうかの判定を行う。
図12(a)の例では、色ラベル20が52個で1位と
なる。そして前述したステップS3091、S309
2、S3093、S3094、S3100の処理を行っ
て、背景色ラベルを考慮した上で変換先の色ラベルを決
定する。
Therefore, in step S3070, a block around the block of interest is added to the histogram of the color label in consideration of the block around the block of interest. This is to determine which color label is more dominant from the surrounding color labels. In the example of FIG. 12A, as can be seen from FIG. 12B of the corresponding original image, the color label 20 is more dominant. Here, considering, for example, two blocks around the transformation source of the target transformation destination block (the area shown by the thick dotted line in FIG. 12A), the color label histogram has 52 color labels 20, 52 There are 12 labels 1. In the next step S3080, it is determined whether or not the top color label can be determined.
In the example of FIG. 12A, the number of the color labels 20 is 52 and the color label 20 is the first place. Then, steps S3091, S309 described above are performed.
2. The processing of S3093, S3094, and S3100 is performed to determine the destination color label in consideration of the background color label.

【0036】また、ステップS3080において1位が
決定できない場合、即ち、ステップS3030からステ
ップS3080の処理でも決定できない場合には以下の
ようにする。
If the first place cannot be determined in step S3080, that is, if the processing cannot be determined even in the processing from step S3030 to step S3080, the following is performed.

【0037】例えば図13(a)(注目しているのは、
太線の中央のブロックであり、また、対応するオリジナ
ル画像は同図(b)である)のときは、ステップS30
90において、変換元の特定のブロックを変換先の色ブ
ロックとする。特定のブロックとしては、注目している
ブロックのなかの左上など特定の位置のブロックを採用
する方法がある。なお、もしステップS3070におい
て、注目する変換先のブロックが、画像の端にあるブロ
ックの場合は、対応する変換元の周囲のブロックが画像
の領域からはみ出す部分については存在しない。このと
きは、存在しない周囲のブロックについては、未使用の
色ラベル、例えば0などを割り当て、カウントしておけ
ば影響を及ばす事がない。
For example, as shown in FIG.
If it is the block at the center of the bold line and the corresponding original image is (b) in FIG.
At 90, the specific block of the conversion source is set as the color block of the conversion destination. As the specific block, there is a method of adopting a block at a specific position such as the upper left of the block of interest. If the conversion destination block of interest in step S3070 is a block located at the end of the image, there is no portion where the corresponding block around the conversion source protrudes from the image area. At this time, an unused color label, for example, 0 is assigned to a non-existing peripheral block, and if it is counted, it has no effect.

【0038】以上の処理を、ステップS3110におい
て、変換先のブロック全てに対して決定した判定するま
で繰り返す。そして、全てのブロックについての処理が
終了すると、ステップS3120において、色ラベル列
出力部2050により変換先に色ラベル列を出力する。
The above processing is repeated until it is determined in step S3110 that all the conversion destination blocks have been determined. When the processing for all the blocks is completed, in step S3120, the color label string output unit 2050 outputs the color label string to the conversion destination.

【0039】なお、上記実施形態においては、色ラベル
列のフォーマットとして図6にあげたように、その属性
としては、カラースペース、カラースペース分割数、ブ
ロック分割数をあげたが、カラースペース分割数を単に
数だけでなく、RGB空間であればR方向、G方向、B
方向それぞれの分割数で指定するなど、より詳細な属性
を与えたり、カラーパレットに関する属性など、他の属
性を加えてももちろんよい。
In the above-described embodiment, as shown in FIG. 6, the format of the color label string includes the attributes of the color space, the number of color space divisions, and the number of block divisions. Is not only a number, but in RGB space, R direction, G direction, B direction
Of course, more detailed attributes such as designation by the number of divisions in each direction may be given, or other attributes such as an attribute relating to a color palette may be added.

【0040】また、上記実施形態においては、ステップ
S3050において、近似できる色ラベル同士をまとめ
るときに、より頻度の高い色ラベルを採用するとした
が、それぞれの色ラベルの頻度で重み付けして、近似で
きる色ラベルの中間色同士の平均色をもとめ(例えば、
色ラベル1が頻度3個で、色ラベル2が頻度2個であ
り、これらが近似できる場合は、Rmid=1/5(3R1
+2R2)、Gmid=1/5(3G1+2G2)、Bmid
1/5(3B1+2B2)から求まる。これが属するセル
の色ラベルを採用する方法もある。
Further, in the above embodiment, in step S3050, when color labels that can be approximated are grouped together, color labels with higher frequency are adopted. However, weighting can be performed with the frequency of each color label to approximate. Determine the average color between the intermediate colors of the color label (for example,
If color label 1 has three frequencies and color label 2 has two frequencies, and these can be approximated, then R mid = 1/5 (3R 1
+ 2R 2 ), G mid = 1/5 (3G 1 + 2G 2 ), B mid =
It is obtained from 1/5 (3B 1 + 2B 2 ). There is also a method of adopting the color label of the cell to which it belongs.

【0041】更に、上記実施例においては、ステップS
3021において変換元の色ラベル列全てについてヒス
トグラムをとった。即ち、画像全体において支配的な色
ラベルを求めた。しかし、変換先の注目するブロックを
中心に十分に広い領域について、変換元の色ラベル列か
ら支配的な色ラベルを求める事も可能である。このと
き、変換先の注目するブロック夫々について支配的な色
ラベルを決定することが可能となる。
Further, in the above embodiment, step S
At 3021, histograms are taken for all the color label strings of the conversion source. That is, a dominant color label was obtained for the entire image. However, it is also possible to obtain a dominant color label from the conversion source color label sequence for a sufficiently large area around the block of interest at the conversion destination. At this time, it is possible to determine a dominant color label for each block of interest at the conversion destination.

【0042】また、上記実施例においては、特に画像検
索装置における活用事例を示したが、画像を複数のブロ
ックに分割し、各ブロックについて特徴量に応じて色を
ラベルで表現する画像処理装置であれば、特にその活用
方法は限定されるものではないことは言うまでもない。
Further, in the above-described embodiment, an application example particularly in an image retrieval apparatus has been described. However, an image processing apparatus which divides an image into a plurality of blocks and expresses a color in each block with a label in accordance with a feature amount. If there is, it goes without saying that the utilization method is not particularly limited.

【0043】なお、上記実施例においては、他の画像処
理装置において抽出された色ラベル列を流用する形式に
ついて説明したが、一つの画像処理装置内において例え
ば、予め所定のブロック分割よりも細かい分割で色ラベ
ル列を求めおき、これを所定のブロック分割に変換する
といった形式も考えられる。
In the above-described embodiment, a format in which a color label string extracted in another image processing apparatus is used has been described. However, in one image processing apparatus, for example, a division smaller than a predetermined block division may be used. It is also conceivable that a color label string is obtained by using the above formula, and this is converted into a predetermined block division.

【0044】また、本発明は、ホストコンピュータ、イ
ンターフェース機器、リーダ、プリンタなどの複数の機
器から構成されるシステムに適用しても、一つの機器か
らなる装置(例えば、複写機、ファクシミリ装置など)
に適用してもよい。
Further, even if the present invention is applied to a system including a plurality of devices such as a host computer, an interface device, a reader, and a printer, a device including one device (eg, a copying machine, a facsimile machine, etc.)
May be applied.

【0045】また、本発明の目的は、前述した実施形態
の機能(図3乃至図5、図8に対応する処理)を実現す
るソフトウェアのプログラムコードを記憶した記憶媒体
を、システムあるいは装置に供給し、そのシステムある
いは装置のコンピュータ(またはCPUやMPU)が記
憶媒体に格納されたプログラムコードを読み出し実行す
ることによっても、達成されることは言うまでもない。
An object of the present invention is to supply a storage medium storing software program codes for realizing the functions of the above-described embodiment (processing corresponding to FIGS. 3 to 5 and FIG. 8) to a system or an apparatus. Needless to say, the present invention is also achieved when the computer (or CPU or MPU) of the system or the apparatus reads out and executes the program code stored in the storage medium.

【0046】この場合、記憶媒体から読み出されたプロ
グラムコード自体が前述した実施形態の機能を実現する
ことになり、そのプログラムコードを記憶した記憶媒体
は本発明を構成することになる。
In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.

【0047】プログラムコードを供給するための記憶媒
体としては、例えば、フロッピィディスク、ハードディ
スク、光ディスク、光磁気ディスク、CD−ROM、C
D−R、磁気テープ、不揮発生のメモリカード、ROM
などを用いることができる。
As a storage medium for supplying the program code, for example, a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, C
DR, magnetic tape, nonvolatile memory card, ROM
Etc. can be used.

【0048】また、コンピュータが読み出したプログラ
ムを実行することにより、前述した実施形態の機能が実
現されるだけでなく、そのプログラムコードの指示に基
づき、コンピュータ上で稼動しているOS(オペレーテ
ィングシステム)などが実際の処理の一部または全部を
行い、その処理によって前述した実施形態の機能が実現
される場合も含まれることは言うまでもない。
When the computer executes the readout program, not only the functions of the above-described embodiment are realized, but also an OS (Operating System) running on the computer based on instructions of the program code. It goes without saying that a case where the functions of the above-described embodiments are implemented by performing some or all of the actual processing, and the processing performs the functions of the above-described embodiments.

【0049】さらに、記憶媒体から読み出されたプログ
ラムコードが、コンピュータに挿入された機能拡張ボー
ドやコンピュータに接続された機能拡張ユニットに備わ
るメモリに書き込まれた後、そのプログラムコードの指
示に基づき、その機能拡張ボードや機能拡張ユニットに
備わるCPUなどが実際の処理の一部または全部を行
い、その処理によって前述した実施形態の機能が実現さ
れる場合も含まれることは言うまでもない。
Further, after the program code read from the storage medium is written into a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, based on the instructions of the program code, It goes without saying that the CPU included in the function expansion board or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.

【0050】以上説明したように本実施形態によれば、
例えば、イメージリーダで読み取った画像に近似する画
像を検索させる場合、変換元の画像に対してラベル付け
する際の属性情報(色空間名、色空間の分割数、画像の
分割数)と、変換先(画像データベースを有する検索装
置)の属性情報が異なっていたとしても、改めにてオリ
ジナルから変換先の色ラベルを生成することなる。変換
元の色ラベルから直接に変換できるようになり、画像の
検索が行えるようになる。しかも、画像を背景色は、そ
の画像にとっては大事な色ではあるものの、画像検索に
際しては背景色を除くことができるので、画像の特徴部
分で検索でき、効率良く絞り込みを行うことも可能にな
る。
As described above, according to the present embodiment,
For example, when searching for an image similar to the image read by the image reader, attribute information (color space name, number of divisions of color space, number of divisions of image) when labeling the conversion source image, and conversion Even if the attribute information of the destination (the search device having the image database) is different, the color label of the conversion destination is generated from the original again. The conversion can be directly performed from the color label of the conversion source, and the image can be searched. In addition, although the background color of an image is an important color for the image, the background color can be removed when searching for an image, so that it is possible to search for a characteristic portion of the image, and it is also possible to narrow down efficiently. .

【0051】[0051]

【発明の効果】以上説明したように本発明によれば、原
画像を必要とせず、色ラベル列データから別の色ラベル
列データに変換することが可能になる。
As described above, according to the present invention, it is possible to convert color label string data to another color label string data without requiring an original image.

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

【図1】実施形態における色ラベル列変換装置のブロッ
ク構成図である。
FIG. 1 is a block diagram of a color label string conversion device according to an embodiment.

【図2】実施形態の色ラベル列変換装置の機能ブロック
図である。
FIG. 2 is a functional block diagram of the color label string conversion device of the embodiment.

【図3】実施形態による色ラベル変換処理の手順を表す
フローチャートである。
FIG. 3 is a flowchart illustrating a procedure of a color label conversion process according to the embodiment.

【図4】実施形態による色ラベル変換処理の手順を表す
フローチャートである。
FIG. 4 is a flowchart illustrating a procedure of a color label conversion process according to the embodiment.

【図5】実施形態による色ラベル変換処理の手順を表す
フローチャートである。
FIG. 5 is a flowchart illustrating a procedure of a color label conversion process according to the embodiment.

【図6】実施形態における色ラベル列フォーマットの一
例を示す図である。
FIG. 6 is a diagram illustrating an example of a color label string format in the embodiment.

【図7】RGBの色空間が分割されラベルを付与した一
例を示す図である。
FIG. 7 is a diagram illustrating an example in which an RGB color space is divided and labeled.

【図8】色空間整合処理の詳細な手順を示すフローチャ
ートである。
FIG. 8 is a flowchart illustrating a detailed procedure of a color space matching process.

【図9】実施形態における画像のブロック分割の一例を
示す図である。
FIG. 9 is a diagram illustrating an example of image block division according to the embodiment.

【図10】実施形態における注目している変換先のブロ
ックに対応する変換元のブロックの一例を示す図であ
る。
FIG. 10 is a diagram illustrating an example of a conversion source block corresponding to a conversion destination block of interest in the embodiment.

【図11】実施形態における注目している変換先のブロ
ックに対応する変換元のブロックの一例を示す図であ
る。
FIG. 11 is a diagram illustrating an example of a conversion source block corresponding to a conversion destination block of interest in the embodiment;

【図12】実施形態における周囲のブロックを参照して
変換先の色ラベル決定する場合の一例を示す図である。
FIG. 12 is a diagram illustrating an example of a case where a destination color label is determined with reference to surrounding blocks according to the embodiment.

【図13】本実施形態における周囲のブロックを参照し
ても、変換先の色ラベルを決定できない一例を示す図で
ある。
FIG. 13 is a diagram illustrating an example in which a destination color label cannot be determined by referring to surrounding blocks in the embodiment;

Claims (15)

【特許請求の範囲】[Claims] 【請求項1】 画像を複数のブロックに分割し、各ブロ
ックについて特徴量に応じた色ラベルを付すことで前記
画像を色ラベル列データで表現する画像処理装置であっ
て、 前記変換元の色ラベル列データとその属性情報を入力す
る入力手段と、 該入力手段より入力された色ラベル列に基づいて変換元
の画像の背景色を判定する判定手段と、 変換後の色ラベル列データについての属性情報を指定す
る指定手段と、 変換元の色ラベルデータを、前記入力手段で入力した属
性情報及び前記指定手段で指定された属性情報、更に
は、前記判定手段の判定結果に基づいて、変換先色ラベ
ル列データに変換する変換手段とを備えることを特徴と
する画像処理装置。
1. An image processing apparatus which divides an image into a plurality of blocks and assigns a color label according to a feature amount to each block to express the image by color label string data, wherein the conversion source color Input means for inputting label string data and attribute information thereof; determining means for determining a background color of an original image based on the color label string input from the input means; Specifying means for specifying attribute information; converting the color label data of the conversion source on the basis of the attribute information input by the input means and the attribute information specified by the specifying means; An image processing apparatus comprising: a conversion unit configured to convert the data into label color string data.
【請求項2】 前記属性情報には、色空間の種別、色空
間を構成する小色空間片の数に対応するラベル数、及
び、画像の分割数が含まれることを特徴とする請求項第
1項に記載の画像処理装置。
2. The attribute information includes a type of a color space, a number of labels corresponding to the number of small color space pieces constituting the color space, and a number of divisions of an image. 2. The image processing device according to claim 1.
【請求項3】 前記変換手段は、 前記判定手段で判定された背景色の色ラベルを除く、変
換元の色空間における各色ラベルの中間色を求める手段
と、 求めた中間色を前記変換先の色空間にマッピングするこ
とで、変換先の色ラベルを求める手段とを含むことを特
徴とする請求項第1項に記載の画像処理装置。
3. The conversion means: means for obtaining an intermediate color of each color label in the color space of the conversion source excluding the color label of the background color determined by the determination means; and converting the obtained intermediate color into the color space of the conversion destination. 2. The image processing apparatus according to claim 1, further comprising: means for obtaining a color label of a conversion destination by mapping the color label.
【請求項4】 前記変換元の画像の分割数による第1ブ
ロックサイズが、前記変換先の画像の分割数による第2
ブロックサイズの整数分の1のサイズである場合、前記
第2ブロックサイズのブロックに含まれる前記第1ブロ
ックサイズの各ブロックのラベルのヒストグラムを取っ
て、最頻のラベルを代表ラベルとし、当該代表ラベルに
基づく変換先のラベルを割り当てることを特徴とする請
求項第1項に記載の画像処理装置。
4. A first block size according to the number of divisions of the source image is a second block size according to a number of divisions of the destination image.
If the size of the block is an integer fraction of the block size, a histogram of the labels of the blocks of the first block size included in the block of the second block size is taken, and the most frequent label is set as a representative label. 2. The image processing apparatus according to claim 1, wherein a destination label based on the label is assigned.
【請求項5】 前記代表ラベルは、前記第2ブロックサ
イズのブロックに含まれる前記第1ブロックサイズのブ
ロック数の過半数を有し、且つ、背景色を除くことを条
件とすることを特徴とする請求項第4項に記載の画像処
理装置。
5. The representative label has a condition that it has a majority of the number of blocks of the first block size included in the block of the second block size and excludes a background color. The image processing device according to claim 4.
【請求項6】 前記最頻のラベルが特定できなかった場
合、色空間的に近似する位置に割り当てられた色ラベル
を同一視することを特徴とする請求項第4項又は第5項
に記載の画像処理装置。
6. The method according to claim 4, wherein when the most frequent label cannot be specified, the color labels assigned to positions that are similar in color space are identified with each other. Image processing device.
【請求項7】 前記色空間的に近似する位置とは、色空
間上の最短距離を示すことを特徴とする請求項第6項に
記載の画像処理装置。
7. The image processing apparatus according to claim 6, wherein the position approximated in a color space indicates a shortest distance in a color space.
【請求項8】 前記色ラベルの同一視でもっても過半数
に満たない場合には、着目している第2ブロックサイズ
のブロックを越える所定範囲のブロックに付されたラベ
ルによって代表ラベルを決定することを特徴とする請求
項第6項に記載の画像処理装置。
8. If the color labels are less than the majority even if they are identified with each other, a representative label is determined by labels attached to blocks in a predetermined range exceeding a block of a second block size of interest. The image processing apparatus according to claim 6, wherein:
【請求項9】 前記第2ブロックサイズのブロックを越
える所定範囲のブロックに付されたラベルによっても代
表ラベルを決定できない場合、所定位置にあるブロック
のラベルを代表ラベルとして決定することを特徴とする
請求項第8項に記載の画像処理装置。
9. When a representative label cannot be determined by a label attached to a block in a predetermined range exceeding the block of the second block size, a label of a block at a predetermined position is determined as a representative label. An image processing apparatus according to claim 8.
【請求項10】 前記変換手段は、前記変換元の色空間
の種別と変換先の色空間の種別が異なる場合、変換元の
色空間のラベルで表わされる色情報から、変換先色空間
における色情報を算出する算出手段を備えることを特徴
とする請求項第1項に記載の画像処理装置。
10. When the type of the color space of the conversion source and the type of the color space of the conversion destination are different, the conversion unit determines the color in the conversion destination color space from the color information represented by the label of the conversion source color space. The image processing apparatus according to claim 1, further comprising a calculating unit that calculates information.
【請求項11】 画像を複数のブロックに分割し、各ブ
ロックについて特徴量に応じた色ラベルを付すことで前
記画像を色ラベル列データで表現する画像処理方法であ
って、 前記変換元の色ラベル列データとその属性情報を入力す
る入力工程と、 該入力工程より入力された色ラベル列に基づいて変換元
の画像の背景色を判定する判定工程と、 変換後の色ラベル列データについての属性情報を指定す
る指定工程と、 変換元の色ラベルデータを、前記入力工程で入力した属
性情報及び前記指定工程で指定された属性情報、更に
は、前記判定工程の判定結果に基づいて、変換先色ラベ
ル列データに変換する変換工程とを備えることを特徴と
する画像処理方法。
11. An image processing method for dividing an image into a plurality of blocks and assigning a color label according to a feature amount to each block to express the image by color label string data, the image processing method comprising: An input step of inputting label string data and its attribute information; a determining step of determining a background color of an original image based on the color label string input from the input step; A specifying step of specifying attribute information, and converting the color label data of the conversion source based on the attribute information input in the input step and the attribute information specified in the specifying step, and further based on the determination result of the determining step. A conversion step of converting the data into label color string data.
【請求項12】 コンピュータが読込み実行すること
で、画像を複数のブロックに分割し、各ブロックについ
て特徴量に応じた色ラベルを付すことで前記画像を色ラ
ベル列データで表現する画像処理装置として機能するプ
ログラムコードを格納する記憶媒体であって、 前記変換元の色ラベル列データとその属性情報を入力す
る入力手段と、 該入力手段より入力された色ラベル列に基づいて変換元
の画像の背景色を判定する判定手段と、 変換後の色ラベル列データについての属性情報を指定す
る指定手段と、 変換元の色ラベルデータを、前記入力手段で入力した属
性情報及び前記指定手段で指定された属性情報、更に
は、前記判定工程の判定結果に基づいて、変換先色ラベ
ル列データに変換する変換手段として機能するプログラ
ムコードを格納する記憶媒体。
12. An image processing apparatus that reads and executes a computer to divide an image into a plurality of blocks, and attaches a color label to each block according to a feature amount to express the image by color label string data. A storage medium storing a functioning program code, comprising: input means for inputting the color label string data of the conversion source and its attribute information; and Determining means for determining the background color; specifying means for specifying attribute information on the converted color label string data; and specifying the color label data to be converted by the attribute information input by the input means and the specifying means. Based on the attribute information and the determination result of the determination step, a program code that functions as a conversion unit that converts the data into destination color label string data is stored. Storage medium.
【請求項13】 画像をN1個のブロックに分割し、各
ブロックについて、当該画像を表現する第1色空間を構
成するM1個の小空間群の各々に定義されたラベルのい
ずれかを割り当てることで表わされる第1ラベル列デー
タを、 画像をN2個のブロックに分割し、各ブロックについて
第2色空間を構成するM2個の小空間群の各々に定義さ
れたラベルが付された第2ラベル列データに変換する画
像処理装置であって、 前記N1個のブロックのラベルに基づいて画像の背景色
を判定する判定手段と、 前記第2ラベル列データが示す1ブロック内に含まれる
前記第1ラベル列データのブロック数が複数ある場合、
前記判定手段で判定された背景色の色ラベルを除く、前
記複数のブロックに割り当てられた第1色空間のラベル
群に基づいて代表ラベルを決定する手段と、 決定されたラベルで表わされる前記第1色空間における
色情報を、前記第2色空間における色情報に変換する変
換手段と、 変換された色情報が前記第2の色空間に割り当てられた
ラベルのいずれに属するのかを判断し、変換後のブロッ
クのラベルとする手段とを備えることを特徴とする画像
処理装置。
13. An image is divided into N1 blocks, and each block is assigned one of labels defined to each of M1 small space groups constituting a first color space representing the image. Is divided into N2 blocks, and a second label having a label defined for each of the M2 small space groups forming the second color space for each block. An image processing apparatus for converting into a column data, a determining unit that determines a background color of an image based on a label of the N1 blocks, and a first unit included in one block indicated by the second label column data. If there are multiple blocks of label column data,
Means for determining a representative label based on a group of labels in a first color space assigned to the plurality of blocks, excluding a color label of a background color determined by the determining means; and Converting means for converting the color information in one color space into color information in the second color space; determining which of the labels assigned to the second color space the converted color information belongs to; Means for labeling a subsequent block.
【請求項14】 画像をN1個のブロックに分割し、各
ブロックについて、当該画像を表現する第1色空間を構
成するM1個の小空間群の各々に定義されたラベルのい
ずれかを割り当てることで表わされる第1ラベル列デー
タを、 画像をN2個のブロックに分割し、各ブロックについて
第2色空間を構成するM2個の小空間群の各々に定義さ
れたラベルが付された第2ラベル列データに変換する画
像処理方法であって、 前記N1個のブロックのラベルに基づいて画像の背景色
を判定する判定工程と、 前記第2ラベル列データが示す1ブロック内に含まれる
前記第1ラベル列データのブロック数が複数ある場合、
前記判定工程で判定された背景色の色ラベルを除く、当
該複数のブロックに割り当てられた第1色空間のラベル
群に基づいて代表ラベルを決定する工程と、 決定されたラベルで表わされる前記第1色空間における
色情報を、前記第2色空間における色情報に変換する変
換工程と、 変換された色情報が前記第2の色空間に割り当てられた
ラベルのいずれに属するのかを判断し、変換後のブロッ
クのラベルとする工程とを備えることを特徴とする画像
処理方法。
14. An image is divided into N1 blocks, and each block is assigned one of labels defined to each of M1 small space groups constituting a first color space representing the image. Is divided into N2 blocks, and a second label having a label defined for each of the M2 small space groups forming the second color space for each block. An image processing method for converting into column data, a determining step of determining a background color of an image based on a label of the N1 blocks, and a first step included in one block indicated by the second label column data. If there are multiple blocks of label column data,
Excluding the color label of the background color determined in the determination step, determining a representative label based on a label group in the first color space allocated to the plurality of blocks; and determining the representative label represented by the determined label. A conversion step of converting color information in one color space into color information in the second color space; and determining which of the labels assigned to the second color space the converted color information belongs to. A step of labeling a subsequent block.
【請求項15】 画像をN1個のブロックに分割し、各
ブロックについて、当該画像を表現する第1色空間を構
成するM1個の小空間群の各々に定義されたラベルのい
ずれかを割り当てることで表わされる第1ラベル列デー
タを、 画像をN2個のブロックに分割し、各ブロックについて
第2色空間を構成するM2個の小空間群の各々に定義さ
れたラベルが付された第2ラベル列データに変換する画
像処理装置として機能するプログラムコードを格納する
記憶媒体であって、 前記N1個のブロックのラベルに基づいて画像の背景色
を判定する判定工程のプログラムコードと、 前記第2ラベル列データが示す1ブロック内に含まれる
前記第1ラベル列データのブロック数が複数ある場合、
前記判定工程で判定された背景色の色ラベルを除く、前
記複数のブロックに割り当てられた第1色空間のラベル
群に基づいて代表ラベルを決定する工程のプログラムコ
ードと、 決定されたラベルで表わされる前記第1色空間における
色情報を、前記第2色空間における色情報に変換する変
換工程のプログラムコードと、 変換された色情報が前記第2の色空間に割り当てられた
ラベルのいずれに属するのかを判断し、変換後のブロッ
クのラベルとする工程のプログラムコードとを格納する
ことを特徴とする記憶媒体。
15. An image is divided into N1 blocks, and each block is assigned one of labels defined to each of M1 small space groups constituting a first color space representing the image. Is divided into N2 blocks, and a second label having a label defined for each of the M2 small space groups forming the second color space for each block. A storage medium for storing a program code functioning as an image processing device for converting into column data, wherein a program code of a determination step of determining a background color of an image based on a label of the N1 blocks; When there are a plurality of blocks of the first label column data included in one block indicated by the column data,
A program code for determining a representative label based on a group of labels in the first color space assigned to the plurality of blocks, excluding a color label of a background color determined in the determination step; A program code of a conversion step of converting the color information in the first color space into color information in the second color space, and the converted color information belongs to a label assigned to the second color space. A storage medium for storing a program code of a step of determining whether or not the converted block is a label of the converted block.
JP11022939A 1999-01-29 1999-01-29 Image processor, its method, and storage medium Withdrawn JP2000222420A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP11022939A JP2000222420A (en) 1999-01-29 1999-01-29 Image processor, its method, and storage medium
EP00300636A EP1024442A3 (en) 1999-01-29 2000-01-28 Conversion between image representations used in image retrieval, and background exclusion
US09/493,262 US6731789B1 (en) 1999-01-29 2000-01-28 Image processing apparatus and method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11022939A JP2000222420A (en) 1999-01-29 1999-01-29 Image processor, its method, and storage medium

Publications (1)

Publication Number Publication Date
JP2000222420A true JP2000222420A (en) 2000-08-11

Family

ID=12096610

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11022939A Withdrawn JP2000222420A (en) 1999-01-29 1999-01-29 Image processor, its method, and storage medium

Country Status (1)

Country Link
JP (1) JP2000222420A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301141A (en) * 2008-06-10 2009-12-24 Konica Minolta Business Technologies Inc Subtractive color method, subtractive color processing apparatus, image forming apparatus, and computer program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009301141A (en) * 2008-06-10 2009-12-24 Konica Minolta Business Technologies Inc Subtractive color method, subtractive color processing apparatus, image forming apparatus, and computer program
JP4586891B2 (en) * 2008-06-10 2010-11-24 コニカミノルタビジネステクノロジーズ株式会社 Color reduction method, color reduction processing apparatus, image forming apparatus, and computer program
US8395813B2 (en) 2008-06-10 2013-03-12 Konica Minolta Business Technologies, Inc. Subtractive color method, subtractive color processing apparatus, image forming apparatus, and computer-readable storage medium for computer program

Similar Documents

Publication Publication Date Title
US7561168B2 (en) Color management with tiered caching scheme
JP6131723B2 (en) Information processing apparatus, information processing method, program, and recording medium
EP1516264B1 (en) Image retrieval by generating a descriptor for each spot of an image the cells of which having visual characteristics within a selected tolerance
US6493692B1 (en) Information search apparatus and method, and computer readable memory
US7894098B1 (en) Color separation of pattern color spaces and form XObjects
JP4337878B2 (en) Color arrangement support device, color arrangement support program and storage medium, color arrangement support method, and color arrangement support system
US6731789B1 (en) Image processing apparatus and method, and storage medium
US6411730B1 (en) Histogram for generating a palette of colors
JP4968882B2 (en) Image search apparatus, image search method, and program
JP2004334334A (en) Document retrieval system, document retrieval method, and storage medium
JPH11232443A (en) Method for generating color pallet, picture processing method and picture processor
US20050047654A1 (en) Gamut mapping between multiple boundary regions
JPH07104922B2 (en) Graphics attribute conversion system and method
JP4448549B2 (en) Comparing documents with graphic elements
US20050047648A1 (en) Color descriptor data structure
JP2006318219A (en) Similar slide retrieval program and retrieval method
JP3619143B2 (en) Image processing apparatus and method
JP2000222420A (en) Image processor, its method, and storage medium
JP2004334341A (en) Document retrieval system, document retrieval method, and recording medium
JP2005353101A (en) Image-feature extraction method and computer-readable recording medium stored with program for executing on computer each step of the method
JP2010250634A (en) Image server, image retrieval system, image retrieval method, and index creation method
JP2000222419A (en) Image processor, its method, and storage medium
JP7032714B2 (en) Map converter, learning device, map conversion method, learning method, and program
JP3720538B2 (en) Image search apparatus and method
JP3199009B2 (en) Image storage / management apparatus and image index generation method

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20060404