|
@ -103,16 +103,16 @@ void PNG::output_file(const char* filename_in) const { |
|
|
const double norm_value = (double)int_array[x + y*width + c*width*height]/max_int[c]; |
|
|
const double norm_value = (double)int_array[x + y*width + c*width*height]/max_int[c]; |
|
|
switch(c) { |
|
|
switch(c) { |
|
|
case 0: { |
|
|
case 0: { |
|
|
r = (pow(norm_value, power[c]))*3.5; |
|
|
r = (pow(norm_value, power[c]))*3.0; |
|
|
break; |
|
|
//break;
|
|
|
} |
|
|
} |
|
|
case 1: { |
|
|
case 1: { |
|
|
g = (pow(norm_value, power[c]))*3.0; |
|
|
g = (pow(norm_value, power[c]*2.0))*3.0; |
|
|
break; |
|
|
//break;
|
|
|
} |
|
|
} |
|
|
case 2: { |
|
|
case 2: { |
|
|
b = (pow(norm_value, power[c]))*3.0; |
|
|
b = (pow(norm_value, power[c]*3.0))*3.0; |
|
|
break; |
|
|
//break;
|
|
|
} |
|
|
} |
|
|
default: |
|
|
default: |
|
|
break; |
|
|
break; |
|
|