JPH0944519A - Method and device for image retrieval - Google Patents

Method and device for image retrieval

Info

Publication number
JPH0944519A
JPH0944519A JP7197628A JP19762895A JPH0944519A JP H0944519 A JPH0944519 A JP H0944519A JP 7197628 A JP7197628 A JP 7197628A JP 19762895 A JP19762895 A JP 19762895A JP H0944519 A JPH0944519 A JP H0944519A
Authority
JP
Japan
Prior art keywords
image
search
block
area
frequency component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
JP7197628A
Other languages
Japanese (ja)
Inventor
Kazuhiro Matsubayashi
一弘 松林
Shinichi Sunakawa
伸一 砂川
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 JP7197628A priority Critical patent/JPH0944519A/en
Publication of JPH0944519A publication Critical patent/JPH0944519A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a method and device for image retrieval which can reduced in the process quantity during image retrieval and perform image retrieval from a large quantity of frames at high speed. SOLUTION: A buffer 11 is stored with image data generated by processing respective blocks by DCT transformation and compressing them. A variable length decoding part 2, an inverse quantization part 3, and a DC component separation part 7 separate DC components of the respective blocks from the image data in the buffer 1. A 1st matching part 8 extracts blocks which meet retrieval conditions inputted through a retrieval condition input part 6 on the basis of the DC components. The blocks which are thus extracted are restored to image data in bit map format by an inverse DCT part 4 and a 2nd matching part 5 decides whether or not they meet the retrieval conditions. When it is decided that the restored blocks meet the retrieval conditions, the image is outputted as a retrieval result.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、圧縮された画像デ
ータから所望の画像を検索する画像検索方法及び装置に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image search method and apparatus for searching a desired image from compressed image data.

【0002】[0002]

【従来の技術】従来、画像圧縮装置として、例えば、静
止画像圧縮ではJPEGアルゴリズム、動画像圧縮では
MPEGアルゴリズムを用いたものが知られている。こ
れらのアルゴリズムでは、DCT(離散コサイン変換)
を用いて画像を空間周波数領域に写像し、データ量を低
周波成分に集中させて、高周波成分をカットすることに
よってデータ量の削減を行なう。
2. Description of the Related Art Conventionally, as an image compression device, for example, one using a JPEG algorithm for still image compression and an MPEG algorithm for moving image compression is known. These algorithms use DCT (discrete cosine transform)
Is used to map the image to the spatial frequency domain, the amount of data is concentrated in the low frequency components, and the high frequency components are cut to reduce the amount of data.

【0003】MPEGアルゴリズムを用いた画像圧縮装
置のブロック図を図8に示す。
A block diagram of an image compression apparatus using the MPEG algorithm is shown in FIG.

【0004】画像入力部81において入力された画像デ
ータは、予測を行なわないモードではそのままDCT部
83へ入力される。また、予測を行なうモードでは、入
力された画像データと、差分器82によって予測器90
による予測データとの差分をとり、結果をDCT部83
へ入力する。予測器90は、逆量子化部87および逆D
CT部88によって復号されたデータに基づいて予測デ
ータを出力する。
The image data input by the image input unit 81 is input as it is to the DCT unit 83 in the mode where no prediction is performed. In the prediction mode, the input image data and the predictor 90
The difference from the prediction data is calculated, and the result is calculated by the DCT unit 83.
Enter The predictor 90 includes an inverse quantizer 87 and an inverse D.
The prediction data is output based on the data decoded by the CT unit 88.

【0005】DCT部82では、輝度Yおよび色差C
b,Crの成分毎に、所定サイズのブロック毎(例えば8
×8画素のブロック毎)に離散コサイン変換が行なわ
れ、各ブロック毎に図10で示すような空間周波数成分
が得られる。
In the DCT section 82, the luminance Y and the color difference C
For each component of b and Cr, for each block of a predetermined size (for example, 8
Discrete cosine transform is performed for each block of x8 pixels) and a spatial frequency component as shown in FIG. 10 is obtained for each block.

【0006】量子化部84では、上記の空間周波数成分
の値を、量子化テーブルの値および量子化係数で割るこ
とによって量子化を行なう。量子化テーブルは図11に
示すようにブロック内の空間周波数に対応した値が定め
られており、一般に高周波成分に対応するほど大きな値
をもつ。これによって高周波成分がカットされる。さら
に1つのブロックに対して1つ、圧縮率を制御するため
の量子化係数が定めらている。
The quantizing section 84 performs quantization by dividing the value of the spatial frequency component by the value of the quantization table and the quantization coefficient. As shown in FIG. 11, the quantization table defines values corresponding to the spatial frequencies in the block, and generally has a large value as it corresponds to high frequency components. This cuts off high frequency components. Further, one quantized coefficient for controlling the compression rate is defined for each block.

【0007】可変長符号化部85では、前記量子化され
た値を低周波成分から高周波成分へとジグザグスキャン
しながらエントロピー符号化によって符号化を行い、符
号化されたデータはバッファ86へ出力される。
In the variable length coding unit 85, the quantized value is coded by entropy coding while performing zigzag scanning from the low frequency component to the high frequency component, and the coded data is output to the buffer 86. It

【0008】量子化係数決定部91は、バッファ86へ
出力されたデータ量が多いときは量子化係数の値を大き
くすることによってデータ量を減らし、データ量が少な
い時は量子化係数の値を小さくすることによってデータ
量を増やす。これによって、元の画像データに関らずデ
ータ量がなるべく一定になるようにしている。
The quantization coefficient determination unit 91 reduces the data amount by increasing the value of the quantization coefficient when the amount of data output to the buffer 86 is large, and the value of the quantization coefficient when the amount of data is small. Increase the amount of data by making it smaller. As a result, the amount of data is made as constant as possible regardless of the original image data.

【0009】上記のような装置で得られた動画像の圧縮
データから、所望の条件にマッチするフレームを検索す
る装置の一般的な構成を図9に示す。
FIG. 9 shows a general configuration of an apparatus for searching a frame matching a desired condition from compressed data of a moving image obtained by the above apparatus.

【0010】通常、動画像検索を高速に行なう場合は、
バッファ1にロードされた圧縮データの中から、フレー
ム間予測を行なわないモードで圧縮されたフレームのみ
を選択してから復号化する。どのモードで圧縮されたか
は各フレームのデータ内の所定のフラグによって判定す
る。
Usually, when performing a moving image search at high speed,
From the compressed data loaded in the buffer 1, only frames compressed in a mode in which interframe prediction is not performed are selected and then decoded. The mode used for compression is determined by a predetermined flag in the data of each frame.

【0011】バッファ1より選択されたフレームのデー
タを可変長復号化部2によって可変長符号化部85と逆
手順によって復号化する。逆量子化部3では、量子化部
84とは逆の手順によって逆量子化する。逆DCT部4
では、DCT部83と逆の手順によって逆離散コサイン
変換の演算を行ない、画像データとして復元する。この
画像データが検索条件入力部6で入力された検索条件に
マッチするかどうかをマッチング部5が判定し、マッチ
するならばその画像データを検索結果として出力する。
The data of the frame selected by the buffer 1 is decoded by the variable length decoding unit 2 in the reverse procedure of the variable length coding unit 85. The inverse quantization unit 3 performs inverse quantization by the procedure reverse to that of the quantization unit 84. Inverse DCT unit 4
Then, the inverse discrete cosine transform is calculated by the procedure reverse to that of the DCT unit 83 to restore the image data. The matching unit 5 determines whether this image data matches the search condition input by the search condition input unit 6, and if it matches, the image data is output as a search result.

【0012】[0012]

【発明が解決しようとする課題】上述したように、従来
の圧縮画像の検索においては、1フレーム全体を元の画
像フォーマットに復元してから検索条件とのマッチング
を行なっていた。このため、時間のかかる逆DCT演算
や画素単位のパターンマッチングを1フレーム全体に渡
って行なう必要があり、大量のフレームから検索を行な
うような場合では、検索時間が膨大になってしまうとい
う問題があった。
As described above, in the conventional retrieval of compressed images, one frame is restored to the original image format and then the retrieval conditions are matched. Therefore, it is necessary to perform time-consuming inverse DCT calculation and pattern matching in pixel units over the entire frame, and when searching from a large number of frames, the search time becomes enormous. there were.

【0013】本発明は上記の問題に鑑みてなされたもの
であり、画像検索時における処理量を減少させ、大量の
フレームからの画像検索を高速に行なうことを可能とす
る画像検索方法及び装置を提供することを目的とする。
The present invention has been made in view of the above problems, and provides an image search method and apparatus which can reduce the processing amount at the time of image search and can perform image search from a large number of frames at high speed. The purpose is to provide.

