Boring changes - gpubgsegm.

This commit is contained in:
Roman Donchenko 2013-08-13 18:05:11 +04:00
parent f8f0685397
commit 2c033251db
6 changed files with 6 additions and 6 deletions

View File

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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

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