convert mat file to jpg
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
khaled alsaih
am 3 Jul. 2018
Kommentiert: khaled alsaih
am 3 Jul. 2018
hello guys i have mat files with the size of 512*1024*128 where 128 is the number of images and 512*1024 is the size of the image all i am trying to do is to convert these images to ipg or png files with order so the first image is 1.png and the second image is 2.png till 128.png
thanks for your assist
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 3 Jul. 2018
A slight adaptation of the FAQ to extract your images from your 3-D array
imageArray = array3d(:, :, k);
rather than calling imread()
imageArray = imread(fullFileName);
and you should be all set: https://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Convert Image Type 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!