[ADD] added handy files
This commit is contained in:
24
src/computervision/BackgroundRemover.h
Normal file
24
src/computervision/BackgroundRemover.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include<opencv\cv.h>
|
||||
|
||||
/*
|
||||
Author: Pierfrancesco Soffritti https://github.com/PierfrancescoSoffritti
|
||||
*/
|
||||
|
||||
using namespace cv;
|
||||
using namespace std;
|
||||
|
||||
class BackgroundRemover {
|
||||
public:
|
||||
BackgroundRemover(void);
|
||||
void calibrate(Mat input);
|
||||
Mat BackgroundRemover::getForeground(Mat input);
|
||||
|
||||
private:
|
||||
Mat background;
|
||||
bool calibrated = false;
|
||||
|
||||
Mat getForegroundMask(Mat input);
|
||||
void BackgroundRemover::removeBackground(Mat input, Mat background);
|
||||
};
|
||||
Reference in New Issue
Block a user