Hi, so I’ve been experimenting with the Optical Flow patch from Sugar Asset Store.
The output texture from the patch is red and green with 0 blue and black background. when compared to the normal flow project’s there is an add 0.5 patch before it goes thru the raw OF sender which makes the background grey and blue color is added to the detected movement. and if i change the add to vector 4, red .5,green .5, blue 1 and alpha 0, it becomes normal. and if i change it to blue to 0, it becomes flow map.
- is the output color from the optical flow is already matched to the screen texture coordinate where black is 0.0 top left, red is 1,0. green is 0,1 and yellow is 1.1? Or is it simply just giving output by changes in luminosity value?
What I want to do is to use the color output from the optical flow to dictate the next processing using flowmap.
but what i get from the output is only significant based on right and left movement where going to right is green/cyan-ish and left is red/yelow-ish. No obvious changes when movement occurs in y axis. and also it seems to only detect mostly edges.
Should I double the delay frame to get even further time changes so it covers more area? cuz if I only change the offset, it doesn’t really act like what i expected it to do.
If I want to only get the output texture vector (make the black background transparent) which one is the correct way: add red and green and feed it to the alpha, or add red and green first, divide by 2 to average them and feed it to the alpha?