bit_depth defined via config file

This commit is contained in:
lhdamiani
2021-12-14 12:01:50 +01:00
parent 8b43fb67cd
commit 7fcda636dc
13 changed files with 55 additions and 62 deletions
+2
View File
@@ -15,6 +15,7 @@ namespace BufferUtils
const int image_height;
const int image_width;
const int start_udp_port;
const int bit_depth;
friend std::ostream& operator <<(std::ostream& os, DetectorConfig const& det_config)
@@ -23,6 +24,7 @@ namespace BufferUtils
<< det_config.detector_type << ' '
<< det_config.n_modules << ' '
<< det_config.start_udp_port << ' '
<< det_config.bit_depth << ' '
<< det_config.image_height << ' '
<< det_config.image_width << ' ';
}
+1
View File
@@ -164,6 +164,7 @@ BufferUtils::DetectorConfig BufferUtils::read_json_config(
config_parameters["n_modules"].GetInt(),
config_parameters["image_height"].GetInt(),
config_parameters["image_width"].GetInt(),
config_parameters["bit_depth"].GetInt(),
config_parameters["start_udp_port"].GetInt(),
};
}