Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-vanzandycke committed Dec 17, 2021
1 parent 2e4d86c commit f9046a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/calib3d/calib.html
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,10 @@ <h1 id="implementation">Implementation</h1>
n (np.ndarray): the normal vector of the plane
Returns the Point3D at the intersection between the line and the plane.
&#34;&#34;&#34;
d = d/np.linalg.norm(d, axis=0)
dot = d.T @ n
if np.abs(dot) &lt; EPS:
if np.any(np.abs(dot) &lt; EPS):
return None
d = d/np.linalg.norm(d, axis=0)
dist = ((P-C).T @ n) / dot # Distance between plane z=Z and camera
return Point3D(C + dist.T*d)

Expand Down Expand Up @@ -712,10 +712,10 @@ <h2 id="args">Args</h2>
n (np.ndarray): the normal vector of the plane
Returns the Point3D at the intersection between the line and the plane.
&#34;&#34;&#34;
d = d/np.linalg.norm(d, axis=0)
dot = d.T @ n
if np.abs(dot) &lt; EPS:
if np.any(np.abs(dot) &lt; EPS):
return None
d = d/np.linalg.norm(d, axis=0)
dist = ((P-C).T @ n) / dot # Distance between plane z=Z and camera
return Point3D(C + dist.T*d)</code></pre>
</details>
Expand Down

0 comments on commit f9046a3

Please sign in to comment.