图像检索知识整理(传统方法)

图像检索知识整理

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:996dceef-a7da-4b9f-abd5-1b28844cab6b

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:b7ffe69f-14fe-43f8-98a2-5cf718925d5c

1. SIFT特征提取

1.1 尺度空间生成

L ( x , y , σ ) = G ( x , y , σ ) ∗ I ( x , y ) L(x,y,\sigma) = G(x,y,\sigma) *I(x,y)L (x ,y ,σ)=G (x ,y ,σ)∗I (x ,y )
G ( x , y , σ ) = 1 2 π σ 2 e − ( x 2 + y 2 ) 2 σ 2 G(x,y,\sigma) = \frac{1}{2\pi\sigma^2}e^{\frac{-(x^2+y^2)}{2\sigma^2}}G (x ,y ,σ)=2 πσ2 1 ​e 2 σ2 −(x 2 +y 2 )​

1.2 检测尺度空间极值点

1.3 精确定位极值点

D ( x , y , σ ) = D ( x , y , σ ) + ∂ D T ∂ x x + 1 2 x T ∂ 2 D ∂ x 2 D(x,y,\sigma) = D(x,y,\sigma)+\frac{\partial D^T}{\partial x}x+\frac{1}{2}x^T\frac{\partial^2 D}{\partial x^2}D (x ,y ,σ)=D (x ,y ,σ)+∂x ∂D T ​x +2 1 ​x T ∂x 2 ∂2 D ​
求导得:
x ^ = − ∂ 2 D − 1 ∂ x ∂ D ∂ x \hat x =-\frac{\partial^2 D^{-1}}{\partial x}\frac{\partial D}{\partial x}x ^=−∂x ∂2 D −1 ​∂x ∂D ​

1.4 为每个关键点指定方向参数

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:6df847cf-b554-44e1-9834-2d3330fcccd3

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:1dead543-bed9-4811-8685-d931fb32e0e5

m ( x , y ) = ( L ( x + 1 , y ) − L ( x − 1 , y ) ) 2 + ( L ( x , y + 1 ) − L ( x , y − 1 ) ) 2 m(x,y)=\sqrt{(L(x+1,y)-L(x-1,y))^2+(L(x,y+1)-L(x,y-1))^2}m (x ,y )=(L (x +1 ,y )−L (x −1 ,y ))2 +(L (x ,y +1 )−L (x ,y −1 ))2 ​
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:e416d35e-8b3e-453e-87cf-c9242ccf5071

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:f1ea16d1-d7a0-4db6-a461-844eb6350544

1.5 关键描述子生成

以特征点为中心取 8 * 8的领域作为采样窗口,将采样点与特征点相对方向归入。

最后得到 8 * 8 *8的向量转换 [1, 128] 向量的描述子。

2. 匹配方法:词袋模型(BOW)

词袋模型(Bag of Words),是通过计算特征词频,利用词频反映图像全局特征,用于后续匹配的方法。对SIFT特征点放在一起进行聚类,得到代表性聚类中心(单词)、做词频统计(Term frequency)统计。
TF:词频统计
IDF:做完词频TF统计后,为了降低停用词带来的干扰,可以再算上个逆文档词频IDF,给TF乘上一个权重。
然后L2归一化,用内积做相似性度量。

图像检索知识整理(传统方法)

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:78654a7d-337e-40a9-b3a9-46b73e042aac

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:0fe956ea-8910-469e-856c-278699c9a920

; 3.Fisher Vector

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:63085599-1257-46f3-b8ea-ef5bdd8ee0e6

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:377b28cf-abc8-4555-9b23-da5e4cc047e7

L ( x ∣ λ ) = ∑ t = 1 T l o g p ( x t ∣ λ ) L(x|\lambda)=\sum_{t=1}^{T}{logp(x_t|\lambda)}\L (x ∣λ)=t =1 ∑T ​l o g p (x t ​∣λ)
[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:74b235b7-f95e-43f1-a784-551f87e8752b

[En]

[TencentCloudSDKException] code:FailedOperation.ServiceIsolate message:service is stopped due to arrears, please recharge your account in Tencent Cloud requestId:5324b596-ce53-495d-9971-760af534b075

y t i = w i u i ( x t ) ∑ j = 1 K w j u j ( x t ) y_{t_i}=\frac{w_iu_i(x_t)}{\sum_{j=1}^{K}{w_ju_j(x_t)}\}y t i ​​=∑j =1 K ​w j ​u j ​(x t ​)w i ​u i ​(x t ​)​
∂ L ( x ∣ λ ) ∂ w i = ∑ t = 1 T [ y t ( i ) w i − y t ( 1 ) w 1 ] , f o r i ≥ 2 \frac{\partial L(x|\lambda)}{\partial w_i} =\sum_{t=1}^{T}{[\frac{y_t(i)}{w_i}-\frac{y_t(1)}{w_1}]}, for i\ge2\∂w i ​∂L (x ∣λ)​=t =1 ∑T ​[w i ​y t ​(i )​−w 1 ​y t ​(1 )​],f o r i ≥2
∂ L ( x ∣ λ ) ∂ u i d = ∑ t = 1 T y t ( i ) [ x t d − u i d ( σ i d ) 2 ] \frac{\partial L(x|\lambda)}{\partial u_i^d} =\sum_{t=1}^{T}y_t(i){[\frac{x_t^d-u_i^d}{(\sigma_i^d)^2}]}\∂u i d ​∂L (x ∣λ)​=t =1 ∑T ​y t ​(i )[(σi d ​)2 x t d ​−u i d ​​]
∂ L ( x ∣ λ ) ∂ σ i d = ∑ t = 1 T y t ( i ) [ x t d − u i d ( σ i d ) 3 − 1 σ i d ] \frac{\partial L(x|\lambda)}{\partial \sigma_i^d} =\sum_{t=1}^{T}y_t(i){[\frac{x_t^d-u_i^d}{(\sigma_i^d)^3}-\frac{1}{\sigma_i^d}]}\∂σi d ​∂L (x ∣λ)​=t =1 ∑T ​y t ​(i )[(σi d ​)3 x t d ​−u i d ​​−σi d ​1 ​]
分布结合梯度方向

Original: https://blog.csdn.net/qq_32097577/article/details/109495157
Author: 潜沉10
Title: 图像检索知识整理(传统方法)

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/563278/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球