[master] Move function and some features for optical flow