Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Image-Py/imagepy
/ parse_poly
Function
parse_poly
imagepy/core/roi/polygonroi.py:15–18 ·
view source on GitHub ↗
(geom)
Source
from the content-addressed store, hash-verified
13
from
imagepy
import
IPy
14
15
def
parse_poly(geom):
16
out = list(geom.exterior.coords)
17
inn = [list(i.coords)
for
i in list(geom.interiors)]
18
return
[out, inn]
19
20
def
parse_mpoly(geom):
21
if
geom.geom_type ==
'Polygon'
:
Callers
1
parse_mpoly
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected