JPH11316837A - Image processing method for pattern matching and image processor - Google Patents

Image processing method for pattern matching and image processor

Info

Publication number
JPH11316837A
JPH11316837A JP10122570A JP12257098A JPH11316837A JP H11316837 A JPH11316837 A JP H11316837A JP 10122570 A JP10122570 A JP 10122570A JP 12257098 A JP12257098 A JP 12257098A JP H11316837 A JPH11316837 A JP H11316837A
Authority
JP
Japan
Prior art keywords
pattern
dct
similarity
image
input
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.)
Pending
Application number
JP10122570A
Other languages
Japanese (ja)
Inventor
Kunihiko Hara
邦彦 原
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP10122570A priority Critical patent/JPH11316837A/en
Publication of JPH11316837A publication Critical patent/JPH11316837A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To obtain an image processing method which performs appropriate pattern matching to an image undergoing discrete cosine transformation(DCT) by comparing detected similarity with preliminarily defined threshold and deciding whether or not a pattern resembling to a reference pattern is included in an input DCT image according to the comparison result. SOLUTION: A reference DCT pattern producing means 1 performs DCT of a reference pattern and produces a reference DCT pattern. A comparison area setting means 2 sets a comparison area that is the same size as the reference pattern from an input DCT image. A similarity detecting means 3 detects the similarity between the reference DCT pattern and the comparison area. A similarity deciding means 5 compares similarity detected by the means 3 with a predetermined threshold, and when similarity that is larger than the threshold exists, it is decided that a pattern resembling to the reference pattern is included in the input DCT image.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、離散コサイン変
換を用いた圧縮画像において基準パターンに類似したパ
ターンが含まれるか否かの検索を行うことができるパタ
ーンマッチングのための画像処理方法および画像処理装
置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing method and an image processing method for pattern matching which can search whether or not a pattern similar to a reference pattern is included in a compressed image using discrete cosine transform. It concerns the device.

【0002】[0002]

【従来の技術】図15は、例えばパターン理解(白井良
明編、オーム社)に示された従来のパターンマッチング
のための画像処理方法を示すフローチャート、図16は
従来のパターンマッチングのための画像処理方法におけ
る基準パターンを示す説明図、図17は従来のパターン
マッチングのための画像処理方法における入力画像を示
す説明図である。図において、101は基準パターン、
102は基準パターン101のサイズ(16×16)、
103は入力画像、104は入力画像103内に設定さ
れた第1の比較領域、105は入力画像103内に設定
された第2の比較領域である。ST101は比較領域設
定ステップ、ST102は非類似度検出ステップ、ST
103は繰り返し判定ステップ、ST104は非類似度
判定ステップである。
2. Description of the Related Art FIG. 15 is a flow chart showing a conventional image processing method for pattern matching shown in, for example, Pattern Understanding (Yoshiaki Shirai, Ohmsha), and FIG. 16 is a conventional image processing method for pattern matching. FIG. 17 is an explanatory diagram showing a reference pattern in the method, and FIG. 17 is an explanatory diagram showing an input image in a conventional image processing method for pattern matching. In the figure, 101 is a reference pattern,
102 is the size of the reference pattern 101 (16 × 16),
103 is an input image, 104 is a first comparison area set in the input image 103, and 105 is a second comparison area set in the input image 103. ST101 is a comparison area setting step, ST102 is a dissimilarity detection step, ST
103 is a repetition determination step, and ST104 is a dissimilarity determination step.

【0003】次に動作について説明する。まず、入力画
像103の一部を基準パターン101と比較する領域と
して設定する(ステップST101)。図16に示すよ
うに基準パターン101のサイズが16×16の場合、
図17に示すように入力画像103の一部の16×16
を第1の比較領域104に設定する。次に、第1の比較
領域104と基準パターン101との非類似度を検出す
る(ステップST102)。非類似度は、例えば各画素
の値の差分絶対値和で求められる。次に、所定の領域の
すべてと比較したか否かを判定し(ステップST10
3)、比較していない場合はステップST101に戻
り、図17に示すように前の領域としての第1の比較領
域104とは位置をずらして新しい領域としての第2の
比較領域105に設定し直す。次に、検出されたすべて
の非類似度と所定のしきい値と比較を行う。しきい値よ
り小さな非類似度が存在する場合は、入力画像の中に基
準パターンと類似したパターンが含まれると判定する
(ステップST104)。一方、すべての非類似度がし
きい値以上の場合は、入力画像103には基準パターン
と類似したパターンが含まれないと判定する。
Next, the operation will be described. First, a part of the input image 103 is set as a region to be compared with the reference pattern 101 (step ST101). As shown in FIG. 16, when the size of the reference pattern 101 is 16 × 16,
As shown in FIG.
Is set in the first comparison area 104. Next, the degree of dissimilarity between the first comparison area 104 and the reference pattern 101 is detected (step ST102). The dissimilarity is calculated, for example, as the sum of absolute differences between the values of the pixels. Next, it is determined whether or not all of the predetermined areas have been compared (step ST10).
3) If no comparison is made, the process returns to step ST101, and the position is shifted from the first comparison area 104 as the previous area to the second comparison area 105 as a new area as shown in FIG. cure. Next, all detected dissimilarities are compared with a predetermined threshold value. If there is a degree of dissimilarity smaller than the threshold, it is determined that a pattern similar to the reference pattern is included in the input image (step ST104). On the other hand, if all the dissimilarities are equal to or larger than the threshold value, it is determined that the input image 103 does not include a pattern similar to the reference pattern.

【0004】[0004]

【発明が解決しようとする課題】従来のパターンマッチ
ングのための画像処理方法および画像処理装置は以上の
ように構成されているので、入力画像が離散的コサイン
変換(DiscreteCosine Transfo
rmation:DCT)が行われた画像である場合
に、マッチング処理を行う前に逆DCTを行う必要があ
り、処理全体の演算量が多くなるという課題があった。
JPEG,MPEGなどの標準的な画像圧縮ではすべて
DCTが行われているため、圧縮画像のデータベースに
対する大規模な画像検索を行うには、この課題は深刻で
あった。
Since the conventional image processing method and image processing apparatus for pattern matching are configured as described above, the input image is converted to a discrete cosine transform (DiscreteCosine Transform).
In the case of an image that has been subjected to (rmation: DCT), it is necessary to perform inverse DCT before performing the matching process, and there has been a problem that the amount of calculation of the entire process increases.
Since DCT is performed in all standard image compression such as JPEG and MPEG, this problem is serious in performing a large-scale image search for a database of compressed images.

【0005】この発明は上記のような課題を解決するた
めになされたもので、DCTが行われた画像への適切な
パターンマッチングを行わせることができるパターンマ
ッチングのための画像処理方法および画像処理装置を得
ることを目的とする。
SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and an image processing method and an image processing method for pattern matching that can perform appropriate pattern matching on an image subjected to DCT. The aim is to obtain a device.

【0006】[0006]

【課題を解決するための手段】この発明に係るパターン
マッチングのための画像処理方法は、基準パターンに離
散的コサイン変換を施して基準DCTパターンを作成
し、入力DCT画像から基準パターンと同じサイズの比
較領域を設定し、DCT係数を用いた内積、正規化相関
などから基準DCTパターンと比較領域との類似度を検
出し、入力画像の中で位置を変えたすべての基準パター
ンと同じサイズ領域を有する全領域と比較したか否かを
判定し、検出された類似度とあらかじめ決められたしき
い値を比較し、このしきい値より大きな類似度が存在す
る場合は、入力DCT画像の中に基準パターンと類似し
たパターンが含まれると判定し、すべての類似度がしき
い値以下の場合は、入力DCT画像には基準パターンと
類似したパターンが含まれないと判定するようにしたも
のである。
An image processing method for pattern matching according to the present invention performs a discrete cosine transform on a reference pattern to create a reference DCT pattern, and has the same size as the reference pattern from an input DCT image. The comparison area is set, the similarity between the reference DCT pattern and the comparison area is detected from the inner product using the DCT coefficient, the normalized correlation, and the like, and the same size area as all the reference patterns whose positions are changed in the input image is detected. It is determined whether or not it has been compared with all the areas having the same, and the detected similarity is compared with a predetermined threshold. If a similarity greater than this threshold exists, the input DCT image contains When it is determined that a pattern similar to the reference pattern is included, and when all the similarities are equal to or less than the threshold, a pattern similar to the reference pattern is included in the input DCT image. In which was to determine the rare no.

【0007】この発明に係るパターンマッチングのため
の画像処理方法は、基準パターンに離散的コサイン変換
を施して基準DCTパターンを作成し、複数の入力DC
T画像から1つを選択し、この入力画像選択ステップに
より選択された1つの入力DCT画像から基準パターン
と同じサイズの比較領域を設定し、DCT係数を用いた
内積、正規化相関などから基準DCTパターンと比較領
域との類似度を検出し、入力画像の中で位置を変えたす
べての基準パターンと同じサイズ領域を有する全領域と
比較したか否かを判定し、検出された類似度とあらかじ
め決められたしきい値を比較し、このしきい値より大き
な類似度が存在する場合は、入力DCT画像の中に基準
パターンと類似したパターンが含まれると判定し、すべ
ての類似度がしきい値以下の場合は、入力DCT画像に
は基準パターンと類似したパターンが含まれないと判定
し、すべての入力DCT画像を選択したか否かを判定
し、すべての画像が選択されていない場合は、入力画像
選択ステップに戻り前回とは別の入力DCT画像を選択
し直すようにしたものである。
An image processing method for pattern matching according to the present invention performs a discrete cosine transform on a reference pattern to generate a reference DCT pattern, and a plurality of input DCT patterns.
One of the T images is selected, a comparison area of the same size as the reference pattern is set from the one input DCT image selected in this input image selection step, and the reference DCT is determined from inner products using DCT coefficients, normalized correlations, and the like. The similarity between the pattern and the comparison region is detected, and it is determined whether or not all the reference patterns whose positions have been changed in the input image are compared with all regions having the same size region. The determined thresholds are compared, and if a similarity greater than this threshold exists, it is determined that a pattern similar to the reference pattern is included in the input DCT image, and all the similarities are thresholded. If the value is equal to or less than the value, it is determined that the input DCT image does not include a pattern similar to the reference pattern, and it is determined whether all the input DCT images have been selected. If not-option is the last back to the input image selection step is obtained as reselect another input DCT image.

【0008】この発明に係るパターンマッチングのため
の画像処理方法は、基準DCTパターン作成するステッ
プにおいて、離散的コサイン変換を行う領域の基準点と
基準パターンの基準点のX方向シフトおよびY方向シフ
トのずれを変えながら複数の基準DCTパターンを作成
し、類似度検出するステップにおいて、複数の基準DC
Tパターンと比較領域との類似度を検出するようにした
ものである。
In the image processing method for pattern matching according to the present invention, in the step of creating a reference DCT pattern, the X-direction shift and the Y-direction shift of the reference point of the area where the discrete cosine transform is performed and the reference point of the reference pattern are performed. In the step of creating a plurality of reference DCT patterns while changing the displacement and detecting the similarity, the plurality of reference DCT patterns are used.
The similarity between the T pattern and the comparison area is detected.

【0009】この発明に係るパターンマッチングのため
の画像処理方法は、類似度検出に用いるDCT係数を選
択する係数選択のステップを有し、類似度検出ステップ
は、選択された一部のDCT係数のみを用いて類似度を
検出するようにしたものである。
An image processing method for pattern matching according to the present invention has a coefficient selection step of selecting a DCT coefficient used for similarity detection, and the similarity detection step includes only a selected part of the DCT coefficients. Is used to detect the similarity.

【0010】この発明に係るパターンマッチングのため
の画像処理方法は、係数選択のステップと基準DCTパ
ターン作成のステップとの間に、類似度検出における演
算精度を選択されたDCT係数に応じて設定するように
したものである。
[0010] In the image processing method for pattern matching according to the present invention, between the step of selecting a coefficient and the step of creating a reference DCT pattern, the calculation accuracy in similarity detection is set according to the selected DCT coefficient. It is like that.

【0011】この発明に係るパターンマッチングのため
の画像処理方法は、演算精度設定のステップにおいて、
類似度検出における演算精度を選択されたDCT係数の
周波数に応じて設定するようにしたものである。
According to the image processing method for pattern matching according to the present invention, in the step of setting the calculation accuracy,
The calculation accuracy in the similarity detection is set according to the frequency of the selected DCT coefficient.

【0012】この発明に係るパターンマッチングのため
の画像処理方法は、基準DCTパターン作成のステップ
において、基準パターンに離散的コサイン変換を施し基
準DCTパターンの必要なDCT係数のみを作成するよ
うにしたものである。
An image processing method for pattern matching according to the present invention is such that in the step of creating a reference DCT pattern, discrete cosine transform is performed on the reference pattern to create only necessary DCT coefficients of the reference DCT pattern. It is.

【0013】この発明に係るパターンマッチングのため
の画像処理方法は、基準パターンに対し離散的コサイン
変換を施し基準DCTパターンを作成し、DCT係数を
低周波域から選択し、入力DCT画像から基準パターン
と同じサイズの比較領域を設定し、基準DCTパターン
と比較領域との類似度を選択された一部のDCT係数の
みを用いて検出し、所定の全ての領域と比較したか否か
を判定し、全ての領域とは比較していない場合は、第1
の比較領域設定のステップに戻り前回とは位置をずらし
て比較領域を設定し直し、第1の類似度に基づき候補領
域を決定し、DCT係数を高周波域から選択し、候補領
域の中から比較領域を選択し、基準DCTパターンと比
較領域との類似度を選択された一部のDCT係数のみを
用いて検出し、候補領域の全てと比較したか否かを判定
し、全ての領域と比較していない場合は、第2の比較領
域設定のステップに戻り前回とは異なる候補領域を選択
し直し、検出された類似度とあらかじめ決められたしき
い値を比較し、しきい値より大きな類似度が存在する場
合は、入力画像の中に基準パターンと類似したパターン
が含まれると判定し、全ての類似度がしきい値以下の場
合は、入力画像には基準パターンと類似したパターンが
含まれないと判定するようにしたものである。
An image processing method for pattern matching according to the present invention performs a discrete cosine transform on a reference pattern to create a reference DCT pattern, selects a DCT coefficient from a low frequency range, and outputs a reference pattern from an input DCT image. A comparison area having the same size as that of the reference area is set, the similarity between the reference DCT pattern and the comparison area is detected using only selected DCT coefficients, and it is determined whether or not the similarity is compared with all the predetermined areas. , If not compared to all regions, the first
Returning to the comparison area setting step, the comparison area is set again by shifting the position from the previous time, the candidate area is determined based on the first similarity, the DCT coefficient is selected from the high frequency area, and the comparison is performed from among the candidate areas. A region is selected, the similarity between the reference DCT pattern and the comparison region is detected using only some of the selected DCT coefficients, and it is determined whether or not all regions have been compared with the candidate region. If not, the process returns to the step of setting the second comparison area, selects a candidate area different from the previous area, compares the detected similarity with a predetermined threshold, and sets a similarity larger than the threshold. If there is a degree, it is determined that a pattern similar to the reference pattern is included in the input image.If all the degrees of similarity are equal to or less than the threshold, the input image includes a pattern similar to the reference pattern. Judge not to be In which was to so that.

【0014】この発明に係るパターンマッチングのため
の画像処理方法は、候補領域決定のステップにおいて、
第1の類似度検出のステップで検出された類似度と所定
のしきい値の比較によって決定するようにしたものであ
る。
An image processing method for pattern matching according to the present invention includes the steps of:
This is determined by comparing the similarity detected in the first similarity detection step with a predetermined threshold value.

【0015】この発明に係るパターンマッチングのため
の画像処理方法は、候補領域決定のステップにおいて、
第1の類似度検出のステップで検出された類似度の大き
い方から所定の数だけ選択するようにしたものである。
In the image processing method for pattern matching according to the present invention, in the step of determining a candidate area,
A predetermined number is selected from the larger similarity detected in the first similarity detection step.

【0016】この発明に係る画像処理装置は、基準パタ
ーンに離散的コサイン変換を施して基準DCTパターン
を作成し、入力DCT画像から基準パターンと同じサイ
ズの比較領域を設定し、DCT係数を用いた内積、正規
化相関などから基準DCTパターンと比較領域との類似
度を検出し、入力画像の中で位置を変えたすべての基準
パターンと同じサイズ領域を有する全領域と比較したか
否かを判定し、類似度検出の処理で検出された類似度と
あらかじめ決められたしきい値を比較し、このしきい値
より大きな類似度が存在する場合は、入力DCT画像の
中に基準パターンと類似したパターンが含まれると判定
し、すべての類似度がしきい値以下の場合は、入力DC
T画像には基準パターンと類似したパターンが含まれな
いと判定するようにしたものである。
The image processing apparatus according to the present invention creates a reference DCT pattern by performing discrete cosine transform on the reference pattern, sets a comparison area of the same size as the reference pattern from the input DCT image, and uses DCT coefficients. The similarity between the reference DCT pattern and the comparison area is detected from the inner product, the normalized correlation, and the like, and it is determined whether or not all the reference patterns whose positions have been changed in the input image have been compared with the entire area having the same size area. Then, the similarity detected in the similarity detection processing is compared with a predetermined threshold value. If there is a similarity value greater than the threshold value, the similarity to the reference pattern is found in the input DCT image. When it is determined that a pattern is included and all the similarities are equal to or smaller than the threshold, the input DC
The T image is determined not to include a pattern similar to the reference pattern.

【0017】この発明に係る画像処理装置は、基準パタ
ーンに離散的コサイン変換を施して基準DCTパターン
を作成し、複数の入力DCT画像から1つを選択し、こ
の選択された1つの入力DCT画像から基準パターンと
同じサイズの比較領域を設定し、DCT係数を用いた内
積、正規化相関などから基準DCTパターンと比較領域
との類似度を検出し、入力画像の中で位置を変えたすべ
ての基準パターンと同じサイズ領域を有する全領域と比
較したか否かを判定し、類似度検出の処理で検出された
類似度とあらかじめ決められたしきい値を比較し、この
しきい値より大きな類似度が存在する場合は、入力DC
T画像の中に基準パターンと類似したパターンが含まれ
ると判定し、すべての類似度がしきい値以下の場合は、
入力DCT画像には基準パターンと類似したパターンが
含まれないと判定し、すべての入力DCT画像を選択し
たか否かを判定し、すべての画像が選択されていない場
合は、入力画像選択の処理に戻り前回とは別の入力DC
T画像を選択し直すようにしたものである。
An image processing apparatus according to the present invention performs a discrete cosine transform on a reference pattern to create a reference DCT pattern, selects one from a plurality of input DCT images, and selects one of the selected input DCT images. , A comparison area of the same size as the reference pattern is set, the similarity between the reference DCT pattern and the comparison area is detected from the inner product using the DCT coefficient, the normalized correlation, and the like. It is determined whether or not the comparison has been made with all regions having the same size region as the reference pattern, and the similarity detected in the similarity detection processing is compared with a predetermined threshold value. If there is a degree, input DC
When it is determined that a pattern similar to the reference pattern is included in the T image, and all the similarities are equal to or less than the threshold,
It is determined that the input DCT image does not include a pattern similar to the reference pattern, it is determined whether all the input DCT images have been selected, and if not all the images have been selected, the input image selection process is performed. Return to another input DC
This is to reselect the T image.

【0018】この発明に係る画像処理装置は、基準パタ
ーンに対し離散的コサイン変換を施し基準DCTパター
ンを作成し、DCT係数を低周波域から選択し、入力D
CT画像から基準パターンと同じサイズの比較領域を設
定し、基準DCTパターンと比較領域との類似度を選択
された一部のDCT係数のみを用いて検出し、所定の全
ての領域と比較したか否かを判定し、全ての領域とは比
較していない場合は、第1の比較領域設定の処理に戻り
前回とは位置をずらして比較領域を設定し直し、第1の
類似度に基づき候補領域を決定し、DCT係数を高周波
域から選択し、候補領域の中から比較領域を選択し、基
準DCTパターンと比較領域との類似度を選択された一
部のDCT係数のみを用いて検出し、候補領域の全てと
比較したか否かを判定し、全ての領域と比較していない
場合は、第2の比較領域設定の処理に戻り前回とは異な
る候補領域を選択し直し、検出された類似度とあらかじ
め決められたしきい値を比較し、しきい値より大きな類
似度が存在する場合は、入力画像の中に基準パターンと
類似したパターンが含まれると判定し、全ての類似度が
しきい値以下の場合は、入力画像には基準パターンと類
似したパターンが含まれないと判定するようにしたもの
である。
An image processing apparatus according to the present invention performs a discrete cosine transform on a reference pattern to create a reference DCT pattern, selects a DCT coefficient from a low frequency range, and inputs
A comparison area of the same size as the reference pattern is set from the CT image, and the similarity between the reference DCT pattern and the comparison area is detected using only selected DCT coefficients and compared with all predetermined areas. If not, the process returns to the first comparison region setting process, and the position is shifted from the last time to set the comparison region again, and the candidate is determined based on the first similarity. A region is determined, a DCT coefficient is selected from a high-frequency region, a comparison region is selected from candidate regions, and a similarity between the reference DCT pattern and the comparison region is detected using only selected DCT coefficients. It is determined whether or not all the candidate areas have been compared, and if not compared with all the areas, the process returns to the second comparison area setting process, and a candidate area different from the previous area is selected again to detect Similarity and predetermined threshold The values are compared, and if a similarity greater than the threshold value is present, it is determined that a pattern similar to the reference pattern is included in the input image. The image is determined not to include a pattern similar to the reference pattern.

【0019】[0019]

【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.図1はこの発明の実施の形態1による画
像処理装置を示す構成図、図2(a)はこの発明の実施
の形態1によるパターンマッチングのための画像処理方
法における基準パターンを示す説明図、図2(b)はこ
の発明の実施の形態1によるパターンマッチングのため
の画像処理方法における入力画像を示す説明図、図3は
この発明の実施の形態1によるパターンマッチングのた
めの画像処理方法を示すフローチャートである。図4は
この発明の実施の形態1によるパターンマッチングのた
めの画像処理方法の入力DCT画像を示す構成図であ
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 is a block diagram showing an image processing apparatus according to Embodiment 1 of the present invention, and FIG. 2A is an explanatory diagram showing a reference pattern in an image processing method for pattern matching according to Embodiment 1 of the present invention. 2 (b) is an explanatory diagram showing an input image in the image processing method for pattern matching according to the first embodiment of the present invention, and FIG. 3 shows an image processing method for pattern matching according to the first embodiment of the present invention. It is a flowchart. FIG. 4 is a configuration diagram showing an input DCT image of the image processing method for pattern matching according to the first embodiment of the present invention.

【0020】図において、1は基準パターン11にDC
Tを施し基準DCTパターン13を作成する基準DCT
パターン作成手段、2は基準DCTパターン作成手段1
から入力した入力DCT画像17に対してDCTブロッ
ク14毎に区分された比較領域18の設定を行う比較領
域設定手段、3は基準パターン11と比較領域設定手段
2により設定された比較領域18との類似度をDCT係
数を用いて検出する類似度検出手段、4は入力DCT画
像17の中で位置を変えたすべての基準パターン11と
同じサイズのすべての領域と比較したか否かを判定する
繰り返し判定手段、5は類似度検出手段3により検出さ
れた類似度としきい値とを比較することにより基準パタ
ーン11に類似したパターンが含まれるか否かを判定す
る類似度判定手段である。
In FIG. 1, reference numeral 1 denotes a DC
Reference DCT for applying T to create reference DCT pattern 13
Pattern creation means 2, reference DCT pattern creation means 1
Area setting means 3 for setting a comparison area 18 divided for each DCT block 14 with respect to an input DCT image 17 input from the CPU 3, and a comparison area 3 between the reference pattern 11 and the comparison area 18 set by the comparison area setting means 2. The similarity detecting means 4 for detecting the similarity using the DCT coefficient 4 repeatedly determines whether or not the input DCT image 17 has been compared with all the areas of the same size as all the reference patterns 11 whose positions have been changed. The determining means 5 is a similarity determining means for determining whether or not a pattern similar to the reference pattern 11 is included by comparing the similarity detected by the similarity detecting means 3 with a threshold value.

【0021】次に動作について説明する。まず、基準D
CTパターン作成手段1において基準パターン11にD
CTを施して基準DCTパターン13を作成する(ステ
ップST1)。図2(a)に示されたサイズ12(16
×16)の基準パターン11に対し、8×8単位でDC
Tを行うと、図2(b)に示すように4個のDCTブロ
ック14からなる基準DCTパターン13が作成され
る。DCTブロック14の各要素はDCT係数16と呼
ばれ、原画像の対応ブロックにおける空間周波数成分を
表す。なお、基準DCTパターン13の作成時にDCT
が必要であるが、一般に基準パターン11は入力画像に
比べてかなり小さいため、この演算量は問題とはならな
い。次に、比較領域設定手段2において、入力DCT画
像17から基準パターン11と同じサイズの比較領域1
8を設定する(ステップST2)。図4に示すように入
力DCT画像17は8×8の単位でブロック化されてお
り、比較領域18はこのブロック単位の位置で設定す
る。
Next, the operation will be described. First, criterion D
In the CT pattern creating means 1, the reference pattern 11
CT is performed to create a reference DCT pattern 13 (step ST1). The size 12 (16) shown in FIG.
× 16) with respect to the reference pattern 11 in units of 8 × 8
When T is performed, a reference DCT pattern 13 including four DCT blocks 14 is created as shown in FIG. Each element of the DCT block 14 is called a DCT coefficient 16 and represents a spatial frequency component in a corresponding block of the original image. Note that when the reference DCT pattern 13 is created, the DCT
However, since the reference pattern 11 is generally much smaller than the input image, the amount of calculation does not matter. Next, in the comparison area setting means 2, the comparison area 1 having the same size as the reference pattern 11 is input from the input DCT image 17.
8 is set (step ST2). As shown in FIG. 4, the input DCT image 17 is divided into blocks of 8.times.8, and the comparison area 18 is set at the position of each block.

【0022】次に、類似度検出手段3において、基準D
CTパターン13と比較領域18との類似度を検出する
(ステップST3)。類似度は、DCT係数を用いた内
積、正規化相関などにより求められる。続いて、繰り返
し判定手段4において、所定の領域のすべてと比較した
か否かを判定する(ステップST4)。所定の領域すべ
てとは、例えば入力画像の中で位置を変えたすべての基
準パターン11と同じサイズの領域である。ここですべ
ての領域とは比較していない場合は、ステップST2に
戻り前回とは位置をずらして、再び比較領域18の設定
を行う。
Next, in the similarity detecting means 3, the reference D
The similarity between the CT pattern 13 and the comparison area 18 is detected (step ST3). The similarity is obtained by an inner product using a DCT coefficient, a normalized correlation, or the like. Subsequently, the repetition determination means 4 determines whether or not the comparison has been made with all the predetermined regions (step ST4). All the predetermined regions are, for example, regions having the same size as all the reference patterns 11 whose positions have been changed in the input image. If the comparison has not been made with all the areas, the process returns to step ST2, and the position is shifted from the previous time, and the comparison area 18 is set again.

【0023】最後に、類似度判定手段5において、類似
度検出手段3で検出された類似度とあらかじめ決められ
たしきい値を比較し、しきい値より大きな類似度が存在
する場合は、入力DCT画像17の中に基準パターン1
1と類似したパターンが含まれると判定する(ステップ
ST5)。一方、すべての類似度がしきい値以下の場合
は、入力DCT画像17には基準パターン11と類似し
たパターンが含まれないと判定する。
Finally, the similarity determination means 5 compares the similarity detected by the similarity detection means 3 with a predetermined threshold value. Reference pattern 1 in DCT image 17
It is determined that a pattern similar to 1 is included (step ST5). On the other hand, when all the similarities are equal to or smaller than the threshold, it is determined that the input DCT image 17 does not include a pattern similar to the reference pattern 11.

【0024】以上のように、この実施の形態1によれ
ば、入力DCT画像17のDCT係数16を直接用いて
マッチング処理を行うので、入力DCT画像17の全体
に逆DCTを行うという前処理が必要ない。このため、
入力DCT画像17に対するマッチング処理を効率的に
実施できるなどの効果が得られる。
As described above, according to the first embodiment, since the matching processing is performed by directly using the DCT coefficient 16 of the input DCT image 17, the preprocessing of performing the inverse DCT on the entire input DCT image 17 is performed. unnecessary. For this reason,
The effect is obtained that the matching processing for the input DCT image 17 can be efficiently performed.

【0025】実施の形態2.図5はこの発明の実施の形
態2による画像処理装置を示す構成図、図6はこの発明
の実施の形態2によるパターンマッチングのための画像
処理方法を示すフローチャートである。実施の形態1と
同一の符号については同一または相当部分を示すので説
明を省略する。6は複数の入力DCT画像17から1つ
を選択する入力画像選択手段、7はすべての入力DCT
画像17を選択したか否かを判定する終了判定手段であ
る。
Embodiment 2 FIG. 5 is a block diagram showing an image processing apparatus according to Embodiment 2 of the present invention, and FIG. 6 is a flowchart showing an image processing method for pattern matching according to Embodiment 2 of the present invention. The same reference numerals as those in the first embodiment denote the same or corresponding parts, and a description thereof will not be repeated. 6 is an input image selecting means for selecting one from a plurality of input DCT images 17, and 7 is all input DCT images.
This is an end determination unit that determines whether the image 17 has been selected.

【0026】次に動作について説明する。実施の形態2
による画像処理は、複数の入力DCT画像17に対し、
基準パターン11に類似したパターンが含まれるか否か
判定するものである。まず、基準DCTパターン作成手
段1において基準パターン11にDCTを施して複数の
基準DCTパターン13を作成し(ステップST1)、
入力画像選択手段6において、複数の入力DCT画像1
7から1個を選択する(ステップST6)。次に、比較
領域設定手段2において、入力画像選択手段6により選
択された入力DCT画像17から基準パターン11と同
じサイズの比較領域18を設定する(ステップST
2)。次に、類似度検出手段3において、基準DCTパ
ターン13と比較領域18との類似度を検出する(ステ
ップST3)。続いて、繰り返し判定手段4において、
所定の領域すべてと比較したか否かを判定する(ステッ
プST4)。ここですべての領域とは比較していない場
合は、ステップST2に戻り前回とは位置をずらして比
較領域18を設定し直す。
Next, the operation will be described. Embodiment 2
Is performed on a plurality of input DCT images 17
This is for determining whether or not a pattern similar to the reference pattern 11 is included. First, the reference DCT pattern creating means 1 applies DCT to the reference pattern 11 to create a plurality of reference DCT patterns 13 (step ST1).
In the input image selecting means 6, a plurality of input DCT images 1
One is selected from 7 (step ST6). Next, the comparison area setting means 2 sets a comparison area 18 having the same size as the reference pattern 11 from the input DCT image 17 selected by the input image selection means 6 (step ST).
2). Next, the similarity detection means 3 detects the similarity between the reference DCT pattern 13 and the comparison area 18 (step ST3). Subsequently, in the repetition determination means 4,
It is determined whether the comparison has been made with all the predetermined areas (step ST4). If the comparison has not been made with all the areas, the process returns to step ST2, and the position is shifted from the previous time to set the comparison area 18 again.

【0027】続いて、類似度判定手段5において、検出
された類似度とあらかじめ決められたしきい値を比較す
る(ステップST5)。その結果、しきい値より大きな
類似度が存在する場合は、選択された入力DCT画像1
7の中に基準パターン11と類似したパターンが含まれ
ると判定する。一方、すべての類似度がしきい値以下の
場合は、選択された入力DCT画像17には基準パター
ン11と類似したパターンが含まれないと判定する。最
後に、終了判定手段7において、すべての入力DCT画
像17を選択したか否かを判定し(ステップST7)、
すべての画像は選択されていない場合は、ステップST
6に戻り前回とは別の入力DCT画像17を選択し直
す。
Subsequently, the similarity determination means 5 compares the detected similarity with a predetermined threshold value (step ST5). As a result, if a similarity greater than the threshold value exists, the selected input DCT image 1
It is determined that a pattern similar to the reference pattern 11 is included in 7. On the other hand, if all the similarities are equal to or smaller than the threshold, it is determined that the selected input DCT image 17 does not include a pattern similar to the reference pattern 11. Finally, the end determination means 7 determines whether all input DCT images 17 have been selected (step ST7).
If all images have not been selected, step ST
6, the input DCT image 17 different from the previous one is selected again.

【0028】以上のように、この実施の形態2によれ
ば、基準DCTパターン13の作成を入力されて画像毎
に実行する必要がないため、複数の入力DCT画像17
に対するマッチング処理の演算量を低減することができ
るなどの効果が得られる。
As described above, according to the second embodiment, there is no need to input the creation of the reference DCT pattern 13 and execute it for each image.
For example, the amount of calculation in the matching process can be reduced.

【0029】実施の形態3.図7はこの発明の実施の形
態3による画像処理装置で使用するDCT領域を示す構
成図である。図において、実施の形態1と同一の符号に
ついては同一または相当部分を示すので説明を省略す
る。また、この発明の実施の形態3による画像処理装置
での構成は実施の形態1と同一であるため説明を省略す
る。
Embodiment 3 FIG. 7 is a configuration diagram showing a DCT area used in the image processing device according to the third embodiment of the present invention. In the figure, the same reference numerals as those in the first embodiment denote the same or corresponding parts, and a description thereof will not be repeated. The configuration of the image processing apparatus according to the third embodiment of the present invention is the same as that of the first embodiment, and a description thereof will be omitted.

【0030】次に動作について説明する。図8はこの発
明の実施の形態3によるパターンマッチングのための画
像処理方法を示すフローチャートである。まず、基準パ
ターンにDCTを施して基準DCTパターン13を作成
する。このとき図7に示すように、DCTを行う領域の
基準点と基準パターン11の基準点のずれ(x方向シフ
ト32とy方向シフト33)を変えながら複数の基準D
CTパターン13を作成する(ステップST1)。次
に、入力DCT画像17から基準パターン11と同じサ
イズの比較領域18を設定する(ステップST2)。次
に、複数の基準DCTパターン13と比較領域18との
類似度を検出する。複数の基準DCTパターン13があ
るため、類似度も複数求まり、その中で最大値をその比
較領域18に対する類似度とする(ステップST3)。
Next, the operation will be described. FIG. 8 is a flowchart showing an image processing method for pattern matching according to Embodiment 3 of the present invention. First, a DCT is applied to the reference pattern to create a reference DCT pattern 13. At this time, as shown in FIG. 7, while changing the shift (x-direction shift 32 and y-direction shift 33) between the reference point of the DCT area and the reference point of the reference pattern 11, a plurality of reference D
A CT pattern 13 is created (step ST1). Next, a comparison area 18 having the same size as the reference pattern 11 is set from the input DCT image 17 (step ST2). Next, the similarity between the plurality of reference DCT patterns 13 and the comparison area 18 is detected. Since there are a plurality of reference DCT patterns 13, a plurality of similarities are also obtained, and the maximum value is set as the similarity to the comparison area 18 (step ST3).

【0031】続いて、所定の領域すべてと比較したか否
かを判定する。すべての領域とは比較していない場合
は、ステップST2に戻り前回とは位置をずらして比較
領域を設定し直す(ステップST4)。最後に、検出さ
れた類似度とあらかじめ決められたしきい値を比較し、
その比較の結果、しきい値より大きな類似度が存在する
場合は、入力画像の中に基準パターン11と類似したパ
ターンが含まれると判定する。一方、すべての類似度が
しきい値以下の場合は、入力DCT画像17には基準パ
ターン11と類似したパターンが含まれないと判定する
(ステップST5)。なお、一般に、基準パターン11
が同じでも、DCTを行うブロック分割の位置が異なる
とDCT画像31も異なる。
Subsequently, it is determined whether or not the comparison has been made with all the predetermined areas. If not compared with all areas, the process returns to step ST2, and the position is shifted from the previous time to set a comparison area again (step ST4). Finally, compare the detected similarity with a predetermined threshold,
As a result of the comparison, when there is a similarity greater than the threshold value, it is determined that a pattern similar to the reference pattern 11 is included in the input image. On the other hand, if all the similarities are equal to or smaller than the threshold value, it is determined that the input DCT image 17 does not include a pattern similar to the reference pattern 11 (step ST5). In general, the reference pattern 11
Are the same, the DCT image 31 is different if the position of the block division for performing the DCT is different.

