Image description,tag,.. not preserving while converting to video
2 次查看(过去 30 天)
显示 更早的评论
I gave image description like below
imwrite(uint16(testImage),outputFileName,'Description','This is very important');
It worked and i got the description as expected but, when I take several images like this and convert it into video with below code
outputVideo = VideoWriter(fullfile('EncryptedVideo','Video.mp4'));
outputVideo.FrameRate = app.videoFrameRate;%Setting the frame rate
open(outputVideo)
encryptedImageFolder='FinalImages'
encryptedImagePath=dir([encryptedImageFolder '/*.tiff']);
numberOfEncryptedImages=size(encryptedImagePath,1);
%Looping through all images and adding to video
for i = 1:numberOfEncryptedImages
img = imread(['FinalImages\finalImage' num2str(i) '.tiff']);
writeVideo(outputVideo,uint8(img))
end
close(outputVideo)
I am losing the description, tags, comment etc after extracting it back.
Do anyone know how to preserve the image details while converting to video?
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!