3.33333

3.3 | 6 ratings Rate this file 18 Downloads (last 30 days) File Size: 2.96 KB File ID: #4918

ENVI to MATLAB

by Vincent GUISSARD

 

13 May 2004 (Updated 17 May 2004)

Read ENVI image file to MATLAB array.

| Watch this File

File Information
Description

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

Other author's tools availables on :
http://www.enge.ucl.ac.be/staff/curr/Guissard/

Acknowledgements
This submission has inspired the following:
ENVI file reader/writer
MATLAB release MATLAB 6.0 (R12)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
02 Dec 2004 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.

28 Apr 2005 Maurizio Santoro

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

09 Oct 2007 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.

11 Dec 2007 No Way Jose  
11 Aug 2008 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.

03 Dec 2010 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.

04 Dec 2010 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 ..like imshow does for visual display.

04 Jan 2012 Jaroslaw Tuszynski

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

18 Jan 2012 Jaroslaw Tuszynski

A better option is to use MATLAB's multibandread function

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data import Vincent GUISSARD 22 Oct 2008 07:19:51
data export Vincent GUISSARD 22 Oct 2008 07:19:51
envi Vincent GUISSARD 22 Oct 2008 07:19:51
image Vincent GUISSARD 22 Oct 2008 07:19:51
io Vincent GUISSARD 22 Oct 2008 07:19:51
data Vincent GUISSARD 22 Oct 2008 07:19:51
import Vincent GUISSARD 22 Oct 2008 07:19:51
utilities Vincent GUISSARD 22 Oct 2008 07:19:51

Contact us at files@mathworks.com