v1.0.0-rc.31

This commit is contained in:
2025-03-02 13:15:28 +01:00
parent aeabc81a4c
commit ddf4c75645
309 changed files with 8705 additions and 1421 deletions
+2 -1
View File
@@ -181,8 +181,9 @@ void PreviewImage::AddROI(std::vector<uint8_t> &rgb_image) const {
}
void PreviewImage::AddResolutionRing(std::vector<uint8_t> &rgb_image, float d) const {
DiffractionGeometry geom = experiment.GetDiffractionGeometry();
int width = 3;
float radius = ResToPxl(experiment, d);
float radius = geom.ResToPxl(d);
for (int64_t y = 0; y <= ypixel; y++) {
for (int64_t x = 0; x <= xpixel; x++) {
float dist = sqrtf((x - beam_x) * (x - beam_x) + (y - beam_y) * (y - beam_y));