OpenAPI: Add spot finding enable/disable option
This commit is contained in:
@@ -17,7 +17,7 @@ MXAnalyzer::MXAnalyzer(const DiffractionExperiment &in_experiment)
|
||||
}
|
||||
|
||||
void MXAnalyzer::ReadFromFPGA(const DeviceOutput *output, const SpotFindingSettings &settings, size_t module_number) {
|
||||
if (!find_spots)
|
||||
if (!find_spots || !settings.enable)
|
||||
return;
|
||||
StrongPixelSet strong_pixel_set;
|
||||
strong_pixel_set.ReadFPGAOutput(experiment, *output);
|
||||
@@ -29,7 +29,7 @@ void MXAnalyzer::ReadFromCPU(const int16_t *image, const SpotFindingSettings &se
|
||||
return;
|
||||
std::vector<float> d_map(RAW_MODULE_SIZE);
|
||||
|
||||
DeviceOutput output;
|
||||
DeviceOutput output{};
|
||||
memcpy(output.pixels, image, RAW_MODULE_SIZE * sizeof(int16_t));
|
||||
|
||||
CalcSpotFinderResolutionMap(d_map.data(), experiment, module_number);
|
||||
|
||||
Reference in New Issue
Block a user