Image description,tag,.. not preserving while converting to video
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Audio and Video Data in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!