MXAnalysisWithoutFPGA: Use GPU spot finder if available
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user