mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge pull request #25381 from gmatheu:v4.x_js_markdown_typo
Fixing code example on js image display documentation
This commit is contained in:
@@ -45,7 +45,7 @@ cv.cvtColor(dst, dst, cv.COLOR_***2RGBA);
|
||||
|
||||
Then, new an ImageData obj from dst:
|
||||
@code{.js}
|
||||
let imgData = new ImageData(new Uint8ClampedArray(dst.data, dst.cols, dst.rows);
|
||||
let imgData = new ImageData(new Uint8ClampedArray(dst.data), dst.cols, dst.rows);
|
||||
@endcode
|
||||
|
||||
Finally, display it:
|
||||
|
||||
Reference in New Issue
Block a user