copyTo method
copies those matrix elements to "m" that are marked with non-zero mask elements.
Implementation
//
// It calls m.create(this->size(), this->type()).
void copyTo(UMat dst, {UMat? mask}) {
cvRun(
() => mask == null
? ccore.cv_UMat_copyTo(ref, dst.ref, ffi.nullptr)
: ccore.cv_UMat_copyTo_2(ref, mask.ref, dst.ref, ffi.nullptr),
);
}