[TASK] Prepare gui for partial linear histogramm adaption.
This commit is contained in:
parent
2f5f581890
commit
1431d12890
@ -363,6 +363,21 @@ void ImageViewer::linearHistogrammAdaption(void) {
|
|||||||
renewLogging();
|
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.
|
* Do a succeeding histogramm adaption based on a reference image.
|
||||||
*
|
*
|
||||||
@ -564,7 +579,10 @@ void ImageViewer::generateControlPanels() {
|
|||||||
|
|
||||||
linear_histogramm_adaption = new QPushButton("Do linear histogramm adaption (basic)");
|
linear_histogramm_adaption = new QPushButton("Do linear histogramm adaption (basic)");
|
||||||
QObject::connect(linear_histogramm_adaption, SIGNAL(clicked()), this, SLOT(linearHistogrammAdaption()));
|
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");
|
succeeding_histogramm_adaption = new QPushButton("Do succeeding histogramm adaption");
|
||||||
QObject::connect(succeeding_histogramm_adaption, SIGNAL(clicked()), this, SLOT(succeedingHistogrammAdaption()));
|
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(new QLabel("Working copy"));
|
||||||
task_tab3->addWidget(histogramm_cumulative_label);
|
task_tab3->addWidget(histogramm_cumulative_label);
|
||||||
task_tab3->addWidget(linear_histogramm_adaption);
|
task_tab3->addWidget(linear_histogramm_adaption);
|
||||||
|
task_tab3->addWidget(partial_linear_histogramm_adaption);
|
||||||
task_tab3->addWidget(succeeding_histogramm_adaption);
|
task_tab3->addWidget(succeeding_histogramm_adaption);
|
||||||
|
|
||||||
tabWidget->addTab(task_tab_widget3, "Task #3");
|
tabWidget->addTab(task_tab_widget3, "Task #3");
|
||||||
|
@ -110,6 +110,7 @@ class ImageViewer : public QMainWindow {
|
|||||||
QLabel* histogramm_cumulative_label;
|
QLabel* histogramm_cumulative_label;
|
||||||
|
|
||||||
QPushButton* linear_histogramm_adaption;
|
QPushButton* linear_histogramm_adaption;
|
||||||
|
QPushButton* partial_linear_histogramm_adaption;
|
||||||
QPushButton* succeeding_histogramm_adaption;
|
QPushButton* succeeding_histogramm_adaption;
|
||||||
|
|
||||||
// "My" space for storing data/results
|
// "My" space for storing data/results
|
||||||
@ -130,6 +131,7 @@ class ImageViewer : public QMainWindow {
|
|||||||
void saveToOriginal();
|
void saveToOriginal();
|
||||||
void robustAutomaticContrastAdaption(int c_param);
|
void robustAutomaticContrastAdaption(int c_param);
|
||||||
void linearHistogrammAdaption();
|
void linearHistogrammAdaption();
|
||||||
|
void partialLinearHistogrammAdaption();
|
||||||
void succeedingHistogrammAdaption();
|
void succeedingHistogrammAdaption();
|
||||||
|
|
||||||
void open();
|
void open();
|
||||||
|
Loading…
Reference in New Issue
Block a user