Blame view

src/VPT-1/mvpt_process_assist.h 1008 Bytes
e30d6793   Zou XiKun   v0.0.1
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
  #include <bitset>
  #include "opencv2/highgui/highgui.hpp"
  #include <cuda.h>
  #include <cuda_runtime.h>
  #include "sy_common.h"
  
  #include <stdio.h>
  
  
  #ifdef _MSC_VER
  #include <direct.h>
  #include <io.h>
  #define ACCESS _access
  #define MKDIR(a) _mkdir((a))
  #else
  #include <unistd.h>
  #include <stdarg.h>
  #include <sys/stat.h>
  #define ACCESS access
  #define MKDIR(a) mkdir((a),0755)
  #endif
  
  #define EDGESIZE 4
  
  
  using namespace std;
  
  void showGpuMat(unsigned char* imgdata, int height, int width);
  int CreateDir(char *pszDir);
  void CreateResultFolder(char* resultFolder, const char* jointFolder);
  bool LegalPos(bitset<EDGESIZE> flags, int left, int top, int right, int bottom, int imgHeight, int imgWidth);
  bool LegalArea(int maxArea, int lastArea, int left, int top, int right, int bottom);
  bool LegalMinArea(int width, int height, sy_rect min_box);
  void ExpandMargin(int direction_x, int direction_y, int boundary_w, int boundary_h,
  	int &boundary_left, int &boundary_right, int &boundary_top, int &boundary_bottom);