(normal_np)
| 53 | return mesh |
| 54 | |
| 55 | def 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 | |
| 60 | def transform_back_normal_to_front(normal_pil): |
| 61 | arr = np.array(normal_pil) # in [0, 255] |
no test coverage detected