Detector Geometry customization
This commit is contained in:
@@ -23,8 +23,7 @@ std::string CheckCompression(const DiffractionExperiment &x, size_t nimages, con
|
||||
for (int i = 0; i < nimages; i++) {
|
||||
transformation.SetOutput(output.data() + i * x.GetMaxCompressedSize());
|
||||
for (int j = 0; j < x.GetModulesNum(); j++ ) {
|
||||
transformation.ProcessModule(image.data() + (j + i * x.GetModulesNum()) * RAW_MODULE_SIZE,
|
||||
i, j, 0);
|
||||
transformation.ProcessModule(image.data() + (j + i * x.GetModulesNum()) * RAW_MODULE_SIZE, j, 0);
|
||||
}
|
||||
compressed_size += transformation.PackStandardOutput();
|
||||
}
|
||||
@@ -50,8 +49,7 @@ std::string CheckDecompression(const DiffractionExperiment &x, size_t nimages, c
|
||||
for (int i = 0; i < nimages; i++) {
|
||||
transformation.SetOutput(output[i].data());
|
||||
for (int j = 0; j < x.GetModulesNum(); j++ ) {
|
||||
transformation.ProcessModule(image.data() + (j + i * x.GetModulesNum()) * RAW_MODULE_SIZE,
|
||||
i, j, 0);
|
||||
transformation.ProcessModule(image.data() + (j + i * x.GetModulesNum()) * RAW_MODULE_SIZE, j, 0);
|
||||
}
|
||||
compressed_size[i] = transformation.PackStandardOutput();
|
||||
output[i].resize(compressed_size[i]);
|
||||
@@ -91,7 +89,7 @@ int main(int argc, char **argv) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
DiffractionExperiment x(2, {8}, 8, 36);
|
||||
DiffractionExperiment x(DetectorGeometry(8, 2, 8, 36));
|
||||
|
||||
if ((file_space.GetDimensions()[1] == 2164) && (file_space.GetDimensions()[2] == 2068)) {
|
||||
std::cout << "JF4M with gaps detected (2068 x 2164)" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user