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 comentarios

Zebang Long
Zebang Long el 26 de Abr. de 2019
WeChat Screenshot_20190426114417.png
image data like this.
Zebang Long
Zebang Long el 26 de Abr. de 2019
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.

Iniciar sesión para comentar.

Respuestas (0)

Etiquetas

Preguntada:

el 26 de Abr. de 2019

Comentada:

el 26 de Abr. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by