*/\r
void operator ()(const GpuMat& frame, GpuMat& fgmask, float learningRate = -1.0f, Stream& stream = Stream::Null());\r
\r
+ //! releases all inner buffers\r
+ void release();\r
+\r
//! Total number of distinct colors to maintain in histogram.\r
int maxFeatures;\r
\r
cv::gpu::GMG_GPU::GMG_GPU() { throw_nogpu(); }
void cv::gpu::GMG_GPU::initialize(cv::Size, float, float) { throw_nogpu(); }
void cv::gpu::GMG_GPU::operator ()(const cv::gpu::GpuMat&, cv::gpu::GpuMat&, float, cv::gpu::Stream&) { throw_nogpu(); }
+void cv::gpu::GMG_GPU::release() {}
#else
++frameNum_;
}
+void cv::gpu::GMG_GPU::release()
+{
+ frameSize_ = Size();
+
+ nfeatures_.release();
+ colors_.release();
+ weights_.release();
+ boxFilter_.release();
+ buf_.release();
+}
+
#endif