swectral.envi_roi_coords#
- swectral.envi_roi_coords(roi_xml_path)[source]#
Get vertex coordinates of (multi-)polygon ROIs from ENVI ROI xml file.
- Parameters:
- rpath
str Path of ENVI xml ROI file.
- rpath
- Returns:
- Raises:
ValueErrorIf no polygon for a ROI is found.
- Return type:
Examples
>>> coord_list = envi_roi_coords("/image_roi.xml")