Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/DALI
/ vec
Function
vec
dali/test/python/debayer_test_utils.py:54–55 ·
view source on GitHub ↗
(n, mod=2)
Source
from the content-addressed store, hash-verified
52
return
pattern in (BayerPattern.BGGR, BayerPattern.GBRG)
53
54
def
vec(n, mod=2):
55
return
np.arange(0, n, dtype=np.uint8) % mod
56
57
if
sensor_matrix_00_is_green(pattern):
58
top_right_mask = np.outer(1 - vec(h), vec(w))
Callers
1
rgb_bayer_masks
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected