Skip to content

Commit 1ea1ff1

Browse files
committed
Merge pull request opencv#9827 from ryanfox:patch-2
2 parents 5ea8ea4 + a96c5b5 commit 1ea1ff1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/py_tutorials/py_calib3d/py_depthmap/py_depthmap.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ Goal
55
----
66

77
In this session,
8-
- We will learn to create depth map from stereo images.
8+
- We will learn to create a depth map from stereo images.
99

1010
Basics
1111
------
1212

13-
In last session, we saw basic concepts like epipolar constraints and other related terms. We also
13+
In the last session, we saw basic concepts like epipolar constraints and other related terms. We also
1414
saw that if we have two images of same scene, we can get depth information from that in an intuitive
15-
way. Below is an image and some simple mathematical formulas which proves that intuition. (Image
15+
way. Below is an image and some simple mathematical formulas which prove that intuition. (Image
1616
Courtesy :
1717

1818
![image](images/stereo_depth.jpg)
@@ -24,7 +24,7 @@ following result:
2424

2525
\f$x\f$ and \f$x'\f$ are the distance between points in image plane corresponding to the scene point 3D and
2626
their camera center. \f$B\f$ is the distance between two cameras (which we know) and \f$f\f$ is the focal
27-
length of camera (already known). So in short, above equation says that the depth of a point in a
27+
length of camera (already known). So in short, the above equation says that the depth of a point in a
2828
scene is inversely proportional to the difference in distance of corresponding image points and
2929
their camera centers. So with this information, we can derive the depth of all pixels in an image.
3030

@@ -35,7 +35,7 @@ how we can do it with OpenCV.
3535
Code
3636
----
3737

38-
Below code snippet shows a simple procedure to create disparity map.
38+
Below code snippet shows a simple procedure to create a disparity map.
3939
@code{.py}
4040
import numpy as np
4141
import cv2
@@ -49,7 +49,7 @@ disparity = stereo.compute(imgL,imgR)
4949
plt.imshow(disparity,'gray')
5050
plt.show()
5151
@endcode
52-
Below image contains the original image (left) and its disparity map (right). As you can see, result
52+
Below image contains the original image (left) and its disparity map (right). As you can see, the result
5353
is contaminated with high degree of noise. By adjusting the values of numDisparities and blockSize,
5454
you can get a better result.
5555

0 commit comments

Comments
 (0)