[TASK] Add slider for partial linear histogramm adaption.
This commit is contained in:
parent
2630419e83
commit
fd24f7bb6c
|
@ -588,6 +588,12 @@ 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_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");
|
partial_linear_histogramm_adaption = new QPushButton("Do partial, linear histogramm adaption");
|
||||||
QObject::connect(partial_linear_histogramm_adaption, SIGNAL(clicked()), this, SLOT(partialLinearHistogrammAdaption()));
|
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(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_adaption_pieces_slider);
|
||||||
task_tab3->addWidget(partial_linear_histogramm_adaption);
|
task_tab3->addWidget(partial_linear_histogramm_adaption);
|
||||||
task_tab3->addWidget(succeeding_histogramm_adaption);
|
task_tab3->addWidget(succeeding_histogramm_adaption);
|
||||||
|
|
||||||
|
|
|
@ -108,6 +108,8 @@ class ImageViewer : public QMainWindow {
|
||||||
QLabel* reference_histogramm_cumulative_label;
|
QLabel* reference_histogramm_cumulative_label;
|
||||||
QLabel* original_histogramm_cumulative_label;
|
QLabel* original_histogramm_cumulative_label;
|
||||||
QLabel* histogramm_cumulative_label;
|
QLabel* histogramm_cumulative_label;
|
||||||
|
|
||||||
|
QSlider* partial_adaption_pieces_slider;
|
||||||
|
|
||||||
QPushButton* linear_histogramm_adaption;
|
QPushButton* linear_histogramm_adaption;
|
||||||
QPushButton* partial_linear_histogramm_adaption;
|
QPushButton* partial_linear_histogramm_adaption;
|
||||||
|
|
Loading…
Reference in New Issue