From 6c137b1c6ad69b61991b4f5b5e72a6f89b4b6166 Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Fri, 27 Nov 2015 15:45:37 +0100 Subject: [PATCH] [TASK] Make partial histogramm adaption a little more clear; still todo though ... --- imageviewer-qt4.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/imageviewer-qt4.cpp b/imageviewer-qt4.cpp index 1937913..347f6eb 100644 --- a/imageviewer-qt4.cpp +++ b/imageviewer-qt4.cpp @@ -377,13 +377,15 @@ void ImageViewer::partialLinearHistogrammAdaption() { // Split [0,255] into n parts (slider) int number_parts = partial_adaption_pieces_slider->value(); int* parts = (int*) malloc(number_parts*sizeof(int)); - for(int i=0; i<=number_parts; i++) { + for(int i=0; i