config takes image height and width instead of n_pixels

This commit is contained in:
lhdamiani committed 2021-07-26 17:00:46 +02:00
1 parent aa00703701
commit 49434e86c0
12 files changed
+46 -30

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ int main (int argc, char *argv[])
throw runtime_error(zmq_strerror(errno));
}
const size_t IMAGE_N_BYTES = config.image_n_pixels * bit_depth / 8;
const size_t IMAGE_N_BYTES = config.width * config.height * bit_depth / 8;
RamBuffer image_buffer(config.detector_name + "_assembler",
sizeof(ImageMetadata), IMAGE_N_BYTES,
config.n_modules, RAM_BUFFER_N_SLOTS);