Compute normal vector from depth
代码地址ComputeNormal
matlab code
代码参考Data-driven 3d primitives for single image understanding
使用matlab库函数surfnorm
算法
input: D Depth map,K Camera intrinsic
output: N Surface normal map
def GenerateSurfaceNormal(D, K)
P (