Ask Your Question

umut's profile - activity

2016-08-09 03:33:33 -0500 received badge  Teacher (source)
2013-03-12 16:43:45 -0500 received badge  Necromancer (source)
2012-12-20 14:58:56 -0500 received badge  Editor (source)
2012-12-20 14:58:09 -0500 answered a question Access to MOG2 parameters via algorithm interface in 2.4.2 version

I have achieved to set fTau parameter by inheritance;

Declare a custom class

class BackgroundSubtractorMOG2Custom: public BackgroundSubtractorMOG2{
public:
    void setTau(float val){fTau = val;}
};

Then;

BackgroundSubtractorMOG2Custom bgmodel;
bgmodel.setTau(0.35);