Setting BackgroundSubtractorMOG2() parameters (Bug #1914)


Added by Ninad Thakoor almost 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-05-10
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:imgproc, video
Target version:2.4.1
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

The documentation says that "Here are important members of the class that control the algorithm, which you can set after constructing the class instance." However when I try to set the parameters I get OpenCV Error. I hope I am doing this right.

MoGDetector=cv::BackgroundSubtractorMOG2(200,10,true);
MoGDetector.set("nmixtures",5);

OpenCV Error: Bad argument (No parameter 'nmixtures' is found) in unknown functi
on, file C:\slave\WinInstallerMegaPack\src\opencv\modules\core\src\algorithm.cpp
, line 448


Associated revisions

Revision 62069088
Added by Vadim Pisarevsky almost 13 years ago

added nmixtures parameter to BackgroundSubtractorMOG2 (ticket #1914)

Revision 0736ede7
Added by Roman Donchenko over 11 years ago

Merge pull request #1914 from SpecLad:merge-2.4

History

Updated by Kirill Kornyakov almost 13 years ago

  • Category set to imgproc, video

Updated by Andrey Kamaev almost 13 years ago

  • Target version set to 2.4.1

Updated by Vadim Pisarevsky almost 13 years ago

fixed in trunk, r8543

  • Status changed from Open to Done
  • Assignee set to Vadim Pisarevsky

Also available in: Atom PDF