MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / gold_max_features

Function gold_max_features

tests/cvcuda/python/test_opsift.py:22–25  ·  view source on GitHub ↗
(in_tensor)

Source from the content-addressed store, hash-verified

20
21
22def gold_max_features(in_tensor):
23 w = in_tensor.shape[str(in_tensor.layout).index("W")]
24 h = in_tensor.shape[str(in_tensor.layout).index("H")]
25 return max(w * h // 20, 1)
26
27
28@t.mark.parametrize(

Callers 1

test_op_sift_apiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected