Fix np row,column to cv y,x
authoror-toledano <49984106+or-toledano@users.noreply.github.com>
Mon, 14 Sep 2020 11:23:38 +0000 (14:23 +0300)
committerGitHub <noreply@github.com>
Mon, 14 Sep 2020 11:23:38 +0000 (14:23 +0300)
This explanation was created to avoid confusion, but it seems like the author was confused :D

doc/py_tutorials/py_imgproc/py_contours/py_contour_properties/py_contour_properties.markdown

index a07b5e87b36ab9f5fe263bbcad19b55279eece2d..461c87034398df7d8c4fe408b036add1bbc236e0 100644 (file)
@@ -78,7 +78,7 @@ pixelpoints = np.transpose(np.nonzero(mask))
 Here, two methods, one using Numpy functions, next one using OpenCV function (last commented line)
 are given to do the same. Results are also same, but with a slight difference. Numpy gives
 coordinates in **(row, column)** format, while OpenCV gives coordinates in **(x,y)** format. So
-basically the answers will be interchanged. Note that, **row = x** and **column = y**.
+basically the answers will be interchanged. Note that, **row = y** and **column = x**.
 
 7. Maximum Value, Minimum Value and their locations
 ---------------------------------------------------