MATLAB function for reading RSI ENVI Standard format images. The read images are loaded into a MATLAB array.
Other author's tools availables on :
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.
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.
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.
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.
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.
Very handy tool but the matrix I obtain is the transposed version of the original image!
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.