1 | initial 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);
2 | No.2 Revision |
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;
3 | No.3 Revision |
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);
bgmodel.setTau(0.35);