Merge pull request #1693 from antonsh26:master

pull/1697/head
Alexander Alekhin 6 years ago
commit 67283690bf
  1. 6
      modules/bgsegm/src/bgfg_gmg.cpp

@ -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();
}

Loading…
Cancel
Save