필터 지우기
필터 지우기

How to decode an image?

조회 수: 11 (최근 30일)
Jack
Jack 2014년 7월 3일
답변: Image Analyst 2014년 7월 3일
So I have an img. file and it wont open in any applications (understandably) so I've been told to view the image in matlab as there is a way to decode (I don't know if that is the right word) the image in order to see it. I know its a broad question but is there a specifically good way to 'decode' an image? Thanks,

채택된 답변

Image Analyst
Image Analyst 2014년 7월 3일
You could use fread() to read in the bytes as a 2D array and then see what the image looks like. It might look interleaved or sheared or both. Try skipping past the header (guess at how long it might be) and extracting every third element if the image is known to be color. If you don't know the format you have to do these kind of detective things to figure out the format.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by