CreateBraggPrediction: No rotation for now
This commit is contained in:
@@ -28,7 +28,7 @@ double stddev(const std::vector<float> &v) {
|
||||
MXAnalysisAfterFPGA::MXAnalysisAfterFPGA(const DiffractionExperiment &in_experiment, IndexAndRefine &indexer)
|
||||
: experiment(in_experiment),
|
||||
indexer(indexer),
|
||||
prediction(CreateBraggPrediction(in_experiment.IsRotationIndexing())) {
|
||||
prediction(CreateBraggPrediction()) {
|
||||
if (experiment.IsSpotFindingEnabled())
|
||||
find_spots = true;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ MXAnalysisWithoutFPGA::MXAnalysisWithoutFPGA(const DiffractionExperiment &in_exp
|
||||
mask_1bit(npixels, false),
|
||||
spotFinder(CreateImageSpotFinder(experiment.GetXPixelsNum(), experiment.GetYPixelsNum())),
|
||||
indexer(in_indexer),
|
||||
prediction(CreateBraggPrediction(in_experiment.IsRotationIndexing())),
|
||||
prediction(CreateBraggPrediction()),
|
||||
updated_image(spotFinder->GetInputBuffer()),
|
||||
azint_bins(in_integration.GetBinNumber()),
|
||||
saturation_limit(experiment.GetSaturationLimit()),
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "BraggPredictionGPU.h"
|
||||
#endif
|
||||
|
||||
std::unique_ptr<BraggPrediction> CreateBraggPrediction(bool rotation_indexing, int max_reflections) {
|
||||
std::unique_ptr<BraggPrediction> CreateBraggPrediction(int max_reflections) {
|
||||
#ifdef JFJOCH_USE_CUDA
|
||||
if (get_gpu_count() > 0)
|
||||
return std::make_unique<BraggPredictionGPU>(max_reflections);
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
#include "BraggPrediction.h"
|
||||
|
||||
std::unique_ptr<BraggPrediction> CreateBraggPrediction(bool rotation_indexing,
|
||||
int max_reflections = 10000);
|
||||
std::unique_ptr<BraggPrediction> CreateBraggPrediction(int max_reflections = 10000);
|
||||
|
||||
#endif //JFJOCH_BRAGGPREDICTIONFACTORY_H
|
||||
Reference in New Issue
Block a user