Occlusion Detection and Motion Estimation with Convex Optimization