JPEG file into an array
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi,
is it possible to convert an JPEG file into an array in Matlab? What about the reverse conversion?
Owen
0 Commenti
Risposta accettata
Geoff Hayes
il 29 Mar 2015
4 Commenti
Image Analyst
il 30 Mar 2015
Spostato: DGM
il 17 Gen 2024
You're checking the size on disk, which will always be less. Once it's decompressed and read into a variable in your MATLAB program, it will be its full uncompressed size. To get the compressed matrix, which virtually no one ever does or ever needs to do unless you're writing your own version of imread(), then you'd have to use fread(). Of course it's not an image at that point since you'd need to decompress it.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Import, Export, and Conversion 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!