MCPcopy Create free account
hub / github.com/Netflix/void-model / get_mean_and_std

Function get_mean_and_std

videox_fun/utils/utils.py:49–53  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

47 """
48
49 def get_mean_and_std(img):
50 x_mean, x_std = cv2.meanStdDev(img)
51 x_mean = np.hstack(np.around(x_mean, 2))
52 x_std = np.hstack(np.around(x_std, 2))
53 return x_mean, x_std
54
55 sc = cv2.cvtColor(sc, cv2.COLOR_RGB2LAB)
56 s_mean, s_std = get_mean_and_std(sc)

Callers 1

color_transferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected