Modifying frames of a ".avi" file one by one

5 visualizaciones (últimos 30 días)
Piere
Piere el 7 de En. de 2014
Comentada: Image Analyst el 7 de En. de 2014
Hello, I'm quite new to MATLAB and already have troubles. I'm recording a series of images with my webcam and exporting them as a video file (avi). The goal is to separate the video in frames and adjust the contrast of each frame individually. I understood how to modify the contrast of a single image but I have no idea how to deal with a video file. Give me any instructions or examples how to do it please.

Respuesta aceptada

Image Analyst
Image Analyst el 7 de En. de 2014
Editada: Image Analyst el 7 de En. de 2014
Attached below (in blue text) is an example of where I read in the standard rhinos.avi demo video and do something on each frame and create a new movie. Feel free to adapt it as needed.

Más respuestas (1)

Piere
Piere el 7 de En. de 2014
Thanks for the fast replay, but again I have a problem. In the beggining when I try to count the number of frames with:
numberOfFrames = videoObject.NumberOfFrames;
It says:
Warning: Unable to determine the number of frames in this file.
  1 comentario
Image Analyst
Image Analyst el 7 de En. de 2014
That happens sometimes. I'm not sure when. I think Walter said something about some video files not having that info or not having a uniform frame time, or something. Can you convert it with some other program into a "standard" avi file?

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by