【0014】また、本発明は、画像検索時における逆D
CT演算や画素単位のパターンマッチング等を行なう回
数を減少させて、画像検索の高速化を図ることにある。
Further, the present invention uses the inverse D in image retrieval.
The purpose is to speed up image retrieval by reducing the number of times CT calculation or pattern matching in pixel units is performed.

【0015】[0015]

【課題を解決するための手段】上記の課題を解決するた
めの本発明の画像検索装置は以下の構成を備えている。
即ち、画像を複数のブロックに分け、各ブロックを空間
周波数成分で表現する画像データから所望の画像を検索
する画像検索装置であって、前記画像データから各ブロ
ックの所定の空間周波数成分を獲得する獲得手段と、前
記獲得手段で獲得された所定の周波数成分に基づいて、
予め設定された検索条件を満たすブロックを抽出する抽
出手段と、前記抽出手段で抽出されたブロックの空間周
波数成分に基づいて、該ブロックをビットマップによる
画像データに復元する復元手段と、前記復元手段で復元
されたブロックが前記検索条件を満たすか否かを判定す
る判定手段と、前記判定手段で前記復元されたブロック
が前記検索条件を満たすと判定された場合、当該画像を
検索結果として出力する出力手段とを備える。
An image retrieval apparatus of the present invention for solving the above-mentioned problems has the following configuration.
That is, an image retrieval device that divides an image into a plurality of blocks and retrieves a desired image from image data expressing each block with a spatial frequency component, and obtains a predetermined spatial frequency component of each block from the image data. Based on the acquisition means and the predetermined frequency component acquired by the acquisition means,
Extraction means for extracting a block satisfying a preset search condition, restoration means for restoring the block to image data by bitmap based on the spatial frequency component of the block extracted by the extraction means, and the restoration means Determining unit that determines whether or not the restored block satisfies the search condition, and outputs the image as a search result when the determining unit determines that the restored block satisfies the search condition And output means.

【0016】また、好ましくは、前記獲得手段で獲得さ
れる所定の空間周波数成分とは、直流成分である。直流
成分は、各ブロックにおける平均的な色、輝度を示すの
で、大まかな検索を行うのに適しているからである。
Preferably, the predetermined spatial frequency component acquired by the acquisition means is a direct current component. This is because the DC component indicates an average color and brightness in each block, and is suitable for rough search.

【0017】また、好ましくは、前記検索条件は、操作
者によって指定された色である。
Further, preferably, the search condition is a color designated by an operator.

【0018】また、好ましくは、前記検索条件を設定す
るために、色見本を表示する表示手段と、前記表示手段
で表示された色見本から所望の色を指定する指定手段と
を更に備える。表示された色見本から検索すべき色を指
定できるので、より正確な色の指定が可能となるからで
ある。
Further, preferably, in order to set the search condition, a display means for displaying a color sample and a designating means for designating a desired color from the color sample displayed on the display means are further provided. This is because it is possible to specify the color to be searched from the displayed color sample, and thus it is possible to specify the color more accurately.

【0019】また、好ましくは、前記抽出手段によって
ブロックが抽出された場合、当該画像を検索結果として
出力する抽出画像出力手段と、前記抽出画像出力手段と
前記出力手段のいずれによって検索結果を出力するかを
切り換える切り換え手段とを更に備える。要求される検
索精度に応じて処理を切り換えることができるからであ
る。
Further, preferably, when the block is extracted by the extracting means, the search result is output by any one of the extracted image output means for outputting the image as a search result, the extracted image output means and the output means. And a switching means for switching between the two. This is because the processing can be switched according to the required search accuracy.

【0020】また、上記の目的を達成するための本発明
の他の構成の画像検索装置は、画像を複数のブロックに
分け、各ブロックを空間周波数成分で表現する画像デー
タから所望の画像を検索する画像検索装置であって、前
記画像データから各ブロックの所定の空間周波数成分を
獲得する獲得手段と、前記獲得手段で獲得された所定の
周波数成分に基づいて、予め設定された検索画像とパタ
ーンマッチングを行って、該検索画像と一致する領域を
抽出する抽出手段と、前記抽出手段で抽出された領域の
空間周波数成分に基づいて、該領域をビットマップによ
る画像データに復元する復元手段と、前記復元手段で復
元された領域が前記検索画像と一致するか否かをパター
ンマッチングにより判定する判定手段と、前記判定手段
で前記復元された領域が前記検索画像と一致すると判定
された場合、当該画像を検索結果として出力する出力手
段とを備える。
Further, an image retrieval apparatus having another configuration of the present invention for achieving the above object divides an image into a plurality of blocks, and retrieves a desired image from image data expressing each block with a spatial frequency component. An image retrieving apparatus for retrieving a predetermined spatial frequency component of each block from the image data, and a retrieval image and a pattern preset based on the predetermined frequency component obtained by the obtaining unit. Extraction means for performing matching and extracting an area that matches the search image; and restoration means for restoring the area to image data by bitmap based on the spatial frequency component of the area extracted by the extraction means, Determination means for determining whether the area restored by the restoration means matches the search image by pattern matching, and the restoration means for the restoration means If the frequency is determined to match with the search image, and output means for outputting the image as a search result.

【0021】また、好ましくは、前記抽出手段は、前記
検索画像を所定の類似範囲の色で構成される複数の色領
域に分ける第1分割手段と、前記所定の空間周波数成分
で構成される画像を所定の類似範囲の色で構成される複
数の色領域に分ける第2分割手段と、前記第1及び第2
分割手段で得られた各領域の色の比較によってマッチン
グを調べる比較手段とを備える。各色領域毎に色の比較
を行うことで抽出を行うので、マッチング処理が高速に
行える。
Further, preferably, the extracting means includes a first dividing means for dividing the search image into a plurality of color regions formed by colors in a predetermined similar range, and an image formed by the predetermined spatial frequency component. Dividing into a plurality of color regions formed by colors in a predetermined similar range, and the first and second
Comparing means for checking the matching by comparing the colors of the respective areas obtained by the dividing means. Since the extraction is performed by comparing the colors for each color area, the matching process can be performed at high speed.

【0022】また、好ましくは、前記比較手段は、前記
検索画像における前記複数の色領域のうち最大面積を有
する領域を代表領域とし、前記所定の空間周波数成分で
構成される画像から該代表領域と同じ類似範囲の色を有
する領域が検出された場合、前記検索画像の他の色領域
との比較を行う。最大面積を有する色領域(代表領域)
で検索を行って初期の絞り込みを行えるので、抽出処理
をより効率的に行える。
Further, preferably, the comparing means sets a region having the largest area among the plurality of color regions in the search image as a representative region, and selects from the image composed of the predetermined spatial frequency components as the representative region. When a region having a color in the same similar range is detected, it is compared with another color region of the search image. Color area with the largest area (representative area)
Since the search can be performed to narrow down the initial stage, the extraction process can be performed more efficiently.

【0023】また、好ましくは、前記比較手段は、前記
検索画像における各色領域の大きさの比と前記所定の空
間周波数成分で構成される画像の対応する各色領域の大
きさの比の比較を更に行う。より正確なパターンマッチ
ングを行えるからである。
Further, preferably, the comparison means further compares the ratio of the size of each color area in the search image with the ratio of the size of each corresponding color area of the image composed of the predetermined spatial frequency component. To do. This is because more accurate pattern matching can be performed.

【0024】また、好ましくは、前記抽出手段によって
領域が抽出された場合、当該画像を検索結果として出力
する抽出画像出力手段と、前記抽出画像出力手段と前記
出力手段のいずれによって検索結果を出力するかを切り
換える切り換え手段とを更に備える。要求される検索精
度に応じて処理を切り換えることが可能となり、精度が
要求されない場合はより高速に検索結果を得ることが可
能となる。
Further, preferably, when the area is extracted by the extraction means, the search result is output by any one of the extracted image output means for outputting the image as a search result, the extracted image output means and the output means. And a switching means for switching between the two. The processing can be switched according to the required search accuracy, and the search result can be obtained at higher speed when the accuracy is not required.

