Access to MOG2 parameters via algorithm interface in 2.4.2 version
In version 2.4.2 only detectShadows, history and nmixtures are supported, what about other params?
In version 2.4.2 only detectShadows, history and nmixtures are supported, what about other params?
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);
Asked: 2012-08-09 06:10:53 -0600
Seen: 3,171 times
Last updated: Dec 20 '12
How to change BackgroundSubtractorMOG2 options
Using Setters and Getters in AlgorithmInfo::addParam for Algorithm inheritance
5-points algorithm in opencv ?
Cannot set user parameters in BackgroundSubtractorMOG2
Remove buttons from their background so I can re-use button image
Continuous background removal, keeping human form
Did you figure it out? I opened a similar question, see http://answers.opencv.org/question/3108/cannot-set-user-parameters-in/