v1.0.0-rc.31
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user