【0025】上記の構成によれば、画像を複数のブロッ
クに分け、各ブロックを空間周波数成分で表現する画像
データから所望の画像を検索する画像検索装置におい
て、この画像データから各ブロックの所定の空間周波数
成分が獲得される。そして、獲得された所定の周波数成
分に基づいて、予め設定された検索条件を満たすブロッ
クが抽出される。このようにして抽出されたブロック
は、その空間周波数成分に基づいて、ビットマップによ
る画像データに復元され、更に上記の検索条件を満たす
か否かが判定される。復元されたブロックが検索条件を
満たすと判定された場合は当該画像を検索結果として出
力する。
According to the above arrangement, the image is divided into a plurality of blocks, and in the image retrieval apparatus for retrieving a desired image from the image data expressing each block with the spatial frequency component, a predetermined image of each block is retrieved from the image data. Spatial frequency components are acquired. Then, a block satisfying a preset search condition is extracted based on the acquired predetermined frequency component. The block thus extracted is restored to the image data by the bit map based on the spatial frequency component, and it is further determined whether or not the above search condition is satisfied. When it is determined that the restored block satisfies the search condition, the image is output as the search result.

【0026】所定の空間周波数成分として、例えば直流
成分を用い、検索条件として色を指定したような場合、
抽出手段で各ブロックの平均の色に基づいて大まかな判
定を行なうことができる。そして、検索条件にマッチし
たブロックを元の画像に復元して、さらに判定手段で各
画素の色に基づいた詳細な判定を行なうことができる。
抽出手段による大まかな判定で詳細な判定を行うべきブ
ロックを絞り込むことができるので、処理の効率が向上
し、検索スピードが向上する。
For example, when a direct current component is used as the predetermined spatial frequency component and a color is designated as the search condition,
The extraction means can make a rough judgment based on the average color of each block. Then, the block matching the search condition can be restored to the original image, and the determination unit can further make a detailed determination based on the color of each pixel.
Since it is possible to narrow down the blocks to be subjected to the detailed determination by the rough determination by the extraction means, the processing efficiency is improved and the search speed is improved.

【0027】また、上記の他の構成によれば、画像を複
数のブロックに分け、各ブロックを空間周波数成分で表
現する画像データから所望の画像を検索する画像検索装
置において、画像データから各ブロックの所定の空間周
波数成分が獲得される。そして、獲得された所定の周波
数成分に基づいて、予め設定された検索画像とのパター
ンマッチングを行って、該検索画像と一致する領域を抽
出する。そして、抽出された領域を空間周波数成分に基
づいてビットマップによる画像データに復元する。この
復元された領域についてパターンマッチングを行い、検
索画像と一致するか否かを判定する。そして、復元され
た領域が検索画像と一致すると判定された場合は、当該
画像を検索結果として出力する。
Further, according to the above-mentioned other structure, the image is divided into a plurality of blocks, and in the image retrieving apparatus for retrieving a desired image from the image data expressing each block by the spatial frequency component, each block is retrieved from the image data. A predetermined spatial frequency component of is acquired. Then, pattern matching with a preset search image is performed based on the acquired predetermined frequency component, and a region that matches the search image is extracted. Then, the extracted area is restored to image data by a bitmap based on the spatial frequency component. Pattern matching is performed on the restored area to determine whether it matches the search image. Then, when it is determined that the restored area matches the search image, the image is output as the search result.

【0028】[0028]

【発明の実施の形態】以下に添付の図面を参照して本発
明の好適な実施の形態(以下、実施形態)を説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Preferred embodiments of the present invention (hereinafter referred to as embodiments) will be described below with reference to the accompanying drawings.

【0029】(実施形態1)図1は本実施形態による画
像検索装置のハードウェア構成の概要を表すブロック図
である。同図において、51はハードディスクであり、
DCT符号化によって圧縮された画像データを記憶す
る。52はタブレットであり、操作者が当該装置に対し
て指令を与えるためのポインティングデバイスとして用
いられる。53はLCDであり、当該画像検索装置から
操作者へ各種の情報を表示する。本実施形態では、LC
D53としてカラー液晶表示器を用いることとする。5
4は演算部であり、逆DCT、逆量子化、その他の各種
演算を行なう。55はランダムアクセスメモリ(RA
M)であり、圧縮途中のデータなどを記憶するための作
業領域を提供する。56は制御部であり、ROM56a
に格納された制御プログラムをCPU56aが実行する
ことで各種の処理を実現する。
(Embodiment 1) FIG. 1 is a block diagram showing an outline of a hardware configuration of an image search apparatus according to this embodiment. In the figure, 51 is a hard disk,
Image data compressed by DCT coding is stored. A tablet 52 is used as a pointing device for the operator to give a command to the apparatus. Reference numeral 53 denotes an LCD, which displays various information from the image search device to the operator. In this embodiment, LC
A color liquid crystal display is used as D53. 5
An operation unit 4 performs inverse DCT, inverse quantization, and other various operations. 55 is a random access memory (RA
M), and provides a work area for storing data that is being compressed. Reference numeral 56 denotes a control unit, which is the ROM 56a
Various processes are realized by the CPU 56a executing the control program stored in.

【0030】図2は本実施形態による画像検索装置の機
能構成を表すブロック図である。
FIG. 2 is a block diagram showing the functional arrangement of the image retrieval apparatus according to this embodiment.

【0031】HDD51よりバッファ1にロードされた
圧縮データの中からフレーム間予測を行なわないモード
で圧縮されたフレームが選択されて可変長復号化部2へ
転送される。圧縮データがどのモードで圧縮されたかは
各フレームのデータ内にある所定のフラグによって判定
する等、周知の技術で実現できる。可変長復号化部2で
は、バッファ1より転送された圧縮データを図8で示し
た可変長符号化部85と逆の手順によって復号化する。
逆量子化部3では、図8で示した量子化部84と逆の手
順によって逆量子化する。逆量子化されたデータは、各
ブロックごとの空間周波数成分を表わしている。
From the compressed data loaded from the HDD 51 into the buffer 1, a frame compressed in a mode in which interframe prediction is not performed is selected and transferred to the variable length decoding unit 2. The mode in which the compressed data is compressed can be realized by a well-known technique such as determining by a predetermined flag in the data of each frame. The variable length decoding unit 2 decodes the compressed data transferred from the buffer 1 by a procedure reverse to that of the variable length coding unit 85 shown in FIG.
The inverse quantization unit 3 performs inverse quantization by the procedure reverse to that of the quantization unit 84 shown in FIG. The inversely quantized data represents the spatial frequency component of each block.

【0032】図10で示したように空間周波数が最も低
い成分は直流(DC)成分であり、輝度成分または色差
成分のブロック内における平均値に対応している。従っ
て、輝度成分Yに対するDCT結果の直流成分が高けれ
ば明るいブロック、低ければ暗いブロックであることが
わかる。また、色差成分Cbに対するDCT結果の直流
成分が高く、色差成分Crに対するDCT結果の直流成
分が低ければ青っぽいブロックであることがわかる。同
様に、Cbに対する直流成分が低くCrに対する直流成分
が高ければ赤っぽいブロック、CbおよびCrに対する直
流成分が共に高ければ紫っぽいブロック、CbおよびCr
に対する直流成分が共に低ければ緑っぽいブロックであ
ることがわかる。従って、DC成分分離部7によって、
各ブロック直流成分のみを抜き出すことで画像の概略を
得ることができる。
As shown in FIG. 10, the component having the lowest spatial frequency is the direct current (DC) component, which corresponds to the average value of the luminance component or the color difference component in the block. Therefore, it can be seen that if the DC component of the DCT result for the luminance component Y is high, it is a bright block, and if it is low, it is a dark block. Further, it can be seen that if the DC component of the DCT result for the color difference component Cb is high and the DC component of the DCT result for the color difference component Cr is low, the block is bluish. Similarly, if the DC component for Cb is low and the DC component for Cr is high, the block is reddish, and if the DC components for Cb and Cr are both high, the block is purpleish, Cb and Cr.
It can be seen that the block is greenish if both the DC components with respect to are low. Therefore, by the DC component separation unit 7,
An outline of the image can be obtained by extracting only the DC components of each block.

【0033】この直流成分から構成された概略の画像デ
ータが検索条件入力部6で入力された検索条件にマッチ
するかどうかを第1マッチング部8が判定し、両者がマ
ッチするならば領域決定部9によってマッチした部分の
ブロックを抽出する。逆DCT部4では、領域決定部9
で抽出されたブロックについて図8で示したDCT部8
3と逆の手順である逆離散コサイン変換の演算を行な
い、画像データとして復元する。そして、この画像デー
タが検索条件入力部6で入力された検索条件にマッチす
るかどうかを第2のマッチング部5が判定し、マッチす
るならばその画像データを検索結果として出力する。
The first matching unit 8 determines whether the rough image data composed of the DC component matches the search condition input by the search condition input unit 6, and if they match, the area determination unit. The block of the part matched by 9 is extracted. In the inverse DCT unit 4, the area determining unit 9
The DCT unit 8 shown in FIG. 8 for the blocks extracted in
Inverse Discrete Cosine Transform, which is the reverse procedure of 3, is performed to restore as image data. Then, the second matching unit 5 determines whether or not the image data matches the search condition input by the search condition input unit 6, and if they match, the image data is output as a search result.

