Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to extract the optical flow images? #2

Open
xldagger opened this issue Apr 17, 2019 · 0 comments
Open

How to extract the optical flow images? #2

xldagger opened this issue Apr 17, 2019 · 0 comments

Comments

@xldagger
Copy link

Hi, Firstly thanks for your job!

I'm try to extract the optical flow with x-direction and y-direction by flownet2, using your video clips. But the x,y optical flow looks difference with your optical flow images,

my postprocess method is as follows: (u is x-direction flow, v is y-direction flow)

 u = (u-minu)/(maxu-minu)*255
 v = (v-minv)/(maxv-minv)*255

also, i tried another method to postprocess:

 u[u>thredhold_max] = thredhold_max
 v[v<thredhold_min] = thredhold_min
 u = (u-minu)/(maxu-minu)*255
 v = (v-minv)/(maxv-minv)*255

anything wrong with my process method? Thx for your response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant