Skip to content

Commit ca2ccaa

Browse files
Update Example1.py
1 parent 8ec3208 commit ca2ccaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Example1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
plane = meshGen(H,W)
1515

1616
# We generate a mirror where for each 3D point, its Z coordinate is defined as Z = 20*exp^((x/w)^2 / 2*0.1*sqrt(2*pi))
17-
1817
plane.Z += 20*np.exp(-0.5*((plane.X*1.0/plane.W)/0.1)**2)/(0.1*np.sqrt(2*np.pi))
1918
pts3d = plane.getPlane()
2019

20+
# Projecting / capturing the 3D points using the virtual camera
2121
pts2d = c1.project(pts3d)
2222
map_x,map_y = c1.getMaps(pts2d)
2323

0 commit comments

Comments
 (0)