remove_duplicate#

sunkit_image.utils.utils.remove_duplicate(edge)[source]#

Remove duplicated points in a the edge of a polygon.

Parameters:

edge (numpy.ndarray) – N x 2 array which defines all points at the edge of a polygon.

Returns:

numpy.ndarray – Same as edge, but with duplicated points removed.