std::vector<Ptr<Mat>>backgroundModel;// The vector represents the background template T0---TK of reference paper.
// Matrices are two-channel matrix. In the first layer there are the B (background value)
// for each pixel. In the second layer, there are the C (efficacy) value for each pixel
MatpotentialBackground;// Two channel Matrix. For each pixel, in the first level there are the Ba value (potential background value)
// and in the secon level there are the Ca value, the counter for each potential value.
MatepslonPixelsValue;// epslon threshold
MatepslonPixelsValue;// epslon threshold
MatactivityPixelsValue;// Activity level of each pixel
//vector<Mat> noisePixelMask; // We define a ‘noise-pixel’ as a pixel that has been classified as a foreground pixel during the full resolution
MatnoisePixelMask;// We define a ‘noise-pixel’ as a pixel that has been classified as a foreground pixel during the full resolution
//detection process,however, after the low resolution detection, it has become a
// background pixel. The matrix is two-channel matrix. In the first layer there is the mask ( the identified noise-pixels are set to 1 while other pixels are 0)
// for each pixel. In the second layer, there is the value of activity level A for each pixel.
//fixed parameter
boolactivityControlFlag;
boolneighborhoodCheck;
intN_DS;// Number of template to be downsampled and used in lowResolutionDetection function
CV_PROP_RWintimageWidth;// Width of input image
...
...
@@ -257,6 +270,13 @@ private:
// long-term template, regardless of any subsequent background changes. A relatively large (eg gamma=3) will
//restrain the generation of ghosts.
ucharAinc;// Activity Incrementation;
intBmax;// Upper-bound value for pixel activity
intBth;// Max activity threshold
intBinc,Bdec;// Threshold for pixel-level decision threshold (epslon) adaptation
floatdeltaINC,deltaDEC;// Increment-decrement value for epslon adaptation
intepslonMIN,epslonMAX;// Range values for epslon threshold
};
/************************************ Specific Objectness Specialized Classes ************************************/
...
...
@@ -417,7 +437,7 @@ private:
int_Clr;//
staticconstchar*_clrName[3];
// Names and paths to read model and to store results
// Names and paths to read model and to store results