【0034】以上の構成を有する本実施形態の画像検索
装置の動作について図3のフローチャートを参照して更
に説明する。図3は実施形態1における画像検索装置の
動作手順を表すフローチャートである。なお、図3で示
される制御を実現する制御プログラムはROM56bに
格納され、CPU56aによって実行される。
The operation of the image search apparatus of the present embodiment having the above configuration will be further described with reference to the flowchart of FIG. FIG. 3 is a flowchart showing an operation procedure of the image search device according to the first embodiment. The control program for realizing the control shown in FIG. 3 is stored in the ROM 56b and executed by the CPU 56a.

【0035】ステップS101においては、検索条件入
力部6より操作者が検索条件を入力する。本例では、検
索条件として色を指定し、入力画像の一部分が指定され
た色を含むかどうかを判定する。図4は検索条件として
色を指定するための表示を示す図である。操作者は図4
に示すように、画面に表示された色の見本の中から1色
をポインティングてデバイスで選択する。
In step S101, the operator inputs search conditions from the search condition input unit 6. In this example, a color is specified as the search condition, and it is determined whether or not a part of the input image includes the specified color. FIG. 4 is a diagram showing a display for designating a color as a search condition. Figure 4
As shown in, pointing to one color from the color sample displayed on the screen and selecting with the device.

【0036】次に、ステップS102においては、バッ
ファ1にロードされた圧縮データからDC成分で構成さ
れた画像を生成する。即ち、ステップS102では、フ
レーム間予測を行なわないモードのフレームを1フレー
ム取出し、これに対して可変長復号化部2で可変長復号
化を施し、更に逆量子化部3で逆量子化を施す。そし
て、DC成分分離部7により各ブロックごとの直流成分
を抽出して画像を構成する。
Next, in step S102, an image composed of DC components is generated from the compressed data loaded in the buffer 1. That is, in step S102, one frame in a mode in which inter-frame prediction is not performed is taken out, variable length decoding unit 2 performs variable length decoding on the frame, and inverse quantization unit 3 further performs inverse quantization. . Then, the DC component separating unit 7 extracts the DC component of each block to form an image.

【0037】ステップS103では、第1マッチング部
8により、ステップS102で生成されたDC成分画像
がステップS101で入力された検索条件にマッチした
かどうかを判定する。具体的には、DC成分画像の各画
素の色を前記色見本から選択された色と比較していく。
DC成分画像のある画素の輝度成分Y、色差成分Cb,
Crをそれぞれ、Yi,Cbi,Criとし、図4の色見本か
ら選択された色の輝度成分Y、色差成分Cb,Crをそれ
ぞれ、Ys,Cbs,Crsとした時、
In step S103, the first matching section 8 determines whether or not the DC component image generated in step S102 matches the search condition input in step S101. Specifically, the color of each pixel of the DC component image is compared with the color selected from the color sample.
The luminance component Y, the color difference component Cb, of a pixel in the DC component image,
When Cr is Yi, Cbi, and Cri, and the luminance component Y and the color difference components Cb and Cr of the color selected from the color sample of FIG. 4 are Ys, Cbs, and Crs, respectively,

【0038】[0038]

【数1】 [Equation 1]

【0039】の値が所定の値以内であればマッチしたと
判定する。
If the value of is within a predetermined value, it is determined that a match has occurred.

【0040】ステップS104においては、ステップS
103の処理においてマッチしたブロックが存在するか
否かを判断し、存在すればステップS105へ進む。ま
た、ステップS104においてマッチしたブロックが存
在しなければ、次のフレームを検索するためにステップ
S109へ進む。
In step S104, step S
In the process of 103, it is determined whether or not there is a matched block, and if there is, the process proceeds to step S105. If there is no matched block in step S104, the process proceeds to step S109 to search for the next frame.

【0041】ステップS105においては、領域決定部
9によりマッチしたブロックを抽出し、抽出されたブロ
ックに対して逆DCT部4による逆離散コサイン変換の
演算を行ない、画像データとして復元する。そして、ス
テップS106においては、ステップS105で復元さ
れたブロックの個々の画素に対して、輝度成分Yi、色
差成分Cbi、Criを求め、ステップS103と同様に
(1)式で示される値を計算する。そして、求めた値が
所定の値以内である画素の数の全画素数に対する割合を
求める。
In step S105, the matched block is extracted by the area determining section 9, and the inverse DCT section 4 performs an inverse discrete cosine transform operation on the extracted block to restore it as image data. Then, in step S106, the luminance component Yi and the color difference components Cbi, Cri are obtained for each pixel of the block restored in step S105, and the value represented by the equation (1) is calculated as in step S103. . Then, the ratio of the number of pixels whose calculated value is within a predetermined value to the total number of pixels is calculated.

【0042】次に、ステップS107において、ステッ
プS106で求めた割合に基づいて当該フレームが検索
条件にマッチしたか否かを判断する。ここでは、ステッ
プS106で求めた割合が所定の割合以上であれば、当
該フレームが検索条件にマッチしたと判定する。この判
定の結果、検索条件と当該フレームがマッチしていれば
ステップS108へ、マッチしていなければステップS
109へそれぞれ進む。ステップS108においては、
検索結果としてそのフレームの画像を出力する。ステッ
プS109ではすべてのフレームについてマッチング処
理を終えたか否かを判断し、未処理のフレームがあれば
ステップS102へ戻り上述の処理を繰り返す。また、
全てのフレームについて処理が終了していれば、そのま
ま本処理を終了する。
Next, in step S107, it is determined whether or not the frame matches the search condition based on the ratio obtained in step S106. Here, if the ratio obtained in step S106 is greater than or equal to the predetermined ratio, it is determined that the frame matches the search condition. As a result of this determination, if the search condition and the frame match, to step S108; otherwise, step S108.
Go to 109 respectively. In step S108,
The image of that frame is output as the search result. In step S109, it is determined whether or not the matching process has been completed for all the frames, and if there is an unprocessed frame, the process returns to step S102 and the above process is repeated. Also,
If the processing has been completed for all the frames, this processing is ended as it is.

【0043】以上のようにステップS102からS10
8までの動作を全フレームついて繰り返すことによっ
て、検索条件を1度操作者が入力するだけで、検索条件
に合ったフレームを検索することができる。
As described above, steps S102 to S10 are performed.
By repeating the operations up to 8 for all the frames, it is possible for the operator to search for the frame that matches the search condition only by inputting the search condition once.

【0044】以上説明したように、本実施形態によれ
ば、例えば橙色の服を着た人物を検索する際に色見本に
よって橙色を指定すると、まずブロックの平均の色(D
C成分の画像)によるマッチングが行われ、これが色空
間上で橙色から離れていたら、そのブロックは第1マッ
チング部8、領域決定部9によって除かれる。残ったブ
ロックには例えば赤と黄色の縞模様が平均されて橙色に
なったブロックも含まれている可能性がある。そこで、
残ったブロックのみ逆DCT演算を行ない、個々の画素
の色を調べて第2マッチング部5によるマッチングを行
うことで、赤と黄色の縞模様の部分は除かれ、橙色の画
素で構成された画像を残すことができる。即ち、フレー
ム全体に逆DCT演算を行わなくても、橙色の画像を検
索することができ、しかも赤と黄色の画像を誤って検索
することもない。
As described above, according to the present embodiment, when orange is designated by the color sample when searching for a person wearing orange clothes, for example, the average color (D
Matching is performed by the image of the C component), and if this is separated from orange in the color space, the block is removed by the first matching unit 8 and the region determination unit 9. The remaining blocks may include, for example, blocks in which red and yellow striped patterns are averaged to become orange. Therefore,
By performing the inverse DCT operation only on the remaining blocks, checking the color of each pixel and performing matching by the second matching unit 5, the red and yellow striped pattern part is removed, and an image composed of orange pixels You can leave. That is, the orange image can be searched without performing the inverse DCT calculation on the entire frame, and the red and yellow images are not searched by mistake.

【0045】以上のように、本実施形態では、DC成分
画像の段階でマッチングの対象を絞り込むことができる
ので、逆DCT変換の処理量やマッチングの処理量を低
減することができ、画像検索処理の処理速度が向上す
る。
As described above, in the present embodiment, the target of matching can be narrowed down at the stage of the DC component image, so that the processing amount of inverse DCT conversion and the processing amount of matching can be reduced, and the image search processing can be performed. Processing speed is improved.

【0046】なお、上記実施形態では、フレーム間予測
を行なわないモードのフレームについて1フレームごと
にマッチングの判定を行なっているが、所定のフレーム
数ごとに判定を行なうようにしても構わない。また、シ
ーンの切り替えごとに判定を行なうようにしても構わな
い。シーンが切り替わったことを自動的に検出する方法
としては、直前のフレームとの差分をとる方法などが公
知の技術として知られている。動画像においては連続し
たフレームは類似している可能性が高いので、所定のフ
レーム数毎に、或はシーンの切り替わり毎にマッチング
をとることで実用的な検索精度を保とともに処理速度を
向上することができる。
In the above embodiment, the matching is determined for each frame for the mode in which the inter-frame prediction is not performed, but the determination may be performed for each predetermined number of frames. Further, the determination may be made every time the scene is switched. As a method of automatically detecting that the scene has been switched, a known method is a method of obtaining a difference from the immediately preceding frame. Since it is highly likely that consecutive frames are similar in a moving image, matching is performed every predetermined number of frames or each scene change to improve practical search accuracy and improve processing speed. be able to.

【0047】また、本実施形態では動画像圧縮装置につ
いて述べたが、静止画像についても同様の手順で画像検
索することが可能であり、動画像に適用したのと同様の
効果が得られる。
Although the moving image compression apparatus has been described in the present embodiment, it is possible to retrieve an image of a still image by the same procedure, and the same effect as that applied to a moving image can be obtained.

【0048】また、本実施形態では、DCT、量子化、
エントロピー符号化という手順で圧縮を行なう例を示し
たが、圧縮データを伸長する途中で、ブロックごとの空
間周波数の直流成分が抽出可能な圧縮法であれば、どの
ような方法を用いても構わない。
In this embodiment, DCT, quantization,
Although an example of performing compression by a procedure called entropy coding has been shown, any method may be used as long as it is a compression method that can extract the DC component of the spatial frequency of each block during the expansion of the compressed data. Absent.

【0049】(実施形態2)次に実施形態2について説
明する。実施形態2においては、操作者が検索画像を指
定し、DC成分画像が検索画像とどの程度マッチしたか
を検索条件とする。実施形態2の画像検索装置における
ハードウエア構成及び機能構成は実施形態1(図1、図
2)と同様である。
(Second Embodiment) Next, a second embodiment will be described. In the second embodiment, the operator specifies a search image, and the search condition is how much the DC component image matches the search image. The hardware configuration and the functional configuration of the image search device of the second embodiment are the same as those of the first embodiment (FIGS. 1 and 2).

【0050】以下に本実施形態2における画像検索装置
の動作を説明する。処理の流れは、図3のフローチャー
トとほぼ同様であるが、ステップS101、S103及
びS106の部分が実施形態1と異なる。以下に実施形
態1と異なる点を説明する。
The operation of the image search apparatus according to the second embodiment will be described below. The flow of processing is almost the same as that of the flowchart of FIG. 3, but steps S101, S103 and S106 are different from those of the first embodiment. The points different from the first embodiment will be described below.

【0051】ステップS101における検索画像の指定
方法は、例えば検索対象の動画像から1枚の画像を選び
だし、ポインティングデバイスで領域を切出す方法、イ
メージスキャナ等の他の画像入力手段から得られた画像
を利用する方法、ポインティングデバイスで作画する方
法などが考えられる。
The method of designating the search image in step S101 is obtained, for example, by selecting one image from the moving images to be searched and cutting out a region with a pointing device, or by other image input means such as an image scanner. A method of using an image, a method of drawing with a pointing device, and the like are possible.

【0052】ステップS103およびS106における
DC成分画像と検索条件のマッチング処理の詳細につい
て、図7のフローチャートを用いて説明する。図7は実
施形態2におけるマッチング処理の手順を表すフローチ
ャートである。
Details of the matching process between the DC component image and the search conditions in steps S103 and S106 will be described with reference to the flowchart of FIG. FIG. 7 is a flowchart showing the procedure of matching processing in the second embodiment.

【0053】ステップS201において、検索画像を大
まかな色領域に分割する。図5の例では、黒(領域2
1)、肌色(領域22)、黄色(領域23)、青(領域
24)の4つの領域に分割される。次にステップS20
2において、前記色領域のうち、面積が最大の領域の色
を検索画像の代表色とする。図5の例では、黄色(領域
23)が代表色となる。
In step S201, the search image is divided into rough color areas. In the example of FIG. 5, black (area 2
1), flesh color (area 22), yellow (area 23), and blue (area 24). Next, step S20
In 2, the color of the area having the largest area of the color areas is set as the representative color of the search image. In the example of FIG. 5, yellow (area 23) is the representative color.

【0054】ここで、色領域の分割は、自動的に行われ
る。この分割の処理においては、基本的には、主要な色
(主要色)を所定個数決めておき、入力画像の全ての色
を前述の主要色のいずれかに割り振り、隣接する同じ主
要色の画素を統合することで領域をつくる。例えば、
Y,Cb,Cr成分がそれぞれ256階調の値を取り得
るとすると、各値を64で割ることでそれぞれ4段階の
値が得られる。これらの組み合わせで4×4×4=64
通りの主要色に分けられる。但し、実際に有り得ない組
み合わせもあるので、実際は645通りよりも少なくな
る。また、白、黒、赤、青、黄などの主要な色のYCb
Cr値を予め決めておき、入力画像の各YCbCr値と
を比較し、最も近い主要色に割り当てるようにしてもよ
い。
Here, the color area division is automatically performed. In this division processing, basically, a predetermined number of main colors (main colors) are determined, all the colors of the input image are assigned to any of the main colors described above, and adjacent pixels of the same main color are allocated. Create an area by integrating For example,
If each of the Y, Cb, and Cr components can take a value of 256 gradations, each value is divided by 64 to obtain a value of four stages. 4 × 4 × 4 = 64 with these combinations
It is divided into the main colors of the street. However, since there are combinations that are not possible in reality, the number is actually less than 645. In addition, YCb of major colors such as white, black, red, blue, and yellow
The Cr value may be determined in advance, and each YCbCr value of the input image may be compared and assigned to the closest major color.

【0055】なお、上記のようにして主要色毎の色領域
に画像分割を行った場合、現実には大きな領域の他に細
かい領域がいくつも発生する。そこで、所定の大きさに
満たない細かい領域を無視したり、似た色の領域を統合
したりして、大きな領域だけを考慮するように分割する
ことで、大まかな色領域への分割が達成される。
When the image is divided into the color areas for each main color as described above, in reality, many small areas are generated in addition to the large area. Therefore, by ignoring small areas that are less than the prescribed size or by combining areas of similar colors, it is possible to divide into areas that only consider large areas. To be done.

【0056】ステップS203では、ステップS102
(図3)において生成されたDC成分画像を大まかな色
領域に分割する。そして、ステップS204において、
このDC成分画像の色領域から、ステップ202で設定
された検索画像の代表色と一致する領域を抽出する。こ
こで、DC成分画像の色領域の輝度成分Y、色差成分C
b,CrをそれぞれYi,Cbi,Criとし、検索画像の色
領域の輝度成分Y、色差成分Cb,CrをそれぞれYs,
Cbs,Crsとしたとき、上記(1)式によって求まる値
が所定の値以内であるとき、両領域は一致したものとす
る。
In step S203, step S102
The DC component image generated in (FIG. 3) is divided into rough color regions. Then, in step S204,
From the color area of the DC component image, an area that matches the representative color of the search image set in step 202 is extracted. Here, the luminance component Y and the color difference component C of the color region of the DC component image
b and Cr are respectively Yi, Cbi and Cri, and the luminance component Y and the color difference components Cb and Cr of the color region of the search image are Ys and Cri, respectively.
If Cbs and Crs are used, and if the value obtained by the above equation (1) is within a predetermined value, both areas are considered to match.

【0057】DC成分画像から一致する領域が抽出でき
たときは、ステップS205からステップS206へ進
み、抽出されたDC成分画像中の代表色の領域と、検索
画像中の代表色の領域との面積費を求める。そして、ス
テップS207においては、検索画像中の各領域の色
と、DC成分画像中の代表色周辺の領域の色とのマッチ
ングを調べる。このとき、ステップS206で求めた代
表色の領域の面積比に基づいて、入力画像中の代表色周
辺の領域をサーチする。
When a matching area can be extracted from the DC component image, the process proceeds from step S205 to step S206, and the area of the representative color area in the extracted DC component image and the area of the representative color in the search image are extracted. Ask for money. Then, in step S207, matching between the color of each area in the search image and the color of the area around the representative color in the DC component image is checked. At this time, the area around the representative color in the input image is searched based on the area ratio of the areas of the representative color obtained in step S206.

【0058】例えば、図5の検索画像をDC成分画像と
マッチングさせたところ、図6の領域27が代表色(黄
色)と一致したとする。この場合、領域27の周辺の領
域が検索画像中の領域21、領域22、領域24の色と
それぞれ一致するかどうかを調べる。例えば、DC成分
画像の代表色の領域27と検索画像の代表色の領域23
との面積比が1.5:1であったとすると、まず図6の
25の位置に領域21の約1.5倍の面積をもつ黒い領
域があるかどうか調べる。次に26の位置に領域22の
約1.5倍の面積をもつ肌色の領域があるかどうかを調
べる。さらに28の位置に領域24の約1.5倍の面積
をもつ青い領域があるかどうか調べる。
For example, when the search image of FIG. 5 is matched with the DC component image, it is assumed that the area 27 of FIG. 6 matches the representative color (yellow). In this case, it is checked whether the areas around the area 27 match the colors of the areas 21, 22, and 24 in the search image. For example, the representative color area 27 of the DC component image and the representative color area 23 of the search image
Assuming that the area ratio to the area is 1.5: 1, it is first checked whether or not there is a black area having an area about 1.5 times as large as the area 21 at the position 25 in FIG. Next, it is checked whether or not there is a flesh-colored area having an area approximately 1.5 times as large as the area 22 at the position 26. Further, it is examined whether or not there is a blue area having an area of about 1.5 times that of the area 24 at the position 28.

【0059】ここで、面積が約1.5倍の領域とは、例
えば1.3倍〜1.7倍というようにある範囲が設定さ
れることになる。この範囲を広くすれば不要な画像を検
索してしまう可能性が増大し、範囲を狭くすれば必要な
画像を取り逃がす可能性が増大する。特に、DC成分画
像によるマッチングにおいては、画素単位でなくブロッ
ク単位で構成されるので誤差が大きく、上記範囲をある
程度広く設定しておく必要がある。
Here, a region having an area of about 1.5 times means a certain range such as 1.3 times to 1.7 times. Increasing this range increases the possibility of searching for unnecessary images, and narrowing the range increases the possibility of missing necessary images. Particularly, in the matching by the DC component image, the error is large because it is configured in block units instead of pixel units, and it is necessary to set the above range to a certain extent.

【0060】ステップS208においては、検索画像の
領域のうち、DC成分画像とマッチした領域の割合を0
〜1の数値で出力する。例えば、図5の例では検索画像
の領域の個数は代表色を含めて4個であり、そのうち3
個の領域がDC成分画像とマッチしたとすると、0.7
5という数値をマッチング度として出力する。また、マ
ッチング度の算出において、各色の領域の大きさを加味
しても良いことは言うまでもない。例えば、肌色の領域
26が領域22の1.5倍の大きさを有していないよう
な場合等は、その大きさのずれをマッチング度に反映さ
せる。なお、ステップS205において、代表色と一致
する色が抽出できなかった時は、ステップS209に進
み、マッチング度を0として出力する。
In step S208, the ratio of the area matching the DC component image to the area of the search image is set to 0.
Output with a numerical value of ~ 1. For example, in the example of FIG. 5, the number of areas of the search image is 4 including the representative color, and 3 of them are included.
If each region matches the DC component image, 0.7
A numerical value of 5 is output as the matching degree. In addition, it goes without saying that the size of the region of each color may be taken into consideration when calculating the matching degree. For example, when the flesh-colored area 26 does not have a size 1.5 times as large as the area 22, the size deviation is reflected in the matching degree. When the color that matches the representative color cannot be extracted in step S205, the process proceeds to step S209 and the matching degree is set to 0 and output.

【0061】また、上記の他に、各領域の位置関係を考
慮するようにしてもよい。各領域の位置関係の比較は、
例えば、各色領域の位置関係を各領域の重心の位置で比
較したり、領域に外接する矩形の中心点の位置を比較す
るこで行える。
In addition to the above, the positional relationship of each area may be taken into consideration. To compare the positional relationship of each area,
For example, the positional relationship of each color area can be compared by the position of the center of gravity of each area, or the position of the center point of a rectangle circumscribing the area can be compared.

【0062】そして、図3のステップ104において、
マッチング度が所定の値以上であれば、図6の各領域に
存在するブロックが検索画像とマッチしたとみなし、そ
れらのブロックについて逆DCT演算を行なう(ステッ
プS105)。マッチング度が所定の値未満ならば、次
のフレームを検索する。
Then, in step 104 of FIG.
If the matching degree is equal to or higher than a predetermined value, it is considered that the blocks existing in each area of FIG. 6 match the search image, and the inverse DCT calculation is performed on these blocks (step S105). If the matching degree is less than the predetermined value, the next frame is searched.

【0063】ステップS106では、ステップS105
で逆変換して得られた各ブロックについて上述の図7で
示されるマッチング処理を行い、第2段階目の抽出処理
を行う。
In step S106, step S105
The above-described matching process shown in FIG. 7 is performed on each block obtained by the inverse conversion in step S2, and the second-stage extraction process is performed.

【0064】以上のように実施形態2では、パターンマ
ッチングによってマッチング度を計算するが、パターン
マッチングの方法にはここで述べた以外にも多くの方法
があり、どの方法を用いてもかまわない。
As described above, in the second embodiment, the degree of matching is calculated by pattern matching. However, there are many methods other than those described here as the method of pattern matching, and any method may be used.

【0065】実施形態2によれば、例えば特定の人物が
映っている画像を検索したい場合に、その人物が映って
いる1枚の画像を検索画像として指定することにより、
服装の色などから人物の領域をある程度特定することが
できるので、逆DCT演算や詳細なマッチングを行なう
領域を限定でき、高速、かつ確実な検索が行なえる。
According to the second embodiment, for example, when an image showing a specific person is desired to be searched, one image showing the person is designated as a search image,
Since the person's area can be specified to some extent from the color of clothes, the area in which the inverse DCT calculation and the detailed matching are performed can be limited, and a high-speed and reliable search can be performed.

【0066】また、上記実施形態1、実施形態2におい
て、第2マッチング部5による抽出処理を行うか否かを
選択可能としてもよい。例えば、DC成分画像による大
まかなマッチングではユニフォームの違いなどが検出で
き、逆DCT後の細かいマッチングでは顔や背番号など
の違いが検出できることから、画像をチームで分類した
い場合にはDC成分画像によるマッチングのみを行な
い、個人ごとに分類したい場合にのみその都度詳細なマ
ッチングを行なうようにするということができる。この
ように、必要に応じてマッチング処理を使い分けること
ができ、検索の速度と確実性のバランスをコントロール
することができる。
In the first and second embodiments, it may be selectable whether or not the extraction process by the second matching section 5 is performed. For example, uniform matching with DC component images can detect differences in uniforms, and fine matching after inverse DCT can detect differences in faces, uniform numbers, etc. Therefore, when it is desired to classify images by a team, it is possible to use DC component images. It is possible to perform only matching, and to perform detailed matching each time only when it is desired to classify the individual. In this way, matching processing can be selectively used as necessary, and the balance between search speed and certainty can be controlled.

【0067】以上説明したように上記実施形態によれ
ば、第1マッチング部でブロックの平均の色に基づいて
大まかな判定を行ない、条件にマッチしたブロックのみ
を元の画像に復元して、さらに第2マッチング部で各画
素の色に基づいて詳細な判定を行う。このため、逆DC
T演算や画素単位のパターンマッチングを行なう回数を
減少させることができ、大量のフレームからの検索を高
速に行うことができるという効果がある。
As described above, according to the above-described embodiment, the first matching unit makes a rough judgment based on the average color of the blocks, restores only the blocks matching the conditions to the original image, and further The second matching unit makes a detailed determination based on the color of each pixel. Therefore, the inverse DC
It is possible to reduce the number of times T calculation and pattern matching for each pixel are performed, and it is possible to perform a search from a large number of frames at high speed.

