jfjoch_viewer: Display resolution estimate

This commit is contained in:
2025-10-01 10:58:31 +02:00
parent 7aa1439f3c
commit d56d96a060
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -80,6 +80,9 @@ JFJochViewerImageStatistics::JFJochViewerImageStatistics(QWidget *parent) : QWid
indexed = new QLabel(this);
layout->addRow(new QLabel("Indexing:"), indexed);
res_estimate = new QLabel(this);
layout->addRow(new QLabel("Resolution estimate:"), profile_radius);
profile_radius = new QLabel(this);
layout->addRow(new QLabel("Profile radius:"), profile_radius);
@@ -135,6 +138,7 @@ void JFJochViewerImageStatistics::loadImage(std::shared_ptr<const JFJochReaderIm
roi_max->setText("");
b_factor->setText("");
profile_radius->setText("");
res_estimate->setText("");
return;
}
@@ -219,6 +223,14 @@ void JFJochViewerImageStatistics::loadImage(std::shared_ptr<const JFJochReaderIm
b_factor->setText("N/A");
}
auto res = image->ImageData().resolution_estimate;
if (res) {
text = QString("<b>%1</b> Å").arg(QString::number(res.value(), 'f', 2));
res_estimate->setText(text);
} else {
res_estimate->setText("N/A");
}
if (!image->Dataset().indexing_result.empty()) {
QString tooltip;
+1
View File
@@ -21,6 +21,7 @@ class JFJochViewerImageStatistics : public QWidget {
QLabel *valid_values;
QLabel *indexed;
QLabel *bkg_estimate;
QLabel *res_estimate;
QLabel *b_factor;
QLabel *profile_radius;