Skip to content

How to extract the optical flow images? #2

Open
@xldagger

Description

@xldagger

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions