Is it possible to do a 2d cross correlation (xcorr2) in only one direction?

5 ビュー (過去 30 日間)
Mark Lepage
Mark Lepage 2017 年 6 月 30 日
回答済み: Selva Karna 2017 年 8 月 14 日
I am trying to calculate the distance a froth has moved between two consecutive frames, but I'm only interested in the vertical displacement, i.e. the y direction.
xcorr2 works great but is expensive computational wise.
here is my code:
img1
img2
ccr = xcross2(img1,img2)
I was thinking I could just apply xcorr to each column for the image, but not sure this will save on computations

回答 (1 件)

Selva Karna
Selva Karna 2017 年 8 月 14 日
possible for 2d and 4d also

カテゴリ

Help Center および File ExchangeCorrelation and Convolution についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by