forked from Cv9527/mtcnn-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpBox.h
63 lines (56 loc) · 1010 Bytes
/
pBox.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef PBOX_H
#define PBOX_H
#include <stdlib.h>
#include <iostream>
using namespace std;
#define mydataFmt float
#define NumPoint 4
//#define modelFromFile
#define modelFromHFile
struct pBox
{
mydataFmt *pdata;
int width;
int height;
int channel;
};
struct pRelu
{
mydataFmt *pdata;
int width;
};
struct Weight
{
mydataFmt *pdata;
mydataFmt *pbias;
int lastChannel;
int selfChannel;
int kernelSize;
int stride;
int pad;
};
struct Bbox
{
float score;
float x1;
float y1;
float x2;
float y2;
float area;
bool exist;
mydataFmt ppoint[2 * NumPoint];
mydataFmt regreCoord[4];
};
struct orderScore
{
mydataFmt score;
int oriOrder;
};
void freepBox(struct pBox *pbox);
void freeWeight(struct Weight *weight);
void freepRelu(struct pRelu *prelu);
void pBoxShow(const struct pBox *pbox);
void pBoxShowE(const struct pBox *pbox,int channel, int row);
void weightShow(const struct Weight *weight);
void pReluShow(const struct pRelu *prelu);
#endif