templateReplacement function added (IIbis part)

pull/39/head
jaco 11 years ago
parent fd7f7c3773
commit 1278fb414a
  1. 2
      modules/saliency/src/motionSaliencyBinWangApr2014.cpp

@ -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

Loading…
Cancel
Save