Find the average difference of two adjacent frames on a set of images
4 ビュー (過去 30 日間)
古いコメントを表示
khizer
2020 年 4 月 12 日
回答済み: Image Analyst
2020 年 4 月 12 日
Hi
I need to calculate average difference of two adjacent frames on a set of images.Need your help
0 件のコメント
採用された回答
Thiago Henrique Gomes Lobato
2020 年 4 月 12 日
Without further details it is difficult to know how exactly you would like to calculate it. A naive implementation that does exactly what your question asks and also gives you some possibilities is this one:
% im2double may or may not be needed depending of your goals
Frame1 = im2double(Frame1);
Frame2 = im2double(Frame2);
AverageDiff = mean(Frame1(:)-Frame2(:)); % This gives you the average difference. Use mean(abs(...)) for average absolute difference
0 件のコメント
その他の回答 (1 件)
Image Analyst
2020 年 4 月 12 日
Try imabsdiff():
diffImage = imabsdiff(frame1, frame2);
meanDiff = mean(diffImage(:));
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!