Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

BackgroundSubtractorMOG2 set parameters

Hi, i'm trying to use the class BackgroundSubtracorMOG2 with Opencv 3.0.

After:

Ptr<BackgroundSubtractor> pMOG2;

pMOG2 = createBackgroundSubtractorMOG2();

I want to set some parameters like:

    pMOG2.setShadowThreshold(0.5);

But it tells me:

No member named 'setShadowThreshold' in 'cv::Ptr<cv::backgroundsubtractor>'

Same with the operator "->" instead of "."

Do you know how to set parameters of this class?