From 95468b72f38af876fcbbd648f321331baa136432 Mon Sep 17 00:00:00 2001 From: Fangjun KUANG Date: Mon, 13 Mar 2017 10:20:41 +0100 Subject: [PATCH] Fix typos in the documentation for cv::Mat. --- 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..f66c0cc8c6 100644 --- a/modules/core/include/opencv2/core/mat.hpp +++ b/modules/core/include/opencv2/core/mat.hpp @@ -660,7 +660,7 @@ sub-matrices. - Use MATLAB-style array initializers, zeros(), ones(), eye(), for example: @code - // create a double-precision identity martix and add it to M. + // create a double-precision identity matrix and add it to M. M += Mat::eye(M.rows, M.cols, CV_64F); @endcode @@ -693,7 +693,7 @@ If you need to process a whole row of a 2D array, the most efficient way is to g the row first, and then just use the plain C operator [] : @code // compute sum of positive matrix elements - // (assuming that M isa double-precision matrix) + // (assuming that M is a double-precision matrix) double sum=0; for(int i = 0; i < M.rows; i++) {