Boring changes - gpubgsegm.

pull/1281/head
Roman Donchenko 12 years ago
parent f8f0685397
commit 2c033251db
  1. 2
      modules/gpubgsegm/perf/perf_bgsegm.cpp
  2. 2
      modules/gpubgsegm/src/fgd.cpp
  3. 2
      modules/gpubgsegm/src/gmg.cpp
  4. 2
      modules/gpubgsegm/src/mog.cpp
  5. 2
      modules/gpubgsegm/src/mog2.cpp
  6. 2
      modules/gpubgsegm/test/test_bgsegm.cpp

@ -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…
Cancel
Save