[TASK] Add slider for partial linear histogramm adaption.

This commit is contained in:
Jan Philipp Timme 2015-11-22 17:49:13 +01:00
parent 2630419e83
commit fd24f7bb6c
2 changed files with 9 additions and 0 deletions

View File

@ -588,6 +588,12 @@ void ImageViewer::generateControlPanels() {
linear_histogramm_adaption = new QPushButton("Do linear histogramm adaption (basic)");
QObject::connect(linear_histogramm_adaption, SIGNAL(clicked()), this, SLOT(linearHistogrammAdaption()));
partial_adaption_pieces_slider = new QSlider(Qt::Horizontal);
partial_adaption_pieces_slider->setMinimum(2);
partial_adaption_pieces_slider->setMaximum(10);
partial_adaption_pieces_slider->setValue(5);
//QObject::connect(partial_adaption_pieces_slider, SIGNAL(valueChanged(int)), this, SLOT(robustAutomaticContrastAdaption(int)));
partial_linear_histogramm_adaption = new QPushButton("Do partial, linear histogramm adaption");
QObject::connect(partial_linear_histogramm_adaption, SIGNAL(clicked()), this, SLOT(partialLinearHistogrammAdaption()));
@ -601,6 +607,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_adaption_pieces_slider);
task_tab3->addWidget(partial_linear_histogramm_adaption);
task_tab3->addWidget(succeeding_histogramm_adaption);

View File

@ -109,6 +109,8 @@ class ImageViewer : public QMainWindow {
QLabel* original_histogramm_cumulative_label;
QLabel* histogramm_cumulative_label;
QSlider* partial_adaption_pieces_slider;
QPushButton* linear_histogramm_adaption;
QPushButton* partial_linear_histogramm_adaption;
QPushButton* succeeding_histogramm_adaption;