1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Revert "Merge pull request #27985 from happy-capybara-man:docs/fix-mat-clone-js"

This reverts commit db207c88b0.
This commit is contained in:
happy-capybara-man
2025-12-20 15:23:15 +08:00
committed by GitHub
parent 9f9b6e8dd3
commit 78c27ba4a6
5 changed files with 6 additions and 8 deletions
@@ -77,14 +77,12 @@ How to copy Mat
There are 2 ways to copy a Mat:
@code{.js}
// 1. Clone (deep copy)
let dst = src.mat_clone();
// 1. Clone
let dst = src.clone();
// 2. CopyTo(only entries indicated in the mask are copied)
src.copyTo(dst, mask);
@endcode
@note In OpenCV.js, use `mat_clone()` instead of `clone()` to ensure deep copy behavior. The `clone()` method may perform shallow copy due to Emscripten embind limitations.
How to convert the type of Mat
------------------------------