MCPcopy Create free account
hub / github.com/AiuniAI/Unique3D / normalmap_to_depthmap

Function normalmap_to_depthmap

scripts/mesh_init.py:55–58  ·  view source on GitHub ↗
(normal_np)

Source from the content-addressed store, hash-verified

53 return mesh
54
55def normalmap_to_depthmap(normal_np):
56 from scripts.normal_to_height_map import estimate_height_map
57 height = estimate_height_map(normal_np, raw_values=True, thread_count=_MAX_THREAD, target_iteration_count=96)
58 return height
59
60def transform_back_normal_to_front(normal_pil):
61 arr = np.array(normal_pil) # in [0, 255]

Callers 1

build_meshFunction · 0.85

Calls 1

estimate_height_mapFunction · 0.90

Tested by

no test coverage detected