Skip to content

Commit cf0a59a

Browse files
committed
Merge pull request shimat#46 from codingTornado/master
Fixed a bug on video_background_segm.h
2 parents c123740 + 38f95e4 commit cf0a59a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/OpenCvSharpExtern/video_background_segm.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
#pragma once
33
#endif
44

5-
#ifndef _CPP_VIDEO_TRACKING_H_
6-
#define _CPP_VIDEO_TRACKING_H_
5+
#ifndef _CPP_VIDEO_BACKGROUND_SEGM_H_
6+
#define _CPP_VIDEO_BACKGROUND_SEGM_H_
77

88
#include "include_opencv.h"
99

@@ -35,11 +35,11 @@ CVAPI(cv::AlgorithmInfo*) video_BackgroundSubtractor_info(cv::BackgroundSubtract
3535
// BackgroundSubtractorMOG
3636
CVAPI(cv::Ptr<cv::BackgroundSubtractorMOG>*) video_BackgroundSubtractorMOG_new1()
3737
{
38-
return wrap(new cv::BackgroundSubtractorMOG());
38+
return new cv::Ptr<cv::BackgroundSubtractorMOG>(new cv::BackgroundSubtractorMOG());
3939
}
4040
CVAPI(cv::Ptr<cv::BackgroundSubtractorMOG>*) video_BackgroundSubtractorMOG_new2(int history, int nmixtures, double backgroundRatio, double noiseSigma)
4141
{
42-
return wrap(new cv::BackgroundSubtractorMOG(history, nmixtures, backgroundRatio, noiseSigma));
42+
return new cv::Ptr<cv::BackgroundSubtractorMOG>(new cv::BackgroundSubtractorMOG(history, nmixtures, backgroundRatio, noiseSigma));
4343
}
4444
CVAPI(void) video_BackgroundSubtractorMOG_delete(cv::BackgroundSubtractorMOG *obj)
4545
{
@@ -72,12 +72,12 @@ CVAPI(cv::AlgorithmInfo*) video_BackgroundSubtractorMOG_info(cv::BackgroundSubtr
7272
// BackgroundSubtractorMOG2
7373
CVAPI(cv::Ptr<cv::BackgroundSubtractorMOG2>*) video_BackgroundSubtractorMOG2_new1()
7474
{
75-
return wrap(new cv::BackgroundSubtractorMOG2());
75+
return new cv::Ptr<cv::BackgroundSubtractorMOG2>(new cv::BackgroundSubtractorMOG2());
7676
}
7777
CVAPI(cv::Ptr<cv::BackgroundSubtractorMOG2>*) video_BackgroundSubtractorMOG2_new2(
7878
int history, float varThreshold, int bShadowDetection)
7979
{
80-
return wrap(new cv::BackgroundSubtractorMOG2(history, varThreshold, bShadowDetection != 0));
80+
return new cv::Ptr<cv::BackgroundSubtractorMOG2>(new cv::BackgroundSubtractorMOG2(history, varThreshold, bShadowDetection != 0));
8181
}
8282
CVAPI(void) video_BackgroundSubtractorMOG2_delete(cv::BackgroundSubtractorMOG2 *obj)
8383
{
@@ -118,7 +118,7 @@ CVAPI(cv::AlgorithmInfo*) video_BackgroundSubtractorMOG2_info(cv::BackgroundSubt
118118
// BackgroundSubtractorGMG
119119
CVAPI(cv::Ptr<cv::BackgroundSubtractorGMG>*) video_BackgroundSubtractorGMG_new()
120120
{
121-
return wrap(new cv::BackgroundSubtractorGMG());
121+
return new cv::Ptr<cv::BackgroundSubtractorGMG>(new cv::BackgroundSubtractorGMG());
122122
}
123123
CVAPI(void) video_BackgroundSubtractorGMG_delete(cv::BackgroundSubtractorGMG *obj)
124124
{

0 commit comments

Comments
 (0)