inverse vector fields obtained by optical flow

13 ビュー (過去 30 日間)
sayda prn
sayda prn 2013 年 9 月 27 日
コメント済み: Yash 2013 年 9 月 27 日
How can I invert a vector field(vf)?vf's inverse is not unique and need to be estimated in an optimal manner like fixed point iteration or any other iteration techniques. I wrote a code and want you to check it if it's correct or not. if true function p=testfixpointt(v) [N,M]=size(v); p(1:N,1:M,1)=0; conv=1e-5; err=1; n=1; while err>conv for i=1:N for j=1:M if (i+p(i,j,n)==0 j+p(i,j,n)==0) continue end if (abs(i+p(i,j,n))>N ||abs(j+p(i,j,n))>M) continue end p(i,j,n+1)=-v(ceil(abs(i+p(i,j,n))),ceil(abs(j+p(i,j,n)))); end end err=abs(p(:,:,n+1)-p(:,:,n)); n=n+1; end end
  1 件のコメント
Yash
Yash 2013 年 9 月 27 日
if you can post the code using the code posting method in this forum then this will be good.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAccelerators & Beams についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by