Secondly why are these vals calculated like this in spatial merging? I didn't find much information about spatial merging details in hdr+ paper, so I didn't really get the purpose of this implemetation. Is there any paper that I can refer to here? Thank you.
I was digging into the implementation of merge process and get confused with the following pieces.
Here, how the weights are calculated? If
norm_dist
has a maximal value of 1, then how could it be greater thanmax_dist-min_dist
?Secondly why are these
val
s calculated like this in spatial merging? I didn't find much information about spatial merging details in hdr+ paper, so I didn't really get the purpose of this implemetation. Is there any paper that I can refer to here? Thank you.