ENVI ROI File Reader

Version 1.2.0.0 (3.35 KB) by Jared
Reads in ROI files from ENVI saved in ASCII format
1.3K Downloads
Updated 15 Jun 2012

View License

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 (2024). ENVI ROI File Reader (https://www.mathworks.com/matlabcentral/fileexchange/27492-envi-roi-file-reader), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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