【0068】さらに、第1マッチング部による第1段階
までの検索とするか、第2マッチング部による第2段階
の検索まで行うかを切り替えることを可能とすること
で、必要に応じてマッチング処理を使い分けることがで
き、検索の速度と確実性のバランスをコントロールする
ことができるという効果がある。
Furthermore, by making it possible to switch between the search up to the first step by the first matching section and the search up to the second step by the second matching section, it is possible to perform the matching processing as necessary. There is an effect that it can be used properly and the balance between search speed and certainty can be controlled.

【0069】また、本発明は、複数の機器から構成され
るシステムに適用しても、1つの機器からなる装置に適
用してもよい。また、本発明はシステム或は装置にプロ
グラムを供給することによって達成される場合にも適用
できることは言うまでもない。この場合、本発明に係る
プログラムを格納した記憶媒体が、本発明を構成するこ
とになる。そして、該記憶媒体からそのプログラムをシ
ステム或は装置に読み出すことによって、そのシステム
或は装置が、予め定められた仕方で動作する。
Further, the present invention may be applied to a system composed of a plurality of devices or to an apparatus composed of one device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus. In this case, the storage medium storing the program according to the present invention constitutes the present invention. Then, by reading the program from the storage medium to the system or device, the system or device operates in a predetermined manner.

【0070】[0070]

【発明の効果】以上説明したように、本発明によれば、
画像検索時における処理量が減少するので、大量のフレ
ームからの画像検索を高速に行なうことが可能となる。
As described above, according to the present invention,
Since the amount of processing at the time of image retrieval is reduced, it is possible to perform image retrieval from a large number of frames at high speed.

【0071】また、本発明によれば、画像検索時におけ
る逆DCT演算や画素単位のパターンマッチング等を行
なう回数が減少し、画像検索の高速化が図られる。
Further, according to the present invention, the number of times of performing inverse DCT calculation or pixel-based pattern matching at the time of image retrieval is reduced, and the image retrieval can be speeded up.

【0072】[0072]

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

【図1】本実施形態による画像検索装置のハードウェア
構成の概要を表すブロック図である。
FIG. 1 is a block diagram showing an outline of a hardware configuration of an image search device according to the present embodiment.

【図2】本実施形態による画像検索装置の機能構成を表
すブロック図である。
FIG. 2 is a block diagram showing a functional configuration of the image search device according to the present embodiment.

【図3】実施形態1における画像検索装置の動作手順を
表すフローチャートである。
FIG. 3 is a flowchart showing an operation procedure of the image search device according to the first embodiment.

【図4】検索条件として色を指定するための表示を示す
図である。
FIG. 4 is a diagram showing a display for designating a color as a search condition.

【図5】実施形態2における検索画像の一例を表す図で
ある。
FIG. 5 is a diagram illustrating an example of a search image according to the second embodiment.

【図6】実施形態2におけるDC成分画像の領域分割例
を表す図である。
FIG. 6 is a diagram illustrating an example of area division of a DC component image according to the second embodiment.

【図7】実施形態2におけるマッチング処理の手順を表
すフローチャートである。
FIG. 7 is a flowchart showing a procedure of matching processing according to the second embodiment.

【図8】MPEGアルゴリズムを用いた画像圧縮装置の
ブロック図を示す図である。
FIG. 8 is a diagram showing a block diagram of an image compression apparatus using an MPEG algorithm.

【図9】動画像の圧縮データから、所望の条件にマッチ
するフレームを検索する装置の一般的な構成を示す図で
ある。
FIG. 9 is a diagram showing a general configuration of an apparatus for searching a frame that matches a desired condition from compressed data of a moving image.

【図10】DCT変換による周波数成分の配置を表わす
図である。
FIG. 10 is a diagram showing an arrangement of frequency components by DCT conversion.

【図11】量子化テーブルの一例を表す図である。FIG. 11 is a diagram illustrating an example of a quantization table.

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

