Skip to content

Commit 57ed0e5

Browse files
csukuangfjvpisarev
authored andcommitted
Fix the documentation for Mat::diag(int). (opencv#8199)
* Fix the documentation for Mat::diag(int). Fix issue opencv#8181 * Fix the documentation for Mat::diag(int). Fix issue opencv#8181. * Add support for printing out cv::Complex. * Remove extra spaces. * cv::Complex is submitted as a new pull request.
1 parent ca0b6fb commit 57ed0e5

File tree

1 file changed

+2
-2
lines changed
  • modules/core/include/opencv2/core

1 file changed

+2
-2
lines changed

modules/core/include/opencv2/core/mat.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,9 +1081,9 @@ class CV_EXPORTS Mat
10811081
single-column matrix. Similarly to Mat::row and Mat::col, this is an O(1) operation.
10821082
@param d index of the diagonal, with the following values:
10831083
- `d=0` is the main diagonal.
1084-
- `d>0` is a diagonal from the lower half. For example, d=1 means the diagonal is set
1084+
- `d<0` is a diagonal from the lower half. For example, d=-1 means the diagonal is set
10851085
immediately below the main one.
1086-
- `d<0` is a diagonal from the upper half. For example, d=-1 means the diagonal is set
1086+
- `d>0` is a diagonal from the upper half. For example, d=1 means the diagonal is set
10871087
immediately above the main one.
10881088
*/
10891089
Mat diag(int d=0) const;

0 commit comments

Comments
 (0)