From ef298dc322d90938a88d709aba92a5a2d4665f18 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Fri, 13 Nov 2015 13:22:48 +0100 Subject: [PATCH] [TASK] Cap percentile param at 50%. --- imageviewer-qt4.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/imageviewer-qt4.cpp b/imageviewer-qt4.cpp index 1c06e92..5f727af 100644 --- a/imageviewer-qt4.cpp +++ b/imageviewer-qt4.cpp @@ -200,6 +200,10 @@ void ImageViewer::acidTrippin() { /** * Analyze the image, get average luminance * Also fill grayscale_absolute_histogramm + * + * TODO: Decouple this from the drawing of the histogramm + * (READ: Fuck, reanalyzing my image fucks up tools that work on histogramm data!) + * * @brief ImageViewer::analyzeImage */ void ImageViewer::analyzeImage() { @@ -485,7 +489,7 @@ void ImageViewer::generateControlPanels() { contrast_percentile_slider = new QSlider(Qt::Horizontal); contrast_percentile_slider->setMinimum(0); - contrast_percentile_slider->setMaximum(100); + contrast_percentile_slider->setMaximum(50); contrast_percentile_slider->setValue(5); automatic_robust_contrast = new QPushButton("Automatic robust contrast adaption");