\brief MotionDetector::MotionDetector \param algType \param gray
| 6 | /// \param gray |
| 7 | /// |
| 8 | MotionDetector::MotionDetector(BackgroundSubtract::BGFG_ALGS algType, const cv::UMat& gray) |
| 9 | : BaseDetector(gray), m_algType(algType) |
| 10 | { |
| 11 | m_fg.create(gray.size(), CV_8UC1); |
| 12 | m_backgroundSubst = std::make_unique<BackgroundSubtract>(algType, gray.channels()); |
| 13 | } |
| 14 | |
| 15 | /// |
| 16 | /// \brief MotionDetector::MotionDetector |