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 个评论

WeChat Screenshot_20190426114417.png
image data like this.
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 个)

标签

Community Treasure Hunt

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

Start Hunting!

Translated by