MCPcopy Create free account
hub / github.com/MaureenZOU/TSAM / writeFlowImage

Function writeFlowImage

src/utils/visual_helper.py:166–171  ·  view source on GitHub ↗
(save_dir, data)

Source from the content-addressed store, hash-verified

164
165
166def writeFlowImage(save_dir, data):
167 truerange = 1
168 range_f = truerange * 1.04
169 u, v = data[:, :, 0], data[:, :, 1]
170 img = computeColor(u/range_f/math.sqrt(2), v/range_f/math.sqrt(2));
171 cv2.imwrite(save_dir, img)
172
173
174def compress_flow(flow, bound=96):

Callers

nothing calls this directly

Calls 1

computeColorFunction · 0.85

Tested by

no test coverage detected