1 バッファ 2 可変長復号化部 3 逆量子化部 4 逆DCT部 5 第2マッチング部 6 検索条件入力部 7 DC成分分離部 8 第1マッチング部 9 領域決定部 1 Buffer 2 Variable Length Decoding Section 3 Inverse Quantization Section 4 Inverse DCT Section 5 Second Matching Section 6 Search Condition Input Section 7 DC Component Separation Section 8 First Matching Section 9 Area Determining Section

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 画像を複数のブロックに分け、各ブロッ
クを空間周波数成分で表現する画像データから所望の画
像を検索する画像検索装置であって、 前記画像データから各ブロックの所定の空間周波数成分
を獲得する獲得手段と、 前記獲得手段で獲得された所定の周波数成分に基づい
て、予め設定された検索条件を満たすブロックを抽出す
る抽出手段と、 前記抽出手段で抽出されたブロックの空間周波数成分に
基づいて、該ブロックをビットマップによる画像データ
に復元する復元手段と、 前記復元手段で復元されたブロックが前記検索条件を満
たすか否かを判定する判定手段と、 前記判定手段で前記復元されたブロックが前記検索条件
を満たすと判定された場合、当該画像を検索結果として
出力する出力手段とを備えることを特徴とする画像検索
装置。
1. An image retrieving apparatus for retrieving a desired image from image data in which an image is divided into a plurality of blocks and each block is represented by a spatial frequency component, wherein a predetermined spatial frequency component of each block is obtained from the image data. Acquiring means for acquiring, a extracting means for extracting a block satisfying a preset search condition based on the predetermined frequency component acquired by the acquiring means, and a spatial frequency component of the block extracted by the extracting means. On the basis of the above, the restoring means for restoring the block to the image data by the bitmap, the determining means for determining whether or not the block restored by the restoring means satisfies the search condition, and the restoring means for restoring the block. And an output unit that outputs the image as a search result when it is determined that the block satisfies the search condition. Image retrieval apparatus.
【請求項2】 前記獲得手段で獲得される所定の空間周
波数成分とは、直流成分であることを特徴とする請求項
1に記載の画像検索装置。
2. The image retrieval apparatus according to claim 1, wherein the predetermined spatial frequency component acquired by the acquisition means is a direct current component.
【請求項3】 前記検索条件は、操作者によって指定さ
れた色であることを特徴とする請求項1に記載の画像検
索装置。
3. The image search device according to claim 1, wherein the search condition is a color designated by an operator.
【請求項4】 前記検索条件を設定するために、色見本
を表示する表示手段と、前記表示手段で表示された色見
本から所望の色を指定する指定手段とを更に備えること
を特徴とする請求項3に記載の画像検索装置。
4. The display device further comprises display means for displaying a color sample and setting means for designating a desired color from the color sample displayed on the display means in order to set the search condition. The image search device according to claim 3.
【請求項5】 前記抽出手段によってブロックが抽出さ
れた場合、当該画像を検索結果として出力する抽出画像
出力手段と、 前記抽出画像出力手段と前記出力手段のいずれによって
検索結果を出力するかを切り換える切り換え手段とを更
に備えることを特徴とする請求項1に記載の画像検索装
置。
5. When a block is extracted by the extraction means, the extracted image output means for outputting the image as a search result, and which of the extracted image output means and the output means outputs the search result is switched. The image search device according to claim 1, further comprising a switching unit.
【請求項6】 画像を複数のブロックに分け、各ブロッ
クを空間周波数成分で表現する画像データから所望の画
像を検索する画像検索装置であって、 前記画像データから各ブロックの所定の空間周波数成分
を獲得する獲得手段と、 前記獲得手段で獲得された所定の周波数成分に基づい
て、予め設定された検索画像とパターンマッチングを行
って、該検索画像と一致する領域を抽出する抽出手段
と、 前記抽出手段で抽出された領域の空間周波数成分に基づ
いて、該領域をビットマップによる画像データに復元す
る復元手段と、 前記復元手段で復元された領域が前記検索画像と一致す
るか否かをパターンマッチングにより判定する判定手段
と、 前記判定手段で前記復元された領域が前記検索画像と一
致すると判定された場合、当該画像を検索結果として出
力する出力手段とを備えることを特徴とする画像検索装
置。
6. An image retrieving apparatus for retrieving a desired image from image data in which an image is divided into a plurality of blocks and each block is represented by a spatial frequency component, wherein a predetermined spatial frequency component of each block is obtained from the image data. Acquisition means for acquiring, an extraction means for performing pattern matching with a preset search image based on the predetermined frequency component acquired by the acquisition means, and extracting a region that matches the search image, Based on the spatial frequency component of the area extracted by the extracting means, a restoring means for restoring the area to image data by a bitmap, and a pattern as to whether the area restored by the restoring means matches the search image When the determination unit that determines by matching and the determination unit determines that the restored area matches the search image, the image is searched for. Image retrieval apparatus according to an outputting means for outputting as.
【請求項7】 前記抽出手段は、 前記検索画像を所定の類似範囲の色で構成される複数の
色領域に分ける第1分割手段と、 前記所定の空間周波数成分で構成される画像を所定の類
似範囲の色で構成される複数の色領域に分ける第2分割
手段と、 前記第1及び第2分割手段で得られた各領域の色の比較
によってマッチングを調べる比較手段とを備えることを
特徴とする請求項6に記載の画像検索装置。
7. The extraction means divides the search image into a plurality of color regions formed of colors in a predetermined similar range, and a predetermined division of the image formed of the predetermined spatial frequency component. It is characterized by further comprising: second dividing means for dividing into a plurality of color areas constituted by colors in the similar range; and comparing means for checking the matching by comparing the colors of the areas obtained by the first and second dividing means. The image search device according to claim 6.
【請求項8】 前記比較手段は、前記検索画像における
前記複数の色領域のうち最大の面積を有する領域を代表
領域とし、前記所定の空間周波数成分で構成される画像
から該代表領域と同じ類似範囲の色を有する領域が検出
された場合、前記検索画像の他の色領域との比較を行う
ことを特徴とする請求項7に記載の画像検索装置。
8. The comparison means sets a region having the largest area of the plurality of color regions in the search image as a representative region, and the image composed of the predetermined spatial frequency components has the same similarity as the representative region. The image search device according to claim 7, wherein when an area having a range of colors is detected, the area is compared with another color area of the search image.
【請求項9】 前記比較手段は、前記検索画像における
各色領域の大きさの比と前記所定の空間周波数成分で構
成される画像の対応する各色領域の大きさの比の比較を
更に行うことを特徴とする請求項8に記載の画像検索装
置。
9. The comparing means further compares the ratio of the size of each color area in the search image to the ratio of the size of corresponding color areas of the image composed of the predetermined spatial frequency component. The image search device according to claim 8, characterized in that
【請求項10】 前記抽出手段によって領域が抽出され
た場合、当該画像を検索結果として出力する抽出画像出
力手段と、 前記抽出画像出力手段と前記出力手段のいずれによって
検索結果を出力するかを切り換える切り換え手段とを更
に備えることを特徴とする請求項6に記載の画像検索装
置。
10. When an area is extracted by the extraction means, the extracted image output means for outputting the image as a search result, and which of the extracted image output means and the output means outputs the search result is switched. The image retrieval apparatus according to claim 6, further comprising a switching unit.
【請求項11】 画像を複数のブロックに分け、各ブロ
ックを空間周波数成分で表現する画像データから所望の
画像を検索する画像検索方法であって、 前記画像データから各ブロックの所定の空間周波数成分
を獲得する獲得工程と、 前記獲得工程で獲得された所定の周波数成分に基づい
て、予め設定された検索条件を満たすブロックを抽出す
る抽出工程と、 前記抽出工程で抽出されたブロックの空間周波数成分に
基づいて、該ブロックをビットマップによる画像データ
に復元する復元工程と、 前記復元工程で復元されたブロックが前記検索条件を満
たすか否かを判定する判定工程と、 前記判定工程で前記復元されたブロックが前記検索条件
を満たすと判定された場合、当該画像を検索結果として
出力する出力工程とを備えることを特徴とする画像検索
方法。
11. An image retrieval method of dividing an image into a plurality of blocks and retrieving a desired image from image data expressing each block with a spatial frequency component, the predetermined spatial frequency component of each block from the image data. An extracting step of extracting a block satisfying a preset search condition based on the predetermined frequency component acquired in the acquiring step; and a spatial frequency component of the block extracted in the extracting step. A restoration step of restoring the block to image data by a bitmap based on the above, a determination step of determining whether or not the block restored in the restoration step satisfies the search condition, and a restoration step in the determination step. An output step of outputting the image as a search result when it is determined that the block satisfies the search condition. Image search method.
【請求項12】 画像を複数のブロックに分け、各ブロ
ックを空間周波数成分で表現する画像データから所望の
画像を検索する画像検索方法であって、 前記画像データから各ブロックの所定の空間周波数成分
を獲得する獲得工程と、 前記獲得工程で獲得された所定の周波数成分に基づい
て、予め設定された検索画像とパターンマッチングを行
って、該検索画像と一致する領域を抽出する抽出工程
と、 前記抽出工程で抽出された領域の空間周波数成分に基づ
いて、該領域をビットマップによる画像データに復元す
る復元工程と、 前記復元工程で復元された領域が前記検索画像と一致す
るか否かをパターンマッチングにより判定する判定工程
と、 前記判定工程で前記復元された領域が前記検索画像と一
致すると判定された場合、当該画像を検索結果として出
力する出力工程とを備えることを特徴とする画像検索方
法。
12. An image retrieval method for retrieving a desired image from image data in which an image is divided into a plurality of blocks and each block is represented by a spatial frequency component, wherein a predetermined spatial frequency component of each block is obtained from the image data. An acquisition step of acquiring, an extraction step of performing pattern matching with a preset search image based on the predetermined frequency component acquired in the acquisition step, and extracting a region that matches the search image, Based on the spatial frequency component of the area extracted in the extraction step, a restoration step of restoring the area to image data by a bitmap, and a pattern of whether the area restored in the restoration step matches the search image A determining step of determining by matching, and if the restored area is determined to match the search image in the determining step, the image is searched. Image retrieval method characterized by an output step of outputting as a result.
JP7197628A 1995-08-02 1995-08-02 Method and device for image retrieval Withdrawn JPH0944519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7197628A JPH0944519A (en) 1995-08-02 1995-08-02 Method and device for image retrieval

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7197628A JPH0944519A (en) 1995-08-02 1995-08-02 Method and device for image retrieval

Publications (1)

Publication Number Publication Date
JPH0944519A true JPH0944519A (en) 1997-02-14

Family

ID=16377653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7197628A Withdrawn JPH0944519A (en) 1995-08-02 1995-08-02 Method and device for image retrieval

Country Status (1)

Country Link
JP (1) JPH0944519A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1166107A (en) * 1997-07-31 1999-03-09 Samsung Electron Co Ltd Device and method for video information retrieval in computer
US10757446B2 (en) 2018-01-25 2020-08-25 Fujitsu Limited Data compression apparatus and data compression method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1166107A (en) * 1997-07-31 1999-03-09 Samsung Electron Co Ltd Device and method for video information retrieval in computer
US10757446B2 (en) 2018-01-25 2020-08-25 Fujitsu Limited Data compression apparatus and data compression method

Similar Documents

Publication Publication Date Title
KR100821847B1 (en) Visual attention system
US7884884B2 (en) Dynamic image search information recording apparatus and dynamic image searching devices
KR100649338B1 (en) Color quantization and similarity measure for content based image retrieval
US5353132A (en) Image processing device
US7248782B2 (en) Image retrieving apparatus, image retrieving method and recording medium for recording program to implement the image retrieving method
JP3915272B2 (en) Quantization method and recording medium recording quantization program
US5892546A (en) Encoding apparatus and method for encoding a quantized difference between an input signal and a prediction value
US6917704B2 (en) Image processing method, image processing apparatus and image processing system
US8253817B2 (en) Image compression method, device, electronic camera, and program
Fernando et al. Fade-in and fade-out detection in video sequences using histograms
KR19990071354A (en) Layout based image retrieval device and method
JPH0944519A (en) Method and device for image retrieval
JP4190739B2 (en) Image feature value generating apparatus and method, and storage medium storing image feature value generating program
WO2005048133A1 (en) Image processing method, image processing system, and image processing program
JP3774498B2 (en) Image processing method and apparatus
JPH11238067A (en) Image retrieval system and recording medium
JP2006014308A (en) Method and apparatus for digital video processing
JPH06251147A (en) Video feature processing method
JP2002208013A (en) Device for extracting image area and method for the same
JP2891862B2 (en) Image compression apparatus and image compression method
JP2002133414A (en) Image processing method and its device and recording medium
JP3618817B2 (en) Image compression apparatus and image compression method
JP2001103485A (en) Data compressor, data compression method and storage medium
JPH0993609A (en) Image processing unit and its method
Wang et al. A Novel Image Coding Scheme based on License Plate Recognition

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: 20021105