Ask Your Question
4

Access to MOG2 parameters via algorithm interface in 2.4.2 version

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

Victor1234 gravatar image

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

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 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
2

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

umut gravatar image

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

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
0

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

alex gravatar image

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

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 2,764 times

Last updated: Dec 20 '12