From 57ed0e57f0b422cb13b5f4bd7f9c83187a2576e9 Mon Sep 17 00:00:00 2001 From: Fangjun KUANG Date: Thu, 16 Feb 2017 16:00:32 +0100 Subject: [PATCH] Fix the documentation for Mat::diag(int). (#8199) * Fix the documentation for Mat::diag(int). Fix issue #8181 * Fix the documentation for Mat::diag(int). Fix issue #8181. * Add support for printing out cv::Complex. * Remove extra spaces. * cv::Complex is submitted as a new pull request. --- modules/core/include/opencv2/core/mat.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp index 0953b362b9..70ecac1bfc 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -1081,9 +1081,9 @@ public: single-column matrix. Similarly to Mat::row and Mat::col, this is an O(1) operation. @param d index of the diagonal, with the following values: - `d=0` is the main diagonal. - - `d>0` is a diagonal from the lower half. For example, d=1 means the diagonal is set + - `d<0` is a diagonal from the lower half. For example, d=-1 means the diagonal is set immediately below the main one. - - `d<0` is a diagonal from the upper half. For example, d=-1 means the diagonal is set + - `d>0` is a diagonal from the upper half. For example, d=1 means the diagonal is set immediately above the main one. */ Mat diag(int d=0) const;