[EDIT] added evrything to namespace, also fixed includes
This commit is contained in:
@@ -1,24 +1,25 @@
|
||||
#pragma once
|
||||
|
||||
#include<opencv\cv.h>
|
||||
|
||||
#include"opencv2\opencv.hpp"
|
||||
#include <opencv2/imgproc\types_c.h>
|
||||
/*
|
||||
Author: Pierfrancesco Soffritti https://github.com/PierfrancescoSoffritti
|
||||
*/
|
||||
|
||||
namespace computervision
|
||||
{
|
||||
using namespace cv;
|
||||
using namespace std;
|
||||
|
||||
class BackgroundRemover {
|
||||
public:
|
||||
BackgroundRemover(void);
|
||||
void calibrate(Mat input);
|
||||
Mat BackgroundRemover::getForeground(Mat input);
|
||||
class BackgroundRemover {
|
||||
public:
|
||||
BackgroundRemover(void);
|
||||
void calibrate(Mat input);
|
||||
Mat getForeground(Mat input);
|
||||
|
||||
private:
|
||||
Mat background;
|
||||
bool calibrated = false;
|
||||
private:
|
||||
Mat background;
|
||||
bool calibrated = false;
|
||||
|
||||
Mat getForegroundMask(Mat input);
|
||||
void BackgroundRemover::removeBackground(Mat input, Mat background);
|
||||
};
|
||||
Mat getForegroundMask(Mat input);
|
||||
void removeBackground(Mat input, Mat background);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user