Create 3D Object out of 3 views

后端 未结 1 735
长发绾君心
长发绾君心 2021-01-21 12:58

I\'d like to calculate an 3D object out of the 3 views. The principle is shown in following figure. \"object

相关标签:
1条回答
  • 2021-01-21 13:03

    If your views are a, b, c then:

    result = a[None, :, :] & b[:, None, :] & c[:, :, None]
    

    Shuffle round the axes to suit the input

    a, b and c are assumed to be of the form:

    np.array([[0,0,0,0],[0,1,1,0],[0,1,1,0],[0,0,0,0]], dtype=np.bool)
    
    0 讨论(0)
提交回复
热议问题