Commit 1278fb41 authored by jaco's avatar jaco

templateReplacement function added (IIbis part)

parent fd7f7c37
...@@ -344,7 +344,7 @@ bool MotionSaliencyBinWangApr2014::templateReplacement( Mat finalBFMask, Mat ima ...@@ -344,7 +344,7 @@ bool MotionSaliencyBinWangApr2014::templateReplacement( Mat finalBFMask, Mat ima
// Neighborhood of current pixel in the current background model template. // Neighborhood of current pixel in the current background model template.
// The ROI is centered in the pixel coordinates // The ROI is centered in the pixel coordinates
// TODO border check // TODO border check
backgroundModelROI = ( backgroundModel[z], Rect( i - floor( roiSize / 2 ), j - floor( roiSize / 2 ), roiSize, roiSize ) ); backgroundModelROI = backgroundModel[z]( Rect( i - floor( roiSize / 2 ), j - floor( roiSize / 2 ), roiSize, roiSize ) );
/* Check if the value of current pixel BA in potentialBackground model is already contained in at least one of its neighbors' /* Check if the value of current pixel BA in potentialBackground model is already contained in at least one of its neighbors'
* background model * background model
......
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