From 6f3483ade36880d5631c0b77a00ea87a1181e796 Mon Sep 17 00:00:00 2001 From: Sean Li Date: Sat, 29 Oct 2016 16:01:23 +0800 Subject: [PATCH] Correct the comment of Mat::diag(const Mat& d). --- modules/core/include/opencv2/core/mat.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/core/include/opencv2/core/mat.hpp b/modules/core/include/opencv2/core/mat.hpp index c303aa3172..758016a03e 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -1046,9 +1046,8 @@ public: /** @brief creates a diagonal matrix - The method makes a new header for the specified matrix diagonal. The new matrix is represented as a - single-column matrix. Similarly to Mat::row and Mat::col, this is an O(1) operation. - @param d Single-column matrix that forms a diagonal matrix + The method creates a square diagonal matrix from specified main diagonal. + @param d One-dimensional matrix that represents the main diagonal. */ static Mat diag(const Mat& d);