Is it possible to open .img image files in Matlab?
15 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Walter Roberson
on 29 Nov 2015
2 Comments
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.
See Also
Categories
Find more on Convert Image Type in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!