From 1c804124d170772166da5d898ffd20f31c44c91f Mon Sep 17 00:00:00 2001 From: Rok Mandeljc Date: Tue, 24 Mar 2015 21:07:46 +0100 Subject: [PATCH] cudastereo: updated documentation for reprojectImage3D and drawColorDisp Updated the list of supported input formats, added note about 16-bit signed format (no fractional bits). --- modules/cudastereo/include/opencv2/cudastereo.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/cudastereo/include/opencv2/cudastereo.hpp b/modules/cudastereo/include/opencv2/cudastereo.hpp index af265bb44f..0f16e176fd 100644 --- a/modules/cudastereo/include/opencv2/cudastereo.hpp +++ b/modules/cudastereo/include/opencv2/cudastereo.hpp @@ -295,7 +295,9 @@ CV_EXPORTS Ptr /** @brief Reprojects a disparity image to 3D space. -@param disp Input disparity image. CV_8U and CV_16S types are supported. +@param disp Input single-channel 8-bit unsigned, 16-bit signed, 32-bit signed or 32-bit +floating-point disparity image. If 16-bit signed format is used, the values are assumed to have no +fractional bits. @param xyzw Output 3- or 4-channel floating-point image of the same size as disp . Each element of xyzw(x,y) contains 3D coordinates (x,y,z) or (x,y,z,1) of the point (x,y) , computed from the disparity map. @@ -309,8 +311,10 @@ CV_EXPORTS void reprojectImageTo3D(InputArray disp, OutputArray xyzw, InputArray /** @brief Colors a disparity image. -@param src_disp Source disparity image. CV_8UC1 and CV_16SC1 types are supported. -@param dst_disp Output disparity image. It has the same size as src_disp . The type is CV_8UC4 +@param src_disp Input single-channel 8-bit unsigned, 16-bit signed, 32-bit signed or 32-bit +floating-point disparity image. If 16-bit signed format is used, the values are assumed to have no +fractional bits. +@param dst_disp Output disparity image. It has the same size as src_disp. The type is CV_8UC4 in BGRA format (alpha = 255). @param ndisp Number of disparities. @param stream Stream for the asynchronous version.