Fix np row,column to cv y,x

This explanation was created to avoid confusion, but it seems like the author was confused :D
pull/18331/head
or-toledano 5 years ago committed by GitHub
parent 4b24ddd70d
commit 49ba744130
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      doc/py_tutorials/py_imgproc/py_contours/py_contour_properties/py_contour_properties.markdown

@ -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
---------------------------------------------------

Loading…
Cancel
Save