[BUGFIX] Make succeeding histogramm adaption base on the original image data.

This commit is contained in:
Jan Philipp Timme 2015-11-20 13:57:31 +01:00
parent 1431d12890
commit c10c255bdc
1 changed files with 1 additions and 1 deletions

View File

@ -396,7 +396,7 @@ void ImageViewer::succeedingHistogrammAdaption() {
for(int i=0; i<256; i++) histogramm_map[i] = -1;
int source_cursor = 0;
double used_space = 0.0;
double* source_histogramm = working_copy->getRelativeIntensityHistogramm();
double* source_histogramm = original->getRelativeIntensityHistogramm();
double* target_cummulative_histogramm = histogramm_reference->getRelativeCumulativeIntensityHistogramm();
for(int i=0; i<256; i++) {
double free_total_space = target_cummulative_histogramm[i];