Is it possible to open .img image files in Matlab?

15 views (last 30 days)
I use an image processing program called Erdas, which save image with .img extension. I want to open it in matlab without converting it to Tif.

Answers (1)

Walter Roberson
Walter Roberson on 29 Nov 2015
  2 Comments
Mohamed Besheer
Mohamed Besheer on 29 Nov 2015
It will work for grey image what about RGB images
Image Analyst
Image Analyst on 29 Nov 2015
Yes, it will. Basically you have to know what the format is, since it's not a standard format. Then get the bytes and organize it into and RGB image. For example, are the bytes RGB for pixel 1, then RGB for pixel 2, etc.? Or is it R for all pixels, then G for all pixels, then B for all pixels? Or is it BGR, BGR. BGR, etc. You need to know that. If you don't, then guess. One of them will look right and the others won't.

Sign in to comment.

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!