how can i delete horizontal vector from output in optical flow?
1 回表示 (過去 30 日間)
古いコメントを表示
hi i need to delete horizontal velocity vector from output in optical flow is there any way to show special vector from output of optical flow function in matlab r2012a for example vector with special angles can you help me???
0 件のコメント
回答 (1 件)
Image Analyst
2013 年 1 月 29 日
yourOutputArray(rowToDelete, :) = [];
3 件のコメント
Image Analyst
2013 年 1 月 31 日
I thought it was rather self explanatory. See where you say " i need to delete horizontal velocity vector from output"? And where you say "...from output of optical...."? Well what you called "output" is what I called yourOutputArray. And a vector is a 1D array of numbers,in other words a row or a column. Let's say you wanted to delete row #4, then rowToDelete would be equal to 4. Let's try an example. Let's say your array was really called myOpticalFlowMatrix and you wanted to get rid of row #18. So you'd do this:
myOpticalFlowMatrix(18, :) = [];
I think that should explain it very well.
参考
カテゴリ
Help Center および File Exchange で Optics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!