READ_ENVIHDR
INFO = READ_ENVIHDR('HDR_FILE') reads the ASCII ENVI-generated image header file and returns all the information in a structure of parameters.
Example:
>> info = read_envihdr('my_envi_image.hdr')
info =
description: [1x101 char]
samples: 658
lines: 749
bands: 3
header_offset: 0
file_type: 'ENVI Standard'
data_type: 4
interleave: 'bsq'
sensor_type: 'Unknown'
byte_order: 0
map_info: [1x1 struct]
projection_info: [1x102 char]
wavelength_units: 'Unknown'
pixel_size: [1x1 struct]
band_names: [1x154 char]
Cite As
Ian Howat (2026). READ_ENVIHDR (https://uk.mathworks.com/matlabcentral/fileexchange/15630-read_envihdr), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Mathematics and Optimization > Mapping Toolbox > Data Import and Export >
- Radar > Mapping Toolbox > Data Import and Export >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | -Fixed problem with reading image coordinates when a point other than the upper left corner is in the header. The fields info.map_info.ulx and uly are now mapx and mapy to reflect this. |
