Skip to content

Commit

Permalink
add KITTI example
Browse files Browse the repository at this point in the history
  • Loading branch information
liruoteng committed Oct 30, 2017
1 parent 5185cf1 commit fcf81cc
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 0 deletions.
Binary file added data/example/KITTI/flow_gt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/example/KITTI/frame1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added data/example/KITTI/frame2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions lib/flowlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,8 @@ def warp_image(im, flow):
n = image_height * image_width
(iy, ix) = np.mgrid[0:image_height, 0:image_width]
(fy, fx) = np.mgrid[0:flow_height, 0:flow_width]
fx = fx.astype(np.float64)
fy = fy.astype(np.float64)
fx += flow[:,:,0]
fy += flow[:,:,1]
mask = np.logical_or(fx <0 , fx > flow_width)
Expand Down

0 comments on commit fcf81cc

Please sign in to comment.