【0032】以上のように、この実施の形態3によれ
ば、ブロック分割の位置が異なる複数の基準DCTパタ
ーン13を用意するようにしたので、DCT画像31の
ブロック分割の位置に依存しないマッチング処理も行う
ことができるなどの効果が得られる。
As described above, according to the third embodiment, since a plurality of reference DCT patterns 13 having different block division positions are prepared, the matching processing independent of the block division position of the DCT image 31 is performed. And the like.

【0033】実施の形態4.図9はこの発明の実施の形
態4による画像処理装置を示す構成図、図10はこの発
明の実施の形態4によるパターンマッチングのための画
像処理方法を示すフローチャートである。図において、
実施の形態1と同一の符号については同一または相当部
分を示すので説明を省略する。8は類似度検出に用いる
DCT係数を選択するDCT係数選択手段であり、例え
ばDCT領域31のサイズが8×8の場合はDCT係数
の数は64であるが、このうち低周波領域の8係数を選
択する。
Embodiment 4 FIG. FIG. 9 is a block diagram showing an image processing apparatus according to Embodiment 4 of the present invention, and FIG. 10 is a flowchart showing an image processing method for pattern matching according to Embodiment 4 of the present invention. In the figure,
The same reference numerals as those in the first embodiment denote the same or corresponding parts, and a description thereof will not be repeated. Reference numeral 8 denotes DCT coefficient selection means for selecting a DCT coefficient used for similarity detection. For example, when the size of the DCT area 31 is 8 × 8, the number of DCT coefficients is 64. Select

【0034】次に動作について説明する。まず、DCT
係数選択手段8において類似度検出に用いるDCT係数
を選択し(ステップST8)、次に基準DCTパターン
作成手段1において、基準パターンにDCTを施して基
準DCTパターン13の中の必要なDCT係数を求める
(ステップST1)。ここでは低周波領域の8係数を求
めるだけでよい。次に、比較領域設定手段2において入
力DCT画像17から基準パターン11と同じサイズの
比較領域18を設定する(ステップST2)。次に、類
似度検出手段3において基準DCTパターン13と比較
領域18の類似度を選択された一部のDCT係数のみを
用いて検出し(ステップST3)、繰り返し判定手段4
において所定の領域すべてと比較したか否かを判定する
(ステップST4)。
Next, the operation will be described. First, DCT
The DCT coefficient used for the similarity detection is selected by the coefficient selecting means 8 (step ST8), and the reference DCT is applied to the reference pattern by the reference DCT pattern creating means 1 to obtain a necessary DCT coefficient in the reference DCT pattern 13. (Step ST1). Here, it is only necessary to find eight coefficients in the low frequency region. Next, a comparison area 18 having the same size as the reference pattern 11 is set from the input DCT image 17 in the comparison area setting means 2 (step ST2). Next, the similarity detection means 3 detects the similarity between the reference DCT pattern 13 and the comparison area 18 using only selected DCT coefficients (step ST3), and repeats the determination means 4.
In step ST4, it is determined whether or not comparison has been made with all the predetermined regions.

【0035】すべての領域と比較していない場合は、ス
テップST2に戻り前回とは位置をずらして比較領域1
8を設定し直す。最後に、類似度判定手段5において、
検出された類似度とあらかじめ決められたしきい値を比
較する。その結果、しきい値より大きな類似度が存在す
る場合は、入力画像の中に基準パターンと類似したパタ
ーンが含まれると判定する。一方、すべての類似度がし
きい値以下の場合は、入力画像には基準パターン11と
類似したパターンが含まれないと判定する(ステップS
T5)。この画像処理方法において、例えば8係数を選
択した場合、類似度を求めるための演算量はすべてのD
CT係数を使う場合に比べて8分の1になる利点があ
る。
If the comparison has not been made with all the areas, the process returns to step ST2 and the position is shifted from the previous area to make the comparison area 1
Set 8 again. Finally, in the similarity determination means 5,
The detected similarity is compared with a predetermined threshold. As a result, when there is a similarity greater than the threshold, it is determined that the input image includes a pattern similar to the reference pattern. On the other hand, if all the similarities are equal to or smaller than the threshold value, it is determined that the input image does not include a pattern similar to the reference pattern 11 (step S).
T5). In this image processing method, for example, when eight coefficients are selected, the amount of calculation for obtaining the similarity is all D
There is an advantage that it becomes 1/8 as compared with the case where the CT coefficient is used.

【0036】以上のように、この実施の形態4によれ
ば、入力DCT画像17に対するマッチング処理の演算
量および基準DCTパターン13の作成のための演算量
を低減することができる効果が得られる。
As described above, according to the fourth embodiment, it is possible to reduce the amount of calculation for the matching process on the input DCT image 17 and the amount of calculation for creating the reference DCT pattern 13.

【0037】実施の形態5.図11はこの発明の実施の
形態5による画像処理装置を示す構成図、図12はこの
発明の実施の形態5によるパターンマッチングのための
画像処理方法を示すフローチャートである。図におい
て、実施の形態1および4と同一の符号については同一
または相当部分を示すので説明を省略する。9は類似度
検出における演算精度を選択されたDCT係数の周波数
に応じて設定する演算精度設定手段であり、例えば、低
周波域なら高い精度、高周波域なら低い精度に設定す
る。これは、一般の画像をDCTすると、低周波域のD
CT係数の表現には高い精度が必要だが、高周波域のD
CT係数の表現には低い精度で十分であるという特性を
反映したものである。
Embodiment 5 FIG. 11 is a block diagram showing an image processing apparatus according to Embodiment 5 of the present invention, and FIG. 12 is a flowchart showing an image processing method for pattern matching according to Embodiment 5 of the present invention. In the figure, the same reference numerals as those in the first and fourth embodiments denote the same or corresponding parts, and thus the description thereof will be omitted. Numeral 9 is a calculation accuracy setting means for setting the calculation accuracy in the similarity detection in accordance with the frequency of the selected DCT coefficient. This is because when DCT is performed on a general image, D
Although high precision is required for the expression of CT coefficients, D
This reflects the characteristic that low precision is sufficient for expressing the CT coefficient.

【0038】次に動作について説明する。まずDCT係
数選択手段8において、類似度検出に用いるDCT係数
を選択する(ステップST8)。次に、演算精度設定手
段9において、類似度検出における演算精度を選択され
たDCT係数の周波数に応じて設定する(ステップST
9)。次に、基準DCTパターン作成手段1において、
基準パターンにDCTを施して基準DCTパターン13
の中の必要なDCT係数を求める(ステップST1)。
次に、比較領域設定手段2において、入力DCT画像か
ら基準パターンと同じサイズの比較領域を設定する(ス
テップST2)。次に、類似度検出手段3において、基
準DCTパターン13と比較領域18との類似度を選択
された一部のDCT係数のみを用いて検出する(ステッ
プST3)。
Next, the operation will be described. First, the DCT coefficient selection means 8 selects a DCT coefficient used for similarity detection (step ST8). Next, the calculation accuracy setting means 9 sets the calculation accuracy in the similarity detection according to the frequency of the selected DCT coefficient (step ST).
9). Next, in the reference DCT pattern creating means 1,
DCT is applied to the reference pattern to obtain the reference DCT pattern 13
The required DCT coefficient in is obtained (step ST1).
Next, the comparison area setting means 2 sets a comparison area of the same size as the reference pattern from the input DCT image (step ST2). Next, the similarity detection means 3 detects the similarity between the reference DCT pattern 13 and the comparison area 18 using only selected DCT coefficients (step ST3).

【0039】続いて、繰り返し判定手段4において、所
定の領域すべてと比較したか否かを判定し(ステップS
T4)、すべての領域とは比較していない場合は、ステ
ップST2に戻り前回とは位置をずらして比較領域18
を設定し直す。最後に、類似度判定手段5において、検
出された類似度とあらかじめ決められたしきい値を比較
する。その結果、しきい値より大きな類似度が存在する
場合は、入力画像の中に基準パターンと類似したパター
ンが含まれると判定する。一方、すべての類似度がしき
い値以下の場合は、入力画像には基準パターンと類似し
たパターンが含まれないと判定する(ステップST
5)。
Subsequently, the repetition determination means 4 determines whether or not the comparison has been made with all the predetermined areas (step S).
T4) If the comparison has not been performed with all the regions, the process returns to step ST2 and the position is shifted from the previous region to compare the region 18
Set again. Finally, the similarity determination means 5 compares the detected similarity with a predetermined threshold. As a result, when there is a similarity greater than the threshold, it is determined that the input image includes a pattern similar to the reference pattern. On the other hand, if all the similarities are equal to or smaller than the threshold value, it is determined that the input image does not include a pattern similar to the reference pattern (step ST
5).

【0040】以上のように、この実施の形態5によれ
ば、マッチング処理における演算精度を適宜小さくする
ことによりH/Wによる実行の消費電力を低減すること
できるとともに、マッチング性能を低下させることなく
H/Wによる実行の消費電力を低減することができるな
どの効果が得られる。
As described above, according to the fifth embodiment, the power consumption of execution by H / W can be reduced by appropriately reducing the calculation accuracy in the matching processing, and the matching performance is not reduced. There are obtained effects such as reduction in power consumption of execution by H / W.

【0041】実施の形態6.図13はこの発明の実施の
形態6による画像処理装置を示す構成図、図14はこの
発明の実施の形態6によるパターンマッチングのための
画像処理方法を示すフローチャートである。図におい
て、実施の形態1、4および5と同一の符号については
同一または相当部分を示すので説明を省略する。20は
第1の類似度検出手段22で用いるDCT係数を低周波
域から選択する第1のDCT係数選択手段、21は入力
DCT画像17から基準パターン11と同じサイズの比
較領域18を設定する第1の比較領域設定手段、22は
基準DCTパターン13と比較領域18との類似度を選
択された一部のDCT係数のみを用いて検出する第1の
類似度検出手段、23は所定の領域すべてと比較したか
否かを判定する第1の繰り返し判定手段である。
Embodiment 6 FIG. FIG. 13 is a block diagram showing an image processing apparatus according to Embodiment 6 of the present invention, and FIG. 14 is a flowchart showing an image processing method for pattern matching according to Embodiment 6 of the present invention. In the figure, the same reference numerals as those in the first, fourth, and fifth embodiments denote the same or corresponding parts, and a description thereof will not be repeated. Reference numeral 20 denotes a first DCT coefficient selection unit that selects a DCT coefficient used in the first similarity detection unit 22 from a low frequency band. Reference numeral 21 denotes a second setting unit that sets a comparison area 18 having the same size as the reference pattern 11 from the input DCT image 17. The first comparison area setting means 22 is a first similarity detection means for detecting the similarity between the reference DCT pattern 13 and the comparison area 18 using only selected DCT coefficients. This is a first repetition determination means for determining whether or not the comparison has been made.

【0042】24は第1の類似度に基づき候補領域を決
定する候補領域決定手段、25は第2の類似度検出手段
27で用いるDC係数を高周波域から選択する第2のD
CT係数選択手段、26は候補領域の中から比較領域1
8を選択する第2の比較領域設定手段、27は基準DC
Tパターン13と比較領域18との類似度を選択された
一部のDCT係数のみを用いて検出する第2の類似度検
出手段、28は候補領域すべてと比較したか否かを判定
する第2の繰り返し判定手段である。
Reference numeral 24 denotes a candidate area determining means for determining a candidate area based on the first similarity, and reference numeral 25 denotes a second D for selecting a DC coefficient used in the second similarity detecting means 27 from a high frequency band.
CT coefficient selecting means 26 selects comparison region 1 from the candidate regions.
The second comparison area setting means for selecting 8 is a reference DC.
Second similarity detecting means for detecting the similarity between the T pattern 13 and the comparison area 18 using only selected DCT coefficients, and a second similarity detection means 28 for determining whether or not all the candidate areas have been compared Is a repetition determination means.

