1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

some fixes

This commit is contained in:
U-WBI\nlv20442
2014-01-30 14:50:35 +01:00
parent d950adc0d2
commit be7eb72051
2 changed files with 14 additions and 11 deletions
+8 -5
View File
@@ -594,7 +594,7 @@ void BackgroundSubtractorKNNImpl::apply(InputArray _image, OutputArray _fgmask,
bShadowDetection,
nShadowDetection
);
};
}
void BackgroundSubtractorKNNImpl::getBackgroundImage(OutputArray backgroundImage) const
{
@@ -640,12 +640,15 @@ void BackgroundSubtractorKNNImpl::getBackgroundImage(OutputArray backgroundImage
default:
CV_Error(Error::StsUnsupportedFormat, "");
}
};
}
Ptr<BackgroundSubtractorKNN> createBackgroundSubtractorKNN(int _history, double _threshold2,bool _bShadowDetection)
Ptr<BackgroundSubtractorKNN> createBackgroundSubtractorKNN(int _history, double _threshold2,
bool _bShadowDetection)
{
return makePtr<BackgroundSubtractorKNNImpl>(_history, (float)_threshold2, _bShadowDetection);
};
}
};//namespace cv
}
/* End of file. */