From bd7bad02a0b0c1c29fffb59c3d01882daa35fe5e Mon Sep 17 00:00:00 2001 From: Paul Jurczak Date: Fri, 1 Jun 2018 04:15:21 -0600 Subject: [PATCH] convertFp16 documentation edit (2) If this seems too wordy, take into account a new user who tries to find out extent of FP16 support in OpenCV. --- modules/core/include/opencv2/core.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/core/include/opencv2/core.hpp b/modules/core/include/opencv2/core.hpp index 216a8bcc92..43da5a9bbe 100644 --- a/modules/core/include/opencv2/core.hpp +++ b/modules/core/include/opencv2/core.hpp @@ -532,8 +532,9 @@ CV_EXPORTS_W void convertScaleAbs(InputArray src, OutputArray dst, /** @brief Converts an array to half precision floating number. -This function converts FP32 (single precision floating point) from/to FP16 (half precision floating point). The input array has to have type of CV_32F or -CV_16S to represent the bit depth. If the input array is neither of them, the function will raise an error. +This function converts FP32 (single precision floating point) from/to FP16 (half precision floating point). CV_16S format is used to represent FP16 data. +There are two use modes (src -> dst): CV_32F -> CV_16S and CV_16S -> CV_32F. The input array has to have type of CV_32F or +CV_16S to represent the bit depth. If the input array is neither of them, the function will raise an error. The format of half precision floating point is defined in IEEE 754-2008. @param src input array.