(context_edge, mask)
| 1055 | return other_edges, other_edges_info |
| 1056 | |
| 1057 | def require_depth_edge(context_edge, mask): |
| 1058 | dilate_mask = cv2.dilate(mask, np.array([[1,1,1],[1,1,1],[1,1,1]]).astype(np.uint8), iterations=1) |
| 1059 | if (dilate_mask * context_edge).max() == 0: |
| 1060 | return False |
| 1061 | else: |
| 1062 | return True |
| 1063 | |
| 1064 | def refine_color_around_edge(mesh, info_on_pix, edge_ccs, config, spdb=False): |
| 1065 | H, W = mesh.graph['H'], mesh.graph['W'] |
no outgoing calls
no test coverage detected