Skip to content

Commit 776b4e4

Browse files
committed
Restore comment
1 parent cd43ca5 commit 776b4e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/algorithms/common.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ end
1919

2020
function build_lookup(cdf, minval::T, maxval::T) where T
2121
first_cdf = first(cdf)
22+
# Scale the new intensity value to so that it lies in the range [minval, maxval].
2223
scale = (maxval - minval) / (cdf[end] - first_cdf)
2324
if T <: Integer
2425
return T[ceil(minval + (x - first_cdf) * scale) for x in cdf]

0 commit comments

Comments
 (0)