View Single Post
Old 25th January 2018, 21:56   #43  |  Link
ifb
Registered User
 
Join Date: Dec 2009
Posts: 72
Quote:
Originally Posted by jpsdr View Post
... I'm still unable to see the whole mathematical formula path .
I also don't see any formula with exposed_bias in your links...

I have no idea what is the mathematical results of such things
Code:
tm = core.std.Expr(c, expr="x  {exposure_bias} * 0.15 x  {exposure_bias} * * 0.05 + * 0.004 + x  {exposure_bias} * 0.15 x  {exposure_bias} * * 0.50 + * 0.06 + / 0.02 0.30 / -  ".format(exposure_bias=exposure_bias),format=vs.RGBS)#12=1200 nits / 100 nits

w = core.std.Expr(c, expr="{exposure_bias} 0.15 {exposure_bias} * 0.05 + * 0.004 + {exposure_bias} 0.15 {exposure_bias} * 0.50 + * 0.06 + / 0.02 0.30 / -  ".format(exposure_bias=exposure_bias),format=vs.RGBS)#  


c = core.std.Expr(clips=[tm,w], expr=" x  1 y  / *  ",format=vs.RGBS)
This is why, a "unrolled" explicit mathematical formula would be wonderfull...
I mean... Your script result in several mathematic formulas apllied step by step.
Is it possible to have the formula of each step ?
I haven't looked at his script, but what you've quoted is the Hable operator from earlier in the thread. You can look at the VS plugin or ffmpeg if you want to see a C version.

https://github.com/ifb/vapoursynth-t.../tonemap.c#L44
ifb is offline   Reply With Quote