Optimizing cloud motion estimation on the edge with phase correlation and optical flow