WO2015085757A1 - 一种用于图像匹配、识别、检索的频域形状描述方法 - Google Patents

一种用于图像匹配、识别、检索的频域形状描述方法 Download PDF

Info

Publication number
WO2015085757A1
WO2015085757A1 PCT/CN2014/081336 CN2014081336W WO2015085757A1 WO 2015085757 A1 WO2015085757 A1 WO 2015085757A1 CN 2014081336 W CN2014081336 W CN 2014081336W WO 2015085757 A1 WO2015085757 A1 WO 2015085757A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
shape
feature points
histogram
feature
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.)
Ceased
Application number
PCT/CN2014/081336
Other languages
English (en)
French (fr)
Inventor
杨夙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fudan University
Original Assignee
Fudan University
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 Fudan University filed Critical Fudan University
Publication of WO2015085757A1 publication Critical patent/WO2015085757A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/46Descriptors for shape, contour or point-related descriptors, e.g. scale invariant feature transform [SIFT] or bags of words [BoW]; Salient regional features
    • G06V10/462Salient features, e.g. scale invariant feature transforms [SIFT]

Definitions

  • the invention belongs to the field of pattern recognition, image processing and computer vision technology, and particularly relates to an image shape feature extraction method, which can be used for image matching, recognition and retrieval. Background technique
  • the image includes shape, texture, and color information.
  • the shape is the main information that the image recognition and retrieval rely on.
  • the shape feature description is very important for image recognition and retrieval.
  • the paper proposes a shape description method called Shape Contexts, which first extracts image features. Point (edge point), then construct a grid with each feature point as a reference point, and count the number of feature points contained in each area of the grid to obtain a shape descriptor in the form of a histogram.
  • the shape context is a feature that is robust to noise interference, but the shape context feature does not have rotation invariance. It is necessary to use the tangent vector of the image gray field at the location of the feature point as the reference direction to obtain the rotation invariance. Rotation invariance dependent on extrinsic conditions is not robust enough, especially for binary images, a tangent vector that can be used as a reference direction cannot be obtained. Therefore, the inventor has obtained an authorized Chinese invention patent [Yang Wei: A general feature description method for symbol recognition, invention patent, authorized time: February 6, 2008, authorized country: China, authorization number : 200410016733.0] S.
  • the object of the present invention is to provide a better rotation and expansion with lower computational overhead.
  • the frequency domain shape description method for image matching, recognition, and retrieval proposed by the present invention includes the following calculation steps:
  • the calculation steps (a), (b), and (c) of the shape description method described above each have several implementation schemes.
  • the two implementations of the calculation step (a) of the shape description method described above are denoted by (al) and 2) respectively, and the two implementations of the calculation step (b) are respectively (bl) and (b2) ) indicates that the two implementations of the calculation step (c) are represented by (cl) and (c2) respectively, and the specific calculation methods are as follows:
  • the invention proposes a shape context spectrum feature, and the point constraint histogram can be approximated as an autocorrelation of the shape context, so its Fourier transform is equivalent to the power spectrum of the shape context, and the shape context spectrum feature is compared with the point constraint histogram feature.
  • the overhead is small, while inheriting the rotation and scaling invariance of the point constraint histogram features, and the robustness to noise and distortion. Therefore, the method of the present invention overcomes the shortcomings of shape and point constrained histograms and has broad application prospects.
  • Figure 1 is a block diagram of the composition of the image recognition system.
  • An image recognition system usually consists of the following steps: image acquisition, preprocessing, feature extraction, similarity calculation, classification.
  • the goal of the image recognition system is to return the image most similar to the input image from the image database, the entire image recognition system.
  • the composition is shown in Figure 1.
  • image acquisition can be performed by various sensing devices capable of performing physical imaging such as cameras and scanners.
  • Step 1 Extract feature points from an input image and calculate shape descriptors for each feature point.
  • Step 3 Calculate the shape descriptions of the input image and image library image
  • 1 ⁇ 1,
  • Step 6 Calculate the projection transformation based on the matching relationship between the corrected set of points obtained in step 5, the steps are as follows: (a) Here, 4 of ⁇
  • the number is defined as: s is the scale scaling, ⁇ is the rotation angle, and ⁇ and Sy are the flat of the X and the ⁇ axis, respectively.
  • the calculation steps are as follows:
  • Step 8 Set the image stored in the image library to have a pre-stored image, and repeat steps 2 to 7 to calculate the similarity between each image and the input image. According to the principle of nearest neighbor classification, the images are output in descending order of similarity.
  • the image in the top T position in the image library is the result of recognition or retrieval, T ⁇ S.
  • Step 1 and step 2 in Embodiment 1 adopt an image feature point extraction method proposed by the inventor to implement image preprocessing.
  • the skeleton point of the binary image is extracted as a feature point
  • the specific calculation method is as follows:
  • Step 2 Using the binarization method proposed by the inventor to binarize each pixel of the image to 1 and 0, 1 and 0 indicate the former attraction and background point respectively;
  • Step 3 Perform edge point detection on the binary image, where the edge point is defined as a point where the pixel values of two adjacent points are not equal;
  • Step 4 For each edge point, find the pixel value containing the edge point as 1 vertical and horizontal straight line segment, and make the midpoint of the shorter one of the vertical and horizontal straight line segments as the skeleton point;
  • Step 5 Delete the other skeleton points contained in a certain radius of each skeleton point, where the radius value is 1. If a skeleton point has been deleted, it will not be scanned in the subsequent steps.
  • Step 21 Assuming that the image has n pixels, the gray values of all the pixels of the image are sorted to obtain cl ⁇ c2 ⁇ ,..., ⁇ cn ;
  • Step 5 in Embodiment 1 adopts the correction method of point set matching proposed by the inventor, and the specific calculation steps are as follows:
  • Step 1 is the same as step 1 of Embodiment 1;
  • G(P) f (F(Pl))@f (F(P2)),..., @f(F(PK)), where the operator "ten” represents the elemental phase of the corresponding position of each matrix participating in the operation. Plus, G (P) represents all K matrices f (F (P1) ),
  • Step 3 The same as step 2 of Embodiment 1;
  • G(Q) f (F(Ql))0f (F(Q2)), ⁇ , 0f (F(QK)) ;
  • Step 5 Straighten the matrices G(P) and G(Q) into vectors, and then find the inner product of the two vectors as the similarity between the input image and the image library image.
  • Step 6 Set the image stored in the image library to have a pre-stored image, and repeat steps 3 to 5 to calculate the similarity between each image and the input image. According to the principle of nearest neighbor classification, the output is output in descending order of similarity.
  • the image in the top T position in the image library is the result of recognition or retrieval, T ⁇ S.
  • the symbol recognition program was designed based on the methods described in Embodiment 1 and Example 2, and the GREC2003 image library (http: ⁇ www. iapr-tclO.org) was tested, and a total of 6900 images were tested.
  • two other feature extraction methods were used instead of the feature extraction method used in Implementation 1.
  • the two feature extraction methods were respectively [Yang Wei: A general feature description method for symbol recognition, invention patent, Authorization time: February 6, 2008, Authorized country: China, Authorization number: 200410016733.0] S. Belogie, J. Malik, J. Puzicha: "Shape matching and object recognition using shape contexts, IEEE Transactions on Pattern Analysis and Machine Intelligence” , Volume 24, pp. 509-52, 2002].
  • Table 2 Recognition rate of rotating and telescopic images (%) (50 models; Level 1: 5 symbols, 25 images; Level 2: 20 symbols, 100 images; Level 3: 50 symbols, 250 images )
  • Table 3 Recognition rate of deformed images (%) (50 models; Level 1: 5 symbols, 25 images; Level 2: 15 symbols, 75 images)
  • Table 4 Image recognition rate (%) under noise interference (Level 1: 5 models, 5 symbols, 25 images; Level 2: 20 models, 20 symbols, 100 images; Level 3: 50 models, 50 symbols, 250 images)
  • Level 2 100 100 100 92
  • Level 3 100 100 100 88
  • Level 1 100 100 100 96
  • Level 3 99. 2 100 100 86 Table 5: Image recognition rate (%) when noise and distortion occur simultaneously (15 models, 15 symbols, 75 images)

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

一种用于图像匹配、识别、检索的频域形状特征描述方法,属于模式识别、图像处理、计算机视觉技术领域。在图像区域划分为若干子区域,分别以各个特征点作为参考点统计其它特征点落在各个子区域的个数,得到直方图,计算直方图的功率谱作为一种形状描述,计算两幅图像的形状描述子之间的相似度进而得到图像相似度,从而实现图像匹配、识别、检索。实验表明,形状上下文谱特征具有较好的旋转和伸缩不变性、对于噪声和变形的鲁棒性、且计算开销较小。

Description

说 明 书
一种用于图像匹配、 识别、 检索的频域形状描述方法 技术领域
本发明属于模式识别、 图像处理、 计算机视觉技术领域, 具体涉及一种 图像形状特征提取方法, 可以用于图像匹配、 识别、 检索。 背景技术
图像包括形状、 纹理、 颜色信息, 其中, 形状是图像识别、 检索所依赖的 主要信息,形状特征描述对于图像识别、检索非常重要,【S. Belogie, J. Malik, J. Puzicha: " Shape matching and object recognition using shape contexts IEEE Transactions on Pattern Analysis and Machine Intelligence" , Volume 24, pp. 509-52, 2002】 论文中提出了一种称为形状上下文 (Shape Contexts) 的形状描述方法, 首先提取图像特征点 (边缘点) , 然后以每个特征点作为参 考点构造一个网格, 统计网格各个区域中包含的特征点数, 得到直方图形式的 形状描述子。 形状上下文是一种对于噪声干扰较为鲁棒的特征, 但是形状上下 文特征不具有旋转不变性, 需要利用特征点所在位置的图像灰度域的切向量作 为参考方向以获得旋转不变性, 但是这种依赖外在条件的旋转不变性不够稳 健, 尤其对于二值图像而言, 无法获得可以作为参考方向的切向量。 因此, 发 明人在已获得授权的中国发明专利 【杨夙: 一种通用的用于符号识别的特征描 述方法, 发明专利, 授权时间: 2008年 2月 6日, 授权国别: 中国, 授权号: 200410016733.0】 禾口论文 【S. Yang: "Symbol recognition via statistical integration of pixel-level constraint histograms: A new descriptor" , IEEE Transactions on Pattern Analysis and Machine Intelligence, Vol. 27, No. 2, pp. 278-281, 2005】 中提出了点约束直方图特征, 该特征具有内 在的旋转和伸缩不变性, 且对于噪声和变形较为鲁棒, 但是缺点是计算复杂度 较高, 大约为 0(N3)。 发明内容
本发明的目的在于提出一种能以较低的计算开销, 获得较好的旋转与伸缩 不变性、 对噪声和变形的鲁棒性的用于图像匹配、 识别、 检索的频域形状描述 方法, 即图像形状特征提取方法。
本发明提出的用于图像匹配、 识别、 检索的频域形状描述方法, 包括以下 计算步骤:
(a) 以图像特征点的统计量作为图像形状描述的基本元素; 假设一幅图 像有 K个特征点, 记作 Ρ={Ρ1,Ρ2,一,ΡΚ} , 任选一个特征点 PkeP作为参考点, 对其它特征点的空间分布进行统计, 得到一个相应的直方图, 记作 h(Pk) ; 分 别以各个特征点作为参考点, 则对应每个特征点分别得到一个直方图, 共得到 K个直方图 (Pk) k=l, 2, ·'·,Κ};
(b)对每个特征点对应的直方图求傅里叶变换; 设 h(Pk)的傅里叶变换为 F(Pk), 对矩阵 F(Pk)中的每个元素进行函数 f(. )定义的数学变换, 得到 f (F (Pk) ) ,将 { f(F(Pk)) k=l,2,",,K}作为 K个特征点分别对应的形状描述子;
(c) 以所有特征点的形状描述子 [f(F(Pl)), f(F(P2)), -, f(F(PK))]作 为输入进行函数 g(. )定义的数学变换, 得到 g(f (F(P1)), f(F(P2)), ···, f(F(PK))), g(f(F(Pl)), f(F(P2) ), ···, f(F(PK)))是最终用于图像匹配、 识 别、 检索的形状描述子。
上面所述的形状描述方法的计算步骤 (a) 、 (b) 、 (c) 各有若干种实 现方案。 上面所述的形状描述方法的计算步骤 (a) 的两种实现方案在下面分 别用 (al) 和 2) 表示, 计算步骤 (b) 的两种实现方案在下面分别用 (bl) 和 (b2) 表示, 计算步骤 (c) 的两种实现方案在下面分别用 (cl) 、 (c2) 表示, 具体计算方法如下:
(al)以参考点为中心,将图像最小外接圆所在的空间划分为 MxN的网格, 计算落入网格每个区间的特征点的个数得到直方图, M和 N都是自然数;
(a2) 以参考点为中心, 将图像最小外接圆所在的空间划分为 M个同心圆 环形成的区域, 计算落入每个圆环的特征点的个数得到直方图, M是自然数;
(bl) F(Pk)的数学变换 f (. )定义为矩阵 F(Pk)中每个元素的模值的 W次 方, 设 Fij(Pk)表示矩阵 F(Pk)的第 i行、 第 j列的元素, 贝 IJ
f (Fij(Pk)) = |Fij(Pk) |W, W是自然数;
(b2) F(Pk)的数学变换 f (. )定义为矩阵 F(Pk)中每个元素的模值的对数 值, 设 Fij(Pk)表示矩阵 F(Pk)的第 i行、 第 j列的元素, 贝 IJ
f (Fij(Pk))=log(|Fij(Pk) ); (cl) 以所有特征点的形状描述子 [f(F(Pl)), f(F(P2)), -, f (F (PK) ) ] 作为输入进行的函数 g(.)定义的数学变换为: 输出等于输入, g(f(F(Pl)), f(F(P2) ),···, f (F(PK))) = [f (F(P1)), f(F(P2) ),···, f (F (PK) ) ];
(c2) 以所有特征点的形状描述子 [f(F(Pl)), f(F(P2)), -, f (F (PK) ) ] 作为输入进行的函数 g(.)定义的数学变换为:将所有特征点的对应形状描述子 进行矩阵加法, g(f (F (PI)), f (F(P2)),…, f (F(PK)))=f (F(Pl))@f (F(P2)),…, 0f (F (PK) ) , 这里运算符 "@"表示参与运算的各个矩阵的对应位置的元素相 加, f(F(Pl))@ f(F(P2)),一, @f(F(PK))表示所有 K个矩阵的下标相同的元 素相加。
本发明提出了形状上下文谱特征, 点约束直方图可以近似看作形状上下文 的自相关, 因此其傅里叶变换相当于形状上下文的功率谱, 形状上下文谱特征 与点约束直方图特征相比计算开销较小, 同时继承了点约束直方图特征的旋转 和伸缩不变性、 以及对噪声和变形的鲁棒性。 因此, 本发明方法克服了形状上 下文和点约束直方图的缺点, 具有广泛的应用前景。 附图说明
图 1为图像识别系统的组成框图。
具体实施方式
一个图像识别系统通常由以下几个环节组成, 图像采集、 预处理、 特征提 取、 相似度计算、 分类, 图像识别系统的目标是从图像数据库中返回与输入图 像最相似的图像, 整个图像识别系统的组成见图 1。 这里, 图像采集可以通过 相机、 扫描仪等各种能够完成物理成像的传感设备完成。
实施例 1:
步骤 1: 对一幅输入图像提取特征点, 并计算各个特征点的形状描述子,
^P={P1,P2,〜,PK n{f(F(Pk)) |k=l, 2,···,Κ}分别表示所得到的特征点及其 对应的形状描述子, 形状描述子的计算步骤如下:
(a)任选一个特征点 PkeP作为参考点, 对其它特征点的空间分布进行统 计, 得到一个相应的直方图, 记作 h(Pk); 这里, 直方图的具体计算方法如下: 以参考点 Pk为中心, 将图像最小外接圆所在的空间划分为 MxN的网格, 计算 落入网格每个区间的特征点的个数得到直方图, M和 N都是自然数; 分别以各 个特征点作为参考点, 则对应每个特征点分别得到一个直方图, 共得到 K个直 方图 (Pk) k=l, 2, -,K};
(b)对每个特征点对应的直方图求傅里叶变换, 设 h(Pk)的傅里叶变换为 F(Pk), 对矩阵 F(Pk)中的每个元素进行函数 f(. )定义的数学变换, F(Pk)的数 学变换 f (. )定义为矩阵 F(Pk)中每个元素的模值的 W次方, 设 Fi j (Pk)表示矩 阵 F(Pk)的第 i行、 第 j列的元素, 则 f (Fij(Pk)) = |Fij(Pk) |W, W=2; 将 {f(F(Pk)) k=l,2, ···,! }作为 K个特征点分别对应的形状描述子;
步骤 2: 对图像库中任选的一幅图像提取特征点, 基于步骤 1所述的形状 描述子计算方法计算各个特征点的形状描述子, 令9=¼1,92,〜,(^}和
{ f(F(Ql)) |1 = 1,2,···, L}分别表示所得到的特征点及其对应的形状描述子; 步骤 3: 计算输入图像和图像库图像的各形状描述子之间的相似度, 记作 {dkl=d(f (F(Pk)), f (F(Q1))) k=l, 2,···,Κ; 1 = 1, 2,···, L}, 这里采用内积作 为相似度度量, 即分别将矩阵 f(F(Pk))和 f(F(Ql))拉直为向量, 然后求两个 向量的内积;
步骤 4: 按照最近邻原则对点集合 Ρ={Ρ1,Ρ2, ·'·,ΡΚ}和 Q={Q1, Q2, ···, QL} 进行匹配, 计算方法如下: 进行 m=min{K,L}次迭代, 每次迭代得到一个匹配的 点对, 每次迭代的具体计算步骤如下: (a ) 找到集合0={(^1|1^=1,
2, ···,!; 1=1, 2,…, L}中的最大元素 dst; (b) 将 Ps Qt作为一个匹配对记录 到集合 P Q中; (c) 令 dsl=- 00禾卩 dkt=- 00 : k=l, 2,…, K且 1 = 1, 2,…, L; 步骤 5: 采用发明人提出的点集合匹配的校正方法对步骤 4得到的初始的 点集合匹配关系 P Q={Pl Ql,P2 Q2,…, Pm Qm}进行校正,得到经过校正的 点集合匹配关系 {Pl Ql, P2 Q2, ···, Pn Qn} , n≤m; 令
{(XI, Yl) (xl, yl), (X2, Y2) (x2,y2), ···, (Xn, Yn) ^ (xn, yn) }表示匹配点对 {Pl Ql, P2 Q2, ···, Pn Qn}的坐标值;
步骤 6: 基于步骤 5得到的经过校正的点集合之间的匹配关系计算投影变 换, 步骤如下: (a)
Figure imgf000007_0001
; 这里, β中的 4个
:数定义为: s是尺度缩放比例, α是旋转角度, δχ和 Sy分别是 X和 Υ轴的平
(b) 求 Αβ=1^ 最小二乘解, 得到 =^了 )-1八 ;
步骤 7:两幅图像之间相似度定义为 Ρ={Ρ1, Ρ2,…, ΡΚ} 和 Q={Q1, Q2, QL} 之间的相似度, 计算步骤如下:
Figure imgf000007_0002
(a) 利用公式 」对¼1,92,",,91}进行变换, 设 Qj经过变换得到的坐标值记为 T(Qj), j=l, 2, ···, L;
(b) 点集合 Ρ={Ρ1,Ρ2, "·,ΡΚ} 和 Q={Q1,Q2,〜,QL}之间的相似度定义为
S(P,Q) = min{— ^ EimHdiP, , T(Qj ))}),-∑ £(min{rf(^. , T(Q
E(d)
上式中: 函数 , t'是预先设定的一个阈值, 这里 t'=30;
d(Pi,T(Qj))表示 Pi和 T(Qj)两点之间的欧几里得距离, i = l,2, -,Κ, j=l,2,…山
步骤 8: 设图像库中有 S幅预存的图像, 重复执行步骤 2至步骤 7, 分别 计算每幅图像与输入图像的相似度, 根据最近邻分类原则, 按照相似度从大到 小的顺序输出图像库中排在前 T位的图像作为识别或者检索的结果, T≤S。
实施例 1中的步骤 1和步骤 2采用了发明人提出的一种图像特征点提取方 法实现图像预处理, 这里提取二值图像的骨架点作为特征点, 具体计算方法如 下:
步骤 1: 采用 7x7的高斯核滤波器对图像进行平滑, 这里高斯核参数选择 σ=2;
步骤 2: 采用发明人提出的二值化方法对将图像各个像素点二值化为 1和 0 , 1和 0分别表示前景点和背景点;
步骤 3: 对二值图像进行边缘点检测, 这里边缘点定义为两个相邻点的像 素值不相等的点;
步骤 4: 对于每个边缘点, 找到包含这个边缘点的像素值连续为 1纵向和 横向直线段, 令纵向和横向直线段中较短的一个的中点为骨架点;
步骤 5: 删除每个骨架点的一定半径内包含的其它骨架点, 这里半径值取 1, 如果一个骨架点已经被删除, 在后续步骤中将不再扫描它。
上面所述的图像特征点提取方法的步骤 2中所述的二值化方法的具体计算 步骤如下:
步骤 21: 假设图像有 n个像素点, 将图像所有像素点的灰度值进行排序得 到 cl≤c2≤,…,≤cn;
步骤 22: 令 1 = 1且 1=(^, 这里 i = l,2,"',n; 令 t=cl;
步骤 23: 对于 i = l, 2, ···,!!: 计算点(xi, yi)到某个直线的距离 di, 这里 所指的直线由点(xl, yl)和点(xl, yi)确定;
步骤 24: 令 j=l; 令 l=min{i|ci>0}; 令 tj=cl; 令 rj=(n- I)/n;
I = argmaxiii, I i = 1,2,...,n}
步骤 25: 对于 j=2,3: 令 '' , tj=cl, rj=(n- I)/n;
步骤 26:对于 j=3, 2, 1:如果 rj大于某个预先设定的阈值 r,这里取 r=2%, 则令 t=tj;
步骤 27: 对于 i = l,2,"',n: 如果 ci≥t, 令 bi = l; 否则, 令 bi=0; 这里 bl, b2, -,bn表示图像二值化后各点的像素值。
实施例 1中的步骤 5采用发明人提出的点集合匹配的校正方法, 具体计算 步骤如下:
(1) 邻接矩阵计算;
(2) 图论中最大团问题近似求解;
上面所述的点集合匹配的校正方法中的步骤 1中的邻接矩阵计算的步骤如 下:
(11) 假设两个点集合?=^1,?2,〜,?111} 和9=½1,92,",,9111} 之间初始的 匹配关系为 P Q= {Pl Ql, P2 Q2, ···, Pm Qm} , 将邻接矩阵初始化为 C= {ci j=0 I i, j = l, 2, ··· m} ;
(12)计算1?= ^=(1(?1 _]')/(1(91 9_]') |i j=l,2, -,m; i≠j}, 这里 d(Pi Pj)表 示点 Pi和点 Pj之间的欧几里得距离、 d(Qi Qj) 表示点 Qi和点 Qj之间的欧 几里得距离;
(13M {rij=d(Pi Pj)/d(Qi Qj) i, j = l, 2, -,m; i≠j} 按照从小到大的次 序排序得到 R1≤R2≤ ≤Rm(m-l); 将 Rk 在 R中的位置记录为
S[k]e{(i, j) |i, j=l,2, -,m; i≠j} k=l 2 ··· m (m- 1)
(14) 将 Rl≤R2≤ ≤Rm(m-l) 分段, 分段方法如下: 如果存在 n-1 段, 其 边界对应的下标为 1[1]=1 1[2], 1[3], ··· I[n-1], I [n] =m (m-1)且满足条 RI[i]/RI[i+l]>tARI[i]/RI[i+l]+l≤t, 这里 i = l 2 n- 1 t 是一个接近 1的阈值, 则以 1[1]=1 1[2], 1[3], ··· I[n-1], I[n]为边界进行分段;
(15) 从上述步骤 14得到的对 Rl≤R2≤ ≤Rm(m-l) 的 n-1个分段中找到最 长的一段, 其在 n-1个分段中的对应次序为
* = am max{/r + 11 - /Γ11 i = 1,2,.." n-l) ία ^
- ,提取该段在 R中的对应下标 {S[k] |k=I[i*]
I[i*]+1, ···, I[i*+1]};
(16) 令 {cS[k]=l |k=I[i*] I[i*]+1 ··· I[i*+1]} ;
上面所述的点集合匹配的校正方法中的步骤 2中的图论中最大团问题近似 求解的计算步骤如下:
(21) 将一个完全图的所有节点的下标的集合初始化为 ©={l 2 m};将 噪声节点对应的下标的集合初始化为空集合 Ψ=Φ, 将噪声节点之外的剩余节点 的集合初始化为 Ω=Θ
(22) 设置计数器 ' 用于记录有多少节点和节点 i相连接;
(23) 对于 i = l 2, ···,!!!: 如果 vi=0, 将节点 i加入噪声节点的集合, 即 Ψυ{ί}→ψ; 同时将节点从剩余节点的集合 Ω中删除, 即 Ω-{ί}→Ω;
(24) 如果 vi=vj对任意的 i≠j都成立, 这里 ieQ 且 jeQ, 则将 P Q中 下标为 Ω所包含元素的对应匹配点对输出并退出; 否则转到步骤 (25);
(25) 找到0中具有最小连接边数的节点^' = ¾1¾1^1^' 1^^; 令 Ψυ{ί'}→Ψ 且 Ω- {ί'}→Ω; 找到与节点 i'连接的节点, 即「 = W =i^i'2〜m}; 对于 jer, 令 vj- l→vj; 转到步骤(24)。
实施例 2:
步骤 1: 与实施例 1的步骤 1相同;
步骤 2: 将步骤 1得到的所有特征点 P={P1,P2,〜,PK}对应的形状描述子 [f(F(Pl)), f(F(P2) ), ···, f(F(PK))]进行矩阵加法得到
G(P)=f (F(Pl))@f (F(P2)),…, @f(F(PK)), 这里运算符 "㊉"表示参与运算的 各个矩阵的对应位置的元素相加, G (P)表示所有 K个矩阵 f (F (P1) ),
f(F(P2)), -, f(F(PK))的下标相同的元素相加, G(P)是最终用于图像匹配、 识别、 检索的形状描述子;
步骤 3: 与实施例 1的步骤 2相同;
步骤 4: 将步骤 3得到的所有特征点 Q={Q1, Q2,…, QL}对应的形状描述子 f(F (QD), f(F (Q2) ), ···, f(F (QL) )进行矩阵加法得到
G(Q)=f (F(Ql))0f (F(Q2)), ···, 0f (F(QK));
步骤 5: 分别将矩阵 G(P)和 G(Q)拉直为向量, 然后求两个向量的内积作为 输入图像与图像库图像的相似度
步骤 6: 设图像库中有 S幅预存的图像, 重复执行步骤 3至步骤 5, 分别 计算每幅图像与输入图像的相似度, 根据最近邻分类原则, 按照相似度从大到 小的顺序输出图像库中排在前 T位的图像作为识别或者检索的结果, T≤S。
基于实施例 1和实施例 2描述的方法设计了符号识别程序, 并对 GREC2003 图像库 (http:〃 www. iapr- tclO. org) 进行了实验, 共测试了 6900幅图像。 另外, 用其它两种特征提取方法代替实施 1采用的特征提取方法进行了对比实 验, 这两种特征提取方法分别为 【杨夙: 一种通用的用于符号识别的特征描述 方法, 发明专利, 授权时间: 2008年 2月 6日, 授权国别: 中国, 授权号: 200410016733.0】 禾口 【S. Belogie, J. Malik, J. Puzicha: "Shape matching and object recognition using shape contexts, IEEE Transactions on Pattern Analysis and Machine Intelligence" , Volume 24, pp. 509-52, 2002】 。 实验结果中, PLC和 SC分别代表上述两种特征提取方法, SSC代表实 施例 1采用的解决方案, SSC0代表实施例 2采用的解决方案。 实验结果如下: 表 1: 理想图像的识别率(%) (50种模型; 级别 1: 5种符号, 5 幅图像; 级别 2: 20种符号, 20幅图像; 级别 3: 50种符号, 50种图像)
Figure imgf000011_0001
表 2: 旋转和伸缩图像的识别率 (%) (50种模型; 级别 1: 5种符号, 25 幅图像; 级别 2: 20种符号, 100幅图像; 级别 3: 50种符号, 250幅图像)
Figure imgf000011_0002
表 3: 变形图像的识别率 (%) (50种模型; 级别 1: 5种符号, 25幅图像; 级别 2: 15种符号, 75 幅图像)
Figure imgf000011_0003
级别 2 100 100 100 98. 67 级别 1 100 100 100 100
2
级别 2 100 100 100 98. 67 级别 1 100 100 100 100
3
级别 2 98. 67 100 98. 67 98. 67
表 4 : 噪声干扰下图像识别率 (%) (级别 1 : 5种模型, 5种符号, 25幅图 像; 级别 2 : 20种模型, 20种符号, 100幅图像; 级别 3 : 50种模型, 50种 符号, 250幅图像)
Figure imgf000012_0001
级别 2 100 100 100 92 级别 3 100 100 100 88 级别 1 100 100 100 96
7 级别 2 97 100 100 85
级别 3 99. 6 100 100 86 级别 1 100 100 100 100
8 级别 2 100 100 100 90
级别 3 100 100 100 94. 8
级别 1 100 100 100 92
9 级别 2 99 100 100 78
级别 3 99. 2 100 100 86 表 5 : 噪声和变形同时出现时的图像识别率(%) (15种模型, 15种符号, 75 幅图像)
Figure imgf000013_0001
/3/: O 980Hil£-S/-S80iAV
Figure imgf000014_0002
Figure imgf000014_0001

Claims

权 利 要 求
1. 一种用于图像匹配、 识别、 检索的频域形状描述方法, 其特征在于包 含以下计算步骤:
(a) 以图像特征点的统计量作为图像形状描述的基本元素; 假设一幅图 像有 K个特征点, 记作 Ρ={Ρ1,Ρ2,一,ΡΚ} , 任选一个特征点 PkeP作为参考点, 对其它特征点的空间分布进行统计, 得到一个相应的直方图, 记作 h(Pk) ; 分 别以各个特征点作为参考点, 则对应每个特征点分别得到一个直方图, 共得到 K个直方图 (Pk) k=l, 2, ·'·,Κ};
(b)对每个特征点对应的直方图求傅里叶变换, 设 h(Pk)的傅里叶变换为 F(Pk), 对矩阵 F(Pk)中的每个元素进行函数 f(. )定义的数学变换, 得到 f (F (Pk) ) ,将 { f(F(Pk)) k=l,2,",,K}作为 K个特征点分别对应的形状描述子;
(c) 以所有特征点的形状描述子 [f(F(Pl)), f(F(P2)), -, f(F(PK))]作 为输入进行函数 g(. )定义的数学变换, 得到 g(f (F(P1)), f(F(P2)), ···, f(F(PK))), g(f(F(Pl)), f(F(P2) ), ···, f(F(PK)))是最终用于图像匹配、 识 别、 检索的形状描述子。
2. 根据权利要求 1所述的方法, 其特征在于计算步骤 (a) 中所述的直方 图定义如下: 以参考点为中心, 将图像最小外接圆所在的空间划分为 MxN的网 格, 计算落入网格每个区间的特征点的个数得到直方图, M和 N都是自然数。
3. 根据权利要求 1所述的方法, 其特征在于计算步骤 (a) 中所述的直方 图定义如下: 以参考点为中心, 将图像最小外接圆所在的空间划分为 M个同心 圆环形成的区域, 计算落入每个圆环的特征点的个数得到直方图, M是自然数。
4. 根据权利要求 1所述的方法,其特征在于计算步骤(b)中所述的 F(Pk) 的数学变换 f (. )定义为矩阵 F (Pk)中每个元素的模值的 W次方, 设 Fi j (Pk)表 示矩阵 F(Pk)的第 i行、 第 j列的元素, 则 f(Fij(Pk)) = |Fij(Pk) |W, W是自然 数。
5. 根据权利要求 1所述的方法,其特征在于计算步骤(b)中所述的 F(Pk) 的数学变换 f (. )定义为矩阵 F(Pk)中每个元素的模值的对数值, 设 Fij (Pk)表 示矩阵 F(Pk)的第 i行、 第 j列的元素, !lJ f(Fij(Pk))=log(|Fij(Pk) |)0
6. 根据权利要求 1所述的方法, 其特征在于计算步骤 (c) 中, 所述的以 所有特征点的形状描述子 [f(F(Pl)), f(F(P2)), -, f(F(PK))]作为输入进行 的函数 g(.)定义的数学变换为: 输出等于输入, g(f(F(Pl)), f(F(P2)), -, f (F(PK))) = [f (F(P1)), f(F(P2) ), ···, f(F(PK))]。
7. 根据权利要求 1所述的方法, 其特征在于计算步骤 (c) 中, 所述的以 所有特征点的形状描述子 [f(F(Pl)), f(F(P2)), -, f(F(PK))]作为输入进行 的函数 g(.)定义的数学变换为: 将所有特征点的对应形状描述子进行矩阵加 法, g(f(F(Pl)), f (F(P2)), ···, f (F (PK) ) ) =f (F (PI) ) 0f (F (P2) ), ···,
0f (F (PK) ) , 这里运算符 "@"表示参与运算的各个矩阵的对应位置的元素相 加, f (F(P1))0 £ (?2)),一,@1" (?1 )表示所有1 个矩阵的下标相同的元素 相加。
PCT/CN2014/081336 2013-12-14 2014-07-01 一种用于图像匹配、识别、检索的频域形状描述方法 Ceased WO2015085757A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310687697.X 2013-12-14
CN201310687697.XA CN103679200A (zh) 2013-12-14 2013-12-14 一种用于图像匹配、识别、检索的频域形状描述方法

Publications (1)

Publication Number Publication Date
WO2015085757A1 true WO2015085757A1 (zh) 2015-06-18

Family

ID=50316688

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081336 Ceased WO2015085757A1 (zh) 2013-12-14 2014-07-01 一种用于图像匹配、识别、检索的频域形状描述方法

Country Status (2)

Country Link
CN (1) CN103679200A (zh)
WO (1) WO2015085757A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738186A (zh) * 2020-06-28 2020-10-02 香港中文大学(深圳) 目标定位方法、装置、电子设备及可读存储介质
CN112380946A (zh) * 2020-11-09 2021-02-19 上海泗科智能科技有限公司 一种基于端侧ai芯片的跌倒检测方法及装置
CN112785623A (zh) * 2021-01-12 2021-05-11 四川中科朗星光电科技有限公司 一种用于图像识别刚性目标的实用鲁棒方法

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103679200A (zh) * 2013-12-14 2014-03-26 复旦大学 一种用于图像匹配、识别、检索的频域形状描述方法
CN104615610B (zh) * 2014-04-30 2018-10-02 北京大学 获取可伸缩全局特征描述子的方法
CN104615614B (zh) * 2014-04-30 2018-04-13 北京大学 获取可伸缩全局特征描述子的方法
CN104021229B (zh) * 2014-06-25 2017-07-25 厦门大学 一种用于商标图像检索的形状表示与匹配方法
CN104156952B (zh) * 2014-07-31 2017-11-14 中国科学院自动化研究所 一种抵抗形变的图像匹配方法
CN105868778B (zh) * 2016-03-28 2019-08-13 天津大学 一种基于频域波动特征的中值滤波检测方法
CN107680119A (zh) * 2017-09-05 2018-02-09 燕山大学 一种基于时空上下文融合多特征及尺度滤波的跟踪算法
CN109146771A (zh) * 2018-07-27 2019-01-04 北京电影学院 一种基于深度卷积网络的自动图像变形方法
CN110301892B (zh) * 2019-06-11 2022-03-22 Oppo广东移动通信有限公司 一种基于静脉识别的检测方法及相关产品
CN110288516A (zh) * 2019-06-27 2019-09-27 北京迈格威科技有限公司 图像处理的方法、装置、设备及计算机可读存储介质
CN112149728B (zh) * 2020-09-22 2023-11-17 成都智遥云图信息技术有限公司 一种快速的多模态图像模板匹配方法
CN113379777A (zh) * 2021-05-26 2021-09-10 西安电子科技大学 一种基于最小外接矩形垂直内距离比例的形状描述与检索方法
CN116309039A (zh) * 2022-11-25 2023-06-23 深圳先进技术研究院 一种x光图像智能拼接方法、存储介质和处理器

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080310730A1 (en) * 2007-06-06 2008-12-18 Makoto Hayasaki Image processing apparatus, image forming apparatus, image processing system, and image processing method
CN101561866A (zh) * 2009-05-27 2009-10-21 上海交通大学 基于sift特征与灰度差值直方图特征的文字识别方法
CN102156888A (zh) * 2011-04-27 2011-08-17 西安电子科技大学 基于特征点局部颜色及分布特征的图像拣出方法
US8447107B1 (en) * 2010-09-30 2013-05-21 A9.Com, Inc. Processing and comparing images
CN103679200A (zh) * 2013-12-14 2014-03-26 复旦大学 一种用于图像匹配、识别、检索的频域形状描述方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080310730A1 (en) * 2007-06-06 2008-12-18 Makoto Hayasaki Image processing apparatus, image forming apparatus, image processing system, and image processing method
CN101561866A (zh) * 2009-05-27 2009-10-21 上海交通大学 基于sift特征与灰度差值直方图特征的文字识别方法
US8447107B1 (en) * 2010-09-30 2013-05-21 A9.Com, Inc. Processing and comparing images
CN102156888A (zh) * 2011-04-27 2011-08-17 西安电子科技大学 基于特征点局部颜色及分布特征的图像拣出方法
CN103679200A (zh) * 2013-12-14 2014-03-26 复旦大学 一种用于图像匹配、识别、检索的频域形状描述方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SALUE, S.G. ET AL.: "SHAPE MATCHING AND OBJECT RECOGNITION USING SHAPE CONTEXTS", IEEE INTERNATIONAL CONFERENCE ON COMPUTER SCIENCE AND INFORMATION TECHNO LOGY (ICCSIT, vol. 9, 11 July 2010 (2010-07-11), pages 471 - 474 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111738186A (zh) * 2020-06-28 2020-10-02 香港中文大学(深圳) 目标定位方法、装置、电子设备及可读存储介质
CN111738186B (zh) * 2020-06-28 2024-02-02 香港中文大学(深圳) 目标定位方法、装置、电子设备及可读存储介质
CN112380946A (zh) * 2020-11-09 2021-02-19 上海泗科智能科技有限公司 一种基于端侧ai芯片的跌倒检测方法及装置
CN112785623A (zh) * 2021-01-12 2021-05-11 四川中科朗星光电科技有限公司 一种用于图像识别刚性目标的实用鲁棒方法

Also Published As

Publication number Publication date
CN103679200A (zh) 2014-03-26

Similar Documents

Publication Publication Date Title
WO2015085757A1 (zh) 一种用于图像匹配、识别、检索的频域形状描述方法
CN109886878B (zh) 一种基于由粗到精配准的红外图像拼接方法
CN108764041B (zh) 用于下部遮挡人脸图像的人脸识别方法
Herdiyeni et al. Combination of morphological, local binary pattern variance and color moments features for indonesian medicinal plants identification
CN106228121B (zh) 手势特征识别方法和装置
CN111242221A (zh) 基于图匹配的图像匹配方法、系统及存储介质
WO2016023264A1 (zh) 指纹识别方法及其指纹识别装置
CN106447704A (zh) 基于显著区域特征和边缘度的可见光‑红外图像配准方法
CN111524168A (zh) 点云数据的配准方法、系统、装置及计算机存储介质
Ma et al. Image feature matching via progressive vector field consensus
CN105809651A (zh) 基于边缘非相似性对比的图像显著性检测方法
Ram et al. Image denoising using nl-means via smooth patch ordering
CN103955950B (zh) 一种利用关键点特征匹配的图像跟踪方法
CN110738216A (zh) 基于改进surf算法的药品识别方法
CN111461196A (zh) 基于结构特征的快速鲁棒图像识别跟踪方法和装置
CN114943754A (zh) 一种基于sift的图像配准方法、系统及存储介质
CN114862925B (zh) 一种基于sift的图像配准方法、装置、系统及存储介质
Zhang et al. Remote sensing image segmentation based on an improved 2-D gradient histogram and MMAD model
CN109949348B (zh) 一种基于超像素运动统计的误匹配去除方法
CN108830283B (zh) 一种图像特征点匹配方法
CN105913423B (zh) 一种基于超像素的确定性模型拟合方法
CN104143191A (zh) 一种基于纹理元的遥感图像变化检测方法
CN103679201B (zh) 一种用于图像匹配、识别、检索的点集合匹配的校正方法
Ziaratban et al. An adaptive script-independent block-based text line extraction
CN105160311B (zh) 直线段匹配方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14869412

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14869412

Country of ref document: EP

Kind code of ref document: A1