Question for BackgroundSubtractorGMG
In file, bgfg_gmg.cpp, line 375,
int nfeatures = nfeatures_row[x];
The variable should be changed by function, 'insertFeature', otherwise 'nfeatures_' is always zeros.
Is it right?
Should I change this line into:
int& nfeatures = nfeatures_row[x];'
because the function, 'insertFeature' is defined as:
static bool insertFeature(int color, float weight, int* colors, float* weights, int& nfeatures, int maxFeatures)
If we used line one, it will update by the variable, 'nfeatures', not refer to 'nfeatures_'.
System information (version)
- OpenCV => :grey_question: 3.4.5
- Operating System / Platform => :grey_question: ubuntu 16.04
- Compiler => :grey_question: gcc 5.4.0