-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata_structs.php
98 lines (86 loc) · 2.14 KB
/
data_structs.php
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
/**
*@data structure: PvImage - image data structure
*@param public Resource $image - image
*@param public Int $width - image width
*@param public Int $height - image height
*@param public Int $colorStyle(CONSTANT) - image color style
*@param public Int $type(CONSTANT) - image type
*@param public PvPoint $origin - image origin point
*@param protected PvImage $all_ROI - main image for setImageROI() and resetImageROI() functions
*@param protected PvRect $ROI - rectangle of image for setImageROI() and resetImageROI() functions
*/
class PvImage
{
public $image,
$width,
$height,
$colorStyle,
$type,
$origin,
$all_ROI,
$ROI;
}
/**
*@data structure: PvSize - size data structure
*@param public Int $width - width
*@param public Int $height - height
*/
class PvSize
{
public $width,
$height;
}
/**
*@data structure: PvPoint - point data structure
*@param public Int $x - x
*@param public Int $y - y
*/
class PvPoint
{
public $x,
$y;
}
/**
*@data structure: PvColor - color data structure
*@param public Int $r - red (max.255)
*@param public Int $g - green (max.255)
*@param public Int $b - blue (max.255)
*@param public Int $a - alpha (max.177)
*/
class PvColor
{
public $r,
$g,
$b,
$a;
}
/**
*@data structure: PvPixel - pixel data structure
*@param public Int $x - pixel x point
*@param public Int $y - pixel y point
*@param public PvColor $color - pixel color
*@param public Int $gray - pixel gray color
*/
class PvPixel
{
public $x,
$y,
$color,
$gray;
}
/**
*@data structure: PvRect - rectangle data structure. It indicates a invisible rectangle from image.
*@param public Int $x - rectangle x point
*@param public Int $y - rectangle y point
*@param public Int $width - rectangle width
*@param public Int $height - rectangle height
*/
class PvRect
{
public $x,
$y,
$width,
$height;
}
?>