-
Notifications
You must be signed in to change notification settings - Fork 2
/
DepthBackgroundSubtractor.h
47 lines (29 loc) · 1.12 KB
/
DepthBackgroundSubtractor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// DepthBackgroundSubtractor.h
// segmenthreetion
//
// Created by Cristina Palmero Cantariño on 05/03/14.
//
//
#ifndef __segmenthreetion__DepthBackgroundSubtractor__
#define __segmenthreetion__DepthBackgroundSubtractor__
#include <iostream>
#include "BackgroundSubtractor.h"
#include "ModalityData.hpp"
#include "ForegroundParametrization.hpp"
class DepthBackgroundSubtractor : public BackgroundSubtractor {
private:
//unsigned char m_masksOffset;
ForegroundParametrization m_fParam;
void extractItemsFromMask(cv::Mat frame, cv::Mat & output);
public:
DepthBackgroundSubtractor();
DepthBackgroundSubtractor(ForegroundParametrization fParam);
//DepthBackgroundSubtractor(vector<int> numFramesToLearn, unsigned char masksOffset);
//void setNumFramesToLearn(vector<int> numFramesToLearn);
//void setMasksOffset(unsigned char masksOffset);
void getMasks(ModalityData& md);
void getBoundingRects(ModalityData& md);
void adaptGroundTruthToReg(ModalityData& md);
};
#endif /* defined(__segmenthreetion__DepthBackgroundSubtractor__) */