Detector Geometry customization
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user