inverse vector fields obtained by optical flow
조회 수: 17 (최근 30일)
이전 댓글 표시
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
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 Exchange에서 Accelerators & Beams에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!