Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CVCUDA/CV-CUDA
/ absdiff
Method
absdiff
tests/cvcuda/python/test_opmatch.py:32–36 ·
view source on GitHub ↗
(a, b)
Source
from the content-addressed store, hash-verified
30
dist_dtype = np.float32
31
32
def
absdiff(a, b):
33
if
type(a) == float:
34
return
abs(a - b)
35
else
:
36
return
b - a
if
a < b
else
a - b
37
38
def
distance(p1, p2, norm_type):
39
if
norm_type == cvcuda.Norm.HAMMING:
Callers
1
distance
Method · 0.80
Calls
1
abs
Function · 0.85
Tested by
no test coverage detected