How may i get data from writerobj?

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?

 采纳的回答

Walter Roberson
Walter Roberson 2013-2-10

0 个投票

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 个评论

Thank you Walter, you are the only one answering my questions... So how may i get the frames stored in the disk back pls?
Have you tried VideoReader()?

请先登录,再进行评论。

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Data Import and Export 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by