MCPcopy Create free account
hub / github.com/Adamdad/hash3D / color_map_forward

Function color_map_forward

eval_nvs.py:21–29  ·  view source on GitHub ↗
(rgb)

Source from the content-addressed store, hash-verified

19 return psnr
20
21def color_map_forward(rgb):
22 dim = rgb.shape[-1]
23 if dim==3:
24 return rgb.astype(np.float32)/255
25 else:
26 rgb = rgb.astype(np.float32)/255
27 rgb, alpha = rgb[:,:,:3], rgb[:,:,3:]
28 rgb = rgb * alpha + (1-alpha)
29 return rgb
30
31def main():
32 parser = ArgumentParser()

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected