-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstant.h
More file actions
31 lines (26 loc) · 829 Bytes
/
constant.h
File metadata and controls
31 lines (26 loc) · 829 Bytes
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
#ifndef CONSTANT_H
#define CONSTANT_H
#include <string>
enum {
kCellX = 8,
kCellY = 8,
kCellBin = 9,
kOrientation = kCellBin,
kBlockX = 2,
kBlockY = 2,
kResizeX = 96,
kResizeY = 96,
kCellWidth = kResizeX / kCellX,
kCellHeight = kResizeY / kCellY,
kBlockWidth = kCellWidth - kBlockX + 1,
kBlockHeight = kCellHeight - kBlockY + 1,
kBlockDim = kBlockX * kBlockY * kCellBin,
kTotalDim = kBlockDim * kBlockWidth * kBlockHeight,
kGlyphSize = 20
};
const std::string kCacheDir = "cache";
const std::string kFeatureVectorDir = kCacheDir + "/feature_vector";
const std::string kWeightVectorDir = kCacheDir + "/weight_vector";
const std::string kNearestImageDir = kCacheDir + "/nearest_image";
const std::string kImageDir = "easy_test";
#endif // CONSTANT_H