mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
Boring changes - gpubgsegm.
This commit is contained in:
parent
f8f0685397
commit
2c033251db
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user