mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
This commit is contained in:
@@ -961,6 +961,8 @@ void UMat::convertTo(OutputArray _dst, int _type, double alpha, double beta) con
|
||||
}
|
||||
}
|
||||
#endif
|
||||
UMat src = *this; // Fake reference to itself.
|
||||
// Resolves issue 8693 in case of src == dst.
|
||||
Mat m = getMat(ACCESS_READ);
|
||||
m.convertTo(_dst, _type, alpha, beta);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user