File Exchange

image thumbnail


version 1.0 (2.96 KB) by

Read ENVI image file to MATLAB array.

6 Ratings



No License

MATLAB function for reading RSI ENVI Standard format images. The read images are loaded into a MATLAB array.

Other author's tools availables on :

Comments and Ratings (9)

A better option is to use MATLAB's multibandread function

You can not call it ENVI reader and only support small fraction of cases file format supports.

rohit maurya

i tried your code it runs actually but it fails for the those .img file
which doesn't have byte_order field.

my another problem is how read the 4,3,2 band for vegetation detection ..and how to display it imshow does for visual display.

rohit maurya

hello vincent, i tried ur coad as freadenvi('can_tmr.img') but it shows an error Input header file does not exist.
wat should i do.

Michael Toomey

Very handy, but I found the same two problems as two other reviewers. There is the one that d(1) should be changed to uint8 and the transpose situation - both of which are easily fixed. Thanks for the code.

No Way Jose

A User In France

Does what it should.

I had to change d(1) into uint8 for data type 1, it was set to bit8. Not necessarily an error by the author, perhaps this was changed in the .dim format that I use this function for.

Maurizio Santoro

Very handy tool but the matrix I obtain is the transposed version of the original image!

NotFor PublicKnowledge

Reader is only configurable for BSQ (band sequential) formatted files. This is not mentioned in the header information. Not supporting BIP or BIL is mediocre. Not specifying this is negligent.

MATLAB Release
MATLAB 6.0 (R12)

Inspired: ENVI file reader/writer

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today