cuda_meanStdDev : bug fix

This commit is contained in:
Namgoo Lee 2018-05-16 03:31:47 +09:00
parent 3104d2f738
commit 2c1ce8c0e9

View File

@ -137,12 +137,11 @@ void cv::cuda::meanStdDev(InputArray _src, OutputArray _dst, Stream& stream)
if (!deviceSupports(FEATURE_SET_COMPUTE_13)) if (!deviceSupports(FEATURE_SET_COMPUTE_13))
CV_Error(cv::Error::StsNotImplemented, "Not sufficient compute capebility"); CV_Error(cv::Error::StsNotImplemented, "Not sufficient compute capebility");
GpuMat src = getInputMat(_src, stream); const GpuMat src = getInputMat(_src, stream);
CV_Assert( src.type() == CV_8UC1 ); CV_Assert( src.type() == CV_8UC1 );
_dst.create(1, 2, CV_64FC1); GpuMat dst = getOutputMat(_dst, 1, 2, CV_64FC1, stream);
GpuMat dst = _dst.getGpuMat();
NppiSize sz; NppiSize sz;
sz.width = src.cols; sz.width = src.cols;