Summary
The cv::Mat::clone method does not create a copy of the underlying data. It worked as expected in v4.10.0-release.1 but has changed in v4.11.0-release.1.
Steps to Reproduce
const m1 = cv.Mat.zeros(1,1,cv.CV_8U);
const m2 = m1.clone();
console.log("m1 =", m1.ucharAt(0), "m2 =", m2.ucharAt(0));
m1.data[0] = 1;
console.log("m1 =", m1.ucharAt(0), "m2 =", m2.ucharAt(0));
Expected result
m1 = 0 m2 = 0
m1 = 1 m2 = 0
Actual result
m1 = 0 m2 = 0
m1 = 1 m2 = 1