/
opencv_base.cc
35 lines (30 loc) · 2.12 KB
/
opencv_base.cc
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
/*
+----------------------------------------------------------------------+
| PHP-OpenCV |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.apache.org/licenses/LICENSE-2.0.html |
| If you did not receive a copy of the Apache2.0 license and are unable|
| to obtain it through the world-wide-web, please send a note to |
| hihozhou@gmail.com so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: HaiHao Zhou <hihozhou@gmail.com> |
+----------------------------------------------------------------------+
*/
#include "../../../php_opencv.h"
#include "opencv_base.h"
void opencv_border_types_init(int module_number){
//! Various border types, image boundaries are denoted with `|`
//! @see borderInterpolate, copyMakeBorde
REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "BORDER_CONSTANT", BORDER_CONSTANT, CONST_CS | CONST_PERSISTENT);
REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "BORDER_REPLICATE", BORDER_REPLICATE, CONST_CS | CONST_PERSISTENT);
REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "BORDER_REFLECT", BORDER_REFLECT, CONST_CS | CONST_PERSISTENT);
REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "BORDER_WRAP", BORDER_WRAP, CONST_CS | CONST_PERSISTENT);
REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "BORDER_REFLECT_101", BORDER_REFLECT_101, CONST_CS | CONST_PERSISTENT);
REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "BORDER_TRANSPARENT", BORDER_TRANSPARENT, CONST_CS | CONST_PERSISTENT);
REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "BORDER_REFLECT101", BORDER_REFLECT101, CONST_CS | CONST_PERSISTENT);
REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "BORDER_DEFAULT", BORDER_DEFAULT, CONST_CS | CONST_PERSISTENT);
REGISTER_NS_LONG_CONSTANT(OPENCV_NS, "BORDER_ISOLATED", BORDER_ISOLATED, CONST_CS | CONST_PERSISTENT);
}