MCPcopy 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

13from imagepy import IPy
14
15def 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
20def parse_mpoly(geom):
21 if geom.geom_type == 'Polygon':

Callers 1

parse_mpolyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected