JPEG file into an array
조회 수: 5 (최근 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!