how to apply Motion detection in a sequence of images saved in a folder and only the Motion detected image/frame should be shown/saved again
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
i have a sequence of images saved in a folder for example frame1.jpg frame2.jpg....frame20.jpg
fileNames = arrayfun( @(x) fullfile( 'F:\Matlab Programs\matlab\new\Gui_img', x.name ), a, 'UniformOutput', false );
i have saved all in an array fileNames ..now i have to detect motion on this images ie frame1.jpg is different from frame2.jsp save frame2.jsp in separate folder or just use imshow and show only motion detected frame image...
folder in which i have the sequence of 28 images
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154353/image.png)
0 Kommentare
Antworten (1)
Image Analyst
am 31 Dez. 2013
Try my attached demo.
But perhaps a better way is to look at optical flow.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Preview and Device Configuration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!