in image processingm how can we find the location of the correlation coefficient maximum for two consecutive frames?

3 次查看(过去 30 天)
Dear Friends,
I hope this message finds you well.
I am currently working on a project that involves conducting correlation analysis between every pair of consecutive frames in a dataset. To achieve this, I'm utilizing the corr2 function to compute the correlation coefficients.
However, I am in need of assistance with locating the maximum correlation coefficient within each pair. Could anyone kindly provide guidance on how to accomplish this task? Any help or advice you could offer would be greatly appreciated.

采纳的回答

Image Analyst
Image Analyst 2024-2-8
See my attached demos for going through frames of a video. You just need to have a loop that starts at the second frame and compute the coefficient between the current frame and the prior one and store the result into an array. Then when the loop is done and all correlation coefficients have been computed, you can use max to find the frame and value that has the highest correlation coefficient. Let me know if you can't figure it out (adapt it).
  2 个评论
Parastoo
Parastoo 2024-2-8
Thank you so much for your kind reply. I understand the logic of your code. However, what I actually need is not the maximum of the correlation peak among all of my frames. Instead, I require the location of the correlation peak for every two consecutive frames.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by