MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / get_mean_and_std

Function get_mean_and_std

wan/utils/utils.py:43–47  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

41 """
42
43 def get_mean_and_std(img):
44 x_mean, x_std = cv2.meanStdDev(img)
45 x_mean = np.hstack(np.around(x_mean, 2))
46 x_std = np.hstack(np.around(x_std, 2))
47 return x_mean, x_std
48
49 sc = cv2.cvtColor(sc, cv2.COLOR_RGB2LAB)
50 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