From: Steinar H. Gunderson Date: Thu, 5 Jul 2018 22:22:24 +0000 (+0200) Subject: Visualize the flow consistently with .flo files (which have y = down). X-Git-Tag: 1.8.0~76^2~242 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b69854826898be24a48e77733f629240756073a3;p=nageru Visualize the flow consistently with .flo files (which have y = down). --- diff --git a/flow.cpp b/flow.cpp index e59a481..205b24f 100644 --- a/flow.cpp +++ b/flow.cpp @@ -523,7 +523,7 @@ int main(void) float w = dense_flow[(yy * level_width + x) * 3 + 2]; du = (du / w) * level_width; - dv = (dv / w) * level_height; + dv = (-dv / w) * level_height; uint8_t r, g, b; flow2rgb(du, dv, &r, &g, &b);