JPEG file into an array
8 次查看(过去 30 天)
显示 更早的评论
Hi,
is it possible to convert an JPEG file into an array in Matlab? What about the reverse conversion?
Owen
0 个评论
采纳的回答
Geoff Hayes
2015-3-29
4 个评论
Image Analyst
2015-3-30
移动:DGM
2024-1-17
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Import, Export, and Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!