-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.cpp
More file actions
66 lines (52 loc) · 1.83 KB
/
Copy pathConfig.cpp
File metadata and controls
66 lines (52 loc) · 1.83 KB
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
#include "stdafx.h"
#include <fstream>
#include <sstream>
#include <opencv2/highgui/highgui.hpp>
#include "Config.h"
Config::Config()
{
};
Config::Config(const Config &config)
: /// Information
sequence_name(config.sequence_name),
sequence_path_thermal(config.sequence_path_thermal),//加载新加入的thermal热红外路径
sequence_path(config.sequence_path),
result_path(config.result_path),
init_frame(config.init_frame),
end_frame(config.end_frame),
image_type(config.image_type),
image_type_thermal(config.image_type_thermal), //设置新加入的thermal
init_bbox(config.init_bbox),
num_channel(config.num_channel),
num_channel_thermal(config.num_channel_thermal),//设置新加入的thermal
patch_width(config.patch_width),
patch_height(config.patch_height),
bbox_width(config.bbox_width),
bbox_height(config.bbox_height),
scale_width(config.scale_width),
scale_height(config.scale_height),
search_radius(config.search_radius)
{
}
void Config::set(Config config)
{
/// Information
sequence_name = config.sequence_name;
sequence_path_thermal = config.sequence_path_thermal;//设置新加入的thermal热红外路径
sequence_path = config.sequence_path;
result_path = config.result_path;
init_frame = config.init_frame;
end_frame = config.end_frame;
image_type = config.image_type;
image_type_thermal = config.image_type_thermal; //设置新加入的thermal
init_bbox.set(config.init_bbox);
num_channel = config.num_channel;
num_channel_thermal = config.num_channel_thermal; //设置新加入的thermal
patch_width = config.patch_width;
patch_height = config.patch_height;
bbox_width = config.bbox_width; // 提取全局的
bbox_height = config.bbox_height;
scale_width = config.scale_width;
scale_height = config.scale_height;
search_radius = config.search_radius;
}