Image description,tag,.. not preserving while converting to video
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Preview and Device Configuration finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!