remove_duplicate

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

Remove duplicated points in a the edge of a polygon.

Parameters:

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

Returns:

list – Same as edge, but with duplicated points removed.