Ask Your Question
4

Access to MOG2 parameters via algorithm interface in 2.4.2 version

asked 2012-08-09 06:10:53 -0500

Victor1234 gravatar image

updated 2012-08-09 06:11:09 -0500

In version 2.4.2 only detectShadows, history and nmixtures are supported, what about other params?

edit retag flag offensive close merge delete

Comments

Did you figure it out? I opened a similar question, see http://answers.opencv.org/question/3108/cannot-set-user-parameters-in/

alex gravatar imagealex ( 2012-10-12 13:27:59 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2012-10-23 08:07:12 -0500

alex gravatar image

updated 2012-10-23 08:07:27 -0500

edit flag offensive delete link more
2

answered 2012-12-20 14:58:09 -0500

umut gravatar image

updated 2012-12-20 14:59:29 -0500

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);
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-08-09 06:10:53 -0500

Seen: 2,428 times

Last updated: Dec 20 '12