what is the best way to process videos in matlab?

댓글 수: 3

kirmizi kush
kirmizi kush 2017년 6월 12일
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 2017년 6월 12일
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 2017년 6월 12일
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.

댓글을 달려면 로그인하십시오.

 채택된 답변

Image Analyst
Image Analyst 2017년 6월 12일

0 개 추천

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

Nir Barsheshet
Nir Barsheshet 2017년 6월 12일
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 2017년 6월 12일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

질문:

2017년 6월 12일

댓글:

2017년 6월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by