From a748eba42e5d6b135749285816cff14c24affcf8 Mon Sep 17 00:00:00 2001 From: Paul Jurczak Date: Sun, 19 Apr 2020 01:14:09 -0600 Subject: [PATCH] Added descriptions of randu and randn --- modules/core/include/opencv2/core/matx.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/core/include/opencv2/core/matx.hpp b/modules/core/include/opencv2/core/matx.hpp index 1b84f3afec..733f675192 100644 --- a/modules/core/include/opencv2/core/matx.hpp +++ b/modules/core/include/opencv2/core/matx.hpp @@ -151,7 +151,16 @@ public: static Matx ones(); static Matx eye(); static Matx diag(const diag_type& d); + /** @brief Generates uniformly distributed random numbers + @param a Range boundary. + @param b The other range boundary (boundaries don't have to be ordered, the lower boundary is inclusive, + the upper one is exclusive). + */ static Matx randu(_Tp a, _Tp b); + /** @brief Generates normally distributed random numbers + @param a Mean value. + @param b Standard deviation. + */ static Matx randn(_Tp a, _Tp b); //! dot product computed with the default precision