fix latex script in the docs
authorhyrodium <hyrodium@gmail.com>
Tue, 25 May 2021 15:21:10 +0000 (00:21 +0900)
committerhyrodium <hyrodium@gmail.com>
Wed, 26 May 2021 03:46:14 +0000 (12:46 +0900)
doc/py_tutorials/py_feature2d/py_features_harris/py_features_harris.markdown
doc/py_tutorials/py_feature2d/py_shi_tomasi/py_shi_tomasi.markdown
doc/py_tutorials/py_feature2d/py_sift_intro/py_sift_intro.markdown

index e24e692087c552aa413fa9a2f878675fb68eaaa6..60e5686934d74eb236dc34360814c620b351fd2c 100644 (file)
@@ -40,12 +40,12 @@ using **cv.Sobel()**).
 Then comes the main part. After this, they created a score, basically an equation, which
 determines if a window can contain a corner or not.
 
-\f[R = det(M) - k(trace(M))^2\f]
+\f[R = \det(M) - k(\operatorname{trace}(M))^2\f]
 
 where
-    -   \f$det(M) = \lambda_1 \lambda_2\f$
-    -   \f$trace(M) = \lambda_1 + \lambda_2\f$
-    -   \f$\lambda_1\f$ and \f$\lambda_2\f$ are the eigenvalues of M
+    -   \f$\det(M) = \lambda_1 \lambda_2\f$
+    -   \f$\operatorname{trace}(M) = \lambda_1 + \lambda_2\f$
+    -   \f$\lambda_1\f$ and \f$\lambda_2\f$ are the eigenvalues of \f$M\f$
 
 So the magnitudes of these eigenvalues decide whether a region is a corner, an edge, or flat.
 
index 1229581ce685fde4b111ed7bbd56253118781baa..c5d29493e403907cd1d1cc6571b7860a39257113 100644 (file)
@@ -20,7 +20,7 @@ Harris Corner Detector. The scoring function in Harris Corner Detector was given
 
 Instead of this, Shi-Tomasi proposed:
 
-\f[R = min(\lambda_1, \lambda_2)\f]
+\f[R = \min(\lambda_1, \lambda_2)\f]
 
 If it is a greater than a threshold value, it is considered as a corner. If we plot it in
 \f$\lambda_1 - \lambda_2\f$ space as we did in Harris Corner Detector, we get an image as below:
@@ -28,7 +28,7 @@ If it is a greater than a threshold value, it is considered as a corner. If we p
 ![image](images/shitomasi_space.png)
 
 From the figure, you can see that only when \f$\lambda_1\f$ and \f$\lambda_2\f$ are above a minimum value,
-\f$\lambda_{min}\f$, it is considered as a corner(green region).
+\f$\lambda_{\min}\f$, it is considered as a corner(green region).
 
 Code
 ----
index dee4df774ae81a86ccd506b376c19cd5d40e2f3d..bbbae6a3e6c8c6af4b26a849a2789dae74646eb2 100644 (file)
@@ -156,7 +156,7 @@ sift = cv.SIFT_create()
 kp, des = sift.detectAndCompute(gray,None)
 @endcode
 Here kp will be a list of keypoints and des is a numpy array of shape
-\f$Number\_of\_Keypoints \times 128\f$.
+\f$\text{(Number of Keypoints)} \times 128\f$.
 
 So we got keypoints, descriptors etc. Now we want to see how to match keypoints in different images.
 That we will learn in coming chapters.