IndexAndRefine: Refactor integration

This commit is contained in:
2025-11-29 21:02:14 +01:00
parent 70a03b87ff
commit 118fed1d83
15 changed files with 344 additions and 387 deletions
+8 -5
View File
@@ -6,14 +6,14 @@
#include "spot_finding/StrongPixelSet.h"
#include "../compression/JFJochDecompress.h"
#include "SpotAnalyze.h"
#include "spot_finding/SpotUtils.h"
#include "spot_finding/ImageSpotFinderFactory.h"
#include "bragg_integration/BraggPredictionFactory.h"
MXAnalysisWithoutFPGA::MXAnalysisWithoutFPGA(const DiffractionExperiment &in_experiment,
const AzimuthalIntegration &in_integration,
const PixelMask &in_mask,
IndexerThreadPool *in_indexer)
IndexAndRefine &in_indexer)
: experiment(in_experiment),
integration(in_integration),
roi_map(experiment.ExportROIMap()),
@@ -160,9 +160,12 @@ void MXAnalysisWithoutFPGA::Analyze(DataMessage &output,
const std::vector<DiffractionSpot> spots = spotFinder->Run(settings, mask_resolution);
SpotAnalyze(experiment, settings, spots,
CompressedImage(updated_image, experiment.GetXPixelsNum(), experiment.GetYPixelsNum()),
*prediction, indexer, output);
SpotAnalyze(experiment, settings, spots, output);
if (settings.indexing)
indexer.ProcessImage(output, settings,
CompressedImage(updated_image, experiment.GetXPixelsNum(), experiment.GetYPixelsNum()),
*prediction);
}
profile.Add(azim_sum, azim_count);