jfjoch_viewer: show "Multiple lattices detected" in image statistics

Add a row after the Indexing solution that flags images with more than
one indexed lattice (indexing_lattice_count > 1).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-01 21:30:10 +02:00
co-authored by Claude Opus 4.8
parent 00821e32ef
commit fa121f0079
2 changed files with 10 additions and 0 deletions
@@ -123,6 +123,9 @@ JFJochViewerImageStatistics::JFJochViewerImageStatistics(QWidget *parent) : QWid
indexed = new QLabel(this);
layout->addRow(new QLabel("Indexing:"), indexed);
multiple_lattices = new QLabel(this);
layout->addRow(multiple_lattices);
res_estimate = new QLabel(this);
layout->addRow(new QLabel("Resolution estimate:"), res_estimate);
@@ -165,6 +168,7 @@ void JFJochViewerImageStatistics::loadImage(std::shared_ptr<const JFJochReaderIm
bkg_estimate->setText("");
indexed->setText("");
indexed->setToolTip("");
multiple_lattices->setText("");
b_factor->setText("");
profile_radius_label->setText("");
profile_radius->setText("");
@@ -359,4 +363,9 @@ void JFJochViewerImageStatistics::loadImage(std::shared_ptr<const JFJochReaderIm
} else {
indexed->setText("N/A");
}
if (image->ImageData().indexing_lattice_count.value_or(0) > 1)
multiple_lattices->setText("<span style=\"color: red;\"><b>Multiple lattices detected</b></span>");
else
multiple_lattices->setText("");
}
@@ -20,6 +20,7 @@ class JFJochViewerImageStatistics : public QWidget {
QLabel *spots;
QLabel *valid_values;
QLabel *indexed;
QLabel *multiple_lattices;
QLabel *bkg_estimate;
QLabel *res_estimate;
QLabel *masked_pixels;