[TASK] Move analyze image output to label.
This commit is contained in:
parent
6001e3d6ce
commit
314ca30f92
|
@ -174,9 +174,11 @@ void ImageViewer::analyzeImage() {
|
|||
}
|
||||
|
||||
logFile << "done" << std::endl;
|
||||
logFile << "Average intensity: " << getAverageIntensity() << std::endl;
|
||||
logFile << "Intensity variance: " << getIntensityVariance() << std::endl;
|
||||
renewLogging();
|
||||
|
||||
QString result = QString("Intensity - average : %1, variance: %2").arg(getAverageIntensity()).arg(getIntensityVariance());
|
||||
task_tab2_stats->setText(result);
|
||||
|
||||
updateHistogramm();
|
||||
}
|
||||
}
|
||||
|
@ -298,7 +300,8 @@ void ImageViewer::generateControlPanels() {
|
|||
histogrammLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
|
||||
histogrammLabel->setScaledContents(false);
|
||||
|
||||
QLabel* task_tab2_stats = new QLabel();
|
||||
task_tab2_stats = new QLabel();
|
||||
task_tab2_stats->setText("Results will go here ...");
|
||||
|
||||
task_tab_widget2 = new QWidget();
|
||||
task_tab2 = new QVBoxLayout();
|
||||
|
|
Loading…
Reference in New Issue