原文:
Background Subtraction: Experiments and Improvements for ViBe
作者:
M. Van Droogenbroeck and O. Paquot
https://github.com/upcAutoLang/BackgroundSplit-OpenCV/blob/master/src/ViBe%2B/ViBePlus.cpp
https://blog.csdn.net/ajianyingxiaoqinghan/article/details/72782685
https://www.cnblogs.com/huty/p/8517713.html
本文未覆盖原文全部内容,仅说明了其与原始 ViBe 算法差异处的自行理解,并且未做仿真验证。
当前像素值与模型内样本值的比较
与原始 ViBe 不同的地方在于,只有颜色畸变范围小于门限的情况下才判断欧氏距离,并且欧氏距离比较的门限采用自适应计算的方式得到。
颜色畸变(Color Distortion)
参考原文:
Real-time foreground-background segmentation using codebook model
作者:
Kyungnam Kim, Thanarat H. Chalidabhongse, David Harwood, Larry Davis
颜色畸变用于比较当前像素值 x t = ( R , G , B ) x_t=(R, G, B) xt=(R,G,B) 和背景模型内的采样值 v i = ( R ˉ , G ˉ , B ˉ ) v_i=(\bar R, \bar G, \bar B) vi=(Rˉ,Gˉ,Bˉ)
将数值看成 RGB 颜色空间内的三维向量,畸变值 dist 计算如下:
∣ ∣ x t ∣ ∣ 2 = R 2 + G 2 + B 2 ∣ ∣ v i ∣ ∣ 2 = R ˉ 2 + G ˉ 2 + B ˉ 2 ⟨ x t , v i ⟩ 2 = ( R ˉ × R + G ˉ × G + B ˉ × B ) 2 ||x_t||^2=R^2+G^2+B^2\\ ||v_i||^2=\bar R^2+\bar G^2+\bar B^2\\ \langle x_t, v_i\rangle ^2=(\bar R\times R+\bar G\times