【0043】次に動作について説明する。まず基準DC
Tパターン作成手段1において、基準パターンに対しD
CTを施し基準DCTパターン13を作成し(ステップ
ST1)、第1のDCT係数選択手段20において、第
1の類似度検出手段22で用いるDCT係数を低周波域
から選択する(ステップST10)。次に、第1の比較
領域設定手段21において、入力DCT画像17から基
準パターン11と同じサイズの比較領域18を設定し
(ステップST11)、次に、第1の類似度検出手段2
2において、基準DCTパターン13と比較領域18と
の類似度を選択された一部のDCT係数のみを用いて検
出する(ステップST12)。続いて、第1の繰り返し
判定手段23において、所定の領域すべてと比較したか
否かを判定し(ステップST13)、すべての領域とは
比較していない場合は、ステップST11に戻り前回と
は位置をずらして比較領域18を設定し直す。
Next, the operation will be described. First, the reference DC
In the T pattern creating means 1, D
CT is performed to create a reference DCT pattern 13 (step ST1), and the first DCT coefficient selection means 20 selects a DCT coefficient used by the first similarity detection means 22 from a low frequency band (step ST10). Next, in the first comparison area setting means 21, a comparison area 18 having the same size as the reference pattern 11 is set from the input DCT image 17 (step ST11).
In 2, the similarity between the reference DCT pattern 13 and the comparison area 18 is detected using only selected DCT coefficients (step ST12). Subsequently, the first repetition determination means 23 determines whether or not the comparison has been made with all the predetermined regions (step ST13). If the comparison has not been made with all the regions, the process returns to step ST11 and returns to step ST11. Is shifted to set the comparison area 18 again.

【0044】続いて、候補領域決定手段24において、
第1の類似度に基づき候補領域を決定する(ステップS
T14)。決定の方法としては、あらかじめ決めておい
たしきい値以上の類似度を示す領域を選択する方法や類
似度が高い方から所定の数だけ領域を選択するなどがあ
る。次に、第2のDCT係数選択手段25において、第
2の類似度検出手段27で用いるDCT係数を高周波域
から選択する(ステップST15)。次に、第2の比較
領域設定手段26において、候補領域の中から比較領域
18を選択する(ステップST16)。次に、第2の類
似度検出手段27において、基準DCTパターン13と
比較領域18との類似度を選択された一部のDCT係数
のみを用いて検出する(ステップST17)。
Subsequently, in the candidate area determining means 24,
A candidate area is determined based on the first similarity (step S
T14). As a determination method, there are a method of selecting a region having a similarity equal to or higher than a predetermined threshold value, and a method of selecting a predetermined number of regions from the one with the highest similarity. Next, the second DCT coefficient selection unit 25 selects a DCT coefficient used in the second similarity detection unit 27 from a high frequency band (step ST15). Next, the comparison area 18 is selected from the candidate areas by the second comparison area setting means 26 (step ST16). Next, the second similarity detection means 27 detects the similarity between the reference DCT pattern 13 and the comparison area 18 using only selected DCT coefficients (step ST17).

【0045】続いて、第2の繰り返し判定手段28にお
いて、候補領域すべてと比較したか否かを判定する(ス
テップST18)。すべての領域とは比較していない場
合は、ステップST16に戻り前回とは異なる候補領域
を選択し直す。最後に、類似度判定手段5において、検
出された類似度とあらかじめ決められたしきい値を比較
する。その結果、しきい値より大きな類似度が存在する
場合は、入力画像の中に基準パターンと類似したパター
ンが含まれると判定する。一方、すべての類似度がしき
い値以下の場合は、入力画像には基準パターンと類似し
たパターンが含まれないと判定する(ステップST
5)。DCT係数の低周波域は元の画像の粗い特徴を反
映している。一方、高周波域は元の画像の細かい特徴を
反映している。そこでこの画像処理方法では、候補の絞
り込みの段階での類似度検出には低周波域のDCT係数
を用い、最終的な判定のための類似度検出では高周波域
のDCT係数を用いるようにしている。
Subsequently, the second repetition determination means 28 determines whether or not all the candidate areas have been compared (step ST18). If not compared with all the regions, the process returns to step ST16, and a candidate region different from the previous region is selected again. Finally, the similarity determination means 5 compares the detected similarity with a predetermined threshold. As a result, when there is a similarity greater than the threshold, it is determined that the input image includes a pattern similar to the reference pattern. On the other hand, if all the similarities are equal to or smaller than the threshold value, it is determined that the input image does not include a pattern similar to the reference pattern (step ST
5). The low frequency range of the DCT coefficients reflects the coarse features of the original image. On the other hand, the high frequency range reflects the fine features of the original image. Therefore, in this image processing method, a low-frequency DCT coefficient is used for similarity detection at the stage of narrowing down candidates, and a high-frequency DCT coefficient is used for similarity detection for final determination. .

【0046】以上のように、この実施の形態6によれ
ば、サイズが大きなDCT画像に対するマッチング処理
を少ない演算量で実現でき、候補絞り込みの段階で類似
パターンがないことがわかれば第2段階を省略できると
ともに、候補絞り込みのためのしきい値の設定を困難な
用途への適用も可能とすることができるなどの効果が得
られる。
As described above, according to the sixth embodiment, a matching process for a DCT image having a large size can be realized with a small amount of calculation. If it is found that there is no similar pattern in the stage of narrowing down candidates, the second stage is executed. It is possible to obtain an effect that it can be omitted, and it can be applied to an application in which setting of a threshold for narrowing down candidates is difficult.

【0047】[0047]

【発明の効果】以上のように、この発明によれば、基準
パターンに離散的コサイン変換を施して基準DCTパタ
ーンを作成し、入力DCT画像から基準パターンと同じ
サイズの比較領域を設定し、DCT係数を用いた内積、
正規化相関などから基準DCTパターンと比較領域との
類似度を検出し、入力画像の中で位置を変えたすべての
基準パターンと同じサイズ領域を有する全領域と比較し
たか否かを判定し、検出された類似度とあらかじめ決め
られたしきい値を比較し、このしきい値より大きな類似
度が存在する場合は、入力DCT画像の中に基準パター
ンと類似したパターンが含まれると判定し、すべての類
似度がしきい値以下の場合は、入力DCT画像には基準
パターンと類似したパターンが含まれないと判定するよ
うに構成したので、DCT画像に対するマッチング処理
を効率的に実施することができる効果がある。
As described above, according to the present invention, a reference DCT pattern is created by performing discrete cosine transform on a reference pattern, and a comparison area having the same size as the reference pattern is set from an input DCT image. Dot product using coefficients,
The similarity between the reference DCT pattern and the comparison area is detected from the normalized correlation or the like, and it is determined whether or not all the reference patterns whose positions have been changed in the input image have been compared with all areas having the same size area, The detected similarity is compared with a predetermined threshold, and if a similarity greater than the threshold is present, it is determined that a pattern similar to the reference pattern is included in the input DCT image, When all the similarities are equal to or smaller than the threshold value, it is determined that the input DCT image does not include a pattern similar to the reference pattern. Therefore, it is possible to efficiently perform the matching process on the DCT image. There is an effect that can be done.

【0048】この発明によれば、基準パターンに離散的
コサイン変換を施して基準DCTパターンを作成し、複
数の入力DCT画像から1つを選択し、この入力画像選
択ステップにより選択された1つの入力DCT画像から
基準パターンと同じサイズの比較領域を設定し、DCT
係数を用いた内積、正規化相関などから基準DCTパタ
ーンと比較領域との類似度を検出し、入力画像の中で位
置を変えたすべ選択された一部のDCT係数のみを用い
て類似度を検出するての基準パターンと同じサイズ領域
を有する全領域と比較したか否かを判定し、検出された
類似度とあらかじめ決められたしきい値を比較し、この
しきい値より大きな類似度が存在する場合は、入力DC
T画像の中に基準パターンと類似したパターンが含まれ
ると判定し、すべての類似度がしきい値以下の場合は、
入力DCT画像には基準パターンと類似したパターンが
含まれないと判定し、すべての入力DCT画像を選択し
たか否かを判定し、すべての画像が選択されていない場
合は、入力画像選択ステップに戻り前回とは別の入力D
CT画像を選択し直すように構成したので、複数のDC
T画像に対するマッチング処理の演算量を低減すること
ができる効果がある。
According to the present invention, a reference DCT pattern is created by performing discrete cosine transform on the reference pattern, one of the plurality of input DCT images is selected, and one of the input images selected in the input image selecting step is selected. A comparison area of the same size as the reference pattern is set from the DCT image,
The similarity between the reference DCT pattern and the comparison area is detected from the inner product using the coefficients, the normalized correlation, and the like, and the similarity is calculated using only some selected DCT coefficients whose positions have been changed in the input image. It is determined whether or not comparison has been performed with all regions having the same size region as the reference pattern to be detected, and the detected similarity is compared with a predetermined threshold value. Input DC, if present
When it is determined that a pattern similar to the reference pattern is included in the T image, and all the similarities are equal to or less than the threshold,
It is determined that the input DCT image does not include a pattern similar to the reference pattern, it is determined whether or not all input DCT images have been selected, and if not all images have been selected, the process proceeds to the input image selection step. Return Input D different from last time
Since the system is configured so that the CT image is selected again,
There is an effect that the amount of calculation of the matching processing for the T image can be reduced.

【0049】この発明によれば、基準DCTパターン作
成するステップにおいて、離散的コサイン変換を行う領
域の基準点と基準パターンの基準点のX方向シフトおよ
びY方向シフトのずれを変えながら複数の基準DCTパ
ターンを作成し、類似度検出するステップにおいて、複
数の基準DCTパターンと比較領域との類似度を検出す
るように構成したので、DCT画像のブロック分割の位
置に依存しないマッチング処理を実現することができる
効果がある。
According to the present invention, in the step of creating the reference DCT pattern, the plurality of reference DCTs are shifted while changing the shifts in the X-direction shift and the Y-direction shift of the reference point of the area where discrete cosine transform is performed and the reference point of the reference pattern. In the step of creating a pattern and detecting the degree of similarity, the method is configured to detect the degree of similarity between the plurality of reference DCT patterns and the comparison area, so that it is possible to realize a matching process that does not depend on the block division position of the DCT image. There is an effect that can be done.

【0050】この発明によれば、類似度検出に用いるD
CT係数を選択する係数選択のステップを有し、類似度
検出ステップは、選択された一部のDCT係数のみを用
いて類似度を検出するように構成したので、DCT画像
に対するマッチング処理の演算量を低減することができ
る効果がある。
According to the present invention, D used for similarity detection
The method includes a coefficient selection step of selecting a CT coefficient, and the similarity detection step is configured to detect the similarity using only some of the selected DCT coefficients. Has the effect of being able to reduce

【0051】この発明によれば、係数選択のステップと
基準DCTパターン作成のステップとの間に、類似度検
出における演算精度を選択されたDCT係数に応じて設
定するように構成したので、マッチング処理における演
算精度を適宜小さくすることによりH/Wによる実行の
消費電力を低減することができる効果がある。
According to the present invention, between the step of selecting the coefficient and the step of creating the reference DCT pattern, the calculation accuracy in the similarity detection is set according to the selected DCT coefficient. There is an effect that the power consumption of execution by H / W can be reduced by appropriately reducing the calculation accuracy in.

【0052】この発明によれば、演算精度設定のステッ
プにおいて、類似度検出における演算精度を選択された
DCT係数の周波数に応じて設定するように構成したの
で、マッチング性能を低下させることなくH/Wによる
実行の一消費電力を低減することができる効果がある。
According to the present invention, in the calculation accuracy setting step, the calculation accuracy in the similarity detection is set in accordance with the frequency of the selected DCT coefficient. There is an effect that one power consumption of execution by W can be reduced.

【0053】この発明によれば、基準DCTパターン作
成のステップにおいて、基準パターンに離散的コサイン
変換を施し類似度検出に必要なDCT係数のみを作成す
るように構成したので、基準DCTパターン作成のため
の演算量を低減することができる効果がある。
According to the present invention, in the step of creating the reference DCT pattern, discrete cosine transform is performed on the reference pattern to create only DCT coefficients necessary for similarity detection. This has the effect of reducing the amount of calculation of.

