Borrar filtros
Borrar filtros

How may i get data from writerobj?

2 visualizaciones (últimos 30 días)
Claire Redfield
Claire Redfield el 9 de Feb. de 2013
I can use getdata(obj) to get data from memory buffer.
But in the toolbox it teaches me to log image data into a videowriter obj (the disk), when i use
writerObj = VideoWriter('newfile.mj2','motion jpeg 2000');
obj.DiskLogger = writerObj;
start(obj);
i can get writerObj, but
getdata(writerObj)
doesnt work...since this command is for memory buffer only, not for the disk.
So how may i get the logging frame data from writerObj? such as a '.mj2' file?

Respuesta aceptada

Walter Roberson
Walter Roberson el 10 de Feb. de 2013
If you want the original data you will need to use a different writerobj, or log to memory. I don't think mj2 files are lossless, so if you were to read the data back out of the created file, I don't think you would get exactly the input data.
  2 comentarios
Claire Redfield
Claire Redfield el 10 de Feb. de 2013
Thank you Walter, you are the only one answering my questions... So how may i get the frames stored in the disk back pls?
Image Analyst
Image Analyst el 10 de Feb. de 2013
Have you tried VideoReader()?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by