config takes image height and width instead of n_pixels

This commit is contained in:
lhdamiani
2021-07-26 17:00:46 +02:00
parent aa00703701
commit 49434e86c0
12 changed files with 46 additions and 30 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ int main (int argc, char *argv[])
auto receiver = BufferUtils::connect_socket(
ctx, config.detector_name, "writer_agent");
const size_t IMAGE_N_BYTES = config.image_n_pixels * bit_depth / 8;
const size_t IMAGE_N_BYTES = config.image_width * config.image_height * bit_depth / 8;
RamBuffer image_buffer(config.detector_name + "_assembler",
sizeof(ImageMetadata), IMAGE_N_BYTES, 1, RAM_BUFFER_N_SLOTS);