How can I warp images using optical flow in Tensorflow?

Viewed 2376

I do not know how to warp image using optical flow in Tensorflow.

In MXnet we can use mx.sym.GridGenerator and mx.sym.BilinearSampler to implement it. But there are these APIs in tensorflow.

And I wonder why tensorflow has most users but no these API in it. Instead MXnet has these API.

1 Answers

Try Spatial Transformer Network, which is part of tensorflow now:

from spatial_transformer import transformer
transformed = transformer(x, theta, out_size)
Related