High-Speed Tracking with Kernelized Correlation Filters

Linear regression

f(z)=wTz

minwΣi(f(xi)yi)2+λ||w||2

w=(XTX+λI)1XTy

w=(XHX+λI)1XHy

Circulant matrices

这里写图片描述

X=FHdiag(x^)F

x^=F(x)

xi in linear regression corresponds to a vector x=[x1,...,xn]
So, we can use circulant matrice X to represent the vector x.

Compute w^

XHX=FHdiag(x^)FFHdiag(x^)F

XHX=FHdiag(x^x^)F

img
However, this formula isn’t used in the code. The following one is used.

kernel trick

w=Σiαiφ(xi)

φT(x)φ(x)=k(x,x)

k is the kernel function (Gaussian or Polynomial)
f(z)=wTϕ(z)

w=Σiαiϕ(xi)

f(z)=[Σiαiϕ(xi)]ϕ(z)=Σi[αiϕ(xi)ϕ(z)]

f(z)=Σiαik(z,xi)

then we need to compute α

compute α

α=(K+λI)1

这里写图片描述

compute the response map of current frame

z represent the current frame

Kz=C(kxz)

use circulant matrice K to represent the kernel correlation kxz
这里写图片描述

summary

  1. image patch => hog feature
  2. hog feature => fft
  3. kf = gaussian_correlation(xf, xf, kernel.sigma); (compute the kernel correlation of the first frame)
  4. alphaf = yf ./ (kf + lambda); (compute α
  5. kzf = gaussian_correlation(zf, model_xf, kernel.sigma); (second frame)
    response = real(ifft2(model_alphaf .* kzf));
    as illustrated in the formula
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值