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 namespace cv
{ {
template<> void Ptr<CvBGStatModel>::delete_obj() template<> void DefaultDeleter<CvBGStatModel>::operator ()(CvBGStatModel* obj) const
{ {
cvReleaseBGStatModel(&obj); cvReleaseBGStatModel(&obj);
} }

View File

@ -725,7 +725,7 @@ namespace
Ptr<gpu::BackgroundSubtractorFGD> cv::gpu::createBackgroundSubtractorFGD(const FGDParams& params) Ptr<gpu::BackgroundSubtractorFGD> cv::gpu::createBackgroundSubtractorFGD(const FGDParams& params)
{ {
return new FGDImpl(params); return makePtr<FGDImpl>(params);
} }
#endif // HAVE_CUDA #endif // HAVE_CUDA

View File

@ -271,7 +271,7 @@ namespace
Ptr<gpu::BackgroundSubtractorGMG> cv::gpu::createBackgroundSubtractorGMG(int initializationFrames, double decisionThreshold) Ptr<gpu::BackgroundSubtractorGMG> cv::gpu::createBackgroundSubtractorGMG(int initializationFrames, double decisionThreshold)
{ {
return new GMGImpl(initializationFrames, decisionThreshold); return makePtr<GMGImpl>(initializationFrames, decisionThreshold);
} }
#endif #endif

View File

@ -203,7 +203,7 @@ namespace
Ptr<gpu::BackgroundSubtractorMOG> cv::gpu::createBackgroundSubtractorMOG(int history, int nmixtures, double backgroundRatio, double noiseSigma) 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 #endif

View File

@ -247,7 +247,7 @@ namespace
Ptr<gpu::BackgroundSubtractorMOG2> cv::gpu::createBackgroundSubtractorMOG2(int history, double varThreshold, bool detectShadows) 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 #endif

View File

@ -70,7 +70,7 @@ using namespace cvtest;
namespace cv namespace cv
{ {
template<> void Ptr<CvBGStatModel>::delete_obj() template<> void DefaultDeleter<CvBGStatModel>::operator ()(CvBGStatModel* obj) const
{ {
cvReleaseBGStatModel(&obj); cvReleaseBGStatModel(&obj);
} }