mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 13:13:26 +08:00
Use "src" not "*this" for source GpuMat
This commit is contained in:
parent
e4d573a080
commit
2241bfb0df
@ -561,7 +561,7 @@ void cv::cuda::GpuMat::convertTo(OutputArray _dst, int rtype, Stream& stream) co
|
|||||||
{convertToNoScale<double, uchar>, convertToNoScale<double, schar>, convertToNoScale<double, ushort>, convertToNoScale<double, short>, convertToNoScale<double, int>, convertToNoScale<double, float>, 0}
|
{convertToNoScale<double, uchar>, convertToNoScale<double, schar>, convertToNoScale<double, ushort>, convertToNoScale<double, short>, convertToNoScale<double, int>, convertToNoScale<double, float>, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
funcs[sdepth][ddepth](reshape(1), dst.reshape(1), stream);
|
funcs[sdepth][ddepth](src.reshape(1), dst.reshape(1), stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cv::cuda::GpuMat::convertTo(OutputArray _dst, int rtype, double alpha, double beta, Stream& stream) const
|
void cv::cuda::GpuMat::convertTo(OutputArray _dst, int rtype, double alpha, double beta, Stream& stream) const
|
||||||
@ -591,7 +591,7 @@ void cv::cuda::GpuMat::convertTo(OutputArray _dst, int rtype, double alpha, doub
|
|||||||
{convertToScale<double, uchar>, convertToScale<double, schar>, convertToScale<double, ushort>, convertToScale<double, short>, convertToScale<double, int>, convertToScale<double, float>, convertToScale<double, double>}
|
{convertToScale<double, uchar>, convertToScale<double, schar>, convertToScale<double, ushort>, convertToScale<double, short>, convertToScale<double, int>, convertToScale<double, float>, convertToScale<double, double>}
|
||||||
};
|
};
|
||||||
|
|
||||||
funcs[sdepth][ddepth](reshape(1), dst.reshape(1), alpha, beta, stream);
|
funcs[sdepth][ddepth](src.reshape(1), dst.reshape(1), alpha, beta, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
void cv::cuda::convertFp16(InputArray _src, OutputArray _dst, Stream& stream)
|
void cv::cuda::convertFp16(InputArray _src, OutputArray _dst, Stream& stream)
|
||||||
|
Loading…
Reference in New Issue
Block a user