martin-marek / hdr-plus-swift

📸Night mode on any camera. Based on HDR+.
https://burst.photo
GNU General Public License v3.0
208 stars 11 forks source link

Clipped regions introduce magenta cast when merging #29

Closed Alex-Vasile closed 1 year ago

Alex-Vasile commented 1 year ago

If doing an expose bracketed burst then the regions which are clipped in the positive exposure compensation image (i.e. +2EV) will contribute already have an increased weighting because of their exposure compensation and will result in a magenta cast being added to the image. This is not very noticeable when the noise reduction slider is <=14, but becomes very obvious as it increases.

I think that the solution for this is to add a factor for the per-tile weights which greatly decreases the weight of a tile if it contains clipped pixels.