27 lines
937 B
C++
27 lines
937 B
C++
// SPDX-FileCopyrightText: 2025 Filip Leonarski, Paul Scherrer Institute <filip.leonarski@psi.ch>
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
#ifndef JFJOCH_BRAGGINTEGRATE2D_H
|
|
#define JFJOCH_BRAGGINTEGRATE2D_H
|
|
|
|
#include <vector>
|
|
#include "../../common/DiffractionExperiment.h"
|
|
#include "../../common/CrystalLattice.h"
|
|
#include "../../common/Reflection.h"
|
|
|
|
struct QuickIntegrateResult {
|
|
std::vector<Reflection> reflections;
|
|
std::optional<float> b_factor;
|
|
std::vector<float> logI;
|
|
std::vector<float> one_over_d;
|
|
std::vector<float> Isigma;
|
|
};
|
|
|
|
QuickIntegrateResult BraggIntegrate2D(const DiffractionExperiment &experiment,
|
|
const CompressedImage &image,
|
|
const CrystalLattice &latt,
|
|
float dist_from_ewald_sphere,
|
|
int64_t image_number);
|
|
|
|
#endif //JFJOCH_BRAGGINTEGRATE2D_H
|