odc.geo.math.norm_xy

odc.geo.math.norm_xy(pts, out=None)[source]

Normalize Nx2 points.

Scale and translate such that mean is at 0 and mean distance from 0 is sqrt(2).

Return type:

Tuple[ndarray, Affine]

Returns:

Normalized array and affine matrix of the normalization.