Commit 67283690 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #1693 from antonsh26:master

parents 17e939fa f4250cae
......@@ -196,8 +196,6 @@ private:
Mat_<int> nfeatures_;
Mat_<int> colors_;
Mat_<float> weights_;
Mat buf_;
};
......@@ -459,8 +457,7 @@ void BackgroundSubtractorGMGImpl::apply(InputArray _frame, OutputArray _fgmask,
if (smoothingRadius > 0)
{
medianBlur(fgmask, buf_, smoothingRadius);
swap(fgmask, buf_);
medianBlur(fgmask, fgmask, smoothingRadius);
}
// keep track of how many frames we have processed
......@@ -474,7 +471,6 @@ void BackgroundSubtractorGMGImpl::release()
nfeatures_.release();
colors_.release();
weights_.release();
buf_.release();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment