mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
Merge bd1822b444
into aef6ae4872
This commit is contained in:
commit
36456e26fe
@ -240,6 +240,10 @@ public:
|
|||||||
|
|
||||||
//! converts GpuMat to another datatype (Blocking call)
|
//! converts GpuMat to another datatype (Blocking call)
|
||||||
void convertTo(OutputArray dst, int rtype) const;
|
void convertTo(OutputArray dst, int rtype) const;
|
||||||
|
//! bindings overload which converts GpuMat to another datatype (Blocking call)
|
||||||
|
CV_WRAP void convertTo(CV_OUT GpuMat& dst, int rtype) const {
|
||||||
|
convertTo(static_cast<OutputArray>(dst), rtype);
|
||||||
|
}
|
||||||
|
|
||||||
//! converts GpuMat to another datatype (Non-Blocking call)
|
//! converts GpuMat to another datatype (Non-Blocking call)
|
||||||
void convertTo(OutputArray dst, int rtype, Stream& stream) const;
|
void convertTo(OutputArray dst, int rtype, Stream& stream) const;
|
||||||
@ -251,7 +255,7 @@ public:
|
|||||||
//! converts GpuMat to another datatype with scaling (Blocking call)
|
//! converts GpuMat to another datatype with scaling (Blocking call)
|
||||||
void convertTo(OutputArray dst, int rtype, double alpha, double beta = 0.0) const;
|
void convertTo(OutputArray dst, int rtype, double alpha, double beta = 0.0) const;
|
||||||
//! bindings overload which converts GpuMat to another datatype with scaling(Blocking call)
|
//! bindings overload which converts GpuMat to another datatype with scaling(Blocking call)
|
||||||
CV_WRAP void convertTo(CV_OUT GpuMat& dst, int rtype, double alpha = 1.0, double beta = 0.0) const {
|
CV_WRAP void convertTo(CV_OUT GpuMat& dst, int rtype, double alpha, double beta = 0.0) const {
|
||||||
convertTo(static_cast<OutputArray>(dst), rtype, alpha, beta);
|
convertTo(static_cast<OutputArray>(dst), rtype, alpha, beta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -546,7 +546,7 @@ void cv::cuda::GpuMat::convertTo(OutputArray _dst, int rtype, Stream& stream) co
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
CV_DbgAssert( sdepth <= CV_64F && ddepth <= CV_64F );
|
CV_Assert( sdepth <= CV_64F && ddepth <= CV_64F );
|
||||||
|
|
||||||
GpuMat src = *this;
|
GpuMat src = *this;
|
||||||
|
|
||||||
@ -578,6 +578,8 @@ void cv::cuda::GpuMat::convertTo(OutputArray _dst, int rtype, double alpha, doub
|
|||||||
const int sdepth = depth();
|
const int sdepth = depth();
|
||||||
const int ddepth = CV_MAT_DEPTH(rtype);
|
const int ddepth = CV_MAT_DEPTH(rtype);
|
||||||
|
|
||||||
|
CV_Assert(sdepth <= CV_64F && ddepth <= CV_64F);
|
||||||
|
|
||||||
GpuMat src = *this;
|
GpuMat src = *this;
|
||||||
|
|
||||||
_dst.create(size(), rtype);
|
_dst.create(size(), rtype);
|
||||||
|
Loading…
Reference in New Issue
Block a user