Commit 2a28b068 authored by Caillat Michel's avatar Caillat Michel
Browse files

Fixed a bug in the calculation of PNG files when ITT == percentile

parent 64a89f11
......@@ -533,7 +533,7 @@ class DataBlock:
img_f_flat_N[mid_mask] = n_low_steps + n_mid_steps * (img_f_flat[mid_mask] - p_low) / ( p_high - p_low)
high_mask = img_f_flat >= p_high
img_f_flat_N[high_mask] = n_low_steps + n_mid_steps + n_high_steps * (img_f_flat[high_mask] - p_high) / (data_max - p_high)
img_f_flat_N[high_mask] = n_low_steps + n_mid_steps + n_high_steps * (img_f_flat[high_mask] - p_high) / (data_max - p_high) - 1
img_f = img_f_flat_N.reshape(shape)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment