MCPcopy Create free account
hub / github.com/IRVLUTD/UnseenObjectsWithMeanShift / connected_components

Function connected_components

lib/utils/mean_shift.py:41–76  ·  view source on GitHub ↗

For the connected components, we simply perform a nearest neighbor search in order: for each point, find the points that are up to epsilon away (in cosine distance) these points are labeled in the same cluster. @param Z: a [n x d] torch.FloatTensor of NORMAL

(Z, epsilon, metric='cosine')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mean_shift_with_seedsFunction · 0.70

Calls 1

get_label_modeFunction · 0.70

Tested by

no test coverage detected