[TASK] Move analyze image output to label.

This commit is contained in:
Jan Philipp Timme 2015-11-02 17:50:44 +01:00
parent 6001e3d6ce
commit 314ca30f92
1 changed files with 6 additions and 3 deletions

View File

@ -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();