[TASK] Make partial histogramm adaption a little more clear; still todo though ...

This commit is contained in:
Jan Philipp Timme 2015-11-27 15:45:37 +01:00
parent 33ed6d8a7b
commit 6c137b1c6a
1 changed files with 5 additions and 3 deletions

View File

@ -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<number_parts; i++) {
parts[i] = qRound((255.0/number_parts)*i);
logFile << "I: " << i << ", intensity: " << parts[i] << std::endl;
}
// Create
// TODO TODO TODO
double* histogramm_map = (double*) malloc(256*sizeof(double));
for(int i=0; i<=number_parts; i++) {
for(int i=0; i<number_parts; i++) {
int current_n = parts[i];
if(current_n == 0) continue; // First part is always at zero!
int last_n = parts[i-1];