Compute overlap between two images.

WeChat Screenshot_20190426155253.png
I have 1500 images like these. Each contains 720*1280 pixels. I want to find the overlap between two consecutive images of 1500 images for each person presented like the picture. Each image data contains 0 or positive integers, the hot area means some positive integers and display like a person, such as 5 or 4.

2 件のコメント

Zebang Long
Zebang Long 2019 年 4 月 26 日
WeChat Screenshot_20190426114417.png
image data like this.
Zebang Long
Zebang Long 2019 年 4 月 26 日
for S = 2:nr_relevant_frames
for imx = 1:im_size_x
for imy = 1:im_size_y
% check each pixel location in each frame to find whether there is an
% overlap
loc_frame_overlap(imx,imy) = images_data{S,1}(imx,imy) == images_data{S-1,1}(imx,imy) + 1 ;
end
end
end
I want to try like this. but it doesn't work.

サインインしてコメントする。

回答 (0 件)

タグ

質問済み:

2019 年 4 月 26 日

コメント済み:

2019 年 4 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by