Video processing in matlab

what is the best way to process videos in matlab?

3 Commenti

kirmizi kush
kirmizi kush il 12 Giu 2017
from my experience video processing demands a big memory allocation. you could just use single a frame at a time and process by each image, depends on what you need.
Nir Barsheshet
Nir Barsheshet il 12 Giu 2017
Thank you for your time. My purpose is to make a sort of motion sensor, based on image comparing, is it possible (and effective) to compare frames from a given video?
kirmizi kush
kirmizi kush il 12 Giu 2017
i would use a simple camera, taking pictures in a measured time and compare each image to the one that was taken before. that way you can discard images if they are identical. i recommend a simple comparison between to images. you can also use a for loop, although it might take a while.

Accedi per commentare.

 Risposta accettata

Image Analyst
Image Analyst il 12 Giu 2017

0 voti

I use the Image Processing Toolbox and MATLAB. I read in a frame at a time with the VideoReader class, then do something with that frame. You can get more specific advice if you attach a frame from your video and say what you want to measure.
In the meantime, I'm attaching
  1. a demo to do a running background subtraction and plot the RGB means of the frames.
  2. a demo to resize a movie to different number of rows and columns
  3. a demo to convert a movie from avi to mp4 format.

2 Commenti

Nir Barsheshet
Nir Barsheshet il 12 Giu 2017
Thank you for your time. My purpose is to make a sort of motion sensor, based on image comparing, is it possible (and effective) to compare frames from a given video?
Image Analyst
Image Analyst il 12 Giu 2017
Yes. Just have two reader objects to read in frames from each video. Now you have the frames from each video and you can compare them, like subtract them or compare their intensities or optical flow or whatever you want.

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by