Image description,tag,.. not preserving while converting to video
3 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!