Ask Your Question

Revision history [back]

Something like this : pMOG2.dynamicCast<cv::backgroundsubtractormog2>()->setShadowThreshold(0.5);

Something like this : pMOG2.dynamicCast<cv::backgroundsubtractormog2>()->setShadowThreshold(0.5);:

pMOG2.dynamicCast<cv::BackgroundSubtractorMOG2>()->setShadowThreshold(0.5);

Something like this :

pMOG2.dynamicCast<cv::BackgroundSubtractorMOG2>()->setShadowThreshold(0.5);

Something like this :

pMOG2.dynamicCast<cv::BackgroundSubtractorMOG2>()->setShadowThreshold(0.5);

if (pMOG2.dynamicCast<cv::backgroundsubtractormog2>()!=NULL) pMOG2.dynamicCast<cv::backgroundsubtractormog2>()->setShadowThreshold(0.5);

Something like this :

if (pMOG2.dynamicCast<cv::backgroundsubtractormog2>()!=NULL)
(pMOG2.dynamicCast<cv::BackgroundSubtractorMOG2>()!=NULL)
 pMOG2.dynamicCast<cv::backgroundsubtractormog2>()->setShadowThreshold(0.5);

pMOG2.dynamicCast<cv::BackgroundSubtractorMOG2>()->setShadowThreshold(0.5);