I have a 3D matrix in python:
mat = np.zeros((512,512,480))
The index of each element is the coordinates of each point in space.
And a plane:
center = np.array([251.7, 150.2, 200.1])
normal = np.array([-0.07017233, -0.99284769, 0.09658831])
I want to have a mask of mat. The value of each element is 1 if the corresponding point is on the same side as the direction of the normal, otherwise, set the value to 0.