Commit 55db2045 authored by Kurnianggoro's avatar Kurnianggoro

Fixing some indentations

parent ab3015d4
...@@ -225,30 +225,28 @@ namespace cv{ ...@@ -225,30 +225,28 @@ namespace cv{
// detection part // detection part
if(frame>0){ if(frame>0){
//compute the gaussian kernel //compute the gaussian kernel
if(params.compressFeature){ if(params.compressFeature){
compress(proj_mtx,x,x); compress(proj_mtx,x,x);
compress(proj_mtx,z,zc); compress(proj_mtx,z,zc);
denseGaussKernel(params.sigma,x,zc,k); denseGaussKernel(params.sigma,x,zc,k);
}else{ }else
denseGaussKernel(params.sigma,x,z,k); denseGaussKernel(params.sigma,x,z,k);
}
// calculate filter response
// calculate filter response if(params.splitCoeff)
if(params.splitCoeff){
calcResponse(alphaf,alphaf_den,k,response); calcResponse(alphaf,alphaf_den,k,response);
}else{ else
calcResponse(alphaf,k,response); calcResponse(alphaf,k,response);
}
// extract the maximum response
// extract the maximum response minMaxLoc( response, &minVal, &maxVal, &minLoc, &maxLoc );
minMaxLoc( response, &minVal, &maxVal, &minLoc, &maxLoc ); roi.x+=(maxLoc.x-roi.width/2+1);
roi.x+=(maxLoc.x-roi.width/2+1); roi.y+=(maxLoc.y-roi.height/2+1);
roi.y+=(maxLoc.y-roi.height/2+1);
// update the bounding box
// update the bounding box boundingBox.x=(resizeImage?roi.x*2:roi.x)+boundingBox.width/2;
boundingBox.x=(resizeImage?roi.x*2:roi.x)+boundingBox.width/2; boundingBox.y=(resizeImage?roi.y*2:roi.y)+boundingBox.height/2;
boundingBox.y=(resizeImage?roi.y*2:roi.y)+boundingBox.height/2;
} }
// extract the patch for learning purpose // extract the patch for learning purpose
...@@ -256,11 +254,10 @@ namespace cv{ ...@@ -256,11 +254,10 @@ namespace cv{
//update the training data //update the training data
new_z=x.clone(); new_z=x.clone();
if(frame==0){ if(frame==0)
z=x.clone(); z=x.clone();
}else{ else
z=(1.0-params.interp_factor)*z+params.interp_factor*new_z; z=(1.0-params.interp_factor)*z+params.interp_factor*new_z;
}
if(params.compressFeature){ if(params.compressFeature){
// feature compression // feature compression
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment