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 个)

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by