From: WP on
Try multibandread, it works for me, but you have to know the image dimensions and precision.

On the other hand, I can't manage to save an .img file with its header (.hdr), which is how I stumbled upon this old question. If you had managed to do that, I'd appreciate any suggestions ;)


"Jan Jaim" <bluekidresat(a)gmail.com> wrote in message <h0r990$3ab$1(a)fred.mathworks.com>...
> Hi all,
>
> I have searched but could not solve the problem. How to read an .img file using matlab. My codes are:
>
> x = imread('My_image.img');
> save My_image x;
>
> I can save png or other file formats, but I want to convert an img file type to its mat file format.
> Could you please help me
> thanx