odc.geo.roi.roi_boundary

odc.geo.roi.roi_boundary(roi, pts_per_side=2)[source]

Get boundary points from a 2d roi.

roi needs to be in the normalised form, i.e. no open-ended start/stop,

Return type:

ndarray

Returns:

Nx2 <float32> array of X,Y points on the perimeter of the envelope defined by roi

See also

roi_normalise()