jfjoch_viewer: Track top-pixels without storing/sorting all valid pixels
This commit is contained in:
@@ -238,10 +238,15 @@ void JFJochViewerImageStatistics::loadImage(std::shared_ptr<const JFJochReaderIm
|
||||
.arg(image->ImageData().spot_count_ice_rings.value_or(0))
|
||||
.arg(image->ImageData().spot_count_indexed.value_or(0)));
|
||||
|
||||
text = QString("<b>%1</b> - <b>%2</b>")
|
||||
.arg(image->ValidPixels().begin()->first)
|
||||
.arg(image->ValidPixels().rbegin()->first);
|
||||
valid_values->setText(text);
|
||||
auto mm = image->ValidMinMax();
|
||||
if (mm.has_value()) {
|
||||
text = QString("<b>%1</b> - <b>%2</b>")
|
||||
.arg(mm->first)
|
||||
.arg(mm->second);
|
||||
valid_values->setText(text);
|
||||
} else {
|
||||
valid_values->setText("N/A");
|
||||
}
|
||||
valid_values->setToolTip(QString("Error pixels: <b>%1</b><br/>Saturated pixels: <b>%2</b>")
|
||||
.arg(image->ErrorPixels().size()).arg(image->SaturatedPixels().size()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user