Info
Questa domanda è chiusa. Riaprila per modificarla o per rispondere.
Creating a new file to save data to
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I'm trying to save a bunch of JPG images of data to a seperate file than where the mat program is located. Currently I have the below to name each image of data saved, but I'm not sure how to save these images to a new file.
obj = VideoReader(Image);
vid = read(obj);
frames = obj.NumberOfFrames;
timeStamp = getTimeStamp;
for x=1:frames
imwrite(vid(:,:,:,x),strcat('frame-',num2str(x),'_',timeStamp,'.JPG'));
end
Any suggestions for how to save each image to a new file?
2 Commenti
Walter Roberson
il 8 Mag 2019
Is getTimeStamp from https://www.mathworks.com/matlabcentral/fileexchange/47075-cmacminn-gettimestamp ? But even that expects to be passed a file name.
Risposte (0)
Questa domanda è chiusa.
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!