diff --git a/imageviewer-qt4.cpp b/imageviewer-qt4.cpp index efe81e7..accf3f0 100644 --- a/imageviewer-qt4.cpp +++ b/imageviewer-qt4.cpp @@ -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); diff --git a/imageviewer-qt4.h b/imageviewer-qt4.h index fcf4424..c97700d 100644 --- a/imageviewer-qt4.h +++ b/imageviewer-qt4.h @@ -108,6 +108,8 @@ class ImageViewer : public QMainWindow { QLabel* reference_histogramm_cumulative_label; QLabel* original_histogramm_cumulative_label; QLabel* histogramm_cumulative_label; + + QSlider* partial_adaption_pieces_slider; QPushButton* linear_histogramm_adaption; QPushButton* partial_linear_histogramm_adaption;