MXAnalysisWithoutFPGA: Use GPU spot finder if available

This commit is contained in:
2025-10-05 05:54:35 +02:00
parent 1a2c234525
commit ab73184a0b
5 changed files with 34 additions and 2 deletions
+2 -1
View File
@@ -7,6 +7,7 @@
#include "../compression/JFJochDecompress.h"
#include "SpotAnalyze.h"
#include "spot_finding/ImageSpotFinderFactory.h"
MXAnalysisWithoutFPGA::MXAnalysisWithoutFPGA(const DiffractionExperiment &in_experiment,
const AzimuthalIntegration &in_integration,
@@ -33,7 +34,7 @@ MXAnalysisWithoutFPGA::MXAnalysisWithoutFPGA(const DiffractionExperiment &in_exp
for (int i = 0; i < npixels; i++)
mask_1bit[i] = (in_mask.GetMask().at(i) != 0);
spotFinder = std::make_unique<ImageSpotFinderCPU>(experiment.GetXPixelsNum(), experiment.GetYPixelsNum());
spotFinder = CreateImageSpotFinder(experiment.GetXPixelsNum(), experiment.GetYPixelsNum());
updated_image = spotFinder->GetHostBuffer();
}