Detector Geometry customization

This commit is contained in:
2023-04-12 19:22:13 +00:00
parent 94ba13b3a1
commit 0973f3725d
52 changed files with 1335 additions and 973 deletions

View File

@@ -42,7 +42,7 @@ int main(int argc, char **argv) {
exit(EXIT_FAILURE);
}
DiffractionExperiment x(2, {8}, 8, 36);
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
x.Summation(1);
// Set metadata for the compression_benchmark.h5 dataset
@@ -89,8 +89,7 @@ int main(int argc, char **argv) {
for (int i = 0; i < nimages; i++) {
transformation.SetOutput(output[i].data());
for (int j = 0; j < 8; j++)
transformation.ProcessModule(image + (i * x.GetModulesNum() + j) * RAW_MODULE_SIZE ,
i, j, 0);
transformation.ProcessModule(image + (i * x.GetModulesNum() + j) * RAW_MODULE_SIZE, j, 0);
output_size[i] = transformation.PackStandardOutput();
}