Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepLabCut/DeepLabCut
/ calc_distance
Method
calc_distance
deeplabcut/gui/tracklet_toolbox.py:830–831 ·
view source on GitHub ↗
(x1, y1, x2, y2)
Source
from the content-addressed store, hash-verified
828
829
@staticmethod
830
def
calc_distance(x1, y1, x2, y2):
831
return
np.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)
832
833
def
save(self, *args):
834
self.save_coords()
Callers
1
on_press
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected