JP6234107B2 - Feature value generation device, feature value generation method, and program - Google Patents
Feature value generation device, feature value generation method, and program Download PDFInfo
- Publication number
- JP6234107B2 JP6234107B2 JP2013165512A JP2013165512A JP6234107B2 JP 6234107 B2 JP6234107 B2 JP 6234107B2 JP 2013165512 A JP2013165512 A JP 2013165512A JP 2013165512 A JP2013165512 A JP 2013165512A JP 6234107 B2 JP6234107 B2 JP 6234107B2
- Authority
- JP
- Japan
- Prior art keywords
- feature
- sub
- feature point
- distribution
- pixel information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Image Analysis (AREA)
Description
本発明は、画像の特徴点の特徴量を生成する技術に関する。 The present invention relates to a technique for generating feature quantities of feature points of an image.
画像上の特徴点は、一般に、画素構造がユニークな、対応のとりやすい点のことである。例えば、角や線の交わりが特徴点である。複数の画像間の特徴点同士のマッチング情報を用いた動体追跡や、カメラ位置推定、ステレオビジョン技術等が広く使われている。また、特徴量は、各特徴点の固有の値であり、マッチング時における特徴点同士の類似度の算出や画像認識に用いられる。 A feature point on an image is generally a point with a unique pixel structure and easy correspondence. For example, intersections of corners and lines are feature points. Tracking of moving objects using matching information between feature points between a plurality of images, camera position estimation, stereo vision technology, and the like are widely used. The feature amount is a unique value of each feature point, and is used for calculation of similarity between feature points and image recognition during matching.
特徴量の算出方法として、特許文献1には、SIFT(Scale Invariant Feature Transformation)と称される方法が記載されている。これは、特徴点周囲の一定の領域内の画素の輝度勾配ベクトルの分布を示す128次元のベクトルを特徴量とする方法である。この方法により算出される特徴量は、画像の回転,スケール変化,照明変化に強い。
As a feature amount calculation method,
従来の方法では、常に特徴点近傍の一定の矩形領域の画素情報から特徴量が生成されている。このため、生成された特徴量は被写体の動きに弱く、矩形領域内の画素構造が変化すると、同じ特徴点における特徴量が大きく変化する。カメラ位置推定や動体追跡においては、被写体の動きや視点の変化が頻繁に起こる。このため、従来の方法では、複数の画像において同じ被写体の特徴点が、背景などの周囲の構造がわずかに変化することで同一点と見なされずに、マッチング精度が下がる可能性がある。 In the conventional method, a feature amount is always generated from pixel information of a fixed rectangular area near the feature point. For this reason, the generated feature quantity is weak to the movement of the subject, and the feature quantity at the same feature point changes greatly when the pixel structure in the rectangular area changes. In camera position estimation and moving object tracking, subject movement and viewpoint changes frequently occur. For this reason, in the conventional method, the feature point of the same subject in a plurality of images may not be regarded as the same point due to a slight change in the surrounding structure such as the background, and matching accuracy may be lowered.
本発明は、上述した課題に鑑みてなされたものであって、画像における被写体の動きや周囲の動きの影響を受けにくい特徴量を生成することができる技術を提供することを目的とする。 The present invention has been made in view of the above-described problems, and an object of the present invention is to provide a technique capable of generating a feature quantity that is not easily influenced by the movement of a subject in an image and the movement of surroundings.
本発明は、上記の課題を解決するためになされたもので、入力画像から特徴点を検出する特徴点検出部と、前記入力画像において前記特徴点の周辺の画素値から画素情報を生成する画素情報生成部と、前記特徴点を含む第1の領域の前記画素情報の第1の分布を生成する特徴点画素情報分布生成部と、前記特徴点の周辺における特徴点であるサブ特徴点を検出するサブ特徴点検出部と、前記サブ特徴点を含む第2の領域の前記画素情報の第2の分布を生成するサブ特徴点画素情報分布生成部と、前記第1の分布と前記第2の分布とに基づいて、前記特徴点における特徴量を生成する特徴量生成部と、を具備し、前記サブ特徴点画素情報分布生成部は、前記サブ特徴点検出部が検出する前記サブ特徴点の数に応じて、前記第2の領域の分割数を決定し、分割後の領域数が決定した分割数となるように前記第2の領域を分割し、分割後の領域ごとに前記第2の分布を生成することを特徴とする特徴量生成装置である。 The present invention has been made to solve the above-described problem, and includes a feature point detection unit that detects a feature point from an input image, and a pixel that generates pixel information from pixel values around the feature point in the input image. An information generation unit, a feature point pixel information distribution generation unit that generates a first distribution of the pixel information of the first region including the feature point, and a sub feature point that is a feature point around the feature point A sub-feature point detection unit, a sub-feature point pixel information distribution generation unit that generates a second distribution of the pixel information in the second region including the sub-feature point, the first distribution, and the second distribution A feature amount generation unit that generates a feature amount at the feature point based on the distribution, and the sub feature point pixel information distribution generation unit is configured to detect the sub feature point detected by the sub feature point detection unit. The number of divisions of the second area is determined according to the number, and The feature quantity generation device is characterized in that the second area is divided so that the number of divided areas is equal to the determined division number, and the second distribution is generated for each divided area .
また、本発明は、入力画像から特徴点を検出するステップと、前記入力画像において前記特徴点の周辺の画素値から画素情報を生成するステップと、前記特徴点を含む第1の領域の前記画素情報の第1の分布を生成するステップと、前記特徴点の周辺からサブ特徴点を検出するステップと、前記サブ特徴点を含む第2の領域の前記画素情報の第2の分布を生成するステップと、前記第1の分布と前記第2の分布とに基づいて、前記特徴点における特徴量を生成するステップと、を具備し、前記第2の分布を生成するステップでは、前記サブ特徴点の数に応じて、前記第2の領域の分割数を決定し、分割後の領域数が決定した分割数となるように前記第2の領域を分割し、分割後の領域ごとに前記第2の分布を生成することを特徴とする特徴量生成方法である。 The present invention also includes a step of detecting a feature point from the input image, a step of generating pixel information from pixel values around the feature point in the input image, and the pixel in the first region including the feature point Generating a first distribution of information, detecting a sub-feature point from the periphery of the feature point, and generating a second distribution of the pixel information of the second region including the sub-feature point And generating a feature quantity at the feature point based on the first distribution and the second distribution, and in the step of generating the second distribution, The number of divisions of the second area is determined according to the number, the second area is divided so that the number of divided areas is the determined number of divisions, and the second area is divided for each divided area. A feature generation method characterized by generating a distribution .
また、本発明は、入力画像から特徴点を検出するステップと、前記入力画像において前記特徴点の周辺の画素値から画素情報を生成するステップと、前記特徴点を含む第1の領域の前記画素情報の第1の分布を生成するステップと、前記特徴点の周辺からサブ特徴点を検出するステップと、前記サブ特徴点を含む第2の領域の前記画素情報の第2の分布を生成するステップと、前記第1の分布と前記第2の分布とに基づいて、前記特徴点における特徴量を生成するステップと、をコンピュータに実行させるためのプログラムであって、前記第2の分布を生成するステップでは、前記サブ特徴点の数に応じて、前記第2の領域の分割数を決定し、分割後の領域数が決定した分割数となるように前記第2の領域を分割し、分割後の領域ごとに前記第2の分布を生成するプログラムである。 The present invention also includes a step of detecting a feature point from the input image, a step of generating pixel information from pixel values around the feature point in the input image, and the pixel in the first region including the feature point Generating a first distribution of information, detecting a sub-feature point from the periphery of the feature point, and generating a second distribution of the pixel information of the second region including the sub-feature point And generating a feature amount at the feature point based on the first distribution and the second distribution, and causing the computer to execute the second distribution. In the step, the number of divisions of the second region is determined according to the number of the sub feature points, the second region is divided so that the number of divided regions becomes the determined number of divisions, and after the division The second distribution is generated for each area of It is a program to be formed.
本発明によれば、特徴点を含む第1の領域の画素情報の第1の分布と、サブ特徴点を含む第2の領域の画素情報の第2の分布とに基づいて、特徴点における特徴量を生成することによって、画像における被写体の動きや周囲の動きの影響を受けにくい特徴量を生成することができる。 According to the present invention, based on the first distribution of pixel information of the first region including the feature points and the second distribution of pixel information of the second region including the sub-feature points, the feature at the feature points By generating the amount, it is possible to generate a feature amount that is not easily influenced by the movement of the subject in the image and the surrounding movement.
以下、図面を参照し、本発明の実施形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(第1の実施形態)
まず、本発明の第1の実施形態を説明する。図1は、本実施形態による特徴量生成装置の構成を示している。図1に示す特徴量生成装置は、特徴点検出部10、主方向調整部20、画素情報生成部30、特徴点画素情報分布生成部40、サブ特徴点検出部50、サブ特徴点画素情報分布生成部60、特徴量生成部70を有する。
(First embodiment)
First, a first embodiment of the present invention will be described. FIG. 1 shows the configuration of the feature quantity generating apparatus according to this embodiment. 1 includes a feature
以下、各ブロックの機能を説明する。特徴量生成装置には、特徴量を生成する処理の対象である入力画像が外部から入力され、装置内の図示していないメモリに一時記憶される。各ブロックは、適宜、メモリに記憶された入力画像を用いて処理を行う。 Hereinafter, the function of each block will be described. In the feature quantity generation device, an input image that is a target of the feature quantity generation process is input from the outside and temporarily stored in a memory (not shown) in the apparatus. Each block performs processing using the input image stored in the memory as appropriate.
特徴点検出部10は、入力画像から特徴点を検出する。より具体的には、特徴点検出部10は、入力画像を用いて、コーナーやエッジの強さを示す特徴評価値を算出し、算出した特徴評価値が高い点を特徴点として検出し、検出した特徴点の座標(以下、特徴点座標と記載)を出力する。
The feature
主方向調整部20は、入力画像において特徴点の周辺の各画素の画素値の勾配の角度に基づいて特徴点の主方向を算出し、当該主方向に応じて入力画像を回転し、回転画像を生成する。より具体的には、主方向調整部20は、特徴点検出部10が検出した特徴点座標付近の画素値の勾配の角度を算出し、算出した角度の中で多数を占める角度を主方向として検出する。さらに、主方向調整部20は、入力画像から特徴点座標を中心とする所定の大きさの領域を切り出し、検出した主方向の角度に応じて、切り出した領域の画像を回転させることにより回転画像を生成する。切り出す領域は、後段の特徴点画素情報分布生成部40、サブ特徴点画素情報分布生成部60が画素情報の分布を生成する際に使うデータを含む領域とする。
The main
画素情報生成部30は、主方向調整部20が生成した回転画像において特徴点の周辺の画素値から画素情報を生成する。より具体的には、画素情報生成部30は、主方向調整部20が生成した回転画像において特徴点の周辺の画素値の勾配の角度と長さを含む勾配ベクトルを画素情報として生成する。画素情報は、このように、画素値の勾配の角度と長さなど、各画素の固有の情報である。画素情報生成部30は、主方向調整部20が生成した回転画像の輝度値および色情報(例えば色差情報Cr,Cb)の少なくとも一方を画素値として用いて画素情報を生成してもよい。また、画素情報生成部30は、撮像素子から出力された画像であるRAW画像を入力画像として用いて画素情報を生成してもよい。
The pixel
特徴点画素情報分布生成部40は、特徴点を含む領域(第1の領域)の画素情報の分布(第1の分布)を生成する。より具体的には、特徴点画素情報分布生成部40は、特徴点座標を含む小領域内の画素情報に基づいて、特徴点における画素情報の分布を生成する。例えば、特徴点画素情報分布生成部40は、画素情報生成部30が生成した勾配ベクトルのうち、特徴点を含む領域の画素の勾配ベクトルを要素とし、角度に対する長さの累計の分布を示すヒストグラムを第1の分布として生成する。
The feature point pixel information
サブ特徴点検出部50は特徴点の周辺におけるサブ特徴点を検出する。より具体的には、サブ特徴点検出部50は、主方向調整部20が生成した回転画像のうち、特徴点を中心とする所定の範囲内から、特徴点以外に特徴的な点であるサブ特徴点を検出し、検出したサブ特徴点の座標(以下、サブ特徴点座標と記載)を出力する。このとき、サブ特徴点検出部50は、特徴点検出部10が検出した特徴点の特徴評価値よりも特徴評価値が低い点をサブ特徴点の候補とする。また、サブ特徴点検出部50は、サブ特徴点の候補の中で、特徴評価値が所定値よりも高い1つもしくは複数の点をサブ特徴点と決定する。
The sub
サブ特徴点画素情報分布生成部60は、サブ特徴点を含む領域(第2の領域)の画素情報の分布(第2の分布)を生成する。より具体的には、サブ特徴点画素情報分布生成部60は、サブ特徴点座標を含む小領域内の画素情報に基づいて、各サブ特徴点における画素情報の分布を生成する。例えば、サブ特徴点画素情報分布生成部60は、画素情報生成部30が生成した勾配ベクトルのうち、サブ特徴点を含む領域の画素の勾配ベクトルを要素とし、角度に対する長さの累計の分布を示すヒストグラムを第2の分布として生成する。
The sub feature point pixel information
特徴量生成部70は、特徴点の画素情報の分布と、サブ特徴点の画素情報の分布とに基づいて、特徴点における特徴量を生成する。より具体的には、特徴量生成部70は、特徴点の画素情報の分布とサブ特徴点の画素情報の分布とのそれぞれの要素を組み合わせた集合を、特徴点の特徴量として出力する。例えば、特徴量生成部70は、特徴点の画素情報の分布と、複数のサブ特徴点の各々の特徴評価値に基づく順番で複数のサブ特徴点の各々に係る画素情報の分布を並べた分布とを組み合わせた集合を特徴点における特徴量として出力する。
The feature
次に、図2を参照して、特徴量生成装置による特徴量生成処理について具体的に説明する。図2は、特徴量生成処理の手順を示している。特徴量生成装置は、入力画像が供給されて、特徴量の生成が指示されると、特徴量生成処理を開始する。 Next, with reference to FIG. 2, the feature value generation processing by the feature value generation device will be specifically described. FIG. 2 shows the procedure of the feature quantity generation process. When the input image is supplied and the generation of the feature quantity is instructed, the feature quantity generation device starts the feature quantity generation process.
ステップS1において、処理が開始されると、ステップS2において、特徴点検出部10は、入力画像から特徴点の位置を検出する。例えば特徴点検出部10は、特徴の強さを示す特徴評価値を算出する方法(HarrisCornerDetecter等)を用い、特徴評価値が所定の閾値以上の点、あるいは、特徴評価値が上位から数えて所定数以内の点を特徴点として検出する。
When the process is started in step S1, the feature
続いて、ステップS3において、特徴点検出部10は、検出した特徴点の1つを選択し、選択した特徴点(以降、注目特徴点と記載)の座標を後段の主方向調整部20へ出力する。
Subsequently, in step S3, the feature
続いて、注目特徴点の主方向を求める処理が行われる。主方向は、注目特徴点付近の画素の勾配の角度の中で多数を占める支配的な角度である。 Subsequently, processing for obtaining the main direction of the feature point of interest is performed. The main direction is a dominant angle that occupies a majority of the gradient angles of the pixels near the feature point of interest.
より具体的には、ステップS4において、主方向調整部20は、注目特徴点付近の複数画素それぞれに対して輝度値の勾配の角度を算出する。なお、勾配の角度を生成するのに用いるデータは、輝度値に限らず、色情報や、RAW画像の画素値でもよい。座標位置(x,y)の画素の勾配の角度θ(x,y)は以下の(1)式で算出される。(1)式において、座標位置(x,y)の画素に隣接する画素の輝度値はI(x−1,y)、I(x+1,y)、I(x,y−1)、I(x,y+1)と表される。角度の基準方向は画像の上方向(Y方向)であり、左回りに角度が増加する。
More specifically, in step S4, the main
続いて、ステップS5において、主方向調整部20は、ステップS4で生成した勾配の角度をビン(ヒストグラムの横軸)とし、勾配の角度の数を度数(ヒストグラムの縦軸)とするヒストグラムを生成し、生成したヒストグラムにおいて度数が最大となる勾配の角度を注目特徴点の主方向と決定する。
Subsequently, in step S5, the main
続いて、ステップS6において、主方向調整部20は、ステップS5で求めた主方向に基づいて入力画像を回転させる。より具体的には、主方向調整部20は、入力画像の注目特徴点を中心とする所定のサイズの領域を切り出し、注目特徴点を中心として、主方向の角度とは反対方向に主方向の角度の大きさだけ、切り出した領域を回転させて回転画像を生成する。回転後の回転画像における注目特徴点の主方向は画像の上方向となる。主方向調整部20は、回転画像を後段の画素情報生成部30、サブ特徴点検出部50へ出力する。画像を切り出す領域のサイズは、後段で画素情報の分布の生成に用いる領域が含まれるサイズである。例えば本実施形態では、回転画像を生成するために入力画像から切り出される領域は32画素×32画素の矩形領域である。
Subsequently, in step S6, the main
以上のステップS4〜S6の処理からなる主方向調整を行うことで、後段の画素情報生成部30が、被写体の回転に対して不変な画素情報を生成することができる。特徴点の主方向の角度に基づいて画像を回転させることで、回転後の特徴点の主方向は、被写体の回転によらず常に同じ方向を向く。後段の画素情報生成部30が生成する画素値の輝度勾配ベクトルは、主方向の角度に応じて回転した画像から生成されるため、輝度勾配ベクトルの角度は主方向とのなす角度(主方向を基準方向とする角度)になる。このため、被写体が回転した場合でも、同一の被写体であれば、輝度勾配ベクトルを構成する角度は常に同じ角度を示すことになる。これによって、被写体の回転による特徴量の変化を低減することができる。上記では被写体の回転を想定した説明を行ったが、画像を撮像した装置自体が回転する場合も、上記と同様に、その回転に応じた主方向調整が行われるため、装置自体の回転による特徴量の変化を低減することができる。
By performing the main direction adjustment including the processes in steps S4 to S6, the pixel
続いて、ステップS7において、画素情報生成部30は、ステップS6で生成された回転画像の輝度値に基づいて、輝度値の勾配ベクトルである輝度勾配ベクトルを生成する。座標位置(x,y)の輝度勾配ベクトルの長さNorm(x,y)と角度Gradient(x,y)はそれぞれ以下の(2)式、(3)式により算出される。(2)式、(3)式において、回転画像はRと表され、隣接する画素の輝度値はR(x−1,y)、R(x+1,y)、R(x,y−1)、R(x,y+1)と表される。また、角度は45度の倍数に量子化され、0度〜315度の45度刻みの8つの角度で表される。
Subsequently, in step S7, the pixel
続いて、ステップS8において、特徴点画素情報分布生成部40は、注目特徴点を含む小領域の輝度勾配ベクトルの分布を表すヒストグラム(以下、勾配ヒストグラムと記載)を生成する。小領域のサイズは、特徴点が識別できる範囲で小さめのサイズが望ましい。図3は、勾配ヒストグラムを生成する概念を示している。図3(a)は、ステップS6で生成された回転画像において、勾配ヒストグラムを生成する小領域R0の例を示している。図3(a)中の小さい丸印は画素を示している。本実施形態では、例えば図3(a)に示すように、勾配ヒストグラムを生成する小領域R0は、注目特徴点P0を中心とする12×12画素の矩形領域である。また、本実施形態では、小領域を16分割した3×3画素の領域が局所領域と定義される。
Subsequently, in step S8, the feature point pixel information
1つの局所領域につき、1つのヒストグラム(以下、局所ヒストグラムと記載)が生成される。この局所ヒストグラムは、局所領域中の輝度勾配ベクトルの角度に対する長さの累計を表す。図3(b)は、1つの局所領域内の各画素の輝度勾配ベクトルから生成された局所ヒストグラムの例を示している。図3(b)に示すように、局所ヒストグラムのビンは角度であり、度数は輝度勾配ベクトルの長さの累計である。輝度勾配ベクトルの角度は8方向の角度で表されているため、1つの局所ヒストグラムのビン数は8となる。同一の角度に対して複数の輝度勾配ベクトルの長さが対応する場合、その角度における局所ヒストグラムの度数は、複数の輝度勾配ベクトルの長さの累計(総和)である。 One histogram (hereinafter referred to as a local histogram) is generated for each local region. This local histogram represents the cumulative length with respect to the angle of the luminance gradient vector in the local region. FIG. 3 (b) shows an example of a local histogram generated from the luminance gradient vector of each pixel in one local region. As shown in FIG. 3 (b), the bin of the local histogram is an angle, and the frequency is the total length of the luminance gradient vector. Since the angle of the brightness gradient vector is represented by an angle in 8 directions, the number of bins in one local histogram is 8. When the lengths of a plurality of luminance gradient vectors correspond to the same angle, the frequency of the local histogram at that angle is the total (sum) of the lengths of the plurality of luminance gradient vectors.
図3(c)は、勾配ヒストグラムの例を示している。特徴点画素情報分布生成部40は、16個の局所領域のそれぞれについて局所ヒストグラムを生成し、生成した16個の局所ヒストグラムを連結することにより注目特徴点の勾配ヒストグラムを生成する。1個の局所ヒストグラムのビン数は8であるので、図3(c)に示すように、ビン数8×16=128のヒストグラムが注目特徴点の勾配ヒストグラムである。以上の処理により、注目特徴点の勾配ヒストグラムが完成する。
FIG. 3 (c) shows an example of a gradient histogram. The feature point pixel information
続いて、ステップS9において、サブ特徴点検出部50は、サブ特徴点を検出する。サブ特徴点は、注目特徴点周辺の特徴的な点であり、サブ特徴点の数Nは本実施形態の例では2である。
Subsequently, in step S9, the sub feature
より具体的には、サブ特徴点検出部50は、主方向調整部20が生成した回転画像における注目特徴点を中心とする所定の範囲内でサブ特徴点を検出する。検出方法には、HarrisCornerDetecterなどの特徴評価値算出方法が用いられる。サブ特徴点検出部50は、算出した特徴評価値が所定の閾値以上である点をサブ特徴点の候補とし、サブ特徴点の候補の中で特徴評価値が上位の点(1点または複数点)をサブ特徴点として選択する。
More specifically, the sub feature
このとき設定される閾値は、例えば前述したステップS2で特徴点検出部10が用いる特徴評価値の閾値よりも低い閾値である。これによって、特徴評価値が低い点でもサブ特徴点となりうる。なぜなら、閾値が高いとサブ特徴点が検出されないことが考えられ、その場合、最終的な特徴量の次元数が少なくなり、特徴点の特性が出にくくなるためである。ただし、閾値を指定しない、もしくは閾値が低すぎる場合、特徴評価値が同程度の点が多く発生し、別の画像の同じ特徴点の特徴量を生成する際に、異なるサブ特徴点が選ばれて、特徴量が不安定になる可能性が高いため、所定以上の閾値を設けることが望ましい。本実施形態の例では、サブ特徴点は2点であり、特徴評価値が高い順にサブ特徴点に1〜2の番号が付与される。
The threshold value set at this time is, for example, a threshold value lower than the threshold value of the feature evaluation value used by the feature
続いて、ステップS10において、図示していない制御部が、処理を行うサブ特徴点の番号iの初期化を行う。すなわち、番号iの値が1に設定される。 Subsequently, in step S10, a control unit (not shown) initializes the sub feature point number i to be processed. That is, the value of the number i is set to 1.
続いて、ステップS11において、図示していない制御部が、i番目のサブ特徴点の有無を判断する。i番目のサブ特徴点が存在する場合には、処理がステップS12に進む。 Subsequently, in step S11, a control unit (not shown) determines whether or not there is an i-th sub feature point. If the i-th sub feature point exists, the process proceeds to step S12.
ステップS12において、サブ特徴点画素情報分布生成部60は、画素情報生成部30が生成した輝度勾配ベクトルを用いて、i番目のサブ特徴点の勾配ヒストグラムを生成する。この勾配ヒストグラムの生成は、i番目のサブ特徴点座標を中心とする小領域に対して、前述したステップS8で勾配ヒストグラムを生成する方法と同様の方法で行われる。
In step S12, the sub feature point pixel information
図4は、回転画像上の注目特徴点とサブ特徴点の例を示している。図4中の小さい丸印は画素を示している。回転画像Img1の中央に注目特徴点P0が設定され、注目特徴点P0の周辺に2点のサブ特徴点P1,P2が設定されている。注目特徴点P0を含む12×12画素の矩形領域が、勾配ヒストグラムを生成するのに用いる小領域R0である。同様に、サブ特徴点P1,P2を含む12×12画素の矩形領域がそれぞれ、勾配ヒストグラムを生成するのに用いる小領域R1,R2である。小領域R0,R1,R2のそれぞれを16分割した、破線で示される領域が局所領域である。ステップS12では、サブ特徴点それぞれについて、注目特徴点と同様に、サブ特徴点を含む小領域の輝度勾配ベクトルの勾配ヒストグラムが生成される。 FIG. 4 shows examples of feature points of interest and sub-feature points on the rotated image. Small circles in FIG. 4 indicate pixels. An attention feature point P0 is set at the center of the rotated image Img1, and two sub feature points P1 and P2 are set around the attention feature point P0. A 12 × 12 pixel rectangular region including the target feature point P0 is a small region R0 used for generating a gradient histogram. Similarly, 12 × 12 pixel rectangular regions including the sub-feature points P1 and P2 are small regions R1 and R2 used to generate a gradient histogram, respectively. A region indicated by a broken line obtained by dividing each of the small regions R0, R1, and R2 into 16 is a local region. In step S12, for each sub feature point, a gradient histogram of the luminance gradient vector of the small region including the sub feature point is generated in the same manner as the target feature point.
ステップS11において、サブ特徴点の検出を行った範囲内に特徴評価値が閾値以上の点がなく、i番目のサブ特徴点が存在しない場合、処理はステップS13に進む。ステップS13において、サブ特徴点画素情報分布生成部60は、度数がすべて0の勾配ヒストグラムを生成する。もしくは、存在しないサブ特徴点の勾配ヒストグラムを生成せずに、ステップS8で生成した特徴点の勾配ヒストグラムを最終的な注目特徴点の特徴量としてもよい。i番目のサブ特徴点の勾配ヒストグラムが完成した後、処理はステップS14に進む。
In step S11, if there is no point whose feature evaluation value is equal to or greater than the threshold within the range in which the sub feature point is detected, and the i-th sub feature point does not exist, the process proceeds to step S13. In step S13, the sub-feature point pixel information
ステップS14において、図示していない制御部は、すべてのサブ特徴点の処理が終了したか否かを判断する。サブ特徴点の処理が終了していない場合、処理はステップS15に進む。ステップS15において、図示していない制御部は、処理するサブ特徴点の番号iをインクリメント(1増加)する。この後、処理はステップS11に戻り、次のサブ特徴点の勾配ヒストグラムの生成処理が行われる。すべてのサブ特徴点の処理が終了した場合、処理はステップS16に進む。 In step S14, a control unit (not shown) determines whether or not the processing of all sub feature points has been completed. If the sub-feature point processing has not ended, the processing proceeds to step S15. In step S15, the control unit (not shown) increments (increases by 1) the number i of the sub feature point to be processed. Thereafter, the process returns to step S11, and the process of generating the gradient histogram of the next sub feature point is performed. When the processing of all the sub feature points is completed, the processing proceeds to step S16.
ステップS16において、特徴量生成部70は、注目特徴点の勾配ヒストグラムと2つのサブ特徴点の勾配ヒストグラムとを並べてそれらを連結し、ビン数128×3=384のヒストグラムを生成する。このとき、例えば注目特徴点の勾配ヒストグラムの後に2つのサブ特徴点の勾配ヒストグラムが並べられる。また、サブ特徴点の勾配ヒストグラムは、例えばサブ特徴点の各々の特徴評価値に基づく順番(例えば、特徴評価値が高い順)に並べられる。特徴評価値が高い順にヒストグラムを並べることで、別の画像から同じ特徴点の特徴量を生成する場合も、ヒストグラムが同じ順序で並びやすいため、特徴量が安定する。
In step S16, the feature
以上の方法で生成したビン数384のヒストグラムが注目特徴点の特徴量となり、1つの特徴点の特徴量生成処理が完了する。続いて、ステップS17において、図示していない制御部は、ステップS2〜S16の処理をすべての特徴点に対して行ったか否かを判断する。ステップS2〜S16の処理を行っていない特徴点がある場合、処理はステップS3に戻り、次の特徴点に対してステップS2〜S16の処理が行われる。すべての特徴点の処理が完了した場合、ステップS18において、特徴量生成処理が終了する。 The histogram with 384 bins generated by the above method becomes the feature amount of the feature point of interest, and the feature amount generation processing for one feature point is completed. Subsequently, in step S17, a control unit (not shown) determines whether or not the processing in steps S2 to S16 has been performed on all feature points. If there is a feature point that has not been subjected to the processes in steps S2 to S16, the process returns to step S3, and the processes in steps S2 to S16 are performed on the next feature point. If all feature points have been processed, the feature value generation process ends in step S18.
上記の例では、2点のサブ特徴点が検出されるが、1点のみのサブ特徴点が検出されてもよいし、3点以上のサブ特徴点が検出されてもよい。 In the above example, two sub feature points are detected, but only one sub feature point may be detected, or three or more sub feature points may be detected.
以上のように、狭い範囲のデータを用いて生成した特徴量を複数組み合わせて1つの特徴量とすることで、注目する特徴点の周りに変化があった場合でも、特徴量の変化量を抑えることができる。 As described above, by combining multiple feature values generated using data in a narrow range into one feature value, even if there is a change around the feature point of interest, the change amount of the feature value is suppressed. be able to.
本実施形態による特徴量生成装置を構成する各ブロックの機能は、例えば図示していないROMに記憶されているプログラムを、特徴量生成装置のコンピュータ(CPU)が読み込んで実行することにより、ソフトウェアの機能として実現してもよい。また、このプログラムは、例えばフラッシュメモリのような「コンピュータ読み取り可能な記録媒体」により提供されてもよい。また、上述したプログラムは、このプログラムを記憶装置等に格納したコンピュータから、伝送媒体を介して、あるいは伝送媒体中の伝送波により特徴量生成装置に伝送されることで特徴量生成装置に入力されてもよい。ここで、プログラムを伝送する「伝送媒体」は、インターネット等のネットワーク(通信網)や電話回線等の通信回線(通信線)のように、情報を伝送する機能を有する媒体である。また、上述したプログラムは、前述した機能の一部を実現してもよい。さらに、上述したプログラムは、前述した機能をコンピュータに既に記録されているプログラムとの組合せで実現できる、いわゆる差分ファイル(差分プログラム)であってもよい。 The function of each block constituting the feature quantity generation device according to the present embodiment is such that, for example, a program (CPU) stored in a ROM (not shown) is read and executed by the computer (CPU) of the feature quantity generation device. It may be realized as a function. The program may be provided by a “computer-readable recording medium” such as a flash memory. Further, the above-described program is input to the feature quantity generation device by being transmitted to the feature quantity generation device via a transmission medium or by a transmission wave in the transmission medium from a computer storing the program in a storage device or the like. May be. Here, the “transmission medium” for transmitting the program is a medium having a function of transmitting information, such as a network (communication network) such as the Internet or a communication line (communication line) such as a telephone line. Further, the above-described program may realize a part of the functions described above. Furthermore, the above-described program may be a so-called difference file (difference program) that can realize the above-described function in combination with a program already recorded in the computer.
上記の説明では、特徴量生成装置が主方向調整部20を有しているが、特徴量生成装置が主方向調整部20を有していなくてもよい。図5は、本実施形態による特徴量生成装置の変形例の構成を示している。図5に示す特徴量生成装置は、特徴点検出部10、画素情報生成部30、特徴点画素情報分布生成部40、サブ特徴点検出部50、サブ特徴点画素情報分布生成部60、特徴量生成部70を有する。
In the above description, the feature quantity generation device has the main
特徴点検出部10が検出した特徴点の座標(特徴点座標)は画素情報生成部30、サブ特徴点検出部50に出力される。画素情報生成部30は、入力画像において特徴点の周辺の画素値から画素情報を生成する。サブ特徴点検出部50は、入力画像において特徴点の周辺からサブ特徴点を検出する。画素情報生成部30、サブ特徴点検出部50が回転画像ではなく入力画像に対して処理を行うことを除いて、図5に示す特徴量生成装置が行う処理は、図1に示す特徴量生成装置が行う処理と同様である。
The feature point coordinates (feature point coordinates) detected by the feature
図6は、図5に示す特徴量生成装置が行う特徴量生成処理の手順を示している。図2に示した処理におけるステップS4〜S6の処理が削除され、ステップS7の処理がステップS7’の処理に変更されている。図6に示す処理では、ステップS3で特徴点が選択された後、ステップS7’において、画素情報生成部30は、入力画像の輝度値から輝度勾配ベクトルを生成する。上記以外については、図2に示した処理と同様である。
FIG. 6 shows a procedure of feature quantity generation processing performed by the feature quantity generation apparatus shown in FIG. The processes of steps S4 to S6 in the process shown in FIG. 2 are deleted, and the process of step S7 is changed to the process of step S7 '. In the process shown in FIG. 6, after the feature point is selected in step S3, in step S7 ', the pixel
図5に示す特徴量生成装置は、被写体の回転または装置自体の回転による特徴量の変化を低減する処理(図2のステップS4〜S6の処理)を行わないが、回転以外については、画像における被写体の動きや周囲の動きの影響を受けにくい特徴量を生成することができる。 The feature quantity generation device shown in FIG. 5 does not perform the process of reducing the change in the feature quantity due to the rotation of the subject or the rotation of the apparatus itself (the processes in steps S4 to S6 in FIG. 2). It is possible to generate a feature quantity that is not easily affected by the movement of the subject and the surrounding movement.
上述したように、本実施形態によれば、特徴点を含む小領域(第1の領域)の画素情報の分布(第1の分布)である特徴点の勾配ヒストグラムと、サブ特徴点を含む小領域(第2の領域)の画素情報の分布(第2の分布)であるサブ特徴点の勾配ヒストグラムとに基づいて、特徴点における特徴量を生成することによって、画像における被写体の動きや周囲の動きの影響を受けにくい、ロバストな特徴量を生成することができる。 As described above, according to the present embodiment, a gradient histogram of feature points, which is a distribution (first distribution) of pixel information of a small region (first region) including feature points, and a small region including sub feature points. Based on the gradient histogram of the sub-feature points, which is the distribution (second distribution) of pixel information in the region (second region), by generating feature quantities at the feature points, It is possible to generate robust feature values that are not easily affected by movement.
また、特徴点の特徴評価値よりも特徴評価値が低い点をサブ特徴点の候補とすることによって、強い特徴点が少ない領域でもサブ特徴点が検出できるようになるため、特徴量の情報が減ることを防ぐことができる。 In addition, by selecting a point having a feature evaluation value lower than the feature evaluation value of the feature point as a candidate for the sub feature point, the sub feature point can be detected even in a region having a few strong feature points. It can be prevented from decreasing.
また、サブ特徴点の候補の中で、特徴評価値が所定値よりも高い1つもしくは複数の点をサブ特徴点と決定することによって、より強いサブ特徴点が選択されるため、最終的な特徴量の個性が強くなる。このため、別の画像で同じ特徴点の特徴量を生成する際に、同じサブ特徴点が検出される可能性が高くなり、特徴量の安定性が上がる。 In addition, by determining one or a plurality of points whose feature evaluation values are higher than a predetermined value among the sub feature point candidates as a sub feature point, a stronger sub feature point is selected. The individuality of the feature value becomes stronger. For this reason, when generating the feature quantity of the same feature point in another image, the possibility that the same sub-feature point is detected increases, and the stability of the feature quantity increases.
また、特徴点の勾配ヒストグラムと、複数のサブ特徴点の各々の特徴評価値に基づく順番で複数のサブ特徴点の各々に係る勾配ヒストグラムを並べたものとを組み合わせた集合を特徴点における特徴量とすることによって、別の画像においてサブ特徴点の位置関係が変わった場合でも、写っている点が同じであれば、特徴量における勾配ヒストグラムの順番は同じとなる。このため、周囲の動きに対してロバストな特徴量を生成することができる。 In addition, a feature amount at a feature point is a set obtained by combining a gradient histogram of feature points and an array of gradient histograms related to each of a plurality of sub feature points in order based on the feature evaluation values of each of the plurality of sub feature points. Thus, even when the positional relationship of the sub-feature points changes in another image, the order of the gradient histograms in the feature amounts is the same if the captured points are the same. For this reason, it is possible to generate a feature amount that is robust to surrounding movement.
また、入力画像において特徴点の周辺の画素値の勾配の角度と長さを含む勾配ベクトルを画素情報として生成することによって、照明の変化にロバストな特徴量を生成することができる。 In addition, by generating a gradient vector including the gradient angle and length of pixel values around feature points in the input image as pixel information, it is possible to generate a feature value that is robust to changes in illumination.
また、画素情報生成部30が生成した勾配ベクトルのうち、サブ特徴点を中心とする小領域の画素の勾配ベクトルを要素とし、角度に対する長さの累計の分布を示す勾配ヒストグラムを生成することによって、照明変化にロバストなサブ特徴点の情報を含んだ特徴量を生成することができる。
Further, among the gradient vectors generated by the pixel
また、画素情報生成部30が生成した勾配ベクトルのうち、特徴点を中心とする領域の画素の勾配ベクトルを要素とし、角度に対する長さの累計の分布を示すヒストグラムを生成することによって、照明変化にロバストな特徴点の情報を含んだ特徴量を生成することができる。
Further, among the gradient vectors generated by the pixel
また、画素情報を生成する際の画素値として輝度情報のみを用いることで、色が同じ場合でも明るさの違う特徴点の特性が反映された特徴量を、少ないデータ量で生成することができる。また、画素情報を生成する際の画素値として色情報のみを用いることで、輝度が同じ場合でも色変化のある特徴点の特性が反映された特徴量を、少ないデータ量で生成することができる。また、画素情報を生成する際の画素値として輝度情報と色情報を用いることで、色情報も輝度情報も加味した特徴量を生成することができる。 In addition, by using only luminance information as pixel values when generating pixel information, it is possible to generate a feature amount that reflects the characteristics of feature points having different brightness even with the same color with a small amount of data. . In addition, by using only color information as pixel values when generating pixel information, it is possible to generate a feature amount that reflects the characteristics of feature points having a color change with a small amount of data even when the luminance is the same. . Further, by using the luminance information and the color information as the pixel values when generating the pixel information, it is possible to generate a feature amount that takes into account both the color information and the luminance information.
また、RAW画像を入力画像として用いて画素情報を生成することによって、少ないデータ量で、色情報も輝度情報も加味した集合を探索することができる。 In addition, by generating pixel information using a RAW image as an input image, it is possible to search for a set that takes into account both color information and luminance information with a small amount of data.
また、入力画像において特徴点の周辺の各画素の画素値の勾配の角度に基づいて特徴点の主方向を算出し、当該主方向に応じて入力画像を回転することによって、被写体の回転や装置自体の回転に対してロバストな特徴量を生成することができる。 In addition, the main direction of the feature point is calculated based on the gradient angle of the pixel value of each pixel around the feature point in the input image, and the input image is rotated in accordance with the main direction, thereby rotating the subject or the device. It is possible to generate a feature quantity that is robust to its own rotation.
(第2の実施形態)
次に、本発明の第2の実施形態を説明する。本実施形態による特徴量生成装置の構成は、図1に示す特徴量生成装置の構成と同様である。本実施形態では、勾配ヒストグラムを生成する際の局所領域の数やサイズは可変である。
(Second embodiment)
Next, a second embodiment of the present invention will be described. The configuration of the feature quantity generation device according to the present embodiment is the same as the configuration of the feature quantity generation device shown in FIG. In the present embodiment, the number and size of local regions when generating a gradient histogram are variable.
例えば、サブ特徴点画素情報分布生成部60は、サブ特徴点検出部50が検出するサブ特徴点の数に応じて、サブ特徴点を中心とする小領域の分割数を決定し、分割後の領域数が決定した分割数となるように小領域を分割し、分割後の局所領域ごとにサブ特徴点の勾配ヒストグラムを生成する。あるいは、サブ特徴点画素情報分布生成部60は、サブ特徴点検出部50が検出するサブ特徴点の数に応じて、サブ特徴点を中心とする小領域の分割サイズを決定し、分割後の領域のサイズが決定した分割サイズとなるように小領域を分割し、分割後の局所領域ごとに勾配ヒストグラムを生成する。
For example, the sub-feature point pixel information
また、特徴点画素情報分布生成部40は、サブ特徴点画素情報分布生成部60が決定した分割数に応じて、特徴点を中心とする小領域の分割数を決定する。より具体的には、特徴点画素情報分布生成部40は、特徴点を中心とする小領域の分割数を、サブ特徴点画素情報分布生成部60が決定した分割数と同じ数に決定する。
In addition, the feature point pixel information
あるいは、特徴点画素情報分布生成部40は、サブ特徴点画素情報分布生成部60が決定した小領域の分割サイズに応じて、特徴点を中心とする小領域の分割サイズを決定する。より具体的には、特徴点画素情報分布生成部40は、特徴点を中心とする小領域の分割サイズを、サブ特徴点画素情報分布生成部60が決定した分割サイズと同じサイズに決定する。
Alternatively, the feature point pixel information
図7は、サブ特徴点の数に応じて局所領域の数を変える場合の局所領域の例を示している。図7中の小さい丸印は画素を示している。回転画像Img11の中央に注目特徴点P10が設定され、注目特徴点P10の周辺に3点のサブ特徴点P11,P12,P13が設定されている。注目特徴点P10を含む12×12画素の矩形領域が、勾配ヒストグラムを生成するのに用いる小領域R10である。同様に、サブ特徴点P11,P12,P13を含む12×12画素の矩形領域がそれぞれ、勾配ヒストグラムを生成するのに用いる小領域R11,R12,R13である。小領域R10,R11,R12,R13のそれぞれを12分割した、破線で示される領域が局所領域である。 FIG. 7 shows an example of local regions when the number of local regions is changed according to the number of sub feature points. Small circles in FIG. 7 indicate pixels. An attention feature point P10 is set at the center of the rotated image Img11, and three sub feature points P11, P12, and P13 are set around the attention feature point P10. A 12 × 12 pixel rectangular region including the target feature point P10 is a small region R10 used to generate a gradient histogram. Similarly, 12 × 12 pixel rectangular regions including the sub-feature points P11, P12, and P13 are small regions R11, R12, and R13 used to generate a gradient histogram, respectively. A region indicated by a broken line obtained by dividing each of the small regions R10, R11, R12, and R13 into 12 is a local region.
サブ特徴点の数が3、局所領域の数が12個の場合、1つの局所ヒストグラムのビン数が8であれば、1つの勾配ヒストグラムのビン数は12×8=96となる。このビン数が、サブ特徴点3点と注目特徴点1点の合計4点分必要となるので、注目特徴点の最終的な特徴量の次元は、96×4=384次元となる。このため、サブ特徴点の数を第1の実施形態における2から増やした場合でも、特徴量の次元数を第1の実施形態における次元数と同じ次元数に抑えることができる。特徴量の次元数は、注目特徴点およびサブ特徴点の合計数と局所領域の数との積に比例するため、サブ特徴点の数を増やしても、局所領域の数を減らせば、特徴量の次元数の増加を抑えることが可能となる。 If the number of sub feature points is 3 and the number of local regions is 12, and if the number of bins in one local histogram is 8, the number of bins in one gradient histogram is 12 × 8 = 96. Since the number of bins is required for a total of four points including three sub feature points and one feature point of interest, the final feature quantity dimension of the feature point of interest is 96 × 4 = 384 dimensions. For this reason, even when the number of sub-feature points is increased from 2 in the first embodiment, the number of dimensions of the feature amount can be suppressed to the same number of dimensions as that in the first embodiment. Since the number of feature dimensions is proportional to the product of the total number of feature points and sub-feature points and the number of local regions, if the number of sub-feature points is increased and the number of local regions is decreased, the feature amount An increase in the number of dimensions can be suppressed.
特徴量生成装置の図示していないメモリには、小領域(図7の小領域R10,R11,R12,R13)の大きさに関する情報や、特徴量の次元数に関する情報、1つの局所ヒストグラムのビン数に関する情報が格納されている。サブ特徴点画素情報分布生成部60は、サブ特徴点検出部50が検出するサブ特徴点の数と、小領域の大きさ(12×12画素)と、特徴量の次元数(384次元)と、1つの局所ヒストグラムのビン数(8)とに応じて、局所領域の数を決定する。例えばサブ特徴点の数が2である場合、サブ特徴点2点と注目特徴点1点の合計3点分のビン数は384÷3=128となる。1つの局所ヒストグラムのビン数が8であるため、局所領域の数は128÷8=16となる。また、サブ特徴点の数が3である場合、サブ特徴点3点と注目特徴点1点の合計4点分のビン数は384÷4=96となる。1つの局所ヒストグラムのビン数が8であるため、局所領域の数は96÷8=12となる。
In the memory (not shown) of the feature quantity generation device, information on the size of the small area (small areas R10, R11, R12, R13 in FIG. 7), information on the dimension number of the feature quantity, and one local histogram bin Stores information about numbers. The sub-feature point pixel information
図8は、サブ特徴点の数に応じて局所領域のサイズを変える場合の局所領域の例を示している。図8中の小さい丸印は画素を示している。回転画像Img21の中央に注目特徴点P20が設定され、注目特徴点P20の周辺に4点のサブ特徴点P21,P22,P23,P24が設定されている。注目特徴点P20を含む8×8画素の矩形領域が、勾配ヒストグラムを生成するのに用いる小領域R20である。同様に、サブ特徴点P21,P22,P23,P24を含む8×8画素の矩形領域がそれぞれ、勾配ヒストグラムを生成するのに用いる小領域R21,R22,R23,R24である。小領域R20,R21,R22,R23,R24のそれぞれを16分割した、破線で示される領域が局所領域である。 FIG. 8 shows an example of a local region when the size of the local region is changed according to the number of sub feature points. Small circles in FIG. 8 indicate pixels. An attention feature point P20 is set at the center of the rotated image Img21, and four sub feature points P21, P22, P23, and P24 are set around the attention feature point P20. A rectangular region of 8 × 8 pixels including the target feature point P20 is a small region R20 used to generate a gradient histogram. Similarly, rectangular regions of 8 × 8 pixels including sub feature points P21, P22, P23, and P24 are small regions R21, R22, R23, and R24 used to generate a gradient histogram, respectively. A region indicated by a broken line obtained by dividing each of the small regions R20, R21, R22, R23, and R24 into 16 is a local region.
サブ特徴点の数が5、局所領域のサイズが2×2=4画素の場合、特徴量を生成するために使うデータを得る画素の数は4×16×5=320画素となる。第1の実施形態(図4)における画素の数は9×16×3=432画素である。このため、第1の実施形態に比べて、特徴量を生成するために使うデータを得る画素の数を減らすことが可能となる。このように、サブ特徴点の数に応じて局所領域のサイズを変えることで、特徴量を生成するための計算量やデータ転送量を増やすことなく、サブ特徴点の数を増やした特徴量を生成することが可能となる。 When the number of sub-feature points is 5 and the size of the local area is 2 × 2 = 4 pixels, the number of pixels for obtaining data used to generate the feature amount is 4 × 16 × 5 = 320 pixels. The number of pixels in the first embodiment (FIG. 4) is 9 × 16 × 3 = 432 pixels. For this reason, compared to the first embodiment, it is possible to reduce the number of pixels from which data used to generate the feature amount is obtained. In this way, by changing the size of the local region according to the number of sub feature points, the feature amount with the increased number of sub feature points can be obtained without increasing the amount of calculation and the data transfer amount for generating the feature amount. Can be generated.
特徴量生成装置の図示していないメモリには、小領域(図8の小領域R20,R21,R22,R23,R24)における局所領域の数(16)に関する情報が格納されている。サブ特徴点画素情報分布生成部60は、サブ特徴点検出部50が検出するサブ特徴点の数と、小領域における局所領域の数(16)に関する情報とに応じて、局所領域のサイズを決定する。サブ特徴点の数が2である場合、例えば局所領域のサイズは12×12画素となる。この場合の画素の数は上記のように432画素である。また、サブ特徴点の数が5である場合、5個のサブ特徴点と16個の局所領域に対して、画素の数が432画素を超えないような局所領域のサイズが決定される。この結果、例えば局所領域のサイズが2×2=4画素として決定される。
Information on the number of local regions (16) in the small regions (small regions R20, R21, R22, R23, and R24 in FIG. 8) is stored in a memory (not shown) of the feature quantity generation device. The sub-feature point pixel information
上述したように、本実施形態によれば、サブ特徴点の数に応じて、サブ特徴点を中心とする小領域の分割数を決定し、分割後の領域数が決定した分割数となるように小領域を分割し、分割後の局所領域ごとにサブ特徴点の勾配ヒストグラムを生成することによって、特徴量の次元数を一定の数に保つことができる。このため、記憶領域の使用量や処理時間を変えずに、画像に適した特徴量を生成することができる。 As described above, according to this embodiment, according to the number of sub feature points, the number of divisions of the small region centering on the sub feature points is determined, and the number of divided regions becomes the determined number of divisions. By dividing a small region into two and generating a gradient histogram of sub feature points for each of the divided local regions, the number of dimensions of the feature amount can be kept constant. For this reason, it is possible to generate a feature amount suitable for an image without changing the use amount or processing time of the storage area.
また、サブ特徴点の数に応じて、サブ特徴点を中心とする小領域の分割サイズを決定し、分割後の領域のサイズが決定した分割サイズとなるように小領域を分割し、分割後の局所領域ごとに勾配ヒストグラムを生成することによって、サブ特徴点の数を増やしたとしても、特徴量を生成する際の計算量を増やさずに特徴量を生成することができる。 In addition, according to the number of sub feature points, the division size of the small region centered on the sub feature point is determined, and the small region is divided so that the size of the divided region becomes the determined division size. By generating a gradient histogram for each local region, it is possible to generate a feature amount without increasing the amount of calculation when generating the feature amount even if the number of sub feature points is increased.
以上、図面を参照して本発明の実施形態について詳述してきたが、具体的な構成は上記の実施形態に限られるものではなく、本発明の要旨を逸脱しない範囲の設計変更等も含まれる。 As described above, the embodiments of the present invention have been described in detail with reference to the drawings. However, the specific configuration is not limited to the above-described embodiments, and includes design changes and the like without departing from the gist of the present invention. .
10 特徴点検出部、20 主方向調整部、30 画素情報生成部、40 特徴点画素情報分布生成部、50 サブ特徴点検出部、60 サブ特徴点画素情報分布生成部、70 特徴量生成部 10 feature point detection unit, 20 main direction adjustment unit, 30 pixel information generation unit, 40 feature point pixel information distribution generation unit, 50 sub feature point detection unit, 60 sub feature point pixel information distribution generation unit, 70 feature amount generation unit
Claims (13)
前記入力画像において前記特徴点の周辺の画素値から画素情報を生成する画素情報生成部と、
前記特徴点を含む第1の領域の前記画素情報の第1の分布を生成する特徴点画素情報分布生成部と、
前記特徴点の周辺における特徴点であるサブ特徴点を検出するサブ特徴点検出部と、
前記サブ特徴点を含む第2の領域の前記画素情報の第2の分布を生成するサブ特徴点画素情報分布生成部と、
前記第1の分布と前記第2の分布とに基づいて、前記特徴点における特徴量を生成する特徴量生成部と、
を具備し、
前記サブ特徴点画素情報分布生成部は、前記サブ特徴点検出部が検出する前記サブ特徴点の数に応じて、前記第2の領域の分割数を決定し、分割後の領域数が決定した分割数となるように前記第2の領域を分割し、分割後の領域ごとに前記第2の分布を生成することを特徴とする特徴量生成装置。 A feature point detector for detecting feature points from the input image;
A pixel information generation unit that generates pixel information from pixel values around the feature points in the input image;
A feature point pixel information distribution generation unit for generating a first distribution of the pixel information of the first region including the feature points;
A sub feature point detector that detects a sub feature point that is a feature point around the feature point;
A sub-feature point pixel information distribution generation unit that generates a second distribution of the pixel information of the second region including the sub-feature points;
Based on the first distribution and the second distribution, a feature amount generation unit that generates a feature amount at the feature point;
Equipped with,
The sub feature point pixel information distribution generation unit determines the number of divisions of the second region according to the number of sub feature points detected by the sub feature point detection unit, and determines the number of regions after division. A feature quantity generation device, characterized in that the second region is divided so as to have a division number, and the second distribution is generated for each divided region .
前記画素情報生成部は、前記主方向調整部が回転した前記入力画像において前記特徴点の周辺の画素値から画素情報を生成する
ことを特徴とする請求項1に記載の特徴量生成装置。 A main direction adjusting unit that calculates a main direction of the feature point based on a gradient angle of a pixel value of each pixel around the feature point in the input image, and rotates the input image according to the main direction; Equipped,
The feature amount generation apparatus according to claim 1, wherein the pixel information generation unit generates pixel information from pixel values around the feature points in the input image rotated by the main direction adjustment unit.
前記入力画像において前記特徴点の周辺の画素値から画素情報を生成するステップと、
前記特徴点を含む第1の領域の前記画素情報の第1の分布を生成するステップと、
前記特徴点の周辺における特徴点であるサブ特徴点を検出するステップと、
前記サブ特徴点を含む第2の領域の前記画素情報の第2の分布を生成するステップと、
前記第1の分布と前記第2の分布とに基づいて、前記特徴点における特徴量を生成するステップと、
を具備し、
前記第2の分布を生成するステップでは、前記サブ特徴点の数に応じて、前記第2の領域の分割数を決定し、分割後の領域数が決定した分割数となるように前記第2の領域を分割し、分割後の領域ごとに前記第2の分布を生成することを特徴とする特徴量生成方法。 Detecting feature points from the input image;
Generating pixel information from pixel values around the feature points in the input image;
Generating a first distribution of the pixel information of the first region including the feature points;
Detecting sub-feature points that are feature points around the feature points;
Generating a second distribution of the pixel information of a second region including the sub-feature points;
Generating a feature quantity at the feature point based on the first distribution and the second distribution;
Equipped with,
In the step of generating the second distribution, the number of divisions of the second region is determined according to the number of the sub feature points, and the number of divided regions is the determined number of divisions. A feature amount generating method , wherein the second distribution is generated for each of the divided regions .
前記入力画像において前記特徴点の周辺の画素値から画素情報を生成するステップと、
前記特徴点を含む第1の領域の前記画素情報の第1の分布を生成するステップと、
前記特徴点の周辺における特徴点であるサブ特徴点を検出するステップと、
前記サブ特徴点を含む第2の領域の前記画素情報の第2の分布を生成するステップと、
前記第1の分布と前記第2の分布とに基づいて、前記特徴点における特徴量を生成するステップと、
をコンピュータに実行させるためのプログラムであって、前記第2の分布を生成するステップでは、前記サブ特徴点の数に応じて、前記第2の領域の分割数を決定し、分割後の領域数が決定した分割数となるように前記第2の領域を分割し、分割後の領域ごとに前記第2の分布を生成するプログラム。 Detecting feature points from the input image;
Generating pixel information from pixel values around the feature points in the input image;
Generating a first distribution of the pixel information of the first region including the feature points;
Detecting sub-feature points that are feature points around the feature points;
Generating a second distribution of the pixel information of a second region including the sub-feature points;
Generating a feature quantity at the feature point based on the first distribution and the second distribution;
In the step of generating the second distribution, the number of divisions of the second region is determined according to the number of the sub-feature points, and the number of regions after the division A program that divides the second area so as to have the determined number of divisions and generates the second distribution for each of the divided areas .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013165512A JP6234107B2 (en) | 2013-08-08 | 2013-08-08 | Feature value generation device, feature value generation method, and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013165512A JP6234107B2 (en) | 2013-08-08 | 2013-08-08 | Feature value generation device, feature value generation method, and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2015035105A JP2015035105A (en) | 2015-02-19 |
JP6234107B2 true JP6234107B2 (en) | 2017-11-22 |
Family
ID=52543590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013165512A Expired - Fee Related JP6234107B2 (en) | 2013-08-08 | 2013-08-08 | Feature value generation device, feature value generation method, and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6234107B2 (en) |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4547639B2 (en) * | 2008-08-26 | 2010-09-22 | ソニー株式会社 | Image processing apparatus and method, and program |
JP4986965B2 (en) * | 2008-09-30 | 2012-07-25 | キヤノン株式会社 | Image processing method, image processing apparatus, image processing program, and imaging apparatus |
-
2013
- 2013-08-08 JP JP2013165512A patent/JP6234107B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2015035105A (en) | 2015-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8693785B2 (en) | Image matching devices and image matching methods thereof | |
US9852511B2 (en) | Systems and methods for tracking and detecting a target object | |
EP3186780B1 (en) | System and method for image scanning | |
US9600744B2 (en) | Adaptive interest rate control for visual search | |
CN108381549B (en) | Binocular vision guide robot rapid grabbing method and device and storage medium | |
US10217221B2 (en) | Place recognition algorithm | |
US8620070B2 (en) | Corresponding image processing method for compensating colour | |
AU2007285683A1 (en) | Method of image processing | |
CN108573471B (en) | Image processing apparatus, image processing method, and recording medium | |
US20140301647A1 (en) | Local feature descriptor extracting apparatus, method for extracting local feature descriptor, and program | |
WO2014010263A1 (en) | Image processing device and image processing method | |
US20200005078A1 (en) | Content aware forensic detection of image manipulations | |
US20190279022A1 (en) | Object recognition method and device thereof | |
US9798950B2 (en) | Feature amount generation device, feature amount generation method, and non-transitory medium saving program | |
US9940700B2 (en) | Information processing apparatus, information processing method, information processing system, and non-transitory computer readable medium | |
EP2536123B1 (en) | Image processing method and image processing apparatus | |
US9710922B2 (en) | Image processing apparatus, method and medium storing a program for detecting a motion vector | |
US9916663B2 (en) | Image processing method and process simulation apparatus | |
JP6278757B2 (en) | Feature value generation device, feature value generation method, and program | |
JP5500404B1 (en) | Image processing apparatus and program thereof | |
JP6234107B2 (en) | Feature value generation device, feature value generation method, and program | |
US20190171909A1 (en) | Selecting keypoints in images using descriptor scores | |
US10360471B2 (en) | Image retrieving device, image retrieving method, and recording medium | |
JP6757203B2 (en) | Image detector, its control method, and program | |
JP2010204837A (en) | Featured value extraction device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160502 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20170524 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20170606 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20170706 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20170707 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20171017 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20171024 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6234107 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
LAPS | Cancellation because of no payment of annual fees |