-
Notifications
You must be signed in to change notification settings - Fork 26
/
morph.h
47 lines (33 loc) · 1.21 KB
/
morph.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
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: morph.h
* Author: KSH
*
* Created on January 2, 2017, 9:24 AM
*/
#ifndef MORPH_H
#define MORPH_H
using namespace cv;
using namespace std;
#ifdef __cplusplus
extern "C" {
#endif
void imgerode(Mat& img,
Mat& out,
int erosion_size);
void imgdilate(Mat& img,
Mat& out,
int erosion_size);
void extractwindows(Mat& img,Mat& out,vector<Point2f> *points);
void FindBlobs(const Mat &binary,Mat &labels, vector < vector<Point2i> > &blobs);
void extractwindowsrefined(Mat& img,Mat& blob, Mat& out, vector<Point2f> *points, vector < vector<Point2i> > &blobs);
void extractstaticwindowsrefined(Mat& img,Mat& diff,Mat& blob, Mat& out, vector<Point2f> *points, vector < vector<Point2i> > &blobs);
void extractwindowsclose(Mat& img,Mat &blob, Mat& out, vector<Point2f> *points, vector < vector<Point2i> > &blobs);
#ifdef __cplusplus
}
#endif
#endif /* MORPH_H */