You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 18, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: test/tests/core/Mat/Mat.test.js
+8-1
Original file line number
Diff line number
Diff line change
@@ -325,7 +325,14 @@ describe('Mat', () => {
325
325
expect(buf).instanceOf(Buffer).lengthOf(18);
326
326
});
327
327
});
328
-
328
+
329
+
describe('getData after getRegion should throw an error',()=>{
330
+
it('should return buffer of with data of single channeled Mat',()=>{
331
+
constregion=matC3.getRegion(newcv.Rect(0,0,2,2));
332
+
assertError(()=>region.getData(),"Mat::GetData - Cannot call GetData when Region of Interest is defined (i.e. after getRegion) use matrix.copyTo to copy ROI to a new matrix")
333
+
});
334
+
});
335
+
329
336
describe('async',()=>{
330
337
it('should return buffer with data of single channeled Mat',(done)=>{
0 commit comments