Skip to content
Snippets Groups Projects
Commit 62e41c52 authored by Andrews Sobral's avatar Andrews Sobral
Browse files

Fixed DPPratiMediod and DPTexture

parent af6171de
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
using namespace bgslibrary::algorithms; using namespace bgslibrary::algorithms;
DPPratiMediod::DPPratiMediod() : DPPratiMediod::DPPratiMediod() :
IBGS(quote(DPMean)), IBGS(quote(DPPratiMediod)),
frameNumber(0), threshold(30), samplingRate(5), frameNumber(0), threshold(30), samplingRate(5),
historySize(16), weight(5) historySize(16), weight(5)
{ {
......
...@@ -29,8 +29,7 @@ void DPTexture::process(const cv::Mat &img_input, cv::Mat &img_output, cv::Mat & ...@@ -29,8 +29,7 @@ void DPTexture::process(const cv::Mat &img_input, cv::Mat &img_output, cv::Mat &
{ {
init(img_input, img_output, img_bgmodel); init(img_input, img_output, img_bgmodel);
//frame = new IplImage(img_input); frame = new IplImage(img_input);
frame = cvCloneImage(&(IplImage)img_input);
if (firstTime) { if (firstTime) {
width = img_input.size().width; width = img_input.size().width;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment