Detecting abrupt changes in sequence of images

1 view (last 30 days)
I have a folder named "Video" containing a number of sequenced files from a video. I want to select that particular image where there is an abrupt change in histogram and save them in another folder named "Change". Can some one please provide me the matlab source code?

Answers (1)

Image Analyst
Image Analyst on 20 Apr 2014
See my attached demo where I go through and detect changes from one frame to prior frames. Just sum the difference image. Then determine the magnitude of the sum that will indicate to you that the change is great enough to save in a different folder. My code also writes the frames out to disk, so you 'd have to adapt it to change the folder name when the difference exceeds a predetermined amount.

Community Treasure Hunt

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

Start Hunting!