You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/vision_process.h
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,12 @@
6
6
7
7
namespacevision
8
8
{
9
-
enum PaddingMode
9
+
namespacePaddingMode
10
10
{
11
-
No,
12
-
Black,
13
-
White,
11
+
const std::string No = "no";
12
+
const std::string Black = "black";
13
+
const std::string White = "white";
14
+
const std::string Gray = "#7f7f7f";
14
15
};
15
16
16
17
enum PatchesFormat
@@ -111,7 +112,7 @@ namespace vision
111
112
typedef std::vector<uint8_t> image_pixels_t; // natural sequence of RGB pixels
112
113
113
114
voidimage_dimension(constchar *fn, int &width, int &height);
114
-
voidimage_load(constchar *fn, std::vector<uint8_t> &rgb_pixels, int &width, int &height, int patch_size, PaddingMode pad = PaddingMode::No);
115
+
voidimage_load(constchar *fn, std::vector<uint8_t> &rgb_pixels, int &width, int &height, int patch_size, const std::string &pad = PaddingMode::No);
115
116
voidimage_load_split(constchar *fn, std::vector<image_pixels_t> &splits, bool do_split, constint split_width, constint split_height, int &splits_cols_num, int &splits_rows_num); // splits are in natural order
0 commit comments