how can I warp an image using HS optic flow
5 次查看(过去 30 天)
显示 更早的评论
I have an image A and B. I calculated U V using Horn-Schunck algorithm. how can I warp image B to image A using the optic flow u v between them? thanks
0 个评论
回答(1 个)
Alex Taylor
2014-4-7
Essentially, you are going to going to want to form a plaid grid of the displacements of each pixel using meshgrid, add these displacements to the locations of the output grid locations, and then use interp2 to resample the input image at the remapped locations from the optical flow estimate of the displacement field.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Optics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!