【计算机视觉】KCF算法

code

opencv3.3.1-contrib  ---- TrackerKCF.cpp

opencv如何更新目标区域的过程:

      // calculate filter response
if(params.split_coeff)
calcResponse(alphaf,alphaf_den,kf,response, spec, spec2);
else
calcResponse(alphaf,kf,response, spec); // extract the maximum response
minMaxLoc( response, &minVal, &maxVal, &minLoc, &maxLoc );
if (maxVal < params.detect_thresh)
{
return false;
}
roi.x+=(maxLoc.x-roi.width/+);
roi.y+=(maxLoc.y-roi.height/+); // update the bounding box
boundingBox.x=(resizeImage?roi.x*:roi.x)+(resizeImage?roi.width*:roi.width)/;
boundingBox.y=(resizeImage?roi.y*:roi.y)+(resizeImage?roi.height*:roi.height)/;
boundingBox.width = (resizeImage?roi.width*:roi.width)/;
boundingBox.height = (resizeImage?roi.height*:roi.height)/;

参考

1. KCFcpp;

2. opencv_contrib;

3. 作者Homepage;

上一篇:Warning: mysql_connect(): No such file or directory 解决方案总结(操作系统: Mac)


下一篇:在华为云上开启FTP服务并建立FTP站点来从本地向服务器发送和下载文件