diff --git a/samples/cpp/segment_objects.cpp b/samples/cpp/segment_objects.cpp index 8e14fcf321..33c1eb7d44 100644 --- a/samples/cpp/segment_objects.cpp +++ b/samples/cpp/segment_objects.cpp @@ -87,7 +87,7 @@ int main(int argc, char** argv) namedWindow("segmented", 1); BackgroundSubtractorMOG bgsubtractor; - bgsubtractor.noiseSigma = 10; + bgsubtractor.set("noiseSigma", 10); for(;;) {