Commit 2c033251 authored by Roman Donchenko's avatar Roman Donchenko

Boring changes - gpubgsegm.

parent f8f06853
......@@ -76,7 +76,7 @@ using namespace perf;
namespace cv
{
template<> void Ptr<CvBGStatModel>::delete_obj()
template<> void DefaultDeleter<CvBGStatModel>::operator ()(CvBGStatModel* obj) const
{
cvReleaseBGStatModel(&obj);
}
......
......@@ -725,7 +725,7 @@ namespace
Ptr<gpu::BackgroundSubtractorFGD> cv::gpu::createBackgroundSubtractorFGD(const FGDParams& params)
{
return new FGDImpl(params);
return makePtr<FGDImpl>(params);
}
#endif // HAVE_CUDA
......@@ -271,7 +271,7 @@ namespace
Ptr<gpu::BackgroundSubtractorGMG> cv::gpu::createBackgroundSubtractorGMG(int initializationFrames, double decisionThreshold)
{
return new GMGImpl(initializationFrames, decisionThreshold);
return makePtr<GMGImpl>(initializationFrames, decisionThreshold);
}
#endif
......@@ -203,7 +203,7 @@ namespace
Ptr<gpu::BackgroundSubtractorMOG> cv::gpu::createBackgroundSubtractorMOG(int history, int nmixtures, double backgroundRatio, double noiseSigma)
{
return new MOGImpl(history, nmixtures, backgroundRatio, noiseSigma);
return makePtr<MOGImpl>(history, nmixtures, backgroundRatio, noiseSigma);
}
#endif
......@@ -247,7 +247,7 @@ namespace
Ptr<gpu::BackgroundSubtractorMOG2> cv::gpu::createBackgroundSubtractorMOG2(int history, double varThreshold, bool detectShadows)
{
return new MOG2Impl(history, varThreshold, detectShadows);
return makePtr<MOG2Impl>(history, varThreshold, detectShadows);
}
#endif
......@@ -70,7 +70,7 @@ using namespace cvtest;
namespace cv
{
template<> void Ptr<CvBGStatModel>::delete_obj()
template<> void DefaultDeleter<CvBGStatModel>::operator ()(CvBGStatModel* obj) const
{
cvReleaseBGStatModel(&obj);
}
......
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