[TASK] Cap percentile param at 50%.

This commit is contained in:
Jan Philipp Timme 2015-11-13 13:22:48 +01:00
parent 6da80868dc
commit ef298dc322
1 changed files with 5 additions and 1 deletions

View File

@ -200,6 +200,10 @@ void ImageViewer::acidTrippin() {
/** /**
* Analyze the image, get average luminance * Analyze the image, get average luminance
* Also fill grayscale_absolute_histogramm * 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 * @brief ImageViewer::analyzeImage
*/ */
void ImageViewer::analyzeImage() { void ImageViewer::analyzeImage() {
@ -485,7 +489,7 @@ void ImageViewer::generateControlPanels() {
contrast_percentile_slider = new QSlider(Qt::Horizontal); contrast_percentile_slider = new QSlider(Qt::Horizontal);
contrast_percentile_slider->setMinimum(0); contrast_percentile_slider->setMinimum(0);
contrast_percentile_slider->setMaximum(100); contrast_percentile_slider->setMaximum(50);
contrast_percentile_slider->setValue(5); contrast_percentile_slider->setValue(5);
automatic_robust_contrast = new QPushButton("Automatic robust contrast adaption"); automatic_robust_contrast = new QPushButton("Automatic robust contrast adaption");