swectral.shp_roi_coords#
- swectral.shp_roi_coords(roi_shp_path)[source]#
Get vertex coordinates of (multi-)polygon ROIs from shapefile.
- Parameters:
- shapefile_path
str Path to the input shapefile
- shapefile_path
- Returns:
- Raises:
ValueErrorIf geom_type is not supported.
- Return type:
Examples
>>> coord_list = shp_roi_coords("/image_roi.shp")