Ask Your Question

Shinigami's profile - activity

2015-03-03 06:07:12 -0500 received badge  Editor (source)
2015-03-03 06:02:35 -0500 received badge  Supporter (source)
2015-03-03 05:58:57 -0500 answered a question How to do Background substraction

In OpenCV 2.4.10 you can use these functions from the Algorithm class:

void setInt(const char* name, int value);
void setDouble(const char* name, double value);
void setBool(const char* name, bool value);
void setString(const char* name, const string& value);
void setMat(const char* name, const Mat& value);
void setMatVector(const char* name, const vector<Mat>& value);
void setAlgorithm(const char* name, const Ptr<Algorithm>& value);

So it should look like:

bg = new BackgroundSubstractorMOG2();
bg->setInt("nmixtures" , 3);

for floats use setDouble(...)

2015-03-03 03:16:31 -0500 commented answer Is there any official IRC for OpenCV?

+1 it would be awesome