[TASK] Make partial histogramm adaption a little more clear; still todo though ...
This commit is contained in:
parent
33ed6d8a7b
commit
6c137b1c6a
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue