]> git.sesse.net Git - nageru/commitdiff
Close off a TODO.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 26 Jul 2018 10:45:50 +0000 (12:45 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 26 Jul 2018 10:45:50 +0000 (12:45 +0200)
equations.frag

index d7a39bad2db5b15a46f43da1bdd88edd6a5c50dc..4195d4783b80b2f5a7383c4dc4193ee584e38314 100644 (file)
@@ -69,10 +69,10 @@ void main()
        float I_y = I_x_y.y;
        float I_t = texture(I_t_tex, tc).x;
 
-       // E_I term. Note that we don't square β_0, in line with DeepFlow,
-       // even though it's probably an error.
+       // E_I term. Note that we don't square β_0, in line with DeepFlow;
+       // it's probably an error (see variational_refinement.txt),
+       // but squaring it seems to give worse results.
        //
-       // TODO: Evaluate squaring β_0.
        // FIXME: Should the penalizer be adjusted for 0..1 intensity range instead of 0..255?
        float beta_0 = texture(beta_0_tex, tc).x;
        float k1 = delta * beta_0 * inversesqrt(beta_0 * (I_x * du + I_y * dv + I_t) * (I_x * du + I_y * dv + I_t) + 1e-6);