[TASK] Prepare gui for partial linear histogramm adaption.

This commit is contained in:
Jan Philipp Timme 2015-11-20 13:49:10 +01:00
parent 2f5f581890
commit 1431d12890
2 changed files with 22 additions and 1 deletions

View File

@ -363,6 +363,21 @@ void ImageViewer::linearHistogrammAdaption(void) {
renewLogging();
}
/**
* Break the reference histogramm into parts, do linear adaption
*
* @brief ImageViewer::partialLinearHistogrammAdaption
*/
void ImageViewer::partialLinearHistogrammAdaption() {
logFile << "Doing partial linear histogramm adaption ..." << std::endl;
renewLogging();
// TODO
logFile << "done." << std::endl;
renewLogging();
}
/**
* Do a succeeding histogramm adaption based on a reference image.
*
@ -565,6 +580,9 @@ void ImageViewer::generateControlPanels() {
linear_histogramm_adaption = new QPushButton("Do linear histogramm adaption (basic)");
QObject::connect(linear_histogramm_adaption, SIGNAL(clicked()), this, SLOT(linearHistogrammAdaption()));
partial_linear_histogramm_adaption = new QPushButton("Do partial, linear histogramm adaption");
QObject::connect(partial_linear_histogramm_adaption, SIGNAL(clicked()), this, SLOT(partialLinearHistogrammAdaption()));
succeeding_histogramm_adaption = new QPushButton("Do succeeding histogramm adaption");
QObject::connect(succeeding_histogramm_adaption, SIGNAL(clicked()), this, SLOT(succeedingHistogrammAdaption()));
@ -575,6 +593,7 @@ void ImageViewer::generateControlPanels() {
task_tab3->addWidget(new QLabel("Working copy"));
task_tab3->addWidget(histogramm_cumulative_label);
task_tab3->addWidget(linear_histogramm_adaption);
task_tab3->addWidget(partial_linear_histogramm_adaption);
task_tab3->addWidget(succeeding_histogramm_adaption);
tabWidget->addTab(task_tab_widget3, "Task #3");

View File

@ -110,6 +110,7 @@ class ImageViewer : public QMainWindow {
QLabel* histogramm_cumulative_label;
QPushButton* linear_histogramm_adaption;
QPushButton* partial_linear_histogramm_adaption;
QPushButton* succeeding_histogramm_adaption;
// "My" space for storing data/results
@ -130,6 +131,7 @@ class ImageViewer : public QMainWindow {
void saveToOriginal();
void robustAutomaticContrastAdaption(int c_param);
void linearHistogrammAdaption();
void partialLinearHistogrammAdaption();
void succeedingHistogrammAdaption();
void open();