【0054】この発明によれば、基準パターンに対し離
散的コサイン変換を施し基準DCTパターンを作成し、
DCT係数を低周波域から選択し、入力DCT画像から
基準パターンと同じサイズの比較領域を設定し、基準D
CTパターンと比較領域との類似度を選択された一部の
DCT係数のみを用いて検出し、所定の全ての領域と比
較したか否かを判定し、全ての領域とは比較していない
場合は、第1の比較領域設定のステップに戻り前回とは
位置をずらして比較領域を設定し直し、第1の類似度に
基づき候補領域を決定し、DCT係数を高周波域から選
択し、候補領域の中から比較領域を選択し、基準DCT
パターンと比較領域との類似度を選択された一部のDC
T係数のみを用いて検出し、候補領域の全てと比較した
か否かを判定し、全ての領域と比較していない場合は、
第2の比較領域設定のステップに戻り前回とは異なる候
補領域を選択し直し、検出された類似度とあらかじめ決
められたしきい値を比較し、しきい値より大きな類似度
が存在する場合は、入力画像の中に基準パターンと類似
したパターンが含まれると判定し、全ての類似度がしき
い値以下の場合は、入力画像には基準パターンと類似し
たパターンが含まれないと判定するように構成したの
で、サイズが大きなDCT画像に対するマッチング処理
を少ない演算量で実現することができる効果がある。
According to the present invention, a discrete DCT pattern is created by performing discrete cosine transform on the reference pattern,
The DCT coefficient is selected from the low frequency range, and a comparison area having the same size as the reference pattern is set from the input DCT image.
When the similarity between the CT pattern and the comparison area is detected using only some of the selected DCT coefficients, and it is determined whether or not the similarity is compared with all the predetermined areas, and the comparison is not made with all the areas. Returns to the first comparison area setting step, resets the comparison area by shifting the position from the previous time, determines the candidate area based on the first similarity, selects the DCT coefficient from the high frequency area, Select the comparison area from
Some DCs whose similarity between the pattern and the comparison area is selected
Detection is performed using only the T coefficient, and it is determined whether or not the comparison has been made with all of the candidate regions.
Returning to the second comparison area setting step, a candidate area different from the previous area is selected again, the detected similarity is compared with a predetermined threshold, and if there is a similarity larger than the threshold, It is determined that a pattern similar to the reference pattern is included in the input image, and if all the similarities are equal to or less than the threshold value, it is determined that the input image does not include a pattern similar to the reference pattern. Thus, there is an effect that the matching processing for a DCT image having a large size can be realized with a small amount of calculation.

【0055】この発明によれば、候補領域決定のステッ
プにおいて、第1の類似度検出のステップで検出された
類似度と所定のしきい値の比較によって決定するように
構成したので、候補絞り込みの段階で類似パターンがな
いことがわかれば第2段階を省略することができる効果
がある。
According to the present invention, in the candidate area determination step, the similarity detected in the first similarity detection step is determined by comparing the similarity detected with the predetermined threshold value. If it is found that there is no similar pattern at the stage, there is an effect that the second stage can be omitted.

【0056】この発明によれば、候補領域決定のステッ
プにおいて、第1の類似度検出のステップで検出された
類似度の大きい方から所定の数だけ選択するように構成
したので、候補絞り込みのためのしきい値の設定を困難
な用途への適用も可能とすることができる効果がある。
According to the present invention, in the step of determining a candidate area, a predetermined number is selected from the largest similarity detected in the first similarity detection step. There is an effect that the setting of the threshold value can be applied to an application that is difficult.

【0057】この発明によれば、基準パターンに離散的
コサイン変換を施して基準DCTパターンを作成し、入
力DCT画像から基準パターンと同じサイズの比較領域
を設定し、DCT係数を用いた内積、正規化相関などか
ら基準DCTパターンと比較領域との類似度を検出し、
入力画像の中で位置を変えたすべての基準パターンと同
じサイズ領域を有する全領域と比較したか否かを判定
し、類似度検出の処理で検出された類似度とあらかじめ
決められたしきい値を比較し、このしきい値より大きな
類似度が存在する場合は、入力DCT画像の中に基準パ
ターンと類似したパターンが含まれると判定し、すべて
の類似度がしきい値以下の場合は、入力DCT画像には
基準パターンと類似したパターンが含まれないと判定す
るように構成したので、DCT画像に対するマッチング
処理を効率的に実施することができる効果がある。
According to the present invention, a reference DCT pattern is created by performing discrete cosine transform on the reference pattern, a comparison area of the same size as the reference pattern is set from the input DCT image, and the inner product and the normal product using the DCT coefficient are set. The similarity between the reference DCT pattern and the comparison area from
It is determined whether or not all the reference patterns whose positions have been changed in the input image have been compared with all regions having the same size region, and the similarity detected in the similarity detection processing and a predetermined threshold value are determined. Are compared, and if a similarity greater than this threshold exists, it is determined that a pattern similar to the reference pattern is included in the input DCT image, and if all the similarities are equal to or smaller than the threshold, Since the input DCT image is configured to be determined not to include a pattern similar to the reference pattern, there is an effect that the matching processing on the DCT image can be efficiently performed.

【0058】この発明によれば、基準パターンに離散的
コサイン変換を施して基準DCTパターンを作成し、複
数の入力DCT画像から1つを選択し、この選択された
1つの入力DCT画像から基準パターンと同じサイズの
比較領域を設定し、DCT係数を用いた内積、正規化相
関などから基準DCTパターンと比較領域との類似度を
検出し、入力画像の中で位置を変えたすべての基準パタ
ーンと同じサイズ領域を有する全領域と比較したか否か
を判定し、類似度検出の処理で検出された類似度とあら
かじめ決められたしきい値を比較し、このしきい値より
大きな類似度が存在する場合は、入力DCT画像の中に
基準パターンと類似したパターンが含まれると判定し、
すべての類似度がしきい値以下の場合は、入力DCT画
像には基準パターンと類似したパターンが含まれないと
判定し、すべての入力DCT画像を選択したか否かを判
定し、すべての画像が選択されていない場合は、入力画
像選択の処理に戻り前回とは別の入力DCT画像を選択
し直すように構成したので、複数のDCT画像に対する
マッチング処理の演算量を低減することができる効果が
ある。
According to the present invention, the reference DCT pattern is created by performing discrete cosine transform on the reference pattern, one of the plurality of input DCT images is selected, and the reference pattern is selected from the selected one input DCT image. A comparison area having the same size as the above is set, and the similarity between the reference DCT pattern and the comparison area is detected from the inner product using the DCT coefficient, the normalized correlation, and the like. It is determined whether or not all regions having the same size region have been compared, and the similarity detected in the similarity detection process is compared with a predetermined threshold value. If it is determined that the input DCT image includes a pattern similar to the reference pattern,
If all the similarities are equal to or less than the threshold value, it is determined that the input DCT image does not include a pattern similar to the reference pattern, and it is determined whether or not all the input DCT images have been selected. If is not selected, the process returns to the input image selection process and the input DCT image different from the previous one is selected again, so that the amount of calculation in the matching process for a plurality of DCT images can be reduced. There is.

【0059】この発明によれば、基準パターンに対し離
散的コサイン変換を施し基準DCTパターンを作成し、
DCT係数を低周波域から選択し、入力DCT画像から
基準パターンと同じサイズの比較領域を設定し、基準D
CTパターンと比較領域との類似度を選択された一部の
DCT係数のみを用いて検出し、所定の全ての領域と比
較したか否かを判定し、全ての領域とは比較していない
場合は、第1の比較領域設定の処理に戻り前回とは位置
をずらして比較領域を設定し直し、第1の類似度に基づ
き候補領域を決定し、DCT係数を高周波域から選択
し、候補領域の中から比較領域を選択し、基準DCTパ
ターンと比較領域との類似度を選択された一部のDCT
係数のみを用いて検出し、候補領域の全てと比較したか
否かを判定し、全ての領域と比較していない場合は、第
2の比較領域設定の処理に戻り前回とは異なる候補領域
を選択し直し、検出された類似度とあらかじめ決められ
たしきい値を比較し、しきい値より大きな類似度が存在
する場合は、入力画像の中に基準パターンと類似したパ
ターンが含まれると判定し、全ての類似度がしきい値以
下の場合は、入力画像には基準パターンと類似したパタ
ーンが含まれないと判定するように構成したので、サイ
ズが大きなDCT画像に対するマッチング処理を少ない
演算量で実現することができる効果がある。
According to the present invention, a reference DCT pattern is created by performing discrete cosine transform on the reference pattern,
The DCT coefficient is selected from the low frequency range, and a comparison area having the same size as the reference pattern is set from the input DCT image.
When the similarity between the CT pattern and the comparison area is detected using only some of the selected DCT coefficients, and it is determined whether or not the similarity is compared with all the predetermined areas, and the comparison is not made with all the areas. Returns to the first comparison area setting process, resets the comparison area by shifting the position from the previous time, determines the candidate area based on the first similarity, selects the DCT coefficient from the high frequency area, Is selected from among the DCT patterns, and the similarity between the reference DCT pattern and the comparison area is selected from the selected DCT patterns.
Detection is performed using only the coefficient, and it is determined whether or not the comparison has been made with all of the candidate regions. If the comparison has not been made with all of the regions, the process returns to the second comparison region setting process to select a candidate region different from the previous region. Reselect and compare the detected similarity with a predetermined threshold. If there is a similarity greater than the threshold, determine that the input image contains a pattern similar to the reference pattern. If all the similarities are equal to or smaller than the threshold value, it is determined that the input image does not include a pattern similar to the reference pattern. There is an effect that can be realized with.

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

【図1】 この発明の実施の形態1による画像処理装置
を示す構成図である。
FIG. 1 is a configuration diagram illustrating an image processing apparatus according to a first embodiment of the present invention;

【図2】 (a)はこの発明の実施の形態1によるパタ
ーンマッチングのための画像処理方法における基準パタ
ーンを示す説明図、(b)はこの発明の実施の形態1に
よるパターンマッチングのための画像処理方法における
入力画像を示す説明図である。
FIG. 2A is an explanatory view showing a reference pattern in an image processing method for pattern matching according to the first embodiment of the present invention, and FIG. 2B is an image for pattern matching according to the first embodiment of the present invention; FIG. 4 is an explanatory diagram illustrating an input image in a processing method.

【図3】 この発明の実施の形態1によるパターンマッ
チングのための画像処理方法を示すフローチャートであ
る。
FIG. 3 is a flowchart showing an image processing method for pattern matching according to the first embodiment of the present invention.

【図4】 この発明の実施の形態1によるパターンマッ
チングのための画像処理方法の入力DCT画像を示す構
成図である。
FIG. 4 is a configuration diagram showing an input DCT image of the image processing method for pattern matching according to the first embodiment of the present invention;

【図5】 この発明の実施の形態2による画像処理装置
を示す構成図である。
FIG. 5 is a configuration diagram illustrating an image processing apparatus according to a second embodiment of the present invention.

【図6】 この発明の実施の形態2によるパターンマッ
チングのための画像処理方法を示すフローチャートであ
る。
FIG. 6 is a flowchart illustrating an image processing method for pattern matching according to Embodiment 2 of the present invention;

【図7】 この発明の実施の形態3による画像処理装置
で使用するDCT領域を示す構成図である。
FIG. 7 is a configuration diagram showing a DCT area used in an image processing device according to a third embodiment of the present invention.

【図8】 この発明の実施の形態3によるパターンマッ
チングのための画像処理方法を示すフローチャートであ
る。
FIG. 8 is a flowchart showing an image processing method for pattern matching according to Embodiment 3 of the present invention.

【図9】 この発明の実施の形態4による画像処理装置
を示す構成図である。
FIG. 9 is a configuration diagram illustrating an image processing apparatus according to a fourth embodiment of the present invention.

【図10】 この発明の実施の形態4によるパターンマ
ッチングのための画像処理方法を示すフローチャートで
ある。
FIG. 10 is a flowchart showing an image processing method for pattern matching according to Embodiment 4 of the present invention.

【図11】 この発明の実施の形態5による画像処理装
置を示す構成図である。
FIG. 11 is a configuration diagram illustrating an image processing apparatus according to a fifth embodiment of the present invention.

【図12】 この発明の実施の形態5によるパターンマ
ッチングのための画像処理方法を示すフローチャートで
ある。
FIG. 12 is a flowchart showing an image processing method for pattern matching according to Embodiment 5 of the present invention.

【図13】 この発明の実施の形態6による画像処理装
置を示す構成図である。
FIG. 13 is a configuration diagram illustrating an image processing apparatus according to a sixth embodiment of the present invention.

【図14】 この発明の実施の形態6によるパターンマ
ッチングのための画像処理方法を示すフローチャートで
ある。
FIG. 14 is a flowchart showing an image processing method for pattern matching according to Embodiment 6 of the present invention.

【図15】 例えばパターン理解(白井良明編、オーム
社)に示された従来のパターンマッチングのための画像
処理方法を示すフローチャートである。
FIG. 15 is a flowchart showing a conventional image processing method for pattern matching shown in Pattern Understanding (Yoshiaki Shirai, Ohmsha).

【図16】 従来のパターンマッチングのための画像処
理方法における基準パターンを示す説明図である。
FIG. 16 is an explanatory diagram showing a reference pattern in a conventional image processing method for pattern matching.

【図17】 従来のパターンマッチングのための画像処
理方法における入力画像を示す説明図である。
FIG. 17 is an explanatory diagram showing an input image in a conventional image processing method for pattern matching.

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

1 基準DCTパターン作成手段、2 比較領域設定手
段、3 類似度検出手段、4 繰り返し判定手段、5
類似度判定手段、6 入力画像選択手段、7終了判定手
段、8 DCT係数選択手段、11 基準パターン、1
3 基準DCTパターン、17 入力DCT画像、18
比較領域、20 第1のDCT係数選択手段、21
第1の比較領域設定手段、22 第1の類似度検出手
段、23第1の繰り返し判定手段、24 候補領域決定
手段、25 第2のDCT係数選択手段、26 第2の
比較領域設定手段、27 第2の類似度検出手段、28
第2の繰り返し判定手段、31 DCT画像。
1 reference DCT pattern creation means, 2 comparison area setting means, 3 similarity detection means, 4 repetition determination means, 5
Similarity determination means, 6 input image selection means, 7 end determination means, 8 DCT coefficient selection means, 11 reference patterns, 1
3 reference DCT pattern, 17 input DCT images, 18
Comparison area, 20 first DCT coefficient selecting means, 21
First comparison area setting means, 22 first similarity detection means, 23 first repetition determination means, 24 candidate area determination means, 25 second DCT coefficient selection means, 26 second comparison area setting means, 27 Second similarity detecting means, 28
Second repetition determination means, 31 DCT images.

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 基準パターンに離散的コサイン変換を施
して基準DCTパターンを作成する基準DCTパターン
作成ステップと、 入力DCT画像から基準パターンと同じサイズの比較領
域を設定する比較領域設定ステップと、 DCT係数を用いた内積、正規化相関などから上記基準
DCTパターンと上記比較領域との類似度を検出する類
似度検出ステップと、 入力画像の中で位置を変えたすべての上記基準パターン
と同じサイズ領域を有する全領域と比較したか否かを判
定する繰り返し判定ステップと、 上記類似度検出ステップで検出された上記類似度とあら
かじめ決められたしきい値を比較し、このしきい値より
大きな類似度が存在する場合は、上記入力DCT画像の
中に上記基準パターンと類似したパターンが含まれると
判定し、すべての上記類似度が上記しきい値以下の場合
は、上記入力DCT画像には上記基準パターンと類似し
たパターンが含まれないと判定する類似度判定ステップ
とを有するパターンマッチングのための画像処理方法。
1. A reference DCT pattern creating step of creating a reference DCT pattern by applying a discrete cosine transform to a reference pattern; a comparison area setting step of setting a comparison area of the same size as the reference pattern from an input DCT image; A similarity detection step of detecting a similarity between the reference DCT pattern and the comparison area from an inner product using coefficients, a normalized correlation, and the like; an area having the same size as all the reference patterns whose positions have been changed in the input image. A repetition determining step of determining whether or not the similarity is compared with the entire area having the similarity; and comparing the similarity detected in the similarity detecting step with a predetermined threshold value; If there is a pattern, it is determined that a pattern similar to the reference pattern is included in the input DCT image, If the similarity is below the threshold, an image processing method for pattern matching in the input DCT image has a determining similarity determination step and does not include the pattern similar to the reference pattern.
【請求項2】 基準パターンに離散的コサイン変換を施
して基準DCTパターンを作成する基準DCTパターン
作成ステップと、 複数の入力DCT画像から1つを選択する入力画像選択
ステップと、 この入力画像選択ステップにより選択された1つの上記
入力DCT画像から基準パターンと同じサイズの比較領
域を設定する比較領域設定ステップと、 DCT係数を用いた内積、正規化相関などから上記基準
DCTパターンと上記比較領域との類似度を検出する類
似度検出ステップと、 入力画像の中で位置を変えたすべての上記基準パターン
と同じサイズ領域を有する全領域と比較したか否かを判
定する繰り返し判定ステップと、 上記類似度検出ステップで検出された上記類似度とあら
かじめ決められたしきい値を比較し、このしきい値より
大きな類似度が存在する場合は、上記入力DCT画像の
中に上記基準パターンと類似したパターンが含まれると
判定し、すべての上記類似度が上記しきい値以下の場合
は、上記入力DCT画像には上記基準パターンと類似し
たパターンが含まれないと判定する類似度判定ステップ
と、 すべての上記入力DCT画像を選択したか否かを判定
し、すべての画像が選択されていない場合は、上記入力
画像選択ステップに戻り前回とは別の上記入力DCT画
像を選択し直す終了判定ステップとを有するパターンマ
ッチングのための画像処理方法。
2. A reference DCT pattern creating step of creating a reference DCT pattern by applying a discrete cosine transform to the reference pattern; an input image selecting step of selecting one from a plurality of input DCT images; A comparison area setting step of setting a comparison area of the same size as the reference pattern from one of the input DCT images selected by the above-mentioned method; and an inner product using DCT coefficients, a normalized correlation, and the like. A similarity detection step of detecting a similarity; a repetition determination step of determining whether or not all the reference patterns whose positions have been changed in the input image are compared with an entire area having the same size area; The similarity detected in the detection step is compared with a predetermined threshold, and the If there is a similar degree of similarity, it is determined that a pattern similar to the reference pattern is included in the input DCT image, and if all the similarities are equal to or less than the threshold, the input DCT image A similarity determination step of determining that a pattern similar to the reference pattern is not included; determining whether all of the input DCT images have been selected; if not all images have been selected, An image processing method for pattern matching, comprising: returning to the input image selecting step and re-selecting the input DCT image different from the previous one.
【請求項3】 基準DCTパターン作成ステップでは、
離散的コサイン変換を行う領域の基準点と基準パターン
の基準点のX方向シフトおよびY方向シフトのずれを変
えながら複数の基準DCTパターンを作成し、 類似度検出ステップでは、複数の基準DCTパターンと
比較領域との類似度を検出することを特徴とする請求項
1記載のパターンマッチングのための画像処理方法。
3. In the reference DCT pattern creating step,
A plurality of reference DCT patterns are created while changing the shift of the X-direction shift and the Y-direction shift between the reference point of the area where the discrete cosine transform is performed and the reference point of the reference pattern. 2. The image processing method for pattern matching according to claim 1, wherein a similarity with the comparison area is detected.
【請求項4】 類似度検出に用いるDCT係数を選択す
る係数選択ステップを有し、 類似度検出ステップは、選択された一部のDCT係数の
みを用いて類似度を検出することを特徴とする請求項1
記載のパターンマッチングのための画像処理方法。
4. A method according to claim 1, further comprising a coefficient selection step of selecting a DCT coefficient used for similarity detection, wherein the similarity detection step detects the similarity using only some selected DCT coefficients. Claim 1
An image processing method for the described pattern matching.
【請求項5】 係数選択ステップと基準DCTパターン
作成ステップとの間に、類似度検出における演算精度を
選択されたDCT係数に応じて設定する演算精度設定ス
テップを有することを特徴とする請求項4記載のパター
ンマッチングのための画像処理方法。
5. The method according to claim 4, further comprising, between the coefficient selecting step and the reference DCT pattern creating step, an operation accuracy setting step of setting the operation accuracy in the similarity detection in accordance with the selected DCT coefficient. An image processing method for the described pattern matching.
【請求項6】 演算精度設定ステップは、類似度検出に
おける演算精度を選択されたDCT係数の周波数に応じ
て設定することを特徴とする請求項5記載のパターンマ
ッチングのための画像処理方法。
6. The image processing method for pattern matching according to claim 5, wherein in the calculation accuracy setting step, the calculation accuracy in the similarity detection is set according to the frequency of the selected DCT coefficient.
【請求項7】 基準DCTパターン作成ステップは、基
準パターンに離散的コサイン変換を施し類似度検出に必
要なDCT係数のみを作成することを特徴とする請求項
4記載のパターンマッチングのための画像処理方法。
7. The image processing for pattern matching according to claim 4, wherein in the reference DCT pattern creating step, discrete cosine transform is performed on the reference pattern to create only DCT coefficients necessary for similarity detection. Method.
【請求項8】 基準パターンに対し離散的コサイン変換
を施し基準DCTパターンを作成する基準DCTパター
ン作成ステップと、 DCT係数を低周波域から選択する第1のDCT係数選
択ステップと、 入力DCT画像から基準パターンと同じサイズの比較領
域を設定する第1の比較領域設定ステップと、 上記基準DCTパターンと上記比較領域との類似度を選
択された一部のDCT係数のみを用いて検出する第1の
類似度検出ステップと、 所定の全ての領域と比較したか否かを判定し、全ての領
域とは比較していない場合は、第1の比較領域設定ステ
ップに戻り前回とは位置をずらして上記比較領域を設定
し直す第1の繰り返し判定ステップと、 第1の類似度に基づき候補領域を決定する候補領域決定
ステップと、 DCT係数を高周波域から選択する第2のDCT係数選
択ステップと、 候補領域の中から上記比較領域を選択する第2の比較領
域設定ステップと、 上記基準DCTパターンと上記比較領域との類似度を選
択された一部のDCT係数のみを用いて検出する第2の
類似度検出ステップと、 候補領域の全てと比較したか否かを判定し、全ての領域
と比較していない場合は、上記第2の比較領域設定ステ
ップに戻り前回とは異なる候補領域を選択し直す第2の
繰り返し判定ステップと、 検出された類似度とあらかじめ決められたしきい値を比
較し、しきい値より大きな類似度が存在する場合は、入
力画像の中に上記基準パターンと類似したパターンが含
まれると判定し、全ての類似度が上記しきい値以下の場
合は、入力画像には上記基準パターンと類似したパター
ンが含まれないと判定する類似度判定ステップとを有す
るパターンマッチングのための画像処理方法。
8. A reference DCT pattern creating step of applying a discrete cosine transform to the reference pattern to create a reference DCT pattern; a first DCT coefficient selecting step of selecting a DCT coefficient from a low frequency band; A first comparison area setting step of setting a comparison area having the same size as the reference pattern; and a first detection step of detecting a similarity between the reference DCT pattern and the comparison area using only selected DCT coefficients. The similarity detection step determines whether or not the comparison has been made with all of the predetermined areas. If the comparison has not been made with all of the areas, the procedure returns to the first comparison area setting step, and the position is shifted from the previous time to shift the position. A first iterative determination step of resetting the comparison area; a candidate area determination step of determining a candidate area based on the first similarity; A second DCT coefficient selection step of selecting from the following: a second comparison area setting step of selecting the comparison area from the candidate areas; and a part in which the similarity between the reference DCT pattern and the comparison area is selected. A second similarity detection step of detecting using only the DCT coefficients of the above, and determining whether or not all of the candidate areas have been compared, and if not comparing with all of the areas, setting the second comparison area A second repetition determination step of returning to the step and selecting a candidate area different from the previous one; and comparing the detected similarity with a predetermined threshold value. It is determined that a pattern similar to the reference pattern is included in the input image, and if all the similarities are equal to or less than the threshold value, the input image includes a pattern similar to the reference pattern. An image processing method for pattern matching, comprising a similarity determination step of determining that the pattern is not rare.
【請求項9】 候補領域決定ステップは、第1の類似度
検出ステップで検出された類似度と所定のしきい値の比
較によって決定することを特徴とする請求項8記載のパ
ターンマッチングのための画像処理方法。
9. The pattern matching method according to claim 8, wherein the candidate area determination step is performed by comparing the similarity detected in the first similarity detection step with a predetermined threshold value. Image processing method.
【請求項10】 候補領域決定ステップは、第1の類似
度検出ステップで検出された類似度の大きい方から所定
の数だけ選択することを特徴とする請求項8記載のパタ
ーンマッチングのための画像処理方法。
10. The image for pattern matching according to claim 8, wherein in the candidate area determination step, a predetermined number is selected from the larger similarities detected in the first similarity detection step. Processing method.
【請求項11】 基準パターンに離散的コサイン変換を
施して基準DCTパターンを作成する基準DCTパター
ン作成手段と、 入力DCT画像から基準パターンと同じサイズの比較領
域を設定する比較領域設定手段と、 DCT係数を用いた内積、正規化相関などから上記基準
DCTパターンと上記比較領域との類似度を検出する類
似度検出手段と、 入力画像の中で位置を変えたすべての上記基準パターン
と同じサイズ領域を有する全領域と比較したか否かを判
定する繰り返し判定手段と、 上記類似度検出手段で検出された上記類似度とあらかじ
め決められたしきい値を比較し、このしきい値より大き
な類似度が存在する場合は、上記入力DCT画像の中に
上記基準パターンと類似したパターンが含まれると判定
し、すべての上記類似度が上記しきい値以下の場合は、
上記入力DCT画像には上記基準パターンと類似したパ
ターンが含まれないと判定する類似度判定手段とを備え
た画像処理装置。
11. A reference DCT pattern creating means for applying a discrete cosine transform to a reference pattern to create a reference DCT pattern; a comparison area setting means for setting a comparison area of the same size as the reference pattern from an input DCT image; A similarity detecting means for detecting a similarity between the reference DCT pattern and the comparison area from an inner product using a coefficient, a normalized correlation, and the like; and an area having the same size as all the reference patterns whose positions have been changed in the input image. And a repetition determining means for determining whether or not the comparison has been made with the entire area having the similarity. The similarity detected by the similarity detecting means is compared with a predetermined threshold value. If there is a pattern, it is determined that a pattern similar to the reference pattern is included in the input DCT image, and all the similarities are higher. In the case of less than or equal to the threshold value,
An image processing apparatus comprising: a similarity determination unit configured to determine that the input DCT image does not include a pattern similar to the reference pattern.
【請求項12】 基準パターンに離散的コサイン変換を
施して基準DCTパターンを作成する基準DCTパター
ン作成手段と、 複数の入力DCT画像から1つを選択する入力画像選択
手段と、 この入力画像選択手段により選択された1つの上記入力
DCT画像から基準パターンと同じサイズの比較領域を
設定する比較領域設定手段と、 DCT係数を用いた内積、正規化相関などから上記基準
DCTパターンと上記比較領域との類似度を検出する類
似度検出手段と、 入力画像の中で位置を変えたすべての上記基準パターン
と同じサイズ領域を有する全領域と比較したか否かを判
定する繰り返し判定手段と、 上記類似度検出手段で検出された上記類似度とあらかじ
め決められたしきい値を比較し、このしきい値より大き
な類似度が存在する場合は、上記入力DCT画像の中に
上記基準パターンと類似したパターンが含まれると判定
し、すべての上記類似度が上記しきい値以下の場合は、
上記入力DCT画像には上記基準パターンと類似したパ
ターンが含まれないと判定する類似度判定手段と、 すべての上記入力DCT画像を選択したか否かを判定
し、すべての画像が選択されていない場合は、上記入力
画像選択手段に戻り前回とは別の上記入力DCT画像を
選択し直す終了判定手段とを備えた画像処理装置。
12. A reference DCT pattern creating means for applying a discrete cosine transform to a reference pattern to create a reference DCT pattern; an input image selecting means for selecting one from a plurality of input DCT images; Comparison area setting means for setting a comparison area of the same size as the reference pattern from one of the input DCT images selected by the above-mentioned method, and a comparison between the reference DCT pattern and the comparison area based on inner products using DCT coefficients, normalized correlation, and the like. Similarity detection means for detecting similarity; repetition determination means for determining whether or not all the reference patterns whose positions have been changed in the input image are compared with all areas having the same size area; Comparing the above similarity detected by the detecting means with a predetermined threshold value, and when there is a similarity greater than this threshold value; Was determined to contain a similar pattern to the reference pattern in the input DCT image, if all of the similarity is less than the threshold value,
A similarity determination unit that determines that the input DCT image does not include a pattern similar to the reference pattern; and determines whether all of the input DCT images have been selected, and all images have not been selected. In this case, the image processing apparatus further includes an end determination unit that returns to the input image selection unit and selects another input DCT image different from the previous one.
【請求項13】 基準パターンに対し離散的コサイン変
換を施し基準DCTパターンを作成する基準DCTパタ
ーン作成手段と、 DCT係数を低周波域から選択する第1のDCT係数選
択手段と、 入力DCT画像から基準パターンと同じサイズの比較領
域を設定する第1の比較領域設定手段と、 上記基準DCTパターンと上記比較領域との類似度を選
択された一部のDCT係数のみを用いて検出する第1の
類似度検出手段と、 所定の全ての領域と比較したか否かを判定し、全ての領
域とは比較していない場合は、第1の比較領域設定手段
に戻り前回とは位置をずらして上記比較領域を設定し直
す第1の繰り返し判定手段と、 第1の類似度に基づき候補領域を決定する候補領域決定
手段と、 DCT係数を高周波域から選択する第2のDCT係数選
択手段と、 候補領域の中から上記比較領域を選択する第2の比較領
域設定手段と、 上記基準DCTパターンと上記比較領域との類似度を選
択された一部のDCT係数のみを用いて検出する第2の
類似度検出手段と、 候補領域の全てと比較したか否かを判定し、全ての領域
と比較していない場合は、上記第2の比較領域設定手段
に戻り前回とは異なる候補領域を選択し直す第2の繰り
返し判定手段と、 検出された類似度とあらかじめ決められたしきい値を比
較し、しきい値より大きな類似度が存在する場合は、入
力画像の中に上記基準パターンと類似したパターンが含
まれると判定し、全ての類似度が上記しきい値以下の場
合は、入力画像には上記基準パターンと類似したパター
ンが含まれないと判定する類似度判定手段とを備えた画
像処理装置。
13. A reference DCT pattern creating means for applying a discrete cosine transform to a reference pattern to create a reference DCT pattern; a first DCT coefficient selecting means for selecting a DCT coefficient from a low frequency band; First comparison area setting means for setting a comparison area having the same size as the reference pattern; and first detection means for detecting the similarity between the reference DCT pattern and the comparison area using only selected DCT coefficients. The similarity detection means determines whether or not the comparison has been made with all of the predetermined areas. First repetition determination means for resetting the comparison area, candidate area determination means for determining a candidate area based on the first similarity, and second DCT section for selecting a DCT coefficient from a high frequency range. Number selection means, second comparison area setting means for selecting the comparison area from the candidate areas, and similarity between the reference DCT pattern and the comparison area using only selected DCT coefficients. The second similarity detecting means to be detected determines whether or not all the candidate areas have been compared. If not, the processing returns to the second comparison area setting means and is different from the last time. Comparing the detected similarity with a predetermined threshold, and if there is a similarity greater than the threshold, the input image includes A similarity determination unit that determines that a pattern similar to the reference pattern is included, and when all the similarities are equal to or less than the threshold, determines that the input image does not include a pattern similar to the reference pattern. Images with Processing equipment.
JP10122570A 1998-05-01 1998-05-01 Image processing method for pattern matching and image processor Pending JPH11316837A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10122570A JPH11316837A (en) 1998-05-01 1998-05-01 Image processing method for pattern matching and image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10122570A JPH11316837A (en) 1998-05-01 1998-05-01 Image processing method for pattern matching and image processor

