Guiding laplacians to restore clipped highlights

it’s pretty standard pull/push (maybe closest to this if you want a paper)

and for the colour reconstruction step i’m using the minimum channel of the three rgb channels to guide the others by ratio determined by pull/push. only that this guide-by-minimum did not really work perfect in all cases… when the minimum changes over the course of the blown highlight. so i came up with a horrific formula that represents a smooth blend between the minimum method:

and (as you can see a few lines below that) there’s another parameter that determines whether you’d like to prefer the low frequency or the high frequency scales if you have a choice (i.e. both are good averages without blown values).

it’s more on the blackmagic side of things, but then again this is an ill-posed problem, and at least it runs fast.

6 Likes