How to make Operations on video frames?
Mostra commenti meno recenti
Hi I have a mp4 video , I turned it into Frames ... but I want to make operations on EACH frame
Can any one help ???
Risposta accettata
Più risposte (2)
Image Analyst
il 21 Dic 2013
0 voti
See my demo, attached. I calculate a background frame comprised of the last few frames, and then subtract it from the current frame. You can do something similar with whatever operation you want to do.
5 Commenti
Christine Ak
il 21 Dic 2013
Image Analyst
il 21 Dic 2013
I'm not sure what you're asking. It does each frame, which means it does all frames. Do you have some different definition of each and all that I don't know about? Of course every frame is different so every frame will have a different result or value, that's why I kept track of them in arrays that have the same number of elements as there are frames in the video. I really have no idea at all how to answer you, ... well not " answer" you since you didn't ask a question in your comment above, but I guess I mean "reply" to you.
Christine Ak
il 22 Dic 2013
Mustafa Alhandhali
il 3 Apr 2019
how you did it??
Image Analyst
il 3 Apr 2019
I doubt she'll answer, after more than 5 years, but I will. Is there something wrong with my code that doesn't work for you? Did you adapt it? Attach your adapted code.
komal
il 10 Giu 2019
0 voti
i have converted the videos into frames and now I want to subtract one frame from another like frame 1-frame 2 and then frame 2-frame3 and so on till the video ends.
2 Commenti
Image Analyst
il 11 Giu 2019
Did you see my answer? That's basically what I do. Adapt it as needed. It should be trivial.
komal
il 11 Giu 2019
Yes sir I saw your answer but my question is different.
I want to subtract the frames and continously run the loop for the whole video frames.
ex-frame 1-frame 2 and show the result in graph and then frame 2 - frame 3.Individual ans shown on graph
Sorry if I m unable to explain you clearly
Categorie
Scopri di più su Video Formats and Interfaces in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!