Publications (1)

Publication Number Publication Date
JPH11316837A true JPH11316837A (en) 1999-11-16

Family

ID=14839181

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10122570A Pending JPH11316837A (en) 1998-05-01 1998-05-01 Image processing method for pattern matching and image processor

Country Status (1)

Country Link
JP (1) JPH11316837A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001167129A (en) * 1999-11-26 2001-06-22 Medison Co Ltd Ultrasonic wave video retrieval device and ultrasonic wave video transmission/reception system
WO2002021333A1 (en) * 2000-09-06 2002-03-14 Nec Corporation Image searching device
JP2002183145A (en) * 2000-12-12 2002-06-28 Nec Corp Image retrieval system and its image retrieving method, and storage medium with recorded image retrieving program
JP2007104176A (en) * 2005-10-03 2007-04-19 Matsushita Electric Ind Co Ltd Image compositing apparatus and image collation apparatus, image compositing method, and image compositing program
US7356190B2 (en) 2002-07-02 2008-04-08 Canon Kabushiki Kaisha Image area extraction method, image reconstruction method using the extraction result and apparatus thereof
US7869659B2 (en) 2005-03-31 2011-01-11 Sony Corporation Image-comparing apparatus, image-comparing method, image-retrieving apparatus and image-retrieving method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001167129A (en) * 1999-11-26 2001-06-22 Medison Co Ltd Ultrasonic wave video retrieval device and ultrasonic wave video transmission/reception system
WO2002021333A1 (en) * 2000-09-06 2002-03-14 Nec Corporation Image searching device
JP2002082985A (en) * 2000-09-06 2002-03-22 Nec Corp Device and method for retrieving picture and storage medium with picture retrieval program recorded thereon
US7457460B2 (en) 2000-09-06 2008-11-25 Nec Corporation Picture retrieving apparatus and method which converts orthogonal transform coefficients into color histogram data
JP2002183145A (en) * 2000-12-12 2002-06-28 Nec Corp Image retrieval system and its image retrieving method, and storage medium with recorded image retrieving program
US7356190B2 (en) 2002-07-02 2008-04-08 Canon Kabushiki Kaisha Image area extraction method, image reconstruction method using the extraction result and apparatus thereof
US7542615B2 (en) 2002-07-02 2009-06-02 Canon Kabushiki Kaisha Image area extraction method, image reconstruction method using the extraction result and apparatus thereof
US7869659B2 (en) 2005-03-31 2011-01-11 Sony Corporation Image-comparing apparatus, image-comparing method, image-retrieving apparatus and image-retrieving method
JP2007104176A (en) * 2005-10-03 2007-04-19 Matsushita Electric Ind Co Ltd Image compositing apparatus and image collation apparatus, image compositing method, and image compositing program

Similar Documents

Publication Publication Date Title
JP4528441B2 (en) Hierarchical motion estimation processing and apparatus using block matching method and integrated projection method
US6351570B1 (en) Image coding and decoding apparatus, method of image coding and decoding, and recording medium for recording program for image coding and decoding
JP4002396B2 (en) Motion vector determination method and apparatus
JP2630923B2 (en) Image recognition method and apparatus
JP4004653B2 (en) Motion vector detection method and apparatus, and recording medium
US7006714B2 (en) Image retrieval device, image retrieval method and storage medium storing similar-image retrieval program
JP2003507804A (en) Method and apparatus for variable complexity decoding of motion compensated block-based compressed digital video
US6488627B1 (en) Ultrasonic image searching apparatus and ultrasonic image transmission and reception system adopting the same
JPH06231254A (en) High-speed recognition and retrieval method for moving image
JP4831547B2 (en) Method for image compression and decompression acceleration
US6668020B2 (en) Method for motion estimation in video coding
JPH11316837A (en) Image processing method for pattern matching and image processor
US5721595A (en) Motion estimation block matching process and apparatus for video image processing
CN107147909B (en) Variance-based recompression JPEG image original quantization step length estimation method
JPH0738760A (en) Orthogonal transformation base generating system
Singh et al. Forensics for partially double compressed doctored JPEG images
US20060018554A1 (en) Block-based motion estimation method
JP3867346B2 (en) Image signal processing apparatus and method, and prediction parameter learning apparatus and method
Bhosale et al. 2D DWT lifting image compression scheme for error tolerant applications
Zhang et al. No-Reference Image Blur Assessment Based on SIFT and DCT.
JP2002133414A (en) Image processing method and its device and recording medium
JP2001527352A (en) Partial decoding of compressed video sequences
JP3276813B2 (en) Search area limitation method in pattern matching
JP2008072608A (en) Apparatus and method for encoding image
JPH09186861A (en) Method and device for image processing