ENVI ROI File Reader

Reads in ROI files from ENVI saved in ASCII format

You are now following this Submission

This script reads ROI files from ENVI by Exelis (Formerly ITT) DataVis into Matlab. It outputs a Struct to your Matlab session containing the ROIs by name and associated information according the the ROI file header. For each ROI, the struct includes the ROI name, color, number of points, and the ROI point matrix. The script assumes the ROI file is in ASCII and follows a strict formatting. Please comment as you see fit as this is the first submission and I expect there will need to be updates. This script was written using Matlab version 7.8.0.347 (R2009a)

Cite As

Jared (2026). ENVI ROI File Reader (https://www.mathworks.com/matlabcentral/fileexchange/27492-envi-roi-file-reader), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Added capability to account for extra lines included in ROI files when saved using a Windows Operating system.

1.1.0.0

Updated code to handle ROI files from geo-tagged imagery (Lat and Long of ROI points). Also updated the readability fo the code.

1.0.0.0